Commit 21bdec38 authored by jingnan's avatar jingnan 👀

胶漆、涂料、阿洛丁查询台账的接口修改为线边库台账的接口,带出批次号修改

parent cf623275
...@@ -424,16 +424,16 @@ export default { ...@@ -424,16 +424,16 @@ export default {
changeEvent(value) { changeEvent(value) {
if (this.itemObj.attrKey === 'certificateNo') { if (this.itemObj.attrKey === 'certificateNo') {
const obj = this.form.inventory.find(item => item.testNo === value) const obj = this.form.inventory.find(item => item.testNo === value)
this.$set(this.form, 'lotNo', obj.lotNo) this.$set(this.form, 'lotNo', obj.batchNumber)
if (this.subTypeName === 'AssignCardPaint') { if (this.subTypeName === 'AssignCardPaint') {
const lotNoArr = obj.lotNo && obj.lotNo.split('/') const lotNoArr = obj.batchNumber && obj.batchNumber.split('/')
this.$set(this.form, 'baseLotNo', lotNoArr[0] || '') this.$set(this.form, 'baseLotNo', lotNoArr[0] || '')
this.$set(this.form, 'curingLotNo', lotNoArr[1] || '') this.$set(this.form, 'curingLotNo', lotNoArr[1] || '')
this.$set(this.form, 'diluentLotNo', lotNoArr[2] || '') this.$set(this.form, 'diluentLotNo', lotNoArr[2] || '')
} }
} else if (this.itemObj.attrKey === 'certificateNum') { } else if (this.itemObj.attrKey === 'certificateNum') {
const obj = this.form.inventory.find(item => item.testNo === value) const obj = this.form.inventory.find(item => item.testNo === value)
this.$set(this.form, 'diluentLotNo', obj.lotNo) this.$set(this.form, 'diluentLotNo', obj.batchNumber)
} else if (this.itemObj.attrKey === 'baseModelNo') { } else if (this.itemObj.attrKey === 'baseModelNo') {
this.$set(this.form, 'certificateNo', '') this.$set(this.form, 'certificateNo', '')
this.$set(this.form, 'lotNo', '') this.$set(this.form, 'lotNo', '')
...@@ -767,7 +767,7 @@ export default { ...@@ -767,7 +767,7 @@ export default {
return { return {
label: `${item.testNo}`, label: `${item.testNo}`,
value: item.testNo, value: item.testNo,
lotNo: item.lotNo, lotNo: item.batchNumber,
disabled disabled
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment