| 1 |
- {"code":"/*!\n * build: vue-admin-beautiful \n * copyright: chuzhixin 1204505056@qq.com \n * time: 2022-12-12 09:51:32\n */\n(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-5dbe5198\"],{3658:function(t,e,a){\"use strict\";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a(\"ContainerQuery\",[a(\"div\",{attrs:{slot:\"left\"},slot:\"left\"},[a(\"span\",{staticStyle:{\"margin-right\":\"10px\"}},[t._v(\" 账户余额: \"),a(\"span\",{staticStyle:{color:\"#ff4400\"}},[t._v(\" \"+t._s(t.$_common.formattedNumber(t.balance))+\" \")])]),a(\"el-button\",{attrs:{type:\"primary\"},on:{click:t.Withdrawal}},[t._v(\"提现\")])],1),a(\"el-form\",{attrs:{slot:\"more\",inline:!0,size:\"small\"},slot:\"more\"},[a(\"el-form-item\",[a(\"el-date-picker\",{attrs:{clearable:\"\",type:\"daterange\",\"value-format\":\"timestamp\",\"range-separator\":\"-\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\"},on:{change:t.timeChange},model:{value:t.time,callback:function(e){t.time=e},expression:\"time\"}})],1),a(\"el-form-item\",[a(\"el-select\",{staticStyle:{width:\"150px\"},attrs:{size:\"small\",clearable:\"\",placeholder:\"提现类型\"},on:{change:function(e){return t.pageChange(1)}},model:{value:t.type,callback:function(e){t.type=e},expression:\"type\"}},t._l(t.shenhe_options,(function(t){return a(\"el-option\",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),a(\"vxe-table\",{attrs:{data:t.tableData,border:\"inner\"}},[a(\"vxe-table-column\",{attrs:{field:\"id\",title:\"ID\"}}),a(\"vxe-table-column\",{attrs:{field:\"money\",title:\"提现金额\"},scopedSlots:t._u([{key:\"default\",fn:function(e){var a=e.row;return[t._v(\" \"+t._s(t.$_common.formattedNumber(a.money))+\" \")]}}])}),a(\"vxe-table-column\",{attrs:{field:\"no\",title:\"订单号\",width:\"215px\"}}),a(\"vxe-table-column\",{attrs:{field:\"type\",title:\"提现类型\"},scopedSlots:t._u([{key:\"default\",fn:function(e){var n=e.row;return[1===n.type?a(\"span\",[t._v(\"微信\")]):t._e(),2===n.type?a(\"span\",[t._v(\"支付宝\")]):t._e(),3===n.type?a(\"span\",[t._v(\"银行\")]):t._e()]}}])}),a(\"vxe-table-column\",{attrs:{field:\"auditStatus\",title:\"提现状态\"},scopedSlots:t._u([{key:\"default\",fn:function(e){var n=e.row;return[1===n.auditStatus?a(\"span\",{staticClass:\"info-status\"},[t._v(\"已申请\")]):t._e(),2===n.auditStatus?a(\"span\",{staticClass:\"success-status\"},[t._v(\" 已打款 \")]):t._e(),3===n.auditStatus?a(\"span\",{staticClass:\"warning-status\"},[t._v(\" 已拒绝 \")]):t._e(),4===n.auditStatus?a(\"span\",{staticClass:\"success-status\"},[t._v(\" 待打款 \")]):t._e()]}}])}),a(\"vxe-table-column\",{attrs:{field:\"createTime\",title:\"提现时间\"},scopedSlots:t._u([{key:\"default\",fn:function(e){var a=e.row;return[t._v(\" \"+t._s(t.$_common.formatDate(a.createTime))+\" \")]}}])}),a(\"vxe-table-column\",{attrs:{title:\"操作\"},scopedSlots:t._u([{key:\"default\",fn:function(e){var n=e.row;return[a(\"el-button\",{attrs:{type:\"text\"},on:{click:function(e){return t.examine(n)}}},[t._v(\"查看\")])]}}])})],1),a(\"FooterPage\",{attrs:{\"page-size\":t.pageSize,\"total-page\":t.total,\"current-page\":t.page},on:{\"update:totalPage\":function(e){t.total=e},\"update:total-page\":function(e){t.total=e},\"update:currentPage\":function(e){t.page=e},\"update:current-page\":function(e){t.page=e},pageChange:t.pageChange,sizeChange:t.sizeChange}}),a(\"WithdrawMode\",{attrs:{show:t.show,balance:t.balance},on:{cancel:t.cancel,confirm:t.confirm}}),a(\"vxe-modal\",{attrs:{\"show-footer\":\"\"},scopedSlots:t._u([{key:\"title\",fn:function(){return[a(\"span\",[t._v(\"明细\")])]},proxy:!0},{key:\"default\",fn:function(){return[a(\"p\",{staticClass:\"order-info-p\"},[a(\"span\",{staticClass:\"de_label\"},[t._v(\"姓名:\")]),a(\"span\",{staticClass:\"de_val\"},[t._v(t._s(t.examine_value.accountContent.name))])]),a(\"p\",{staticClass:\"order-info-p\"},[a(\"span\",{staticClass:\"de_label\"},[t._v(t._s(t.label_value)+\":\")]),a(\"span\",{staticClass:\"de_val\"},[t._v(\" \"+t._s(t.examine_value.accountContent.accountNum)+\" \")])]),3===t.examine_value.type?a(\"p\",{staticClass:\"order-info-p\"},[a(\"span\",{staticClass:\"de_label\"},[t._v(\"开户行 :\")]),a(\"span\",{staticClass:\"de_val\"},[t._v(\" \"+t._s(t.examine_value.accountContent.openingBank)+\" \")])]):t._e()]},proxy:!0}]),model:{value:t.examine_flag,callback:function(e){t.examine_flag=e},expression:\"examine_flag\"}})],1)},r=[],l=a(\"f29d\"),i=a(\"bdd1\"),c=a(\"2f62\"),o={name:\"WithdrawLogs\",components:{WithdrawMode:l[\"default\"]},data(){return{show:!1,tableData:[],time:[],search_form:{start:\"\",end:\"\",keyword:\"\"},type:\"\",shenhe_options:[{value:\"\",label:\"全部\"},{value:1,label:\"微信\"},{value:2,label:\"支付宝\"},{value:3,label:\"银行\"}],total:0,page:1,pageSize:10,examine_flag:!1,examine_value:{},label_value:\"\",merchantId:\"\",balance:\"\",start:\"\",end:\"\"}},computed:{...Object(c[\"c\"])({storeData:\"MUser/storeData\"})},async created(){3===this.systemType&&(this.merchantId=this.storeData.merchantData.id),await this.getAllMerchantWithdraw(),await this.getInfoMerchant()},methods:{Withdrawal(){this.show=!0},cancel(){this.show=!1},async confirm(){this.show=!1,await this.getInfoMerchant(),await this.getAllMerchantWithdraw()},timeChange(t){t&&t.length?(this.start=t[0]/1e3,this.end=t[1]/1e3+86399):(this.start=\"\",this.end=\"\"),this.getAllMerchantWithdraw()},pageChange(t){this.page=t,this.getAllMerchantWithdraw()},sizeChange(t){this.pageSize=t,this.getAllMerchantWithdraw()},async getAllMerchantWithdraw(){const t={page:this.page,pageSize:this.pageSize,auditStatus:\"\",type:this.type,merchantId:this.merchantId,start:this.start,end:this.end},{data:e,pageTotal:a}=await Object(i[\"getAllMerchantWithdraw\"])({...t});this.tableData=e,this.total=a},examine(t){this.examine_flag=!0,this.examine_value=t,1===this.examine_value.type?this.label_value=\"微信账号\":2===this.examine_value.type?this.label_value=\"支付宝账号\":3===this.examine_value.type&&(this.label_value=\"银行卡号\")},async getInfoMerchant(){const{data:t}=await Object(i[\"getInfoMerchant\"])(this.merchantId);this.balance=t.balance}}},s=o,u=a(\"2877\"),d=Object(u[\"a\"])(s,n,r,!1,null,\"0ae14ee0\",null);e[\"default\"]=d.exports},bdd1:function(t,e,a){\"use strict\";a.r(e),a.d(e,\"addMerchant\",(function(){return r})),a.d(e,\"getAllMerchant\",(function(){return l})),a.d(e,\"updateMerchant\",(function(){return i})),a.d(e,\"saveSettingMerchant\",(function(){return c})),a.d(e,\"getSettingMerchant\",(function(){return o})),a.d(e,\"getInfoMerchant\",(function(){return s})),a.d(e,\"delMerchant\",(function(){return u})),a.d(e,\"auditApply\",(function(){return d})),a.d(e,\"MerchantWithdrawAdd\",(function(){return h})),a.d(e,\"getMerchantWithdraw\",(function(){return m})),a.d(e,\"MerchantWithdrawGetAll\",(function(){return f})),a.d(e,\"MerchantUpdateAuditStatus\",(function(){return p})),a.d(e,\"MerchantGetSettingField\",(function(){return g})),a.d(e,\"Merchantlog\",(function(){return b})),a.d(e,\"enabledMerchant\",(function(){return _})),a.d(e,\"getAllMerchantSettlement\",(function(){return M})),a.d(e,\"updateMerchantSettlement\",(function(){return y})),a.d(e,\"getAllMerchantWithdraw\",(function(){return v})),a.d(e,\"addMerchantWithdraw\",(function(){return w})),a.d(e,\"getAllMerchantList\",(function(){return x})),a.d(e,\"getAllMerchantDetail\",(function(){return S})),a.d(e,\"exportgetAllMerchantDetail\",(function(){return k})),a.d(e,\"exportgetAllMerchantSettlement\",(function(){return O}));var n=a(\"b775\");function r(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/addMerchant\",method:\"post\",data:t})}function l(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/getAllMerchant\",method:\"post\",data:t})}function i(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/updateMerchant/\"+t,method:\"put\",data:e})}function c(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/saveSetting\",method:\"post\",data:t})}function o(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/getSetting\",method:\"post\",data:t})}function s(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/getInfoMerchant/\"+t,method:\"get\",data:e})}function u(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/delMerchant/\"+t,method:\"get\",data:e})}function d(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/auditApply/\"+t,method:\"put\",data:e})}function h(t){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/add\",method:\"post\",data:t})}function m(t){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/get\",method:\"post\",data:t})}function f(t){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/getAll\",method:\"post\",data:t})}function p(t,e){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/updateAuditStatus/\"+t,method:\"put\",data:e})}function g(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/getSettingField\",method:\"post\",data:e})}function b(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/log\",method:\"post\",data:t})}function _(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/enabledMerchant/\"+t,method:\"get\",data:e})}function M(t){return Object(n[\"default\"])({url:\"Merchant/MerchantSettlement/getAllMerchantSettlement\",method:\"POST\",data:t})}function y(t){return Object(n[\"default\"])({url:\"Merchant/MerchantSettlement/updateMerchantSettlement\",method:\"POST\",data:t})}function v(t){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/getAll\",method:\"post\",data:t})}function w(t){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/add\",method:\"post\",data:t})}function x(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/getAllMerchantList\",method:\"post\",data:t})}function S(t){return Object(n[\"default\"])({url:\"Merchant/MerchantDetail/getAllMerchantDetail\",method:\"post\",data:t})}function k(t){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getAllMerchantDetail\",method:\"post\",responseType:\"blob\",data:t})}function O(t){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getAllMerchantSettlement\",method:\"post\",responseType:\"blob\",data:t})}},f29d:function(t,e,a){\"use strict\";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a(\"el-dialog\",{attrs:{title:\"申请提现\",visible:t.show,width:\"30%\",\"before-close\":t.cancel},on:{\"update:visible\":function(e){t.show=e}}},[a(\"div\",[a(\"el-form\",{ref:\"add_form\",staticClass:\"demo-ruleForm\",attrs:{model:t.add_form,rules:t.rules,\"label-width\":\"100px\"}},[a(\"el-form-item\",{attrs:{label:\"提现方式\"}},[a(\"el-select\",{attrs:{placeholder:\"请选择\"},on:{change:t.change},model:{value:t.type,callback:function(e){t.type=e},expression:\"type\"}},t._l(t.type_options,(function(t){return a(\"el-option\",{key:t.type,attrs:{label:t.label,value:t.type}})})),1)],1),a(\"el-form-item\",{attrs:{label:\"提现金额\"}},[a(\"el-input-number\",{staticStyle:{width:\"215px\"},attrs:{controls:!1,min:0},model:{value:t.money,callback:function(e){t.money=e},expression:\"money\"}})],1),a(\"el-form-item\",{attrs:{label:\"姓名\"}},[a(\"el-input\",{model:{value:t.add_form.name,callback:function(e){t.$set(t.add_form,\"name\",e)},expression:\"add_form.name\"}})],1),a(\"el-form-item\",{attrs:{label:t.typeName}},[a(\"el-input\",{model:{value:t.add_form.accountNum,callback:function(e){t.$set(t.add_form,\"accountNum\",e)},expression:\"add_form.accountNum\"}})],1),3===t.type?a(\"el-form-item\",{attrs:{label:\"开户行\"}},[a(\"el-input\",{model:{value:t.add_form.openingBank,callback:function(e){t.$set(t.add_form,\"openingBank\",e)},expression:\"add_form.openingBank\"}})],1):t._e()],1)],1),a(\"span\",{staticClass:\"dialog-footer\",attrs:{slot:\"footer\"},slot:\"footer\"},[a(\"el-button\",{on:{click:t.cancel}},[t._v(\"取 消\")]),a(\"el-button\",{attrs:{type:\"primary\"},on:{click:t.addMerchantWithdraw}},[t._v(\"确 定\")])],1)])},r=[],l=a(\"bdd1\"),i=a(\"2f62\"),c={name:\"WithdrawMode\",props:{show:{type:Boolean,default:!1},balance:{type:[String,Number],default:0}},data(){return{typeName:\"微信账号\",rules:{},type:1,add_form:{name:\"\",accountNum:\"\",openingBank:\"\"},money:\"\",type_options:[{label:\"微信钱包\",type:1},{label:\"支付宝\",type:2},{label:\"银行打款\",type:3}],merchantId:\"\"}},computed:{...Object(i[\"c\"])({storeData:\"MUser/storeData\"})},created(){3===this.systemType&&(this.merchantId=this.storeData.merchantData.id)},methods:{cancel(){this.type=1,this.money=\"\",this.add_form={name:\"\",accountNum:\"\",openingBank:\"\"},this.$emit(\"cancel\")},async addMerchantWithdraw(){if(Number(this.balance)<this.money||\"\"==this.money)return void this.$message.warning(\"账户余额不够\");if(!this.add_form.name)return void this.$message.warning(\"姓名不能为空\");if(1==this.type){if(!this.money)return void this.$message.warning(\"金额不能为空\");if(\"\"==this.add_form.accountNum)return void this.$message.warning(\"微信账号不能为空\")}else if(2==this.type){if(!this.add_form.accountNum)return void this.$message.warning(\"支付宝账号不能为空\")}else if(3==this.type){if(!this.add_form.accountNum)return void this.$message.warning(\"银行卡号不能为空\");if(!this.add_form.openingBank)return void this.$message.warning(\"开户行不能为空\")}const{data:t}=await Object(l[\"addMerchantWithdraw\"])({type:this.type,accountContent:this.add_form,money:this.money,orderNum:1,merchantId:this.merchantId});this.$message.success(\"添加成功\"),this.$emit(\"confirm\")},change(){1===this.type&&(this.typeName=\"微信账号\"),2===this.type&&(this.typeName=\"支付宝账号\"),3===this.type&&(this.typeName=\"银行卡号\")}}},o=c,s=a(\"2877\"),u=Object(s[\"a\"])(o,n,r,!1,null,\"4f92962b\",null);e[\"default\"]=u.exports}}]);","extractedComments":[]}
|