From 68ab724be134904710adf676d5cd9b6d1dd6039d Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Thu, 8 Sep 2022 23:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DailyplanServiceImpl.java | 73 ++++++++++++++-- .../impl/ProducetaskprocServiceImpl.java | 84 ++++++++++++++++--- .../nl/wms/pdm/wql/QPDM_PRODUCTPLANPROC.wql | 42 ++++++++++ .../wms/pdm/produce/dailyplan/StructIvt4.vue | 57 ++++++++++--- 4 files changed, 224 insertions(+), 32 deletions(-) diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/DailyplanServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/DailyplanServiceImpl.java index d8e41dc6..96faf1b1 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/DailyplanServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/DailyplanServiceImpl.java @@ -342,7 +342,7 @@ public class DailyplanServiceImpl implements DailyplanService { //当天产能是否有剩余 double pcsn_num_day = 0; - JSONArray ja_day = new JSONArray(); + JSONArray ja_new2 = new JSONArray(); for(int i=0;i map = new HashMap(); + for(int i=0;i map = new HashMap(); + for(int i=0;i "" + FactoryCalendarDtl.factory_date >= 输入.planstart_date + ENDOPTION + ORDER BY FactoryCalendarDtl.factory_date + ENDSELECT + ENDQUERY + ENDIF + + IF 输入.flag = "8" + QUERY + SELECT + ProductDailyPlan.planstart_date + FROM + MPS_BD_ProductDailyPlan ProductDailyPlan + WHERE + 1 = 1 + OPTION 输入.device_id <> "" + ProductDailyPlan.device_id = 输入.device_id + ENDOPTION + OPTION 输入.planend_date <> "" + ProductDailyPlan.planend_date >= 输入.planend_date + ENDOPTION + ENDSELECT + ENDQUERY + ENDIF + + diff --git a/mes/qd/src/views/wms/pdm/produce/dailyplan/StructIvt4.vue b/mes/qd/src/views/wms/pdm/produce/dailyplan/StructIvt4.vue index 14eb40d2..b217c9e3 100644 --- a/mes/qd/src/views/wms/pdm/produce/dailyplan/StructIvt4.vue +++ b/mes/qd/src/views/wms/pdm/produce/dailyplan/StructIvt4.vue @@ -3,6 +3,7 @@ append-to-body title="日计划重排" :visible.sync="dialogVisible" + v-loading.fullscreen.lock="fullscreenLoading" destroy-on-close :show-close="false" fullscreen @@ -11,7 +12,22 @@ > - + 状态: + + @@ -82,7 +98,8 @@ export default { tableDtl: [], cxjList: [], XLList: [], - queryrow: { device_id: '' }, + fullscreenLoading: false, + queryrow: { device_id: '', status: '01' }, sortable: null, rows: [] } @@ -112,13 +129,18 @@ export default { */ getMsg(msg) { this.queryrow.device_id = msg + this.queryrow.status = '01' }, queryStruct() { + this.fullscreenLoading = true dailyplan.query2(this.queryrow).then(res => { this.tableDtl = res - this.$nextTick(() => { + /*this.$nextTick(() => { this.setSort() - }) + })*/ + this.fullscreenLoading = false + }).catch(() => { + this.fullscreenLoading = false }) }, setSort() { @@ -154,18 +176,31 @@ export default { this.$emit('update:dialogShow', false) this.$emit('StructIvtClosed', this.rows) }, + MyQuery(value) { + this.queryrow.status = value + this.fullscreenLoading = true + dailyplan.query2(this.queryrow).then(res => { + this.tableDtl = res + /*this.$nextTick(() => { + this.setSort() + })*/ + this.fullscreenLoading = false + }).catch(() => { + this.fullscreenLoading = false + }) + }, submit() { this.rows = this.$refs.dragTable.data - if (this.rows.length === 0) { - this.crud.notify('无可提交的记录!') + /* if (this.rows.length === 0) { + this.crud.notify('无可操作的记录!') return false } dailyplan.submit2({ query: this.queryrow, rows: this.rows }).then(res => { - this.crud.notify('操作成功!') - this.tableDtl = [] - this.$emit('update:dialogShow', false) - this.$emit('StructIvtClosed', this.rows) - }) + })*/ + this.crud.notify('操作成功!') + this.tableDtl = [] + this.$emit('update:dialogShow', false) + this.$emit('StructIvtClosed', this.rows) } } }