index.4aafbc.js 3.0 KB

1
  1. import{cs as y,am as b,dE as h,aR as g,bb as i,ae as B,ct as A,_ as N,d as P,p as k,x as w,aM as R,r as n,o as p,G as l,D as c,l as d,m as a,J as x,a as O,bd as I}from"./index.js";import{c as M,d as S}from"./index.a7473690.js";import L from"./invoice-modal.799be9.js";import"./index.bf16817a.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,...y(A,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:t})=>b(g,{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,...i("supplierNo","supplierName","\u7269\u6D41\u4F9B\u5E94\u5546\u7F16\u7801:")},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"companyNo",minWidth:160,...i("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})=>B(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=>M({...e,pay_type:"2"}),httpDelete:S,httpAdd:!0},companyProp:"supplierNo",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:"companyNo",type:"business-query",placeholder:"\u4E1A\u52A1\u516C\u53F8"},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:h},{field:"returnCode",type:"input",placeholder:"\u56DE\u7968\u89E3\u9664\u7F16\u7801"}]},H=P({__name:"index",setup(e){const t="supSendOrderInvoiceRelive",o="/supplierOrder/supSendOrderInvoiceReliveDetail",{push:u}=k(),r=w(null),{hasPermissionWithCode:f}=R(t),F={pageSearchHook:()=>I(void 0,void 0,m)},_={content:{preview:({returnCode:s})=>u(`${o}?id=${s}`),create:()=>u(o)}};return(s,T)=>{const C=n("ElButton"),D=n("PageContainer"),E=n("PageAuth");return p(),l(E,{pageName:t},{default:c(()=>[d(D,{hooks:F,events:_,contentConfig:a(Y),"search-config":a(m)},{content_action:c(v=>[a(f)("020")?(p(),l(C,{key:0,link:"",type:"primary",icon:a(x)("scaletooriginal"),onClick:()=>r.value.onDisplay(v)},null,8,["icon","onClick"])):O("v-if",!0)]),_:1},8,["contentConfig","search-config"]),d(L,{ref_key:"invoiceModalRef",ref:r},null,512)]),_:1})}}});var $=N(H,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supplierOrder/sendOrderInvoiceRelive/index.vue"]]);export{$ as default};