Commit 05f0ad4a authored by jingnan's avatar jingnan 👀

验收单号禁用bug修改

parent 368e5b57
...@@ -324,19 +324,17 @@ export default { ...@@ -324,19 +324,17 @@ export default {
}, },
deep: true, deep: true,
immediate: true immediate: true
},
jobResponseInTestData: {
immediate: true,
deep: true,
handler(val) {
val && val.testNo && (this.subTypeNameDisabled = true)
}
} }
}, },
created() { created() {
// 初始化数据 // 初始化数据
this.form = this.jobResponseInTestData this.form = this.jobResponseInTestData
}, },
mounted() {
if (this.jobResponseInTestData && this.jobResponseInTestData.testNo) {
this.subTypeNameDisabled = true
}
},
methods: { methods: {
onSubmit() { onSubmit() {
const params = { const params = {
......
...@@ -800,13 +800,6 @@ export default { ...@@ -800,13 +800,6 @@ export default {
}, },
deep: true, deep: true,
immediate: true immediate: true
},
jobResponseInTestData: {
immediate: true,
deep: true,
handler(val) {
val && val.testNo && (this.subTypeNameDisabled = true)
}
} }
// 'form.isPerformRetest': { // 'form.isPerformRetest': {
// handler: function(v) { // handler: function(v) {
...@@ -842,6 +835,11 @@ export default { ...@@ -842,6 +835,11 @@ export default {
} }
this.getChemicalData(this.basicData.id) this.getChemicalData(this.basicData.id)
}, },
mounted() {
if (this.jobResponseInTestData && this.jobResponseInTestData.testNo) {
this.subTypeNameDisabled = true
}
},
methods: { methods: {
getChemicalData(id) { getChemicalData(id) {
const param = { const param = {
......
...@@ -294,19 +294,17 @@ export default { ...@@ -294,19 +294,17 @@ export default {
}, },
deep: true, deep: true,
immediate: true immediate: true
},
jobResponseInTestData: {
immediate: true,
deep: true,
handler(val) {
val && val.testNo && (this.subTypeNameDisabled = true)
}
} }
}, },
created() { created() {
// 初始化数据 // 初始化数据
this.form = this.jobResponseInTestData this.form = this.jobResponseInTestData
}, },
mounted() {
if (this.jobResponseInTestData && this.jobResponseInTestData.testNo) {
this.subTypeNameDisabled = true
}
},
methods: { methods: {
onSubmit() { onSubmit() {
const params = { const params = {
......
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