1 |
- /* empty css *//* empty css */import{_ as e}from"./index-5b97a6f7.js";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-e3f41770.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css */import{_ as t}from"./operate.vue_vue_type_script_setup_true_lang-ae80d7b7.js";import{_ as l}from"./search.vue_vue_type_script_setup_true_lang-17b8e43a.js";import{h as o}from"./moment-19b77ecd.js";/* empty css *//* empty css */import{_ as s}from"./create.vue_vue_type_script_setup_true_lang-b86366e3.js";import{s as r}from"./shortcuts-45ce8eab.js";import{d as n,V as i,ax as p,m,aw as u,p as d,x as _,aq as c,o as f,c as j,a as v,w as h,f as b,e as y,Z as w,l as g,t as Y,b as k,a9 as x,aC as C,a7 as V,at as M,a5 as D,a6 as T,aE as B,aa as U,W as A,ab as q,a2 as z,R as O,S as I,_ as R}from"./index-de1b16f5.js";import{u as W}from"./useGetList-94dca941.js";import{u as Z}from"./useOpen-75597332.js";import{d as E}from"./index-2ffc5d7d.js";import"./http-770a7659.js";/* empty css *//* empty css *//* empty css */import"./index-aafd70a3.js";/* empty css *//* empty css */import"./add.vue_vue_type_script_setup_true_lang-29e012f8.js";/* empty css *//* empty css */const G={class:"table-default"},L=(e=>(O("data-v-d7ff6b6b"),e=e(),I(),e))((()=>y("br",null,null,-1))),S=R(n({__name:"index",setup(n){o().startOf("month").format("YYYY-MM-DD"),o().endOf("month").format("YYYY-MM-DD");const{open:O,close:I,title:R,visible:S,id:X}=Z(),$="jiesuanManage/bankAccount/listCompanyCard";i(),p();const{data:F,query:H,search:J,reset:K,loading:N}=W($);m(!1),m({}),m({}),m([]);u("rolesIdentify");const P=e=>{if(H.value.createTime){const a=M(e);H.value.create_start_at=a[0],H.value.create_end_at=a[1]}else delete H.value.create_start_at,delete H.value.create_end_at},Q=()=>{K()},ee=d((()=>{var e;return null==(e=F.value)?void 0:e.data}));return _((()=>{J()})),(o,n)=>{const i=D,p=T,m=B,u=l,d=t,_=U,M=A,W=q,Z=a,F=e,K=c("action"),ae=z;return f(),j("div",null,[v(u,{search:b(J),reset:Q},{body:h((()=>[v(p,{label:"商户名称",prop:"name"},{default:h((()=>[v(i,{modelValue:b(H).owner_name,"onUpdate:modelValue":n[0]||(n[0]=e=>b(H).owner_name=e),name:"owner_name",clearable:"",placeholder:"请输入商户名称"},null,8,["modelValue"])])),_:1}),v(p,{label:"对公账户名称",prop:"name"},{default:h((()=>[v(i,{modelValue:b(H).name_of_payee,"onUpdate:modelValue":n[1]||(n[1]=e=>b(H).name_of_payee=e),name:"name_of_payee",clearable:"",placeholder:"请输入对公账户名称"},null,8,["modelValue"])])),_:1}),v(p,{label:"添加时间"},{default:h((()=>[v(m,{"unlink-panels":"",clearable:"",onChange:P,format:"YYYY/MM/DD","value-format":"YYYY-MM-DD",modelValue:b(H).createTime,"onUpdate:modelValue":n[2]||(n[2]=e=>b(H).createTime=e),type:"daterange",shortcuts:b(r),"range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间"},null,8,["modelValue","shortcuts"])])),_:1})])),_:1},8,["search"]),y("div",G,[w(v(d,{show:b(O)},null,8,["show"]),[[K,"jiesuan.BankAccount.addCompanyCard"]]),w((f(),g(W,{data:b(ee),class:"mt-3"},{default:h((()=>[v(_,{prop:"owner_name",label:"商户名称","min-width":"200px"}),v(_,{label:"收款信息","show-overflow-tooltip":"","min-width":"250px"},{default:h((e=>[y("div",null,"对公账户名称:"+Y(e.row.name_of_payee),1),y("div",null,"银行卡号:"+Y(e.row.card_no),1),y("div",null,"开户银行:"+Y(e.row.bank_name),1),y("div",null,"开户支行:"+Y(e.row.sub_bank_name),1),y("div",null,"手机号:"+Y(e.row.phone_of_payee),1)])),_:1}),v(_,{prop:"created_at","show-overflow-tooltip":"",label:"添加时间","min-width":"200px"}),v(_,{label:"操作",width:"200"},{default:h((e=>[w((f(),g(M,{link:"",type:"primary",size:"small",onClick:a=>b(O)(e.row)},{default:h((()=>[k("编辑")])),_:2},1032,["onClick"])),[[K,"jiesuan.BankAccount.addCompanyCard"]]),w((f(),g(M,{link:"",type:"primary",size:"small",onClick:a=>{return t=e.row,void C.confirm("确定要删除此列表吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{E({id:t.id}).then((e=>{V.success(e.message),J()}))})).catch((()=>{}));var t}},{default:h((()=>[k("删除")])),_:2},1032,["onClick"])),[[K,"jiesuan.BankAccount.delCompanyCard"]]),L])),_:1})])),_:1},8,["data"])),[[ae,b(N)]]),v(Z)]),v(F,{modelValue:b(S),"onUpdate:modelValue":n[4]||(n[4]=e=>x(S)?S.value=e:null),title:b(R),"destroy-on-close":""},{default:h((()=>[v(s,{onClose:n[3]||(n[3]=e=>b(I)(b(J))),primary:b(X),api:$},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}}),[["__scopeId","data-v-d7ff6b6b"]]);export{S as default};
|