1 |
- import{al as z,aS as G,_ as J,d as M,n as H,w as g,b3 as K,aL as Q,ah as X,r as w,o as d,c as Y,l as u,C as o,b as Z,u as e,bt as $,M as s,G as f,a as h,bu as uu,L as x,J as S,by as eu}from"./index.fd765376.js";import{u as _,w as N}from"./xlsx.ed122d16.js";import{u as ou}from"./use-page-search.414f397e.js";import tu from"./index.baaaa2dc.js";import lu from"./index.f830eed8.js";import{c as au,e as nu}from"./configs.806dabde.js";import{c as iu,d as su}from"./index.d370d888.js";import{a as R}from"./tragelog.1b43f211.js";import{h as ru}from"./export.6a5cb026.js";import{x as pu,b as du}from"./status.0f05917e.js";import"./execl-upload.491b2dd2.js";const P={formItems:[{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u4EA4\u6613\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u4EA4\u6613\u7ED3\u675F\u65F6\u95F4"}},{field:"status",type:"select",placeholder:"\u8BA4\u9886\u72B6\u6001",options:au},{type:"range",field:"gold",otherOptions:{startProp:"total_lower",endProp:"total_upper",startPlaceholder:"\u6536\u5165\u8D77\u59CB\u91D1\u989D",endPlaceholder:"\u6536\u5165\u7ED3\u675F\u91D1\u989D"}},{field:"tradNo",type:"input",placeholder:"\u8D44\u91D1\u7F16\u7801"},{type:"input",field:"bank",placeholder:"\u4EA4\u6613\u94F6\u884C"},{type:"input",field:"name",placeholder:"\u4ED8\u6B3E\u5355\u4F4D\u540D\u79F0"}]},cu=[{type:"expand",slot:"expand",fixed:"left"},{label:"\u8D44\u91D1\u7F16\u7801",prop:"tradNo",fixed:"left",width:150},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:b,props:D})=>z(G,{size:D.size},{default:()=>{var m;return((m=(b.logNo?R:nu).find(E=>String(b.status)===String(E.value)))==null?void 0:m.label)||"--"}})},{label:"\u6536\u5165\u91D1\u989D",prop:"total_fee",width:120},{label:"\u672A\u8BA4\u9886\u91D1\u989D",prop:"balance",width:120},{label:"\u5DF2\u8BA4\u9886\u91D1\u989D",prop:"used_fee",width:120},{label:"\u4EA4\u6613\u7528\u9014",prop:"trade_used",width:120},{label:"\u4EA4\u6613\u65F6\u95F4",prop:"trade_time",width:140},{label:"\u4ED8\u6B3E\u5355\u4F4D\u540D\u79F0",prop:"trade_out",width:160},{label:"\u4ED8\u6B3E\u5355\u4F4D\u8D26\u53F7",prop:"trade_account",width:160},{label:"\u6536\u6B3E\u516C\u53F8\u8D26\u6237",prop:"trade_in_account",width:145},{label:"\u4EA4\u6613\u884C\u540D",prop:"trade_bank",width:160},{label:"\u6536\u6B3E\u516C\u53F8\u7F16\u7801",prop:"companyNo",width:150},{label:"\u6536\u6B3E\u516C\u53F8\u540D\u79F0",prop:"companyName",width:145},{label:"\u8D44\u91D1\u5BFC\u5165\u65F6\u95F4",prop:"addtime",width:140},{label:"\u64CD\u4F5C",fixed:"right",width:60,slot:"operation"}],fu={title:"\u8D44\u91D1\u8BA4\u9886\u7BA1\u7406",columns:cu,isTree:!0,apis:{httpList:iu}},hu={\u6536\u6B3E\u65B9\u516C\u53F8\u7F16\u7801:"",\u6536\u6B3E\u65B9\u516C\u53F8\u540D\u79F0:"",\u6536\u6B3E\u65B9\u8D26\u6237:"",\u4EA4\u6613\u65F6\u95F4:"",\u6536\u5165\u91D1\u989D:"",\u8D26\u53F7\u4F59\u989D:"",\u4EA4\u6613\u884C\u540D:"",\u5BF9\u65B9\u7701\u5E02:"",\u5BF9\u65B9\u8D26\u53F7:"",\u5BF9\u65B9\u6237\u540D:"",\u4EA4\u6613\u7528\u9014:""},_u={\u6536\u6B3E\u65B9\u516C\u53F8\u7F16\u7801:"",\u6536\u6B3E\u65B9\u516C\u53F8\u540D\u79F0:"",\u8D44\u91D1\u7F16\u7801:"",\u8BA2\u5355\u7F16\u7801:"",\u8BA4\u9886\u8D44\u91D1:""};const mu={class:"main role"},Bu={"w-full":""},wu=M({__name:"index",setup(b){const{push:D}=H(),A=g(null),m=g(null),E="capitalClaim",{run:T}=K({success:()=>v.value.onSearch()}),{hasPermissionWithCode:c,permissions:U}=Q(E),F=g(!1),{isSuperUser:C}=X(),{pageContentRef:v,handleResetClick:k,handleSearchClick:I}=ou(void 0,void 0,P),O=n=>T(su(n));function q(){const n=_.book_new(),l=_.json_to_sheet([hu]);_.book_append_sheet(n,l,"sheet"),N(n,"\u8D44\u91D1\u8BA4\u9886\u6A21\u677F.xlsx",{bookType:"xlsx"})}function W(){const n=_.book_new(),l=_.json_to_sheet([_u]);_.book_append_sheet(n,l,"sheet"),N(n,"\u8BA2\u5355\u8BA4\u6B3E\u5BFC\u5165\u6A21\u677F.xlsx",{bookType:"xlsx"})}async function L(){await ru({url:"/ope",name:"\u8D44\u91D1\u8BA4\u9886\u6570\u636E\u8868",onStart:()=>F.value=!0,onSuccess:()=>F.value=!1,onFail:()=>F.value=!1,params:{...v.value.getBasicParams()}})}return(n,l)=>{const r=w("el-button"),t=w("el-table-column"),y=w("el-tag"),V=w("el-popconfirm"),j=w("el-table");return d(),Y("div",mu,[u(eu,{"is-show":e(c)("001")},{default:o(()=>[Z("div",Bu,[u(e($),{"form-config":e(P),onSearchBtnClick:e(I),onResetBtnClick:e(k)},{action:o(()=>[u(r,{loading:F.value,onClick:l[0]||(l[0]=()=>L())},{default:o(()=>[s(" \u8D44\u91D1\u8BA4\u9886\u6570\u636E\u5BFC\u51FA ")]),_:1},8,["loading"]),!e(C)&&e(c)("029")?(d(),f(r,{key:0,onClick:q},{default:o(()=>[s("\u4E0B\u8F7D\u8D44\u91D1\u5BFC\u5165\u6A21\u677F ")]),_:1})):h("v-if",!0),!e(C)&&e(c)("030")?(d(),f(r,{key:1,type:"primary",onClick:l[1]||(l[1]=()=>A.value.onDisplay())},{default:o(()=>[s("\u6279\u91CF\u5BFC\u5165\u5BA2\u6237\u4ED8\u6B3E\u8D44\u91D1\u6570\u636E ")]),_:1})):h("v-if",!0),!e(C)&&e(c)("034")?(d(),f(r,{key:2,onClick:W},{default:o(()=>[s("\u4E0B\u8F7D\u8BA2\u5355\u8BA4\u6B3E\u5BFC\u5165\u6A21\u677F ")]),_:1})):h("v-if",!0),!e(C)&&e(c)("035")?(d(),f(r,{key:3,type:"primary",onClick:l[2]||(l[2]=()=>m.value.onDisplay())},{default:o(()=>[s("\u6279\u91CF\u5BFC\u5165\u8BA2\u5355\u8BA4\u6B3E\u6570\u636E ")]),_:1})):h("v-if",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),u(e(uu),{ref_key:"pageContentRef",ref:v,"content-config":e(fu),powers:e(U),onPreviewBtnClick:l[3]||(l[3]=p=>e(D)("/InvoiceSales/claimDetail?id="+p.tradNo+"&back=capitalClaim"))},{expand:o(p=>[p.child.length>0?(d(),f(j,{key:0,style:{width:"100%",display:"inline-block !important"},size:"small",data:p.child,border:""},{default:o(()=>[u(t,{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u7801",prop:"logNo",width:"150",fixed:"left","show-overflow-tooltip":""}),u(t,{label:"\u8BA4\u9886\u72B6\u6001",prop:"status",width:"100","show-overflow-tooltip":""},{default:o(({$index:a})=>[u(y,null,{default:o(()=>{var i;return[s(x(((i=e(R).find(B=>B.value===p.child[a].status))==null?void 0:i.label)||"--"),1)]}),_:2},1024)]),_:2},1024),u(t,{label:"\u8BA2\u5355\u7F16\u7801",prop:"orderCode",width:"150","show-overflow-tooltip":""}),u(t,{label:"\u9500\u552E\u4E3B\u5355\u53F7",prop:"cxCode",width:"160","show-overflow-tooltip":""}),u(t,{label:"\u8BA2\u5355\u6765\u6E90",prop:"qrdSource",width:"90","show-overflow-tooltip":""},{default:o(({$index:a})=>[u(y,null,{default:o(()=>{var i;return[s(x((i=e(pu).find(B=>B.value===p.child[a].qrdSource))==null?void 0:i.label),1)]}),_:2},1024)]),_:2},1024),u(t,{label:"\u5E73\u53F0\u5355\u53F7",prop:"poCode",width:"180","show-overflow-tooltip":""}),u(t,{label:"\u5546\u54C1\u7F16\u7801",prop:"goodNo",width:"150","show-overflow-tooltip":""}),u(t,{label:"\u5546\u54C1\u6765\u6E90",prop:"qrdType",width:"90","show-overflow-tooltip":""},{default:o(({$index:a})=>[u(y,null,{default:o(()=>{var i;return[s(x((i=e(du).find(B=>B.value===p.child[a].qrdType))==null?void 0:i.label),1)]}),_:2},1024)]),_:2},1024),u(t,{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",minWidth:"180","show-overflow-tooltip":""}),u(t,{label:"\u4F01\u4E1A\u5BA2\u6237\u7F16\u7801",prop:"customerNo",width:"150","show-overflow-tooltip":""}),u(t,{label:"\u4F01\u4E1A\u5BA2\u6237\u540D\u79F0",prop:"customerName",minWidth:"180","show-overflow-tooltip":""}),u(t,{label:"\u8BA2\u5355\u521B\u5EFA\u4EBA",prop:"ownerName",width:"80","show-overflow-tooltip":""}),u(t,{label:"\u8BA4\u9886\u4EBA",prop:"apply_name",width:"80","show-overflow-tooltip":""}),u(t,{label:"\u8BA4\u9886\u65F6\u95F4",prop:"addtime",width:"145","show-overflow-tooltip":""}),u(t,{fixed:"right",label:"\u64CD\u4F5C",width:"60px"},{default:o(({row:a})=>[u(r,{icon:e(S)("eye-view"),onClick:()=>e(D)("/InvoiceSales/capitalDetail?id="+a.logNo),type:"primary",link:""},null,8,["icon","onClick"]),e(c)("009")&&String(a.status)==="1"?(d(),f(V,{key:0,placement:"top",title:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u8D44\u91D1\u8BA4\u9886?","on-confirm":()=>O({logNo:a.logNo})},{reference:o(()=>[u(r,{icon:e(S)("refresh-right"),type:"primary",link:""},null,8,["icon"])]),_:2},1032,["on-confirm"])):h("v-if",!0)]),_:2},1024)]),_:2},1032,["data"])):h("v-if",!0)]),_:1},8,["content-config","powers"])])]),_:1},8,["is-show"]),u(tu,{ref_key:"execlUploadRef",ref:A,onOnSuccess:e(k)},null,8,["onOnSuccess"]),u(lu,{ref_key:"execlCapitalUploadRef",ref:m,onOnSuccess:e(k)},null,8,["onOnSuccess"])])}}});var Su=J(wu,[["__scopeId","data-v-a768f3c6"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/capitalClaim/index.vue"]]);export{Su as default};
|