ERP-admin/build/admin/assets/index.968c023e.js

2 lines
6.4 KiB
JavaScript

import{Y as Q,Z,K as q,L as I,D as Y,w as z,F as G,T as H,O as J,Q as X,R as ee}from"./element-plus.9990c39e.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.3de7c996.js";import{f as oe,b as ae}from"./index.9424646f.js";import{u as le}from"./usePaging.6a6670f9.js";import{u as ue}from"./useDictOptions.d0c29343.js";import{_ as ie,a as ne,b as re}from"./edit.vue_vue_type_script_setup_true_name_merchantWithdrawEdit_lang.9bcd99f9.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 c,K as m,a as x,S as B,Q as b,j as ce,n as $}from"./@vue.18505fe0.js";import"./lodash.be6e4bb5.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.ef95d8c0.js";import"./axios.77245e3c.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.886c5f5a.js";import"./pinia.a969beab.js";import"./css-color-function.6061d63f.js";import"./color.1580a89c.js";import"./clone.4ed29f58.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.b29ee5e2.js";import"./vue-clipboard3.15c43b43.js";import"./clipboard.4a3580c9.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.be4d3224.js";import"./index.1fdb40b8.js";import"./index.f4f18b5a.js";import"./index.08bd2556.js";import"./vuedraggable.11c6ad82.js";import"./vue.09510228.js";import"./sortablejs.b9072078.js";const de={class:"mt-4"},fe={class:"flex mt-4 justify-end"},he=R({name:"merchantWithdrawLists"}),it=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:d,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=q,E=I,D=Y,C=Q,p=z,U=Z,M=G,A=H,W=ae,u=J,j=X,K=te,f=me("perms"),O=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}),c((s(),m(A,{class:"!border-none",shadow:"never"},{default:t(()=>[c((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"]]]),c((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",de,[e(j,{data:a(d).lists,onSelectionChange:S},{default:t(()=>[e(u,{type:"selection",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:"\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?c((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?c((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?c((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(K,{modelValue:a(d),"onUpdate:modelValue":l[3]||(l[3]=o=>ce(d)?d.value=o:null),onChange:a(v)},null,8,["modelValue","onChange"])])]),_:1})),[[O,a(d).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{it as default};