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();