diff --git a/src/pages/Middle/Mold/MoldComponent/Edit.vue b/src/pages/Middle/Mold/MoldComponent/Edit.vue
index ae4bd95..cc7f789 100644
--- a/src/pages/Middle/Mold/MoldComponent/Edit.vue
+++ b/src/pages/Middle/Mold/MoldComponent/Edit.vue
@@ -6,32 +6,32 @@
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
@@ -75,7 +75,6 @@ export default {
uploadDefaultImg: null,
detailDataFieldName: "mold_component",
-
actions: {
get: `${BASE_URL.BASE_URL}/MoldComponent/v1/mold/component/detail`,
create: `${BASE_URL.BASE_URL}/MoldComponent/v1/mold/component/create`,
@@ -85,13 +84,17 @@ export default {
keyName: 'id',
// 是否编辑模式
isEdit: false,
+ defaultFormData: {
+
+ code: '',
+ name: '',
+
+ },
// 表单数据
formOptions: {
- data: {
- material_id: 0,
- warehouse_id: 0,
- version: '',
- is_default: 0
+ data: {
+ code: '',
+ name: '',
},
// 标题宽度
titleWidth: 100,
@@ -277,6 +280,7 @@ export default {
ok() {
+ let _this = this;
let save = () => {
@@ -293,12 +297,12 @@ export default {
list: this.detailsData,
deletedList: this.deletedDetailsData,
fieldName: 'component_id',
- dataRule:[
- {field:'id',type:'bigint'} ,
- {field:'sort',type:'integer'},
- {field:'update_uid',type:'bigint'} ,
- {field:'mes_processes_id',type:'bigint'} ,
- {field:'create_uid',type:'bigint'}
+ dataRule: [
+ { field: 'id', type: 'bigint' },
+ { field: 'sort', type: 'integer' },
+ { field: 'update_uid', type: 'bigint' },
+ { field: 'mes_processes_id', type: 'bigint' },
+ { field: 'create_uid', type: 'bigint' }
]
});
@@ -306,7 +310,6 @@ export default {
this.$mk.formatFormData({ data: postdata, rules: this.formOptions.items });
-
// 提交数据
this.$mk.post({
url: action,
@@ -319,7 +322,18 @@ export default {
this.$mk.success("保存成功");
if (!this.isEdit) { // 如果是新增模式,关闭当前页面
- this.back();
+ this.$confirm({
+ title: '提示',
+ content: '新增成功,是否继续',
+ okText: '确认',
+ cancelText: '返回',
+ onOk() {
+ _this.formOptions.data = _this.defaultFormData || {};
+ },
+ onCancel() {
+ _this.back();
+ },
+ });
}
} else {
diff --git a/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue b/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue
index 2310ae9..f777606 100644
--- a/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue
+++ b/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue
@@ -2,23 +2,16 @@
@@ -167,6 +158,9 @@