|
|
@ -61,7 +61,7 @@ |
|
|
<el-input v-model="searchData.inspectorName" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="searchData.inspectorName" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<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-input v-model="searchData.supplierNo" clearable style="width: 145px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
@ -284,9 +284,10 @@ |
|
|
<el-input v-model="detailData.operatorName" readonly style="width: 224px"></el-input> |
|
|
<el-input v-model="detailData.operatorName" readonly style="width: 224px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<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> |
|
|
<el-form-item :label="' '" style="margin-left: 20px"> |
|
|
<el-form-item :label="' '" style="margin-left: 20px"> |
|
|
<el-button type="primary" icon="el-icon-upload" @click="subDetailUpload">明细导入</el-button> |
|
|
<el-button type="primary" icon="el-icon-upload" @click="subDetailUpload">明细导入</el-button> |
|
|
@ -897,6 +898,7 @@ |
|
|
updateBy: this.$store.state.user.name, |
|
|
updateBy: this.$store.state.user.name, |
|
|
}, |
|
|
}, |
|
|
tagNo:'', |
|
|
tagNo:'', |
|
|
|
|
|
tagType: '', |
|
|
searchData: { |
|
|
searchData: { |
|
|
site: '', |
|
|
site: '', |
|
|
userName: this.$store.state.user.name, |
|
|
userName: this.$store.state.user.name, |
|
|
@ -2837,6 +2839,7 @@ |
|
|
// 获取基础数据列表S |
|
|
// 获取基础数据列表S |
|
|
getBaseList (val,type) { |
|
|
getBaseList (val,type) { |
|
|
this.tagNo = val |
|
|
this.tagNo = val |
|
|
|
|
|
this.tagType = type |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
let strVal = '' |
|
|
let strVal = '' |
|
|
let conSql = '' |
|
|
let conSql = '' |
|
|
@ -2852,10 +2855,14 @@ |
|
|
strVal = this.searchData.warehouseId |
|
|
strVal = this.searchData.warehouseId |
|
|
this.$refs.baseList.init(val, strVal) |
|
|
this.$refs.baseList.init(val, strVal) |
|
|
} |
|
|
} |
|
|
if (val === 509) { |
|
|
|
|
|
|
|
|
if (val === 509 && type === 1) { |
|
|
strVal = this.searchData.supplierNo |
|
|
strVal = this.searchData.supplierNo |
|
|
this.$refs.baseList.init(val, strVal) |
|
|
this.$refs.baseList.init(val, strVal) |
|
|
} |
|
|
} |
|
|
|
|
|
if (val === 509 && type === 2) { |
|
|
|
|
|
strVal = this.detailData.responsiblePerson |
|
|
|
|
|
this.$refs.baseList.init(val, strVal) |
|
|
|
|
|
} |
|
|
if (val === 207) { |
|
|
if (val === 207) { |
|
|
strVal = this.changeData.samplingProgrammeNo |
|
|
strVal = this.changeData.samplingProgrammeNo |
|
|
conSql = " and bu_no = '" + this.changeData.buNo + "'" |
|
|
conSql = " and bu_no = '" + this.changeData.buNo + "'" |
|
|
@ -2882,9 +2889,12 @@ |
|
|
if (this.tagNo === 508) { |
|
|
if (this.tagNo === 508) { |
|
|
this.searchData.warehouseId = val.WareHouseID |
|
|
this.searchData.warehouseId = val.WareHouseID |
|
|
} |
|
|
} |
|
|
if (this.tagNo === 509) { |
|
|
|
|
|
|
|
|
if (this.tagNo === 509 && this.tagType === 1) { |
|
|
this.searchData.supplierNo = val.SupplierID |
|
|
this.searchData.supplierNo = val.SupplierID |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.tagNo === 509 && this.tagType === 2) { |
|
|
|
|
|
this.detailData.responsiblePerson = val.SupplierID |
|
|
|
|
|
} |
|
|
if (this.tagNo === 207) { |
|
|
if (this.tagNo === 207) { |
|
|
this.changeData.samplingProgrammeNo = val.sampling_programme_no |
|
|
this.changeData.samplingProgrammeNo = val.sampling_programme_no |
|
|
this.changeData.samplingProgrammeDesc = val.sampling_programme_desc |
|
|
this.changeData.samplingProgrammeDesc = val.sampling_programme_desc |
|
|
|