2 lines
7.3 KiB
JavaScript
2 lines
7.3 KiB
JavaScript
import{Y as Z,Z as q,K as Y,L as z,D as G,w as H,F as J,T as X,O as ee,Q as te,R as oe}from"./element-plus.681b9893.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import{f as le,b as ie}from"./index.0c8416f0.js";import{u as re}from"./usePaging.6a6670f9.js";import{u as ue}from"./useDictOptions.b307efcf.js";import{_ as ne,a as se,b as pe}from"./edit.vue_vue_type_script_setup_true_name_merchantWithdrawEdit_lang.ab5969de.js";import{d as R,s as me,r as V,Z as _e,ap as ce,o as n,c as b,U as e,L as t,u as l,R as s,M as h,K as m,a as x,S as $,Q as k,j as de,n as y}from"./@vue.18505fe0.js";import"./lodash.466e9fe4.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.e5caaa2a.js";import"./index.a7179cc9.js";import"./index.aa6e526e.js";import"./index.e954b8f4.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";const fe={class:"mt-4"},he={key:0},we={key:1,style:{color:"#f56c6c"}},ve={key:2},be={class:"flex mt-4 justify-end"},ke=R({name:"merchantWithdrawLists"}),xt=R({...ke,setup(De){const _=me(),d=V(!1),c=_e({user_type:"",mer_id:"",supplier_id:"",merchant_bank_id:"",amout:"",is_check:"",is_arrival:"",is_own:"",arrival_proof:"",admin_id:""}),D=V([]),S=r=>{D.value=r.map(({id:a})=>a)},{dictData:L}=ue(""),{pager:f,getLists:w,resetParams:P,resetPage:T}=re({fetchFun:pe,params:c}),N=async()=>{var r;d.value=!0,await y(),(r=_.value)==null||r.open("add")},F=async r=>{var a,u;d.value=!0,await y(),(a=_.value)==null||a.open("edit"),(u=_.value)==null||u.setFormData(r)},U=async r=>{var a,u;d.value=!0,await y(),(a=_.value)==null||a.open("detail"),(u=_.value)==null||u.setFormData(r)},M=async r=>{await le.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await se({id:r}),w()};return w(),(r,a)=>{const u=Y,E=z,C=G,B=Z,p=H,W=q,j=J,A=X,I=ie,i=ee,K=te,O=ae,v=ce("perms"),Q=oe;return n(),b("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(j,{class:"mb-[-16px]",model:l(c),"label-width":"100px"},{default:t(()=>[e(W,null,{default:t(()=>[e(B,{span:6},{default:t(()=>[e(C,{label:"\u5BA1\u6838\u72B6\u6001",prop:"user_type"},{default:t(()=>[e(E,{modelValue:l(c).is_check,"onUpdate:modelValue":a[0]||(a[0]=o=>l(c).is_check=o)},{default:t(()=>[e(u,{label:"\u5BA1\u6838\u4E0D\u901A\u8FC7",value:2}),e(u,{label:"\u5BA1\u6838\u901A\u8FC7",value:1}),e(u,{label:"\u5F85\u5BA1\u6838",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(B,{span:6},{default:t(()=>[e(C,{label:"\u662F\u5426\u5230\u8D26",prop:"is_arrival"},{default:t(()=>[e(E,{modelValue:l(c).is_arrival,"onUpdate:modelValue":a[1]||(a[1]=o=>l(c).is_arrival=o)},{default:t(()=>[e(u,{label:"\u5230\u8D26",value:1}),e(u,{label:"\u672A\u5230\u8D26",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(B,{span:6},{default:t(()=>[e(C,null,{default:t(()=>[e(p,{type:"primary",onClick:l(T)},{default:t(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:l(P)},{default:t(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),h((n(),m(A,{class:"!border-none",shadow:"never"},{default:t(()=>[h((n(),m(p,{type:"primary",onClick:N},{icon:t(()=>[e(I,{name:"el-icon-Plus"})]),default:t(()=>[s(" \u65B0\u589E ")]),_:1})),[[v,["withdraw.merchant_withdraw/add"]]]),h((n(),m(p,{disabled:!l(D).length,onClick:a[2]||(a[2]=o=>M(l(D)))},{default:t(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[v,["withdraw.merchant_withdraw/delete"]]]),x("div",fe,[e(K,{data:l(f).lists,onSelectionChange:S},{default:t(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"ID",prop:"id",width:"55"}),e(i,{label:"\u63D0\u73B0\u5546\u6237",prop:"mer_name","show-overflow-tooltip":""}),e(i,{label:"\u63D0\u73B0\u94F6\u884C",prop:"merchant_bank_info.bank_info.name","show-overflow-tooltip":""}),e(i,{label:"\u63D0\u73B0\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(i,{label:"\u63D0\u73B0\u8D26\u53F7",prop:"merchant_bank_info.bank_code","show-overflow-tooltip":""}),e(i,{label:"\u5F00\u6237\u7F51\u70B9",prop:"merchant_bank_info.bank_branch","show-overflow-tooltip":""}),e(i,{label:"\u8D26\u6237\u540D\u79F0",prop:"merchant_bank_info.name","show-overflow-tooltip":""}),e(i,{label:"\u8D26\u6237\u7C7B\u578B",prop:"merchant_bank_info.is_own","show-overflow-tooltip":""},{default:t(({row:o})=>[s($(o.merchant_bank_info.is_own?"\u5BF9\u516C\u8D26\u6237":"\u4E2A\u4EBA\u8D26\u6237"),1)]),_:1}),e(i,{label:"\u5BA1\u6838\u72B6\u6001",prop:"","show-overflow-tooltip":""},{default:t(({row:o})=>[o.is_check==1?(n(),b("span",he,"\u5BA1\u6838\u901A\u8FC7")):o.is_check==2?(n(),b("span",we,"\u5BA1\u6838\u4E0D\u901A\u8FC7")):(n(),b("span",ve,"\u5F85\u5BA1\u6838"))]),_:1}),e(i,{label:"\u662F\u5426\u5230\u8D26",prop:"is_arrival","show-overflow-tooltip":""},{default:t(({row:o})=>[s($(o.is_arrival?"\u5DF2\u5230\u8D26":"\u672A\u5230\u8D26"),1)]),_:1}),e(i,{label:"\u63D0\u73B0\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":"",width:"180"}),e(i,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:t(({row:o})=>[o.is_check==0?h((n(),m(p,{key:0,type:"primary",link:"",onClick:g=>F(o)},{default:t(()=>[s(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[v,["withdraw.merchant_withdraw/edit"]]]):k("",!0),o.is_check==1&&!o.arrival_proof?h((n(),m(p,{key:1,type:"primary",link:"",onClick:g=>F(o)},{default:t(()=>[s(" \u63D0\u73B0\u5230\u8D26 ")]),_:2},1032,["onClick"])),[[v,["withdraw.merchant_withdraw/delete"]]]):k("",!0),o.arrival_proof?(n(),m(p,{key:2,type:"primary",link:"",onClick:g=>U(o)},{default:t(()=>[s(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])):k("",!0)]),_:1})]),_:1},8,["data"])]),x("div",be,[e(O,{modelValue:l(f),"onUpdate:modelValue":a[3]||(a[3]=o=>de(f)?f.value=o:null),onChange:l(w)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,l(f).loading]]),l(d)?(n(),m(ne,{key:0,ref_key:"editRef",ref:_,"dict-data":l(L),onSuccess:l(w),onClose:a[4]||(a[4]=o=>d.value=!1)},null,8,["dict-data","onSuccess"])):k("",!0)])}}});export{xt as default};
|