fix:禅道139配置工艺,新增的时候,如果是切分工艺就让他编辑切分数量,如果是常规工艺就不让编辑

This commit is contained in:
shijing 2025-10-28 15:34:39 +08:00
parent 5d5b091ed8
commit 980feee20b
1 changed files with 7 additions and 0 deletions

View File

@ -116,6 +116,7 @@
<el-input-number <el-input-number
v-model="form.div_number" v-model="form.div_number"
:min="0" :min="0"
:disabled="divDisable"
style="width: 100%" style="width: 100%"
/> />
</el-form-item> </el-form-item>
@ -351,6 +352,7 @@ export default {
}, },
visible: false, visible: false,
isSaveing: false, isSaveing: false,
divDisable:false,
materialsIn: [], materialsIn: [],
materialsOut: [], materialsOut: [],
mgroups: [], mgroups: [],
@ -451,6 +453,11 @@ export default {
that.options.forEach((item) => { that.options.forEach((item) => {
if (item.id == that.form.process) { if (item.id == that.form.process) {
that.processName = item.name; that.processName = item.name;
if(item.mtype==20){
that.divDisable = false;
}else{
that.divDisable = true;
}
} }
}) })
}, },