2 lines
5.6 KiB
JavaScript
2 lines
5.6 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.9990c39e.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.3de7c996.js";import{f as ee,b as oe}from"./index.9424646f.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as te}from"./useDictOptions.d0c29343.js";import{g as le}from"./bank.60136c98.js";import{_ as ue}from"./edit.vue_vue_type_script_setup_true_name_bankEdit_lang.ed7eef7c.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 m,a as y,S as pe,j as ce,Q as me,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.ef95d8c0.js";import"./axios.77245e3c.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.be6e4bb5.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"./index.1fdb40b8.js";const de={class:"mt-4"},_e={class:"flex mt-4 justify-end"},fe=g({name:"bankLists"}),eo=g({...fe,setup(be){const f=ne(),b=E(!1),p=se({is_own:"",is_check:""}),C=E([]),V=n=>{C.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,h=q,F=M,c=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(h,{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(h,{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(h,null,{default:o(()=>[e(c,{type:"primary",onClick:a(S)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:a(R)},{default:o(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),m(D,{class:"!border-none",shadow:"never"},{default:o(()=>[_((i(),m(c,{type:"primary",onClick:$},{icon:o(()=>[e(T,{name:"el-icon-Plus"})]),default:o(()=>[r(" \u65B0\u589E ")]),_:1})),[[v,["bank.bank/add"]]]),_((i(),m(c,{disabled:!a(C).length,onClick:t[2]||(t[2]=l=>I(a(C)))},{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(),m(c,{key:0,type:"primary",link:"",onClick:K=>w(l)},{default:o(()=>[r(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[v,["bank.bank/edit"]]]):_((i(),m(c,{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=>ce(d)?d.value=l:null),onChange:a(k)},null,8,["modelValue","onChange"])])]),_:1})),[[j,a(d).loading]]),a(b)?(i(),m(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"])):me("",!0)])}}});export{eo as default};
|