2 lines
5.7 KiB
JavaScript
2 lines
5.7 KiB
JavaScript
import{Y as M,Z as O,K as Q,L as Z,D as q,w as Y,F as z,T as G,O as H,Q as J,R as W}from"./element-plus.d8e0827b.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.b67c1046.js";import{f as ee,b as oe}from"./index.58242ff9.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as te}from"./useDictOptions.f8f89444.js";import{h as le}from"./bank.d3f360e3.js";import{_ as ue}from"./edit.vue_vue_type_script_setup_true_name_bankEdit_lang.33f46988.js";import{d as g,s as ne,r as E,Z as se,ap as ie,o as i,c as re,U as e,L as o,u as a,R as r,M as _,K as c,a as y,S as pe,j as me,Q as ce,n as A}from"./@vue.18505fe0.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"./lodash.466e9fe4.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"./index.432b2bf9.js";const de={class:"mt-4"},_e={class:"flex mt-4 justify-end"},fe=g({name:"bankLists"}),to=g({...fe,setup(be){const f=ne(),b=E(!1),p=se({is_own:"",is_check:""}),h=E([]),V=n=>{h.value=n.map(({id:t})=>t)},{dictData:x}=te(""),{pager:d,getLists:k,resetParams:R,resetPage:S}=ae({fetchFun:le,params:p}),$=async()=>{var n;b.value=!0,await A(),(n=f.value)==null||n.open("add")},w=async n=>{var t,s;b.value=!0,await A(),(t=f.value)==null||t.open("edit"),(s=f.value)==null||s.setFormData(n)},I=async n=>{await ee.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await apiBankDelete({id:n}),k()};return k(),(n,t)=>{const s=Q,B=Z,C=q,F=M,m=Y,L=O,P=z,D=G,T=oe,u=H,N=J,U=X,v=ie("perms"),j=W;return i(),re("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(P,{class:"mb-[-16px]",model:a(p),"label-width":"120px"},{default:o(()=>[e(L,null,{default:o(()=>[e(F,{span:6},{default:o(()=>[e(C,{label:"\u8D26\u6237\u7C7B\u578B",prop:"name"},{default:o(()=>[e(B,{class:"w-280[px]",modelValue:a(p).is_own,"onUpdate:modelValue":t[0]||(t[0]=l=>a(p).is_own=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u7C7B\u578B"},{default:o(()=>[e(s,{label:"\u4E2A\u4EBA\u8D26\u6237",value:parseInt(0)},null,8,["value"]),e(s,{label:"\u5BF9\u516C\u8D26\u6237",value:parseInt(1)},null,8,["value"])]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(F,{span:6},{default:o(()=>[e(C,{label:"\u5BA1\u6838\u72B6\u6001",prop:"is_check"},{default:o(()=>[e(B,{class:"w-280[px]",modelValue:a(p).is_check,"onUpdate:modelValue":t[1]||(t[1]=l=>a(p).is_check=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u7C7B\u578B"},{default:o(()=>[e(s,{label:"\u5F85\u5BA1\u6838",value:parseInt(0)},null,8,["value"]),e(s,{label:"\u5BA1\u6838\u901A\u8FC7",value:parseInt(1)},null,8,["value"]),e(s,{label:"\u5BA1\u6838\u672A\u901A\u8FC7",value:parseInt(2)},null,8,["value"])]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(C,null,{default:o(()=>[e(m,{type:"primary",onClick:a(S)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:a(R)},{default:o(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),c(D,{class:"!border-none",shadow:"never"},{default:o(()=>[_((i(),c(m,{type:"primary",onClick:$},{icon:o(()=>[e(T,{name:"el-icon-Plus"})]),default:o(()=>[r(" \u65B0\u589E ")]),_:1})),[[v,["bank.bank/add"]]]),_((i(),c(m,{disabled:!a(h).length,onClick:t[2]||(t[2]=l=>I(a(h)))},{default:o(()=>[r(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[v,["bank.bank/delete"]]]),y("div",de,[e(N,{data:a(d).lists,onSelectionChange:V},{default:o(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name","show-overflow-tooltip":""}),e(u,{label:"\u5F00\u6237\u94F6\u884C",prop:"bank_info.name","show-overflow-tooltip":""}),e(u,{label:"\u8D26\u6237\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(u,{label:"\u94F6\u884C\u8D26\u53F7",prop:"bank_code","show-overflow-tooltip":""}),e(u,{label:"\u5F00\u6237\u7F51\u70B9",prop:"bank_branch","show-overflow-tooltip":""}),e(u,{label:"\u8EAB\u4EFD\u8BC1",prop:"id_card","show-overflow-tooltip":""}),e(u,{label:"\u7535\u8BDD",prop:"phone","show-overflow-tooltip":""}),e(u,{label:"\u5BA1\u6838\u72B6\u6001",prop:"phone","show-overflow-tooltip":""},{default:o(({row:l})=>[r(pe(l.is_check==0?"\u5F85\u5BA1\u6838":l.is_check==1?"\u5DF2\u901A\u8FC7":"\u5DF2\u62D2\u7EDD"),1)]),_:1}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[l.is_check==0?_((i(),c(m,{key:0,type:"primary",link:"",onClick:K=>w(l)},{default:o(()=>[r(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[v,["bank.bank/edit"]]]):_((i(),c(m,{key:1,type:"primary",link:"",onClick:K=>w(l)},{default:o(()=>[r(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[v,["bank.bank/edit"]]])]),_:1})]),_:1},8,["data"])]),y("div",_e,[e(U,{modelValue:a(d),"onUpdate:modelValue":t[3]||(t[3]=l=>me(d)?d.value=l:null),onChange:a(k)},null,8,["modelValue","onChange"])])]),_:1})),[[j,a(d).loading]]),a(b)?(i(),c(ue,{key:0,ref_key:"editRef",ref:f,"dict-data":a(x),onSuccess:a(k),onClose:t[4]||(t[4]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):ce("",!0)])}}});export{to as default};
|