Browse Source

2024-08-17

iqc责任人优化
master
fengyuan_yang 1 year ago
parent
commit
0d2379bd74
  1. 22
      src/views/modules/qc/IQCResultEntry.vue

22
src/views/modules/qc/IQCResultEntry.vue

@ -61,7 +61,7 @@
<el-input v-model="searchData.inspectorName" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item>
<span slot="label" @click="getBaseList(509)"><a herf="#">供应商编码</a></span>
<span slot="label" @click="getBaseList(509,1)"><a herf="#">供应商编码</a></span>
<el-input v-model="searchData.supplierNo" clearable style="width: 145px"></el-input>
</el-form-item>
<el-form-item>
@ -284,9 +284,10 @@
<el-input v-model="detailData.operatorName" readonly style="width: 224px"></el-input>
</el-form-item>
<el-form-item>
<span v-if="detailData.submitFlag === 'Y'" slot="label">责任人</span>
<span v-else style="cursor: pointer" slot="label" @click="getResponsiblePersonList"><a>责任人</a></span>
<el-input v-model="detailData.responsiblePersonName" readonly style="width: 224px"></el-input>
<span v-if="detailData.submitFlag === 'Y'" slot="label">责任人(供应商)</span>
<span v-else style="cursor: pointer" slot="label" @click="getBaseList(509,2)" ><a>责任人(供应商)</a></span>
<!-- <span v-else style="cursor: pointer" slot="label" @click="getResponsiblePersonList"><a>责任人</a></span>-->
<el-input v-model="detailData.responsiblePerson" :readonly="detailData.submitFlag === 'Y'" style="width: 224px"></el-input>
</el-form-item>
<el-form-item :label="' '" style="margin-left: 20px">
<el-button type="primary" icon="el-icon-upload" @click="subDetailUpload">明细导入</el-button>
@ -897,6 +898,7 @@
updateBy: this.$store.state.user.name,
},
tagNo:'',
tagType: '',
searchData: {
site: '',
userName: this.$store.state.user.name,
@ -2837,6 +2839,7 @@
// S
getBaseList (val,type) {
this.tagNo = val
this.tagType = type
this.$nextTick(() => {
let strVal = ''
let conSql = ''
@ -2852,10 +2855,14 @@
strVal = this.searchData.warehouseId
this.$refs.baseList.init(val, strVal)
}
if (val === 509) {
if (val === 509 && type === 1) {
strVal = this.searchData.supplierNo
this.$refs.baseList.init(val, strVal)
}
if (val === 509 && type === 2) {
strVal = this.detailData.responsiblePerson
this.$refs.baseList.init(val, strVal)
}
if (val === 207) {
strVal = this.changeData.samplingProgrammeNo
conSql = " and bu_no = '" + this.changeData.buNo + "'"
@ -2882,9 +2889,12 @@
if (this.tagNo === 508) {
this.searchData.warehouseId = val.WareHouseID
}
if (this.tagNo === 509) {
if (this.tagNo === 509 && this.tagType === 1) {
this.searchData.supplierNo = val.SupplierID
}
if (this.tagNo === 509 && this.tagType === 2) {
this.detailData.responsiblePerson = val.SupplierID
}
if (this.tagNo === 207) {
this.changeData.samplingProgrammeNo = val.sampling_programme_no
this.changeData.samplingProgrammeDesc = val.sampling_programme_desc

Loading…
Cancel
Save