From 8d7e3ec103268e0bdaff999a2555e39af7fed768 Mon Sep 17 00:00:00 2001 From: xielue Date: Fri, 15 Sep 2023 21:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=85=B7=E8=AE=A2=E5=8D=95=E5=AE=A1?= =?UTF-8?q?=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Middle/Mold/MoldOrder/Edit.vue | 174 ++++++++++++++++++++--- 1 file changed, 158 insertions(+), 16 deletions(-) diff --git a/src/pages/Middle/Mold/MoldOrder/Edit.vue b/src/pages/Middle/Mold/MoldOrder/Edit.vue index 3c8d431..aa62ca3 100644 --- a/src/pages/Middle/Mold/MoldOrder/Edit.vue +++ b/src/pages/Middle/Mold/MoldOrder/Edit.vue @@ -8,9 +8,11 @@ - 保存 + 保存 审批 + 弃审 + 关闭 @@ -39,6 +41,25 @@ + + + + + + + + + { - - if (item.field == 'paid_amount'){ - return; - } - if (item.field == 'paid_ratio'){ - return; - } + + if (item.field == 'paid_amount') { + return; + } + if (item.field == 'paid_ratio') { + return; + } if (item.itemRender && item.itemRender.name == "$select") { item.itemRender.props.disabled = readonly; } @@ -488,6 +511,96 @@ export default { onPopupSelected({ rows, name, params }) { console.log(rows, name, params); }, + pageUnAuditDetail(row) { + this.$mk.confirm('您确定要弃审吗?').then(type => { + if (type == 'confirm') { + this.$mk.post({ + url: `${BASE_URL.BASE_URL}/MoldOrder/v1/mold/order/cancel/product/audit`, + loading: '弃审中...', + data: { + id: this.$mk.toBigInt(row.id) + }, + useBigInt: true + }).then(a => { + if (a.code == "200") { + this.$mk.success("弃审成功"); + this.pageInit(); + } + else { + this.$mk.error(a.msg); + } + }); + } + }); + }, + pageAuditDetail(row) { + this.$mk.confirm('您确定要审批吗?').then(type => { + if (type == 'confirm') { + this.$mk.post({ + url: `${BASE_URL.BASE_URL}/MoldOrder/v1/mold/order/product/audit`, + loading: '审批中...', + data: { + id: this.$mk.toBigInt(row.id) + }, + useBigInt: true + }).then(a => { + if (a.code == "200") { + this.$mk.success("审批成功"); + this.pageInit(); + } + else { + this.$mk.error(a.msg); + } + }); + } + }); + }, + + + pageUnAuditDetail2(row) { + this.$mk.confirm('您确定要弃审吗?').then(type => { + if (type == 'confirm') { + this.$mk.post({ + url: `${BASE_URL.BASE_URL}/MoldOrder/v1/mold/order/cancel/mould/audit`, + loading: '弃审中...', + data: { + id: this.$mk.toBigInt(row.id) + }, + useBigInt: true + }).then(a => { + if (a.code == "200") { + this.$mk.success("弃审成功"); + this.pageInit(); + } + else { + this.$mk.error(a.msg); + } + }); + } + }); + }, + pageAuditDetail2(row) { + this.$mk.confirm('您确定要审批吗?').then(type => { + if (type == 'confirm') { + this.$mk.post({ + url: `${BASE_URL.BASE_URL}/MoldOrder/v1/mold/order/mould/audit`, + loading: '审批中...', + data: { + id: this.$mk.toBigInt(row.id) + }, + useBigInt: true + }).then(a => { + if (a.code == "200") { + this.$mk.success("审批成功"); + this.pageInit(); + } + else { + this.$mk.error(a.msg); + } + }); + } + }); + }, pageApproved() { let dataId = this.getDataId(); @@ -519,6 +632,35 @@ export default { }, + pageUnApproved() { + let dataId = this.getDataId(); + if (!dataId) { + return; + } + + + let sendApproved = () => { + this.$mk.post({ + url: `${BASE_URL.BASE_URL}/MoldOrder/v1/mold/order/cancel/audit`, + loading: '弃审中...', + data: { + id: this.getDataId_BigInt() + }, + useBigInt: true + }).then(a => { + if (a.code == "200") { + this.$mk.success("弃审成功"); + this.pageInit(); + } + else { + this.$mk.error(a.msg); + } + }); + } + + sendApproved(""); + + }, }, // 监听属性 watch: {