1 |
- import{af as a,aI as s,aJ as S,aX as B,_ as z,d as Y,B as M,F as m,a5 as O,y as F,o as g,O as E,L as l,z as i,u as r,T as f,V as I,Z as b}from"./index.5853d6a5.js";import{d as U,c as L}from"./index.63bfe51e.js";import{s as h,i as w,c as k}from"./_opitons.854186b3.js";import{i as V}from"./status.36e06c63.js";import{u as H}from"./use-page-search.1001c61d.js";import j from"./invoice-modal.1a9fc3f3.js";import{h as $}from"./export.015aeb45.js";import q from"./index.73965cab.js";import"./index.9587fcab.js";import"./invoice.b54a055c.js";import"./execl-upload.70f9256d.js";import"./xlsx.ed122d16.js";const J=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u5BF9\u8D26\u56DE\u7968\u7533\u8BF7",prop:"hpNo",width:180},{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",width:180},{label:"\u72B6\u6001",prop:"status",width:160,transform:e=>{var t;return(t=h.find(u=>String(e)===u.value))==null?void 0:t.label},cellRenderer:({row:e,props:t})=>a(s,{size:t.size},{default:()=>{var u;return(u=h.find(o=>String(e.status)===o.value))==null?void 0:u.label}})},{label:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",prop:"invType",width:120,cellRenderer:({row:e,props:t})=>a(s,{size:t.size},{default:()=>{var u;return(u=w.find(o=>String(e.invType)===o.value))==null?void 0:u.label}})},{label:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",width:120,cellRenderer:({row:e,props:t})=>a(s,{size:t.size},{default:()=>{var u;return(u=k.find(o=>String(e.checkApi)===o.value))==null?void 0:u.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:85,cellRenderer:({row:e})=>a(S,{src:e.inv_img,style:{height:"20px"},previewSrcList:[e.inv_img],previewTeleported:!0})},{label:"\u53D1\u7968\u7A0E\u524D\u91D1\u989D",width:"110px",prop:"inv_subtotal_amount"},{label:"\u53D1\u7968\u7A0E\u540E\u91D1\u989D",width:"110px",prop:"total"},{label:"\u53D1\u7968\u53F7\u7801",width:110,prop:"invoiceNumber"},{label:"\u53D1\u7968\u4EE3\u7801",width:110,prop:"invoiceCode"},{label:"\u5F00\u7968\u65F6\u95F4",prop:"open_time",width:120,formatter:({open_time:e})=>e?B(e).format("YYYY-MM-DD"):""},{label:"\u53D1\u7968\u72B6\u6001",width:110,prop:"invStatus_cn"},{label:"\u53D1\u7968\u7C7B\u578B",width:110,prop:"invoiceType_cn"},{label:"\u53D1\u7968\u7C7B\u578B",width:110,cellRenderer({row:e}){return a(s,null,{default:()=>{var t;return((t=V.find(({value:u})=>u===e.invoiceType))==null?void 0:t.label)||"--"}})}},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:180,formatter:({addtime:e})=>B(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],X={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:J,apis:{httpList:U,httpDelete:L,httpAdd:!0},deleteProp:"hpNo",superUserNoAction:!0,delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",companyProp:"supplierNo",showDelete:({status:e})=>Number(e)!==6},C={formItems:[{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:h},{field:"invType",type:"select",placeholder:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",options:w},{field:"checkApi",type:"select",placeholder:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",options:k},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"hpNo",type:"input",placeholder:"\u5BF9\u8D26\u7533\u8BF7\u7F16\u53F7"},{field:"apply_id",type:"input",placeholder:"\u7533\u8BF7\u4EBA"},{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u65B0\u5EFA\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u65B0\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"open_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"open_start",endProp:"open_end",startPlaceholder:"\u5F00\u7968\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u5F00\u7968\u7ED3\u675F\u65F6\u95F4"}}]};const Z=b("\u5BFC\u51FA\u5BF9\u8D26\u5F00\u7968\u6570\u636E"),G=b("\u6279\u91CF\u521B\u5EFA\u5F00\u7968\u6570\u636E"),K=Y({__name:"index",setup(e){const t="supplyTicketReturn",u="/supply/supplyTicketReturnDetail",o=["3","4","5","6","9","10","12"],{push:_}=M(),y=m(null),D=m(null),c=m(null),{currentCompany:A}=O(),x={pageSearchHook:()=>H(void 0,void 0,C)},P={content:{preview:({hpNo:v})=>_(`${u}?id=${v}`),create:()=>_(u)}};async function N(){await $({url:"ile",name:"\u5F00\u7968\u6570\u636E\u8868",params:{supplierNo:A.value.companyNo,...c.value.getBasicParams()}})}return(v,n)=>{const d=F("ElButton"),R=F("PageContainer"),T=F("PageAuth");return g(),E(T,{pageName:t},{default:l(()=>[i(R,{hooks:x,events:P,contentConfig:r(X),"search-config":r(C),"get-content-ref":p=>c.value=p},{content_header:l(()=>[i(d,{size:"small",icon:r(f)("arrow-down-line"),onClick:n[0]||(n[0]=()=>N())},{default:l(()=>[Z]),_:1},8,["icon"]),i(d,{size:"small",icon:r(f)("arrow-up-line"),onClick:n[1]||(n[1]=()=>D.value.onDisplay())},{default:l(()=>[G]),_:1},8,["icon"])]),content_action:l(p=>[o.includes(String(p.status))?(g(),E(d,{key:0,link:"",type:"primary",icon:r(f)("scaletooriginal"),onClick:()=>y.value.onDisplay(p)},null,8,["icon","onClick"])):I("v-if",!0)]),_:1},8,["contentConfig","search-config","get-content-ref"]),i(j,{ref_key:"invoiceModalRef",ref:y},null,512),i(q,{ref_key:"execelUploadRef",ref:D,onOnSuccess:n[2]||(n[2]=()=>c.value.onSearch())},null,512)]),_:1})}}});var se=z(K,[["__scopeId","data-v-78d10555"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supply/ticketReturn/index.vue"]]);export{se as default};
|