From 5a1f8d894d75fc221ffca2e3294963a517dcaa3b Mon Sep 17 00:00:00 2001 From: lb Date: Thu, 2 Mar 2023 17:03:54 +0800 Subject: [PATCH] update --- src/views/modules/pms/blenderStep/config.js | 1 + src/views/modules/pms/firingStep/config.js | 1 + src/views/modules/pms/packingStep/config.js | 1 + src/views/modules/pms/shapeStep/config.js | 1 + src/views/modules/pms/testingStep/config.js | 1 + 5 files changed, 5 insertions(+) diff --git a/src/views/modules/pms/blenderStep/config.js b/src/views/modules/pms/blenderStep/config.js index 4333ae6..2f1809c 100644 --- a/src/views/modules/pms/blenderStep/config.js +++ b/src/views/modules/pms/blenderStep/config.js @@ -96,6 +96,7 @@ export default function () { prop: "bomId", options: [], refreshOptionsAfterConfirm: true, + rules: { required: true, message: "必填项不能为空", trigger: "blur" }, elparams: { clearable: true, filterable: true, placeholder: "请选择配方" }, fetchData: (techId = -1) => this.$http.get("/pms/bom/listUnR", { params: { wsId: 1, externalCode: '', key: '', techId } }), }, diff --git a/src/views/modules/pms/firingStep/config.js b/src/views/modules/pms/firingStep/config.js index f54ad48..f9221ea 100644 --- a/src/views/modules/pms/firingStep/config.js +++ b/src/views/modules/pms/firingStep/config.js @@ -96,6 +96,7 @@ export default function () { prop: "bomId", options: [], refreshOptionsAfterConfirm: true, + rules: { required: true, message: "必填项不能为空", trigger: "blur" }, elparams: { clearable: true, filterable: true, placeholder: "请选择配方" }, fetchData: (techId = -1) => this.$http.get("/pms/bom/listUnR", { params: { wsId: 3, externalCode: '', key: '', techId } }), }, diff --git a/src/views/modules/pms/packingStep/config.js b/src/views/modules/pms/packingStep/config.js index cb58d4e..2c97efa 100644 --- a/src/views/modules/pms/packingStep/config.js +++ b/src/views/modules/pms/packingStep/config.js @@ -93,6 +93,7 @@ export default function () { prop: "shapeId", options: [], refreshOptionsAfterConfirm: true, + rules: { required: true, message: "必填项不能为空", trigger: "blur" }, elparams: { clearable: true, filterable: true, placeholder: "请选择砖型" }, // 下面参数的 techId 是为 /pms/xxx/listUnR 接口定制的,默认为 -1,新增时使用,编辑时传对应的 工艺id fetchData: (techId = -1) => this.$http.get("/pms/shape/listUnR", { params: { wsId: 5, externalCode: '', key: '', techId } }), diff --git a/src/views/modules/pms/shapeStep/config.js b/src/views/modules/pms/shapeStep/config.js index be401a5..6d227ba 100644 --- a/src/views/modules/pms/shapeStep/config.js +++ b/src/views/modules/pms/shapeStep/config.js @@ -93,6 +93,7 @@ export default function () { prop: "shapeId", options: [], refreshOptionsAfterConfirm: true, + rules: { required: true, message: "必填项不能为空", trigger: "blur" }, elparams: { clearable: true, filterable: true, placeholder: "请选择砖型" }, fetchData: (techId = -1) => this.$http.get("/pms/shape/listUnR", { params: { wsId: 2, externalCode: '', key: '', techId } }), }, diff --git a/src/views/modules/pms/testingStep/config.js b/src/views/modules/pms/testingStep/config.js index bf72890..aa6bfae 100644 --- a/src/views/modules/pms/testingStep/config.js +++ b/src/views/modules/pms/testingStep/config.js @@ -93,6 +93,7 @@ export default function () { prop: "shapeId", options: [], refreshOptionsAfterConfirm: true, + rules: { required: true, message: "必填项不能为空", trigger: "blur" }, elparams: { clearable: true, filterable: true, placeholder: "请选择砖型" }, // 下面参数的 techId 是为 /pms/xxx/listUnR 接口定制的,默认为 -1,新增时使用,编辑时传对应的 工艺id fetchData: (techId = -1) => this.$http.get("/pms/shape/listUnR", { params: { wsId: 4, externalCode: '', key: '', techId } }),