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: {