Commit 048d7c4f authored by chenzj's avatar chenzj

换型新增自动生产关键字

parent 93c21564
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
import { listScheduleSetupRule, getScheduleSetupRule, delScheduleSetupRule, addScheduleSetupRule, updateScheduleSetupRule } from "@/api/mes/pro/scheduleSetupRule"; import { listScheduleSetupRule, getScheduleSetupRule, delScheduleSetupRule, addScheduleSetupRule, updateScheduleSetupRule } from "@/api/mes/pro/scheduleSetupRule";
import BrandSelect from "@/components/itemType/single.vue"; import BrandSelect from "@/components/itemType/single.vue";
import ProcessSelect from "@/components/process/taskSelectSingle.vue"; import ProcessSelect from "@/components/process/taskSelectSingle.vue";
import { genCode } from "@/api/system/autocode/rule";
export default { export default {
name: "ScheduleSetupRule", name: "ScheduleSetupRule",
...@@ -295,6 +295,12 @@ export default { ...@@ -295,6 +295,12 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
gCode() {
genCode("SCHEDULE_SETUP_RULE_CODE").then((response) => {
this.form.ruleCode = response;
});
},
// 取消按钮 // 取消按钮
cancel() { cancel() {
this.open = false; this.open = false;
...@@ -344,6 +350,7 @@ export default { ...@@ -344,6 +350,7 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.gCode();
this.open = true; this.open = true;
this.title = "添加排产换型对照信息"; this.title = "添加排产换型对照信息";
}, },
......
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