From f99e43913d7d578f3c524e6f70834f2b7ec05865 Mon Sep 17 00:00:00 2001 From: zq <136432190602163.com> Date: Thu, 16 Oct 2025 17:17:52 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=88=97=E8=A1=A8=E6=8E=A5=E6=94=B6=E3=80=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=91=E5=AE=9A=E6=94=B6=E6=AC=BE=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/addPay.vue | 35 +++++++---- src/views/HosInformation.vue | 142 ++++++++++++++++++++++--------------------- src/views/weChatPayment.vue | 33 ++-------- 3 files changed, 103 insertions(+), 107 deletions(-) diff --git a/src/components/addPay.vue b/src/components/addPay.vue index ccfce4e..a488d4f 100644 --- a/src/components/addPay.vue +++ b/src/components/addPay.vue @@ -67,7 +67,7 @@ 仅支持已签约 “当面付” 功能的公司支付宝 指南 - + @@ -157,6 +157,15 @@ export default { type: Boolean, default: false }, + depart_id:{ + type: String, + default: '' + }, + doctor_id:{ + type: String, + default: '' + }, + }, components: { GuipInput, @@ -204,7 +213,7 @@ export default { // 公众号APPID appid: '', // 支付宝账号 - alipay_account: '', + // alipay_account: '', // 代收款 收款账号 receive_payment_account: '', // 代收款 收款人姓名 @@ -215,14 +224,14 @@ export default { pdd_shop_name: '', alipayInfo:{ company_short_name: '', - alipay_account:'' + appid:'' }, alipayRules:{ company_short_name: [ { required: true, message: '请输入公司简称', trigger: 'blur' } ], - alipay_account: [ - { required: true, message: '请输入公众号APPID', trigger: 'blur' } + appid: [ + { required: true, message: '请输入支付宝账号', trigger: 'blur' } ], } @@ -262,7 +271,6 @@ export default { this.mch_id = ''; this.apiv2 = ''; this.appid = ''; - this.alipay_account = ''; this.receive_payment_account = ''; this.receive_payment_name = ''; this.pdd_shop_name = ''; @@ -305,16 +313,19 @@ export default { } else if (this.addPayType == PAY_TYPE_ALIPAY) { //支付宝 let falseFlag = false; + // console.log(this.doctor_id,this.depart_id,'depart_id'); this.$refs.alipayForm.validate((valid) => { console.log(valid,'valid==='); if (valid) { falseFlag = true; - this.$http('POST', '/agentnew/ajax_add_alipay', { - company_short_name: this.alipayRules.company_short_name, - alipay_account: this.alipayRules.alipay_account, - is_pay_public: this.isPayPublic, - // receive_payment_account: this.receive_payment_account, - // receive_payment_name: this.receive_payment_name + this.$http('POST', '/api/admin/set_pay_method', { + doctor_id:this.doctor_id, + depart_id:this.depart_id, + type:this.payTypeAlipay, + company_short_name: this.alipayInfo.company_short_name, + appid: this.alipayInfo.appid, + pay_id:1 + // is_pay_public: this.isPayPublic, }).then(response => { this.$nextTick(() => { if (response.status) { diff --git a/src/views/HosInformation.vue b/src/views/HosInformation.vue index a555795..8e92d8e 100644 --- a/src/views/HosInformation.vue +++ b/src/views/HosInformation.vue @@ -153,7 +153,7 @@ 线上收款 - + 未绑定微信收款方式,无法开启线上收款 {{ onLinePay == 1 ? '开启' : '' }} @@ -170,8 +170,8 @@ :options_null="!wxpayList.length" displayKey="name" valueKey="payid" @change="changeSelectWeixin"> - {{ - selectWxpay.short_name }} {{ selectWxpay.account }} + {{ + selectWxpay.company_short_name }} {{ selectWxpay.appid }} 暂无收款账号,稍后配置 未绑定微信收款 @@ -192,12 +192,12 @@ - {{ item.short_name }} - {{ item.account }} + {{ item.company_short_name }} + {{ item.appid }} - + @@ -218,8 +218,8 @@ - {{ - selectAlipay.short_name }} {{ selectAlipay.account }} + {{ + selectAlipay.company_short_name }} {{ selectAlipay.appid }} 非必须绑定项 未绑定支付宝收款 @@ -240,8 +240,8 @@ - {{ item.short_name }} - {{ item.account }} + {{ item.company_short_name }} + {{ item.appid }} + :isExistSelfSupplys="isExistSelfSupplys" :doctor_id="doctor_id" :depart_id="depart_id">
{{ item.short_name }}
{{ item.account }}
{{ item.company_short_name }}
{{ item.appid }}