Commit 444a9c92 authored by jingnan's avatar jingnan 👀

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

parent 98450db6
......@@ -113,7 +113,7 @@
</el-col>
<el-col :span="8">
<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="N" />
</el-select>
......@@ -127,7 +127,7 @@
:min="0"
:max="basicData.reqAmount"
placeholder="不合格数"
:disabled="form.isPass === 'N'||allDisabled"
:disabled="form.isPass === 'N'||allDisabled||passDisabled"
/>
</el-form-item>
</el-col>
......@@ -230,6 +230,7 @@ export default {
return {
allDisabled: that.basicData.allDisabled,
disabled: false,
passDisabled: false,
// 验收单号是否禁用
subTypeNameDisabled: false,
// form表单数据
......@@ -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'))) {
this.subTypeNameDisabled = true
this.passDisabled = true
}
},
methods: {
......
......@@ -181,7 +181,7 @@
</el-col>
<el-col :span="8">
<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="N" />
</el-select>
......@@ -196,7 +196,7 @@
:min="0"
:max="basicData.reqAmount"
placeholder="不合格数"
:disabled="form.isPass === 'N'||allDisabled"
:disabled="form.isPass === 'N'||allDisabled||passDisabled"
/>
</el-form-item>
</div>
......@@ -526,6 +526,7 @@ export default {
const that = this
return {
allDisabled: that.basicData.allDisabled,
passDisabled: false,
// pRowData: '',
loading: false,
// 验收单编号
......@@ -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'))) {
this.subTypeNameDisabled = true
this.passDisabled = true
}
},
methods: {
......
......@@ -95,7 +95,7 @@
</el-col>
<el-col :span="8">
<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="N" />
</el-select>
......@@ -109,7 +109,7 @@
:min="0"
:max="basicData.reqAmount"
placeholder="不合格数"
:disabled="form.isPass==='N'||allDisabled"
:disabled="form.isPass==='N'||allDisabled||passDisabled"
/>
</el-form-item>
</el-col>
......@@ -200,6 +200,7 @@ export default {
return {
allDisabled: that.basicData.allDisabled,
disabled: false,
passDisabled: false,
// 验收单号是否禁用
subTypeNameDisabled: false,
// form表单数据
......@@ -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'))) {
this.subTypeNameDisabled = true
this.passDisabled = true
}
},
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