From dc99b47277b51160d2bbec0fca91b4a3f456b2ef Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Sat, 25 Nov 2023 18:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E6=8F=90=E7=8E=B0?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=20=E6=B7=BB=E5=8A=A0=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E4=BB=A3=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 3 +- .../member_income_withdrawal_controller.js | 163 ++++++++++++- .../income/member_income_withdrawal_v2.vue | 219 +++++++++++++++++- 3 files changed, 369 insertions(+), 16 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 7dee0a1..c364542 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10431,8 +10431,6 @@ const routes = [ foot: true } }, - - // 典藏室 { path: "/member/collection_room", @@ -10455,6 +10453,7 @@ const routes = [ }, + ] .concat(BlockChain) .concat(customizedPlugin) diff --git a/src/views/member/income/member_income_withdrawal_controller.js b/src/views/member/income/member_income_withdrawal_controller.js index 911fae3..80df27a 100644 --- a/src/views/member/income/member_income_withdrawal_controller.js +++ b/src/views/member/income/member_income_withdrawal_controller.js @@ -1,9 +1,10 @@ import cTitle from "components/title"; -import { Toast } from 'vant'; +import {Toast} from 'vant'; import yzSubscribe from "components/ui_components/yz_subscribe"; import eplusWithdraw from "../../others/wisdom/components/withdraw.vue"; import {bindDrainageScene} from "../../../fun/modules/drainage_scene"; import jianzhimaoPopup from "../balance/componet/jianzhimaoPopup.vue" + export default { data() { return { @@ -192,6 +193,29 @@ export default { consol_withdraw_bank_data:{}, consol_withdraw_wechat:false, consol_withdraw_wechat_data:{}, + // 第三方代发相关信息 + staff: { + name: '', + tel: '', + card_type: '1',// 卡类型:1=对私,2=对公 + bank_sub_name: '',// 开户银行支行名称:对公必填 + bank_act_name: '',//银行卡持有人姓名 + card_num: '',// 银行卡卡号 + account_id: '',// 银行卡持有人身份证号码 + account_id_start: '',// 证件有效期开始时间,格式:YYYYMMDD + mer_type: '3',// 商户类型:1=个体户,3=个人 + }, + third_party_show: false, + date_time_show: false, + minDate: new Date(2000, 0, 1), + selectedTime: new Date(), + + + currentDate: new Date(), + + is_show_signing: false, + signing_url: '', + }; }, @@ -392,7 +416,7 @@ export default { }, // 获取提现方式 getWithdrawType(key = true) { - console.log("--------------------"); + // console.log("--------------------"); // if(Object.keys(this.pay_typeList).length != 0){ // if(key){ // this.show1 = true; @@ -908,6 +932,7 @@ export default { dynamicTxt(){ let list = this.pay_typeList; let manual; + console.log("打款类型:",this.pay_type); switch (this.pay_type) { case "balance": this.withTypeTipsTitle=`${list.balance.name}`; @@ -931,6 +956,9 @@ export default { }else if(manual.manual_type == 3){ this.withTypeTipsTitle=`${manual.name}-支付宝`; this.withTypeTips = `通过审核后将由工作人员打款到您的支付宝!`; + } else if (manual.manual_type == 4) { + this.withTypeTipsTitle=`${manual.name}-第三方代发`; + this.withTypeTips=`通过审核后将第三方代发到您的银行卡!`; } break; case "alipay": @@ -1001,11 +1029,11 @@ export default { this.withTypeTipsTitle=`支付宝-汇聚代发薪`; this.withTypeTips=`通过审核后将由工作人员打款到您的支付宝!`; break; - case "consol_withdraw_wechat_data": - this.withTypeTipsIcon = 'iconfont icon-balance_i'; - this.withTypeTipsTitle=`微信-汇聚代发薪`; - this.withTypeTips=`通过审核后将由工作人员打款到您的微信!`; - break; + case "consol_withdraw_wechat_data": + this.withTypeTipsIcon = 'iconfont icon-balance_i'; + this.withTypeTipsTitle=`微信-汇聚代发薪`; + this.withTypeTips=`通过审核后将由工作人员打款到您的微信!`; + break; default: // this.withTypeTipsIcon = 'iconfont icon-fontclass-fanli'; // this.withTypeTipsTitle='余额'; @@ -1258,6 +1286,7 @@ export default { msg = "请先填写微信信息"; routerPath = "wx"; break; + case "third_party":msg = "请先完善相关信息";break; case "alipay": msg = "请先填写支付宝信息"; routerPath = "Alipay"; @@ -1265,7 +1294,6 @@ export default { default: break; } - // let that = this this.$dialog.alert({ message: msg}) .then(() => { @@ -1273,7 +1301,9 @@ export default { this.getBankCard(); }else if(routerPath == 'wx'){ this.setWX = true; - }else if(routerPath == 'Alipay'){ + }else if (manual_type == 'third_party') { + this.thirdPartyBankCardInfo(); + } else if(routerPath == 'Alipay'){ this.setAlipay = true; // this.$router.push(this.fun.getUrl(routerPath)); } @@ -1630,7 +1660,120 @@ export default { this.fun.setWXTitle( `${this.income_name_text}${this.fun.initWithdrawal()}` ); - } + }, + + + /****** 第三方代发相关操作 ********************/ + // 获取第三方银行卡配置信息 + thirdPartyBankCardInfo(){ + let _this = this; + let defaultStaff = this.staff; + console.log("开始请求",defaultStaff); + $http.post("plugin.use-staff.api.index.getInfo", {}, "加载中...") + .then((response) => { + console.log("请求结果",response); + if (response.result === 1) { + let res = response.data; + _this.staff = Object.values(res).length > 0 ? res : defaultStaff; + _this.third_party_show = true; + // 处理时间 + if (res.account_id_start) { + let start = res.account_id_start; + let year = start.slice(0, 4); + let month = parseInt(start.slice(4, 6)) - 1; + let day = start.slice(6, 8); + _this.selectedTime = new Date(year, month, day).getTime(); + } + } + }) + .catch(error => { + console.log(error); + }); + }, + // 关闭第三方配置弹出框 + thirdPartyPopupClose(){ + this.third_party_show = false; + }, + // 显示时间选择器 + showDateTime(){ + console.log("时间cureent",this.selectedTime); + this.date_time_show = true; + }, + // 隐藏时间选择器 + closeDateTime(){ + this.date_time_show = false; + }, + // 确认改变时间 + confirmChangeDatetime(){ + let datetime = this.selectedTime; + let time = new Date(datetime); + console.log('当前时间',time); + let year = time.getFullYear() + ""; + let month = time.getMonth() + 1; + let day = time.getDate(); + month = month < 10 ? "0" + month : month; + day = day < 10 ? "0" + day : day; + this.staff.account_id_start = year + month + day; + this.date_time_show = false; + }, + // 提交第三方配置信息 + thirdPartySubmitEdit(){ + let _this = this; + let staff = _this.staff; + let tips = ''; + // 判断信息是否完善 + console.log('提交第三方配置信息:',staff); + if (_this.fun.isTextEmpty(staff.name)) tips = '请输入联系人姓名'; + else if (_this.fun.isTextEmpty(staff.tel)) tips = '请输入联系人电话'; + else if (staff.card_type == 2 && _this.fun.isTextEmpty(staff.bank_sub_name)) tips = '请输入开户银行支行名称'; + else if (_this.fun.isTextEmpty(staff.bank_act_name)) tips = '请输入银行卡持有人姓名'; + else if (_this.fun.isTextEmpty(staff.card_num)) tips = '请输入银行卡卡号'; + else if (_this.fun.isTextEmpty(staff.account_id)) tips = '请输入银行卡持有人身份证号码'; + else if (_this.fun.isTextEmpty(staff.account_id_start)) tips = '请选择银行卡持有人身份证有效期开始时间'; + if (!_this.fun.isTextEmpty(tips)){ + _this.$dialog.alert({ message:tips }); + return; + } + // 提交信息 + $http.post("plugin.use-staff.api.index.applyToJoin", { info: staff }, "加载中...") + .then((response) => { + if (response.result === 1) { + _this.$dialog.alert({ message:'提交成功,审核开户中...!' }).then(()=>{ + _this.thirdPartyBankCardInfo(); + }); + }else{ + _this.$dialog.alert({ message: response.msg }).then(()=>{ + _this.thirdPartyBankCardInfo(); + }); + } + }) + .catch(error => { + console.log(error); + }); + }, + // 获取签约合同信息 + goToSigning(){ + let _this = this; + $http.post("plugin.use-staff.api.index.getContractInfo", { }, "加载中...") + .then((response) => { + if (response.result === 1) { + _this.is_show_signing = true; + // _this.signing_url = response.data.sign_url; + window.location.href = response.sign_url; + }else{ + _this.$dialog.alert({ message: response.msg }).then(()=>{ + _this.thirdPartyBankCardInfo(); + }); + } + }) + .catch(error => { + console.log(error); + }); + }, + // 关闭签约弹框 + closeSigning(){ + this.is_show_signing = false; + }, }, components: { cTitle,yzSubscribe,eplusWithdraw,jianzhimaoPopup } diff --git a/src/views/member/income/member_income_withdrawal_v2.vue b/src/views/member/income/member_income_withdrawal_v2.vue index bd05af4..c2db97b 100644 --- a/src/views/member/income/member_income_withdrawal_v2.vue +++ b/src/views/member/income/member_income_withdrawal_v2.vue @@ -251,10 +251,16 @@ {{ manual.other_name }}-银行卡 {{ manual.other_name }}-微信 {{ manual.other_name }}-支付宝 - 通过审核后将由工作人员打款到您的{{ manual.manual_type == 1 ? "银行卡" : manual.manual_type == 2 ? "微信" : "支付宝" }}! -
- {{ manual.member_name }} {{ manual.bank_card }} - 修改信息 + {{ manual.other_name }}-第三方代发 + 通过审核后将由工作人员打款到您的{{ manual.manual_type == 1 ? "银行卡" : manual.manual_type == 2 ? "微信" : "支付宝" }}! + 通过审核后将由第三方代发到您的银行卡 +
+ {{ manual.member_name }} {{ manual.bank_card }} + 修改信息 +
+
+ {{ manual.use_staff_name }} {{ manual.use_staff_card_num }} + 修改信息
@@ -502,6 +508,108 @@ + + + + + +
+
+ 完善信息 + +
+
+
联系人:
+
+ +
+
+
+
联系人电话:
+
+ +
+
+
+
银行卡类型:
+
+ +
+ 对私 + 对公 +
+
+
+
+
+
开户银行支行:
+
+ +
+
+
+
持有人姓名:
+
+ +
+
+
+
卡号:
+
+ +
+
+
+
身份证号码:
+
+ +
+
+
+
身份证有效期:
+
+ +
+
+
+
商户类型:
+
+ +
+ 个体户 + 个人 +
+
+
+
+ +
+ +
去签约
+
提交修改
+
+
提交保存
+ +
待审核开户中...
+ +
开户失败,请检查信息是否填写错误
+ +
签约失败
+ +
+
+ + +
+
+ 身份证有效期开始时间 + +
+ +
确认
+
+
+