2 lines
6.6 KiB
JavaScript
2 lines
6.6 KiB
JavaScript
import{Y as O,Z as Q,K as Z,L as q,D as Y,w as z,F as G,T as H,O as J,Q as X,R as ee}from"./element-plus.d8e0827b.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.b67c1046.js";import{f as oe,b as ae}from"./index.3078ee97.js";import{u as le}from"./usePaging.6a6670f9.js";import{u as ue}from"./useDictOptions.26f94334.js";import{_ as ie,a as ne,b as re}from"./edit.vue_vue_type_script_setup_true_name_merchantWithdrawEdit_lang.5632af41.js";import{d as R,s as se,r as V,Z as pe,ap as me,o as s,c as _e,U as e,L as t,u as a,R as i,M as d,K as m,a as x,S as B,Q as b,j as de,n as $}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"./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.46e5672e.js";import"./index.ea9543a9.js";import"./index.ec654790.js";import"./index.3a4cbe3a.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";const ce={class:"mt-4"},fe={class:"flex mt-4 justify-end"},he=R({name:"merchantWithdrawLists"}),st=R({...he,setup(we){const h=se(),w=V(!1),_=pe({user_type:"",mer_id:"",supplier_id:"",merchant_bank_id:"",amout:"",is_check:"",is_arrival:"",is_own:"",arrival_proof:"",admin_id:""}),k=V([]),S=n=>{k.value=n.map(({id:l})=>l)},{dictData:L}=ue(""),{pager:c,getLists:v,resetParams:P,resetPage:T}=le({fetchFun:re,params:_}),N=async()=>{var n;w.value=!0,await $(),(n=h.value)==null||n.open("add")},F=async n=>{var l,r;w.value=!0,await $(),(l=h.value)==null||l.open("edit"),(r=h.value)==null||r.setFormData(n)},y=async n=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:n}),v()};return v(),(n,l)=>{const r=Z,E=q,D=Y,C=O,p=z,U=Q,M=G,A=H,W=ae,u=J,j=X,I=te,f=me("perms"),K=ee;return s(),_e("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(M,{class:"mb-[-16px]",model:a(_),"label-width":"100px"},{default:t(()=>[e(U,null,{default:t(()=>[e(C,{span:6},{default:t(()=>[e(D,{label:"\u5BA1\u6838\u72B6\u6001",prop:"user_type"},{default:t(()=>[e(E,{modelValue:a(_).is_check,"onUpdate:modelValue":l[0]||(l[0]=o=>a(_).is_check=o)},{default:t(()=>[e(r,{label:"\u5BA1\u6838\u4E0D\u901A\u8FC7",value:2}),e(r,{label:"\u5BA1\u6838\u901A\u8FC7",value:1}),e(r,{label:"\u5F85\u5BA1\u6838",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(C,{span:6},{default:t(()=>[e(D,{label:"\u662F\u5426\u5230\u8D26",prop:"is_arrival"},{default:t(()=>[e(E,{modelValue:a(_).is_arrival,"onUpdate:modelValue":l[1]||(l[1]=o=>a(_).is_arrival=o)},{default:t(()=>[e(r,{label:"\u5230\u8D26",value:1}),e(r,{label:"\u672A\u5230\u8D26",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(C,{span:6},{default:t(()=>[e(D,null,{default:t(()=>[e(p,{type:"primary",onClick:a(T)},{default:t(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:a(P)},{default:t(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),d((s(),m(A,{class:"!border-none",shadow:"never"},{default:t(()=>[d((s(),m(p,{type:"primary",onClick:N},{icon:t(()=>[e(W,{name:"el-icon-Plus"})]),default:t(()=>[i(" \u65B0\u589E ")]),_:1})),[[f,["withdraw.merchant_withdraw/add"]]]),d((s(),m(p,{disabled:!a(k).length,onClick:l[2]||(l[2]=o=>y(a(k)))},{default:t(()=>[i(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[f,["withdraw.merchant_withdraw/delete"]]]),x("div",ce,[e(j,{data:a(c).lists,onSelectionChange:S},{default:t(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"ID",prop:"id",width:"55"}),e(u,{label:"\u63D0\u73B0\u5546\u6237",prop:"mer_name","show-overflow-tooltip":""}),e(u,{label:"\u63D0\u73B0\u94F6\u884C",prop:"merchant_bank_info.bank_info.name","show-overflow-tooltip":""}),e(u,{label:"\u63D0\u73B0\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(u,{label:"\u63D0\u73B0\u8D26\u53F7",prop:"merchant_bank_info.bank_code","show-overflow-tooltip":""}),e(u,{label:"\u5F00\u6237\u7F51\u70B9",prop:"merchant_bank_info.bank_branch","show-overflow-tooltip":""}),e(u,{label:"\u8D26\u6237\u540D\u79F0",prop:"merchant_bank_info.name","show-overflow-tooltip":""}),e(u,{label:"\u8D26\u6237\u7C7B\u578B",prop:"merchant_bank_info.is_own","show-overflow-tooltip":""},{default:t(({row:o})=>[i(B(o.merchant_bank_info.is_own?"\u5BF9\u516C\u8D26\u6237":"\u4E2A\u4EBA\u8D26\u6237"),1)]),_:1}),e(u,{label:"\u5BA1\u6838\u72B6\u6001",prop:"","show-overflow-tooltip":""},{default:t(({row:o})=>[i(B(o.is_check==1?"\u5BA1\u6838\u901A\u8FC7":o.is_check==2?"\u5BA1\u6838\u4E0D\u901A\u8FC7":"\u5F85\u5BA1\u6838"),1)]),_:1}),e(u,{label:"\u662F\u5426\u5230\u8D26",prop:"is_arrival","show-overflow-tooltip":""},{default:t(({row:o})=>[i(B(o.is_arrival?"\u5DF2\u5230\u8D26":"\u672A\u5230\u8D26"),1)]),_:1}),e(u,{label:"\u63D0\u73B0\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":"",width:"180"}),e(u,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:t(({row:o})=>[o.is_check==0?d((s(),m(p,{key:0,type:"primary",link:"",onClick:g=>F(o)},{default:t(()=>[i(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[f,["withdraw.merchant_withdraw/edit"]]]):b("",!0),o.is_check==2?d((s(),m(p,{key:1,type:"primary",link:"",onClick:g=>y(o.id)},{default:t(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[f,["withdraw.merchant_withdraw/edit"]]]):b("",!0),o.is_check==1?d((s(),m(p,{key:2,type:"primary",link:"",onClick:g=>F(o)},{default:t(()=>[i(" \u63D0\u73B0\u5230\u8D26 ")]),_:2},1032,["onClick"])),[[f,["withdraw.merchant_withdraw/delete"]]]):b("",!0)]),_:1})]),_:1},8,["data"])]),x("div",fe,[e(I,{modelValue:a(c),"onUpdate:modelValue":l[3]||(l[3]=o=>de(c)?c.value=o:null),onChange:a(v)},null,8,["modelValue","onChange"])])]),_:1})),[[K,a(c).loading]]),a(w)?(s(),m(ie,{key:0,ref_key:"editRef",ref:h,"dict-data":a(L),onSuccess:a(v),onClose:l[4]||(l[4]=o=>w.value=!1)},null,8,["dict-data","onSuccess"])):b("",!0)])}}});export{st as default};
|