diff --git a/klp-ui/src/components/CoilSelector/data.js b/klp-ui/src/components/CoilSelector/data.js
index 250c2698..3bcbc004 100644
--- a/klp-ui/src/components/CoilSelector/data.js
+++ b/klp-ui/src/components/CoilSelector/data.js
@@ -55,6 +55,13 @@ export const defaultColumns = [
width: '120',
showOverflowTooltip: true
},
+ {
+ label: '创建时间',
+ align: 'center',
+ prop: 'createTime',
+ width: '100',
+ showOverflowTooltip: true
+ },
{
label: '备注',
align: 'center',
diff --git a/klp-ui/src/views/wms/anneal/plan/index.vue b/klp-ui/src/views/wms/anneal/plan/index.vue
index 9d37c77c..8d9e7cb8 100644
--- a/klp-ui/src/views/wms/anneal/plan/index.vue
+++ b/klp-ui/src/views/wms/anneal/plan/index.vue
@@ -208,19 +208,18 @@
-
-
+
+
-
+
@@ -230,22 +229,6 @@
取 消
-
-
-
-
-
@@ -273,6 +256,7 @@ export default {
total: 0,
planList: [],
furnaceOptions: [],
+ targetFurnaces: [],
title: "",
open: false,
statusOpen: false,
@@ -434,6 +418,7 @@ export default {
status: 0,
remark: undefined,
};
+ this.targetFurnaces = [];
this.resetForm("form");
},
resetMaterialForm() {
@@ -488,7 +473,22 @@ export default {
this.buttonLoading = false;
});
} else {
- addAnnealPlan(this.form).then(() => {
+ if (this.targetFurnaces.length === 0) {
+ this.$message.warning('请选择至少一个目标炉');
+ return;
+ }
+ Promise.all(this.targetFurnaces.map(id => {
+ return addAnnealPlan({
+ ...this.form,
+ targetFurnaceId: id,
+ }).then(() => {
+ this.$modal.msgSuccess("新增成功");
+ this.open = false;
+ this.getList();
+ }).finally(() => {
+ this.buttonLoading = false;
+ });
+ })).then(() => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();