From 034de84f3f3466d5a2bbd1c8abc0981cf101d7b8 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 6 Feb 2023 10:07:03 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2--=E5=A2=9E=E5=8A=A0=E4=BB=98=E6=AC=BE?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kehuguanli/kehuchaxun/kehuchaxun.vue | 49 ++++++++++++++----- 1 file changed, 36 insertions(+), 13 deletions(-) diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehuchaxun/kehuchaxun.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehuchaxun/kehuchaxun.vue index 8dc988ffb4..6157c804aa 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehuchaxun/kehuchaxun.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehuchaxun/kehuchaxun.vue @@ -114,6 +114,19 @@ + + 付款方式 + + + + + 全款 + 贷款 + + + + + 是否确定车架号 @@ -126,7 +139,7 @@ - + 采购系统 @@ -179,6 +192,7 @@ export default { data() { return { btndisabled: false, + isPayment: '', isTerminal: '', orgName: '', orgCode: '', @@ -337,18 +351,13 @@ export default { this.sids = aa this.multipleSelection = bb }, + handleIsPayment() { + this.isTerminal = '' + this.orgCode = '' + this.orgName = '' + }, handleIsTerminal(value) { - if (value === '0') { - getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => { - if (resp.success && resp.data !== null) { - fetchDetailsByUseOrgSid(resp.data).then((res) => { - if (res.success) { - this.org_list = res.data - } - }) - } - }) - } else { + if (value === '1') { this.orgCode = '' this.orgName = '' } @@ -358,6 +367,10 @@ export default { this.orgCode = choose[0].orgCode }, handleConfirm() { + if (this.isPayment === '') { + this.$message({ showClose: true, type: 'error', message: '付款方式请选择是或否' }) + return + } if (this.isTerminal === '') { this.$message({ showClose: true, type: 'error', message: '是否确定车架号请选择是或否' }) return @@ -367,7 +380,7 @@ export default { this.handleColse() this.$refs['divVehicle'].showData(this.multipleSelection[0].name, this.multipleSelection[0].sid) } - if (this.isTerminal === '0') { + if ((this.isPayment === '1') || (this.isPayment === '0' && this.isTerminal === '0')) { if (this.orgCode === '') { this.$message({ showClose: true, type: 'error', message: '采购系统不能为空' }) return @@ -390,6 +403,7 @@ export default { handleColse() { this.dialogVisible = false this.isTerminal = '' + this.isPayment = '' this.orgName = '' this.orgCode = '' }, @@ -425,6 +439,15 @@ export default { return } this.dialogVisible = true + getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => { + if (resp.success && resp.data !== null) { + fetchDetailsByUseOrgSid(resp.data).then((res) => { + if (res.success) { + this.org_list = res.data + } + }) + } + }) }, doClose() { this.$store.dispatch('tagsView/delView', this.$route) From 467e3587ba807a28a8d814cb152501674612734d Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 6 Feb 2023 10:28:10 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E5=8D=95=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/anrui-scm/anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue b/anrui-scm/anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue index ec71136237..27ded21c26 100644 --- a/anrui-scm/anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue +++ b/anrui-scm/anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue @@ -47,6 +47,7 @@
+