Commit 2b6e7e47 authored by jingnan's avatar jingnan 👀

验收单号不允许编辑逻辑修改

parent 00297c7e
......@@ -334,8 +334,12 @@ export default {
this.form = this.jobResponseInTestData
},
mounted() {
// 退库入库检验的验收单号使用原物料的验收单号不允许修改
if (this.jobResponseInTestData && this.jobResponseInTestData.testNo && this.jobResponseInTestData.subTypeName !== 'JobResponseInTest' || (this.jobResponseInTestData.subTypeName === 'JobResponseInTest' && this.basicData.subTypeName.includes('BackItem'))) {
// 退库入库检验的验收单号和是否合格都不允许修改
// 三期入库,返厂验收单号不允许修改
if (this.basicData.subTypeName.includes('RecallItem') || this.basicData.subTypeName.includes('ExpireItem')) {
this.subTypeNameDisabled = true
}
if (this.basicData.subTypeName.includes('BackItem')) {
this.subTypeNameDisabled = true
this.passDisabled = true
}
......
......@@ -835,8 +835,12 @@ export default {
this.getChemicalData(this.basicData.id)
},
mounted() {
// 退库入库检验的验收单号使用原物料的验收单号不允许修改
if (this.jobResponseInTestData && this.jobResponseInTestData.testNo && this.jobResponseInTestData.subTypeName !== 'JobResponseInTest' || (this.jobResponseInTestData.subTypeName === 'JobResponseInTest' && this.basicData.subTypeName.includes('BackItem'))) {
// 退库入库检验的验收单号和是否合格都不允许修改
// 三期入库,返厂验收单号不允许修改
if (this.basicData.subTypeName.includes('RecallItem') || this.basicData.subTypeName.includes('ExpireItem')) {
this.subTypeNameDisabled = true
}
if (this.basicData.subTypeName.includes('BackItem')) {
this.subTypeNameDisabled = true
this.passDisabled = true
}
......
......@@ -304,8 +304,12 @@ export default {
this.form = this.jobResponseInTestData
},
mounted() {
// 退库入库检验的验收单号使用原物料的验收单号不允许修改
if (this.jobResponseInTestData && this.jobResponseInTestData.testNo && this.jobResponseInTestData.subTypeName !== 'JobResponseInTest' || (this.jobResponseInTestData.subTypeName === 'JobResponseInTest' && this.basicData.subTypeName.includes('BackItem'))) {
// 退库入库检验的验收单号和是否合格都不允许修改
// 三期入库,返厂验收单号不允许修改
if (this.basicData.subTypeName.includes('RecallItem') || this.basicData.subTypeName.includes('ExpireItem')) {
this.subTypeNameDisabled = true
}
if (this.basicData.subTypeName.includes('BackItem')) {
this.subTypeNameDisabled = true
this.passDisabled = true
}
......
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