1 |
- import{am as b,dd as h,aR as g,bb as s,_ as E,d as y,p as N,x as P,aM as w,r as n,o as l,G as p,D as c,l as d,m as a,J as k,a as A,bd as R}from"./index.js";import{d as x,e as I}from"./index.f590779a.js";import M from"./invoice-modal.711d97.js";import"./index.bf16817a.js";const S=[{label:"\u56DE\u7968\u89E3\u9664\u7F16\u7801",prop:"returnCode",width:150},{label:"\u5BF9\u8D26\u56DE\u7968\u7F16\u7801",prop:"orderCode",width:150},{label:"\u53D1\u7968\u7F16\u7801",prop:"payNo",width:150},{label:"\u53D1\u7968\u53F7\u7801",prop:"invoice_number",width:150},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:u,props:o})=>b(g,{size:o.size},{default:()=>{var e;return(e=h.find(t=>String(u.status)===t.value))==null?void 0:e.label}})},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:160,...s("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyNo",minWidth:160,...s("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u9000\u7968\u7406\u7531",prop:"reason",minWidth:160},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:140},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],W={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:S,apis:{httpList:x,httpDelete:I,httpAdd:!0},deleteProp:"hpNo",delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",showDelete:({status:u})=>Number(u)!==6},m={formItems:[{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:"supplierNo",type:"supplier-query"},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:h},{field:"returnCode",type:"input",placeholder:"\u56DE\u7968\u89E3\u9664\u7F16\u7801"},{field:"hpNo",placeholder:"\u5BF9\u8D26\u56DE\u7968\u7F16\u7801",type:"input"}]},L=y({__name:"index",setup(u){const o="unInvoiceRelation",e="/purchase/unInvoiceRelationDetail",{push:t}=N(),r=P(null),{hasPermissionWithCode:f}=w(o),F={pageSearchHook:()=>R(void 0,void 0,m)},_={content:{preview:({returnCode:i})=>t(`${e}?id=${i}`),create:()=>t(e)}};return(i,z)=>{const C=n("ElButton"),D=n("PageContainer"),v=n("PageAuth");return l(),p(v,{pageName:o},{default:c(()=>[d(D,{hooks:F,events:_,contentConfig:a(W),"search-config":a(m)},{content_action:c(B=>[a(f)("020")?(l(),p(C,{key:0,link:"",type:"primary",icon:a(k)("scaletooriginal"),onClick:()=>r.value.onDisplay(B)},null,8,["icon","onClick"])):A("v-if",!0)]),_:1},8,["contentConfig","search-config"]),d(M,{ref_key:"invoiceModalRef",ref:r},null,512)]),_:1})}}});var $=E(L,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchaseNew/unInvoiceRelation/index.vue"]]);export{$ as default};
|