|
|
|
|
@ -117,10 +117,7 @@ |
|
|
|
|
<span><i style="color: red">*</i>工序</span> |
|
|
|
|
</template> :rules="formRules.processId"--> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-form-item |
|
|
|
|
:prop="`tableData[${scope.$index}].processId`" |
|
|
|
|
|
|
|
|
|
> |
|
|
|
|
<el-form-item :prop="`tableData[${scope.$index}].processId`"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="scope.row.processId" |
|
|
|
|
placeholder="请选择" |
|
|
|
|
@ -297,6 +294,23 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="设备顺序" width="150"> |
|
|
|
|
<template #header> |
|
|
|
|
<span><i style="color: red">*</i>设备顺序</span> |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-form-item |
|
|
|
|
:prop="`tableData[${scope.$index}].equipmentSort`" |
|
|
|
|
:rules="formRules.equipmentSort" |
|
|
|
|
> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="scope.row.equipmentSort" |
|
|
|
|
style="width: 100%" |
|
|
|
|
:min="0" |
|
|
|
|
></el-input-number> |
|
|
|
|
</el-form-item> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="指定使用" width="150"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-form-item :prop="`tableData[${scope.$index}].assignUse`"> |
|
|
|
|
@ -384,6 +398,9 @@ export default { |
|
|
|
|
{ required: true, message: '请选择设备名称/编码', trigger: ['change', 'submit'] }, |
|
|
|
|
], |
|
|
|
|
equipType: [{ required: true, message: '请选择设备类型', trigger: ['change', 'submit'] }], |
|
|
|
|
equipmentSort: [ |
|
|
|
|
{ required: true, message: '请输入设备排序', trigger: ['change', 'submit'] }, |
|
|
|
|
], |
|
|
|
|
craftId: [{ required: true, message: '请选择工艺能力', trigger: ['change', 'submit'] }], |
|
|
|
|
// standardProcessAbility: [ |
|
|
|
|
// { required: true, message: '请输入额定加工能力', trigger: ['change', 'submit'] }, |
|
|
|
|
@ -416,7 +433,7 @@ export default { |
|
|
|
|
this.getWorkCenterList(); |
|
|
|
|
this.getEquipment(); |
|
|
|
|
this.getCraftAbility(); |
|
|
|
|
this.getProcessSet() |
|
|
|
|
this.getProcessSet(); |
|
|
|
|
// 初始添加一行(可选) |
|
|
|
|
if (this.title == '新增') { |
|
|
|
|
this.addTable(); |
|
|
|
|
|