From f460a30c85c9156e2c3b7328d8443d48843a8c27 Mon Sep 17 00:00:00 2001 From: xielue Date: Tue, 20 Jun 2023 12:02:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=83=E4=BA=A7=E4=B8=8A=E4=B8=8B=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MesProductionOrder/voucher.vue | 47 ++++++++++++++++--- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/src/pages/Middle/Mes/MesProductionOrder/MesProductionOrder/voucher.vue b/src/pages/Middle/Mes/MesProductionOrder/MesProductionOrder/voucher.vue index fd0e7f1..a22b8e9 100644 --- a/src/pages/Middle/Mes/MesProductionOrder/MesProductionOrder/voucher.vue +++ b/src/pages/Middle/Mes/MesProductionOrder/MesProductionOrder/voucher.vue @@ -34,10 +34,10 @@ - + - + @@ -447,6 +447,10 @@ export default { }, getDataId_BigInt() { let dataId = this.getDataId(); + if(!dataId) return 0; + if(typeof(dataId) == "object"){ + return dataId; + } return this.$mk.toBigInt(dataId); }, @@ -630,12 +634,43 @@ export default { }, pageNext() { - this.dataId = this.nextId; - this.pageInit(); + + this.$mk.post({ + url: `${BASE_URL.BASE_URL}/MesProductionOrder/v1/mes/production/order/switch`, + data: { + id: this.getDataId_BigInt(), + next: 1 + }, + useBigInt: true + }).then(a => { + if (a.code == "200") { + this.dataId = a.data.mes_production_order_detail_response.mes_production_order.id; + this.pageInit(); + } + else { + this.$mk.error(a.msg); + } + }); + + }, pagePrev() { - this.dataId = this.prevId; - this.pageInit(); + this.$mk.post({ + url: `${BASE_URL.BASE_URL}/MesProductionOrder/v1/mes/production/order/switch`, + data: { + id: this.getDataId_BigInt(), + next: 0 + }, + useBigInt: true + }).then(a => { + if (a.code == "200") { + this.dataId = a.data.mes_production_order_detail_response.mes_production_order.id; + this.pageInit(); + } + else { + this.$mk.error(a.msg); + } + }); }, pageApproved() { let dataId = this.getDataId();