2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d29e213"],{"297d":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t._self._c;return e("div",[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",{staticClass:"ibox"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("div",[t._v("查询条件")])]),e("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.accountWithdrawalApplyManageInfo.conditions}},[e("el-form-item",[e("el-input",{attrs:{placeholder:"请输入申请人名称",clearable:""},model:{value:t.accountWithdrawalApplyManageInfo.conditions.applyUserName,callback:function(e){t.$set(t.accountWithdrawalApplyManageInfo.conditions,"applyUserName",e)},expression:"accountWithdrawalApplyManageInfo.conditions.applyUserName"}})],1),e("el-form-item",[e("el-input",{attrs:{placeholder:"请输入申请人电话",clearable:""},model:{value:t.accountWithdrawalApplyManageInfo.conditions.applyUserTel,callback:function(e){t.$set(t.accountWithdrawalApplyManageInfo.conditions,"applyUserTel",e)},expression:"accountWithdrawalApplyManageInfo.conditions.applyUserTel"}})],1),e("el-form-item",[e("el-input",{attrs:{placeholder:"请输入银行账号",clearable:""},model:{value:t.accountWithdrawalApplyManageInfo.conditions.bankCode,callback:function(e){t.$set(t.accountWithdrawalApplyManageInfo.conditions,"bankCode",e)},expression:"accountWithdrawalApplyManageInfo.conditions.bankCode"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t._queryAccountWithdrawalApplyMethod}},[e("i",{staticClass:"el-icon-search"}),t._v(" 查询 ")]),e("el-button",{on:{click:t._resetAccountWithdrawalApplyMethod}},[e("i",{staticClass:"el-icon-refresh"}),t._v(" 重置 ")])],1)],1)],1)],1)],1),e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",{staticClass:"margin-top-sm"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("div",[t._v("账户提现")])]),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.accountWithdrawalApplyManageInfo.accountWithdrawalApplys,border:""}},[e("el-table-column",{attrs:{prop:"amount",label:"提现金额",align:"center"}}),e("el-table-column",{attrs:{prop:"applyUserName",label:"申请人名称",align:"center"}}),e("el-table-column",{attrs:{prop:"applyUserTel",label:"申请人电话",align:"center"}}),e("el-table-column",{attrs:{prop:"bankName",label:"开户行",align:"center"}}),e("el-table-column",{attrs:{prop:"bankCode",label:"账户",align:"center"}}),e("el-table-column",{attrs:{prop:"context",label:"申请说明",align:"center"}}),e("el-table-column",{attrs:{prop:"stateName",label:"状态",align:"center"}})],1),e("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:"total, prev, pager, next, jumper",total:t.accountWithdrawalApplyManageInfo.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1),e("edit-account-withdrawal-apply",{ref:"editAccountWithdrawalApply",on:{refresh:function(e){return t._queryAccountWithdrawalApplyMethod()}}}),e("delete-account-withdrawal-apply",{ref:"deleteAccountWithdrawalApply",on:{refresh:function(e){return t._queryAccountWithdrawalApplyMethod()}}})],1)},o=[],n=a("2d25"),i=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:"修改账户提现",visible:t.dialogVisible,width:"50%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("el-form",{attrs:{model:t.editAccountWithdrawalApplyInfo,"label-width":"120px"}},[e("el-form-item",{attrs:{label:"提现金额",prop:"amount"}},[e("el-input",{attrs:{placeholder:"必填,请填写提现金额"},model:{value:t.editAccountWithdrawalApplyInfo.amount,callback:function(e){t.$set(t.editAccountWithdrawalApplyInfo,"amount",e)},expression:"editAccountWithdrawalApplyInfo.amount"}})],1),e("el-form-item",{attrs:{label:"申请人ID",prop:"applyUserId"}},[e("el-input",{attrs:{placeholder:"必填,请填写申请人ID"},model:{value:t.editAccountWithdrawalApplyInfo.applyUserId,callback:function(e){t.$set(t.editAccountWithdrawalApplyInfo,"applyUserId",e)},expression:"editAccountWithdrawalApplyInfo.applyUserId"}})],1),e("el-form-item",{attrs:{label:"申请人名称",prop:"applyUserName"}},[e("el-input",{attrs:{placeholder:"必填,请填写申请人名称"},model:{value:t.editAccountWithdrawalApplyInfo.applyUserName,callback:function(e){t.$set(t.editAccountWithdrawalApplyInfo,"applyUserName",e)},expression:"editAccountWithdrawalApplyInfo.applyUserName"}})],1),e("el-form-item",{attrs:{label:"申请人电话",prop:"applyUserTel"}},[e("el-input",{attrs:{placeholder:"必填,请填写申请人电话"},model:{value:t.editAccountWithdrawalApplyInfo.applyUserTel,callback:function(e){t.$set(t.editAccountWithdrawalApplyInfo,"applyUserTel",e)},expression:"editAccountWithdrawalApplyInfo.applyUserTel"}})],1),e("el-form-item",{attrs:{label:"申请说明",prop:"context"}},[e("el-input",{attrs:{type:"textarea",placeholder:"必填,请填写申请说明"},model:{value:t.editAccountWithdrawalApplyInfo.context,callback:function(e){t.$set(t.editAccountWithdrawalApplyInfo,"context",e)},expression:"editAccountWithdrawalApplyInfo.context"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.editAccountWithdrawalApply}},[t._v("保存")])],1)],1)},r=[],c=a("7323"),p={name:"EditAccountWithdrawalApply",data(){return{dialogVisible:!1,editAccountWithdrawalApplyInfo:{applyId:"",amount:"",applyUserId:"",applyUserName:"",applyUserTel:"",context:"",shopId:""}}},methods:{open(t){this.editAccountWithdrawalApplyInfo={...t},this.editAccountWithdrawalApplyInfo.shopId=Object(c["f"])(),this.dialogVisible=!0},handleClose(){this.resetForm()},resetForm(){this.editAccountWithdrawalApplyInfo={applyId:"",amount:"",applyUserId:"",applyUserName:"",applyUserTel:"",context:"",shopId:""}},async editAccountWithdrawalApply(){if(this.validateForm())try{const t=await Object(n["upAccountWithdrawalApply"])(this.editAccountWithdrawalApplyInfo);0===t.code?(this.$message.success(t.msg),this.dialogVisible=!1,this.$emit("refresh")):this.$message.error(t.msg)}catch(t){console.error(t)}},validateForm(){return this.editAccountWithdrawalApplyInfo.amount?this.editAccountWithdrawalApplyInfo.applyUserId?this.editAccountWithdrawalApplyInfo.applyUserName?this.editAccountWithdrawalApplyInfo.applyUserTel?!!this.editAccountWithdrawalApplyInfo.context||(this.$message.error("申请说明不能为空"),!1):(this.$message.error("申请人电话不能为空"),!1):(this.$message.error("申请人名称不能为空"),!1):(this.$message.error("申请人ID不能为空"),!1):(this.$message.error("提现金额不能为空"),!1)}}},s=p,d=a("2877"),u=Object(d["a"])(s,i,r,!1,null,null,null),h=u.exports,y=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:"请确认您的操作!",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("div",{staticStyle:{"text-align":"center","margin-bottom":"20px"}},[e("span",[t._v("确定删除账户提现")])]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("点错了")]),e("el-button",{attrs:{type:"primary"},on:{click:t.deleteAccountWithdrawalApply}},[t._v("确认删除")])],1)])},A=[],f={name:"DeleteAccountWithdrawalApply",data(){return{dialogVisible:!1,deleteAccountWithdrawalApplyInfo:{applyId:"",shopId:""}}},methods:{open(t){this.deleteAccountWithdrawalApplyInfo={...t},this.deleteAccountWithdrawalApplyInfo.shopId=Object(c["f"])(),this.dialogVisible=!0},handleClose(){this.resetForm()},resetForm(){this.deleteAccountWithdrawalApplyInfo={applyId:"",shopId:""}},async deleteAccountWithdrawalApply(){try{const t=await Object(n["deleteAccountWithdrawalApply"])(this.deleteAccountWithdrawalApplyInfo);0===t.code?(this.$message.success("删除成功"),this.dialogVisible=!1,this.$emit("refresh")):this.$message.error(t.msg)}catch(t){console.error(t)}}}},w=f,m=Object(d["a"])(w,y,A,!1,null,null,null),b=m.exports,W={name:"AccountWithdrawalApplyManage",components:{EditAccountWithdrawalApply:h,DeleteAccountWithdrawalApply:b},data(){return{accountWithdrawalApplyManageInfo:{accountWithdrawalApplys:[],total:0,conditions:{applyUserName:"",bankCode:"",applyUserTel:"",state:"",objId:""}},currentPage:1,pageSize:10}},created(){this.accountWithdrawalApplyManageInfo.conditions.objId=Object(c["f"])(),this._listAccountWithdrawalApplys(this.currentPage,this.pageSize)},methods:{handleCurrentChange(t){this.currentPage=t,this._listAccountWithdrawalApplys(this.currentPage,this.pageSize)},async _listAccountWithdrawalApplys(t,e){try{const a={...this.accountWithdrawalApplyManageInfo.conditions,page:t,row:e},l=await Object(n["b"])(a);this.accountWithdrawalApplyManageInfo.accountWithdrawalApplys=l.data,this.accountWithdrawalApplyManageInfo.total=l.total}catch(a){console.error(a)}},_queryAccountWithdrawalApplyMethod(){this.currentPage=1,this._listAccountWithdrawalApplys(this.currentPage,this.pageSize)},_resetAccountWithdrawalApplyMethod(){this.accountWithdrawalApplyManageInfo.conditions={applyUserName:"",bankCode:"",applyUserTel:"",state:"",objId:Object(c["f"])()},this.currentPage=1,this._listAccountWithdrawalApplys(this.currentPage,this.pageSize)},_openEditAccountWithdrawalApplyModel(t){this.$refs.editAccountWithdrawalApply.open(t)},_openDeleteAccountWithdrawalApplyModel(t){this.$refs.deleteAccountWithdrawalApply.open(t)}}},g=W,I=(a("3028"),Object(d["a"])(g,l,o,!1,null,"0b1f479b",null));e["default"]=I.exports},"2d25":function(t,e,a){"use strict";a.d(e,"c",(function(){return o})),a.d(e,"d",(function(){return n})),a.d(e,"b",(function(){return i}));var l=a("b775");function o(t){return new Promise((e,a)=>{Object(l["a"])({url:"/accountBank.queryAccountBank",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function n(t){return new Promise((e,a)=>{Object(l["a"])({url:"/accountWithdrawalApply.saveAccountWithdrawalApply",method:"post",data:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function i(t){return new Promise((e,a)=>{Object(l["a"])({url:"/accountWithdrawalApply/listAccountWithdrawalApply",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}},3028:function(t,e,a){"use strict";a("fb16")},fb16:function(t,e,a){}}]);
|
||
//# sourceMappingURL=chunk-0d29e213.91919931.js.map
|