index.4eaeb104.js 3.1 KB

1
  1. import{al as y,aS as B,ae as g,_ as A,d as N,n as b,w as P,aL as w,r,o as i,G as p,C as l,l as c,u as a,J as k,a as R}from"./index.88f7d256.js";import{c as x,d as O}from"./index.6b568d44.js";import{D as h,h as I}from"./status.2df4810d.js";import{a as S,r as d}from"./columnRenderHelper.1232bcd4.js";import{u as L}from"./use-page-search.63ad89ed.js";import M from"./invoice-modal.a75827d2.js";import"./index.b705b794.js";import"./invoice.95f96151.js";const W=[{label:"\u56DE\u7968\u89E3\u9664\u7F16\u7801",prop:"returnCode",width:150},{label:"\u5BF9\u8D26\u56DE\u7968\u7F16\u7801",prop:"orderCode",width:150},{label:"\u5BF9\u8D26\u7F16\u7801",prop:"payNo",width:150},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...S(I,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:t})=>y(B,{size:t.size},{default:()=>{var o;return(o=h.find(u=>String(e.status)===u.value))==null?void 0:o.label}})},{label:"\u7269\u6D41\u4F9B\u5E94\u5546",prop:"supplierName",minWidth:160,...d("supplierNo","supplierName","\u7269\u6D41\u4F9B\u5E94\u5546\u7F16\u7801:")},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"companyNo",minWidth:160,...d("companyNo","companyName","\u4E1A\u52A1\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,formatter:({addtime:e})=>g(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],Y={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:W,apis:{httpList:e=>x({...e,pay_type:"2"}),httpDelete:O,httpAdd:!0},deleteProp:"hpNo",superUserNoAction:!0,delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",showDelete:({status:e})=>Number(e)!==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",placeholder:"\u7269\u6D41\u4F9B\u5E94\u5546"},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:h},{field:"returnCode",type:"input",placeholder:"\u56DE\u7968\u89E3\u9664\u7F16\u7801"}]},H=N({__name:"index",setup(e){const t="sendOrderInvoiceRelive",o="/postSupplierOrder/sendOrderInvoiceReliveDetail",{push:u}=b(),n=P(null),{hasPermissionWithCode:f}=w(t),F={pageSearchHook:()=>L(void 0,void 0,m)},_={content:{preview:({returnCode:s})=>u(`${o}?id=${s}`),create:()=>u(o)}};return(s,T)=>{const D=r("ElButton"),C=r("PageContainer"),v=r("PageAuth");return i(),p(v,{pageName:t},{default:l(()=>[c(C,{hooks:F,events:_,contentConfig:a(Y),"search-config":a(m)},{content_action:l(E=>[a(f)("020")?(i(),p(D,{key:0,link:"",type:"primary",icon:a(k)("scaletooriginal"),onClick:()=>n.value.onDisplay(E)},null,8,["icon","onClick"])):R("v-if",!0)]),_:1},8,["contentConfig","search-config"]),c(M,{ref_key:"invoiceModalRef",ref:n},null,512)]),_:1})}}});var K=A(H,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/postSupplierOrder/sendOrderInvoiceRelive/index.vue"]]);export{K as default};