diff --git a/src/application/mk/libs/function/funs.js b/src/application/mk/libs/function/funs.js
index c774a31..aec27d4 100644
--- a/src/application/mk/libs/function/funs.js
+++ b/src/application/mk/libs/function/funs.js
@@ -35,6 +35,7 @@ export default {
if (dataRule) {
list.forEach(item => {
+
dataRule.forEach(rule => {
let value = item[rule.field];
if (rule.type == "integer") {
@@ -46,6 +47,12 @@ export default {
else if (rule.type == "timestamp") {
item[rule.field] = parseInt(new Date(value).getTime() / 1000);
}
+ else if (rule.type == "bigint") {
+ if(typeof(item[rule.field]) == 'string'){
+ item[rule.field] = JSONbig.parse(`{"v":${item[rule.field]}}`).v;
+ }
+
+ }
})
})
diff --git a/src/pages/Middle/Mold/MoldComponent/Edit.vue b/src/pages/Middle/Mold/MoldComponent/Edit.vue
index a30ed68..ae4bd95 100644
--- a/src/pages/Middle/Mold/MoldComponent/Edit.vue
+++ b/src/pages/Middle/Mold/MoldComponent/Edit.vue
@@ -195,7 +195,7 @@ export default {
this.formOptions.data = this.$mk.formatDetailData({ data: a.data[this.detailDataFieldName] });
- this.detailsData = a.data[this.detailDataFieldName].mold_component_processes || [];
+ this.detailsData = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].mold_component_processes || []));
this.detailsDataInit();
});
@@ -293,8 +293,12 @@ export default {
list: this.detailsData,
deletedList: this.deletedDetailsData,
fieldName: 'component_id',
- dataRule:[
- {field:'sort',type:'integer'}
+ 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'}
]
});
diff --git a/src/pages/Middle/Mold/MoldOrder/Edit.vue b/src/pages/Middle/Mold/MoldOrder/Edit.vue
index f5c99fb..729cea5 100644
--- a/src/pages/Middle/Mold/MoldOrder/Edit.vue
+++ b/src/pages/Middle/Mold/MoldOrder/Edit.vue
@@ -24,7 +24,7 @@
-
@@ -166,7 +166,7 @@ export default {
textField: "name",
listdataFieldName: 'MoldScheme',
mapper: [
- { fromField: "id", field: "mes_scheme_id" }
+ { fromField: "id", field: "mold_id" }
],
dataUrl: `${BASE_URL.BASE_URL}/MoldScheme/v1/mold/scheme/list`
},
@@ -216,9 +216,10 @@ export default {
this.formOptions.data = this.$mk.formatDetailData({ data: a.data[this.detailDataFieldName] });
- this.detailsData = a.data[this.detailDataFieldName].order_molds || [];
+ this.detailsData = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].order_molds || []));
this.detailsDataInit();
+
});
this.isEdit = true;
@@ -315,6 +316,7 @@ export default {
deletedList: this.deletedDetailsData,
fieldName: 'order_id',
dataRule:[
+ {field:'id',type:'bigint'} ,
{field:'production_type',type:'integer'},
{field:'manufacture_cycle',type:'timestamp'},
{field:'draw_start_time',type:'timestamp'},
@@ -323,7 +325,10 @@ export default {
{field:'draw2D_time',type:'timestamp'},
{field:'draw3D_time',type:'timestamp'},
{field:'horizontal_frame_time',type:'timestamp'},
- {field:'inlay_deep_hole_time',type:'timestamp'}
+ {field:'inlay_deep_hole_time',type:'timestamp'} ,
+ {field:'update_uid',type:'bigint'} ,
+ {field:'mold_id',type:'bigint'} ,
+ {field:'create_uid',type:'bigint'}
]
});
diff --git a/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue b/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue
index 8187b29..d41967f 100644
--- a/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue
+++ b/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue
@@ -39,16 +39,34 @@
:edit-render="{ name: '$input', props: { type: 'date' } }">
+
+
+
+
+
+
+
+
+
+
@@ -79,19 +97,37 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
@@ -133,11 +169,21 @@ export default {
data() {
const options_production_type = [{ value: '1', label: '正常布产' }, { value: '2', label: '委托布产' }];
+
+
+
+ const options_is_complete = [{ value: '0', label: '未完成' }, { value: '1', label: '已完成' }];
+ const options_is_send = [{ value: '0', label: '未发料' }, { value: '1', label: '已发料' }];
+ const options_user_type = [{ value: '1', label: '管理员' }, { value: '2', label: '员工' }, { value: '3', label: '触控屏' }];
+
//let _this = this;
// 页面数据变量
var pageData = {
options_production_type: options_production_type,
+ options_is_complete: options_is_complete,
+ options_is_send: options_is_send,
+ options_user_type: options_user_type,
// 当前项目名称
currentConfigName: "",
// 当前项目ID
@@ -320,8 +366,8 @@ export default {
this.formOptions.data = this.$mk.formatDetailData({ data: a.data[this.detailDataFieldName] });
- this.detailsData = a.data[this.detailDataFieldName].mold_scheme_components || [];
- this.detailsData2 = a.data[this.detailDataFieldName].mold_scheme_processes || [];
+ this.detailsData = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].mold_production_order_component || []));
+ this.detailsData2 = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].mold_production_order_component_processes || []));
@@ -431,7 +477,15 @@ export default {
deletedList: this.deletedDetailsData,
fieldName: 'production_id',
dataRule: [
- { field: 'production_type', type: 'integer' }
+ { field: 'production_type', type: 'integer' },
+ { field: 'id', type: 'bigint' },
+ { field: 'update_uid', type: 'bigint' },
+ { field: 'create_uid', type: 'bigint' },
+ { field: 'mold_id', type: 'bigint' },
+ { field: 'component_id', type: 'bigint' },
+ { field: 'process_uid', type: 'bigint' },
+ { field: 'send_uid', type: 'bigint' },
+ { field: 'send_uid', type: 'bigint' },
]
});
postdata.mold_production_order_component_processes = this.$mk.getPostFieldValue({
@@ -441,6 +495,12 @@ export default {
deletedList: this.deletedDetailsData2,
fieldName: 'production_id',
dataRule: [
+
+ { field: 'id', type: 'bigint' },
+ { field: 'update_uid', type: 'bigint' },
+ { field: 'create_uid', type: 'bigint' },
+ { field: 'component_id', type: 'bigint' },
+ { field: 'process_uid', type: 'bigint' },
]
});
diff --git a/src/pages/Middle/Mold/MoldScheme/Edit.vue b/src/pages/Middle/Mold/MoldScheme/Edit.vue
index f5310b6..1a83a02 100644
--- a/src/pages/Middle/Mold/MoldScheme/Edit.vue
+++ b/src/pages/Middle/Mold/MoldScheme/Edit.vue
@@ -6,59 +6,64 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
@@ -73,7 +78,7 @@