From c7275bbdc1ff3bc201546c84e308f50822a65d16 Mon Sep 17 00:00:00 2001 From: xielue Date: Sat, 17 Jun 2023 19:40:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=83=E4=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/application/mk/index.js | 2 +- .../Mes/MesProductionOrder/MesProductionOrder/List.vue | 3 ++- .../Mes/MesProductionOrder/MesProductionOrder/voucher.vue | 8 +++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/application/mk/index.js b/src/application/mk/index.js index 0cad340..c4e0cc3 100644 --- a/src/application/mk/index.js +++ b/src/application/mk/index.js @@ -125,7 +125,7 @@ VXETable.formats.mixin({ return ``; }, formatEnum({ cellValue,column }) { // 格式化状态 - if (!cellValue) return ''; + if (cellValue == null) return ''; if(!column.params) return ''; for(let i =0;i { this.deletedDetailsData2 = []; - this.detailsData2 = a.data.ProductionOrderProcesses || []; + this.detailsData2 = JSON.parse(JSON.stringify(a.data.ProductionOrderProcesses || [])); this.showProcesses = true; this.detailsDataInit2(); @@ -1007,14 +1007,16 @@ export default { var postdata = { insertList: [], updateList: [], - deleteList: this.deletedDetailsData + deleteList: this.deletedDetailsData2 }; ds.forEach(item => { delete item._X_ROW_KEY; item.production_order_id = this.getDataId_BigInt(); - item.materials_id = this.$mk.toBigInt(this.currentRow.materials_id); + item.materials_id = this.$mk.toBigInt(this.currentRow.materials_id); + item.step_id = this.$mk.toBigInt(item.step_id); + if (item.id) { item.id = this.$mk.toBigInt(item.id);