diff --git a/src/application/mk/libs/function/funs.js b/src/application/mk/libs/function/funs.js index 6d95441..1b92b8e 100644 --- a/src/application/mk/libs/function/funs.js +++ b/src/application/mk/libs/function/funs.js @@ -22,6 +22,18 @@ export default { return XEUtils.toDateString(cellValue, 'yyyy-MM-dd HH:mm:ss') }, + formatEnum(cellValue, options ) { // 格式化状态 + if (cellValue == null) return ''; + + for (let i = 0; i < options.length; i++) { + if (options[i].value == cellValue) { + return '' + options[i].label + ''; + } + } + return ''; + }, + + formatDetailData({ data, rules }) { if (data.create_time) { diff --git a/src/pages/Middle/Mold/MoldOrder/Edit.vue b/src/pages/Middle/Mold/MoldOrder/Edit.vue index aa62ca3..fbfc1e5 100644 --- a/src/pages/Middle/Mold/MoldOrder/Edit.vue +++ b/src/pages/Middle/Mold/MoldOrder/Edit.vue @@ -415,7 +415,7 @@ export default { { field: 'update_uid', type: 'bigint' }, { field: 'mold_id', type: 'bigint' }, { field: 'mold_master_uid', type: 'bigint' }, - + { field: 'manufacture_cycle', type: 'timestamp' }, { field: 'create_uid', type: 'bigint' } ] diff --git a/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue b/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue index 3a242f8..0f329d4 100644 --- a/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue +++ b/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue @@ -9,8 +9,10 @@ :edit-render="{ name: 'MkGridDataSelector' }"> - + +