@@ -4,11 +4,11 @@ import dictDataUtil from "@/common/configs/dictDataUtil";
const switchOp = [
{
- label: "",
+ label: "否",
value: 0,
},
+ label: "是",
value: 1,
];
@@ -65,21 +65,6 @@ export const tableConfig = {
],
- {
- label: "目标值(%)",
- prop: "targetRate",
- type: "number",
- max: 100,
- min: 0,
- span: 12,
- rules: [
- required: true,
- message: "目标值不能为空",
- trigger: "blur",
- },
- ],
label: "工序标注",
@@ -26,6 +26,14 @@ option.value = Object.assign(option.value, {
label: "工序编码",
prop: "operationCode",
+ readonly: "true",
+ rules: [
+ {
+ required: true,
+ message: "请选择工序编码",
+ trigger: "blur",
+ },
+ ],
click: () => {
startToChooseProcess();
@@ -33,6 +41,20 @@ option.value = Object.assign(option.value, {
label: "工序名称",
prop: "operationName",
+ disabled: "true",
+ label: "目标值(%)",
+ prop: "target",
+ type: "number",
+ min: 0,
+ message: "请输入目标值",
});