|
|
|
@ -122,6 +122,7 @@ |
|
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
|
</el-pagination> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :show-close="false" :close-on-press-escape="false" title="设置table列" |
|
|
|
:visible.sync="visible" width="1000px" v-drag> |
|
|
|
<el-form @keyup.enter.native="updateColumnList()" |
|
|
|
@ -188,16 +189,9 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputSearch10"> |
|
|
|
<el-select v-model="currentPRDetailData.supplierid" filterable placeholder="请选择" style="width: 143px"> |
|
|
|
<el-option |
|
|
|
v-for="(item ,index) in supplierList" |
|
|
|
:key="index" |
|
|
|
:label="item.suppliername" |
|
|
|
:value="item.supplierid" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-form-item > |
|
|
|
<span slot="label" @click="getBaseList(3)">{{inputSearch10}} </span> |
|
|
|
<el-input v-model="currentPRDetailData.supplierid" style="width: 143px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputSearch6"> |
|
|
|
<el-input style="text-align: left;width: 143px" onkeyup="this.value = this.value.toUpperCase()" |
|
|
|
@ -264,6 +258,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a @click="fileDownload(scope.row)">{{ buttons.fileDownload }}</a> |
|
|
|
<a @click="filePreview(scope.row)">{{ buttons.preview }}</a> |
|
|
|
<a @click="delFile(scope.row)">{{ buttons.delete }}</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -346,11 +341,14 @@ |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
import { |
|
|
|
searchSysLanguagePackList, |
|
|
|
searchSysLanguageParam, |
|
|
|
@ -380,15 +378,20 @@ import { |
|
|
|
downFtpFile, |
|
|
|
getFileList, |
|
|
|
getPartFamilyList, |
|
|
|
delFileAssociate, |
|
|
|
} from '@/api/purchaseorder/purchaseRequisition.js' |
|
|
|
import upload from "../common/upload"; |
|
|
|
import axios from "axios"; |
|
|
|
import Vue from "vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: {upload}, |
|
|
|
components: { |
|
|
|
upload |
|
|
|
,Chooselist}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
//模态框编码 |
|
|
|
tagNo : "", |
|
|
|
pdfUrl : '', |
|
|
|
insertFileList: [], |
|
|
|
fileList: [], |
|
|
|
@ -405,7 +408,7 @@ export default { |
|
|
|
inputSearch7: '申请数量', |
|
|
|
inputSearch8: '预估单价', |
|
|
|
inputSearch9: '预估总价', |
|
|
|
inputSearch10: '供应商名称', |
|
|
|
inputSearch10: '供应商编码', |
|
|
|
inputSearch11: '刀模名称', |
|
|
|
inputSearch12: '审批结果', |
|
|
|
inputSearch13: '工具类型', |
|
|
|
@ -638,6 +641,23 @@ export default { |
|
|
|
status: true, |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001FamilyName', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "familyName", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "工具类型", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
@ -1084,6 +1104,36 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
delFile(row){ |
|
|
|
console.log(row) |
|
|
|
this.fileList = this.fileList.filter(item => item.id != row.id); |
|
|
|
if(this.currentPRDetailData.requisitionno != ''){ |
|
|
|
let jsonData = { |
|
|
|
sysOssId : row.id, |
|
|
|
type : 'PRFile' |
|
|
|
} |
|
|
|
delFileAssociate(jsonData).then(({data}) => { |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
getBaseData(val){ |
|
|
|
if (this.tagNo === 3){ |
|
|
|
this.currentPRDetailData.supplierid = val.SupplierID |
|
|
|
this.this.currentPRDetailData.suppliername = val.SupplierName |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取基础数据列表 |
|
|
|
getBaseList(val){ |
|
|
|
this.tagNo = val |
|
|
|
this.$nextTick(() => { |
|
|
|
let strVal = ""; |
|
|
|
if (val === 3){ |
|
|
|
strVal = this.currentPRDetailData.supplierid |
|
|
|
} |
|
|
|
this.$refs.baseList.init(val,strVal) |
|
|
|
}) |
|
|
|
}, |
|
|
|
getPartFamily(){ |
|
|
|
let jsonData = { |
|
|
|
site : this.site, |
|
|
|
@ -1247,10 +1297,10 @@ export default { |
|
|
|
} |
|
|
|
let partNo = this.currentPRDetailData.partno.toUpperCase() |
|
|
|
this.currentPRDetailData.partno = partNo |
|
|
|
let filter = this.supplierList.filter(item => item.supplierid === this.currentPRDetailData.supplierid); |
|
|
|
this.currentPRDetailData.suppliername = filter[0].suppliername |
|
|
|
this.currentPRDetailData.currency = filter[0].currency |
|
|
|
this.currentPRDetailData.taxcode = filter[0].taxcode |
|
|
|
// let filter = this.supplierList.filter(item => item.supplierid === this.currentPRDetailData.supplierid); |
|
|
|
// this.currentPRDetailData.suppliername = filter[0].suppliername |
|
|
|
this.currentPRDetailData.currency = "" |
|
|
|
this.currentPRDetailData.taxcode = "" |
|
|
|
this.currentPRDetailData.fileType = 'PRFile' |
|
|
|
this.currentPRDetailData.sysOssEntityList = this.insertFileList |
|
|
|
savePRDetail(this.currentPRDetailData).then(({data}) => { |
|
|
|
|