From db7526c4ef298aa97fa4dc6e3e77cb9cd4c40475 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Fri, 14 Mar 2025 17:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BB=B4=E4=BF=AE=E5=8D=95(?= =?UTF-8?q?=E7=BB=93=E7=AE=97)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/operation/repairbill.js | 8 ++++++++ .../repairbill/repairbillBySettleAccounts.vue | 10 ++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/yxt-as-ui/src/api/operation/repairbill.js b/yxt-as-ui/src/api/operation/repairbill.js index 2cbdb58483..7605b82424 100644 --- a/yxt-as-ui/src/api/operation/repairbill.js +++ b/yxt-as-ui/src/api/operation/repairbill.js @@ -83,6 +83,14 @@ export default { params: data }) }, + // 编辑校验 + settleUpdateCheck: function(data) { + return request({ + url: '/as/v1/AsBusrepairBill/settleUpdateCheck', + method: 'post', + params: data + }) + }, // 打印出门证 createPdf: function(data) { return request({ diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue index cd52b77ef2..04406522f8 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue @@ -393,8 +393,14 @@ export default { }, toEdit() { if (this.sids.length === 1) { - this.viewState = 3 - this.$refs['divAdd'].showEdit(this.sids[0]) + req.settleUpdateCheck({ sid: this.sids[0] }).then((res) => { + if (res.success) { + this.viewState = 3 + this.$refs['divAdd'].showEdit(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: res.msg }) + } + }) } else { this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) }