index.94ae98.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,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.e71d56.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:o})=>B(g,{size:o.size},{default:()=>{var t;return(t=h.find(u=>String(e.status)===u.value))==null?void 0:t.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},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=P({__name:"index",setup(e){const o="sendOrderInvoiceRelive",t="/postSupplierOrder/sendOrderInvoiceReliveDetail",{push:u}=k(),n=w(null),{hasPermissionWithCode:f}=R(o),F={pageSearchHook:()=>I(void 0,void 0,m)},_={content:{preview:({returnCode:s})=>u(`${t}?id=${s}`),create:()=>u(t)}};return(s,T)=>{const D=r("ElButton"),C=r("PageContainer"),E=r("PageAuth");return p(),l(E,{pageName:o},{default:c(()=>[d(C,{hooks:F,events:_,contentConfig:a(Y),"search-config":a(m)},{content_action:c(v=>[a(f)("020")?(p(),l(D,{key:0,link:"",type:"primary",icon:a(x)("scaletooriginal"),onClick:()=>n.value.onDisplay(v)},null,8,["icon","onClick"])):O("v-if",!0)]),_:1},8,["contentConfig","search-config"]),d(L,{ref_key:"invoiceModalRef",ref:n},null,512)]),_:1})}}});var $=N(H,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/postSupplierOrder/sendOrderInvoiceRelive/index.vue"]]);export{$ as default};