Commit 444a9c92 authored by jingnan's avatar jingnan 👀

退库入库不合格及不合格数不可以编辑

parent 98450db6
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label-width="100px" label="是否合格" prop="isPass"> <el-form-item label-width="100px" label="是否合格" prop="isPass">
<el-select v-model="form.isPass" :disabled="allDisabled" clearable placeholder="请选择"> <el-select v-model="form.isPass" :disabled="allDisabled||passDisabled" clearable placeholder="请选择">
<el-option label="合格" value="Y" /> <el-option label="合格" value="Y" />
<el-option label="不合格" value="N" /> <el-option label="不合格" value="N" />
</el-select> </el-select>
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
:min="0" :min="0"
:max="basicData.reqAmount" :max="basicData.reqAmount"
placeholder="不合格数" placeholder="不合格数"
:disabled="form.isPass === 'N'||allDisabled" :disabled="form.isPass === 'N'||allDisabled||passDisabled"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -230,6 +230,7 @@ export default { ...@@ -230,6 +230,7 @@ export default {
return { return {
allDisabled: that.basicData.allDisabled, allDisabled: that.basicData.allDisabled,
disabled: false, disabled: false,
passDisabled: false,
// 验收单号是否禁用 // 验收单号是否禁用
subTypeNameDisabled: false, subTypeNameDisabled: false,
// form表单数据 // form表单数据
...@@ -336,6 +337,7 @@ export default { ...@@ -336,6 +337,7 @@ export default {
// 退库入库检验的验收单号使用原物料的验收单号不允许修改 // 退库入库检验的验收单号使用原物料的验收单号不允许修改
if (this.jobResponseInTestData && this.jobResponseInTestData.testNo && this.jobResponseInTestData.subTypeName !== 'JobResponseInTest' || (this.jobResponseInTestData.subTypeName === 'JobResponseInTest' && this.basicData.subTypeName.includes('BackItem'))) { if (this.jobResponseInTestData && this.jobResponseInTestData.testNo && this.jobResponseInTestData.subTypeName !== 'JobResponseInTest' || (this.jobResponseInTestData.subTypeName === 'JobResponseInTest' && this.basicData.subTypeName.includes('BackItem'))) {
this.subTypeNameDisabled = true this.subTypeNameDisabled = true
this.passDisabled = true
} }
}, },
methods: { methods: {
......
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="是否合格" prop="isPass" label-width="130px"> <el-form-item label="是否合格" prop="isPass" label-width="130px">
<el-select v-model="form.isPass" :disabled="allDisabled" clearable placeholder="请选择"> <el-select v-model="form.isPass" :disabled="allDisabled||passDisabled" clearable placeholder="请选择">
<el-option label="合格" value="Y" /> <el-option label="合格" value="Y" />
<el-option label="不合格" value="N" /> <el-option label="不合格" value="N" />
</el-select> </el-select>
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
:min="0" :min="0"
:max="basicData.reqAmount" :max="basicData.reqAmount"
placeholder="不合格数" placeholder="不合格数"
:disabled="form.isPass === 'N'||allDisabled" :disabled="form.isPass === 'N'||allDisabled||passDisabled"
/> />
</el-form-item> </el-form-item>
</div> </div>
...@@ -526,6 +526,7 @@ export default { ...@@ -526,6 +526,7 @@ export default {
const that = this const that = this
return { return {
allDisabled: that.basicData.allDisabled, allDisabled: that.basicData.allDisabled,
passDisabled: false,
// pRowData: '', // pRowData: '',
loading: false, loading: false,
// 验收单编号 // 验收单编号
...@@ -837,6 +838,7 @@ export default { ...@@ -837,6 +838,7 @@ export default {
// 退库入库检验的验收单号使用原物料的验收单号不允许修改 // 退库入库检验的验收单号使用原物料的验收单号不允许修改
if (this.jobResponseInTestData && this.jobResponseInTestData.testNo && this.jobResponseInTestData.subTypeName !== 'JobResponseInTest' || (this.jobResponseInTestData.subTypeName === 'JobResponseInTest' && this.basicData.subTypeName.includes('BackItem'))) { if (this.jobResponseInTestData && this.jobResponseInTestData.testNo && this.jobResponseInTestData.subTypeName !== 'JobResponseInTest' || (this.jobResponseInTestData.subTypeName === 'JobResponseInTest' && this.basicData.subTypeName.includes('BackItem'))) {
this.subTypeNameDisabled = true this.subTypeNameDisabled = true
this.passDisabled = true
} }
}, },
methods: { methods: {
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="是否合格" prop="isPass" label-width="100px"> <el-form-item label="是否合格" prop="isPass" label-width="100px">
<el-select v-model="form.isPass" clearable :disabled="allDisabled" placeholder="请选择"> <el-select v-model="form.isPass" clearable :disabled="allDisabled||passDisabled" placeholder="请选择">
<el-option label="合格" value="Y" /> <el-option label="合格" value="Y" />
<el-option label="不合格" value="N" /> <el-option label="不合格" value="N" />
</el-select> </el-select>
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
:min="0" :min="0"
:max="basicData.reqAmount" :max="basicData.reqAmount"
placeholder="不合格数" placeholder="不合格数"
:disabled="form.isPass==='N'||allDisabled" :disabled="form.isPass==='N'||allDisabled||passDisabled"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -200,6 +200,7 @@ export default { ...@@ -200,6 +200,7 @@ export default {
return { return {
allDisabled: that.basicData.allDisabled, allDisabled: that.basicData.allDisabled,
disabled: false, disabled: false,
passDisabled: false,
// 验收单号是否禁用 // 验收单号是否禁用
subTypeNameDisabled: false, subTypeNameDisabled: false,
// form表单数据 // form表单数据
...@@ -306,6 +307,7 @@ export default { ...@@ -306,6 +307,7 @@ export default {
// 退库入库检验的验收单号使用原物料的验收单号不允许修改 // 退库入库检验的验收单号使用原物料的验收单号不允许修改
if (this.jobResponseInTestData && this.jobResponseInTestData.testNo && this.jobResponseInTestData.subTypeName !== 'JobResponseInTest' || (this.jobResponseInTestData.subTypeName === 'JobResponseInTest' && this.basicData.subTypeName.includes('BackItem'))) { if (this.jobResponseInTestData && this.jobResponseInTestData.testNo && this.jobResponseInTestData.subTypeName !== 'JobResponseInTest' || (this.jobResponseInTestData.subTypeName === 'JobResponseInTest' && this.basicData.subTypeName.includes('BackItem'))) {
this.subTypeNameDisabled = true this.subTypeNameDisabled = true
this.passDisabled = true
} }
}, },
methods: { methods: {
......
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