index.7392fe.js 2.9 KB

1
  1. import{am as F,dd as s,aR as f,ae as D,_,d as y,p as C,x as B,r,o as b,G as g,D as v,l as p,m as l,bd as w}from"./index.js";import{c as E,d as N}from"./index.a7473690.js";import R from"./invoice-modal.ca3c90.js";import"./index.bf16817a.js";const P=[{type:"selection",width:40,align:"center",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u9000\u7968\u7533\u8BF7\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:"\u53D1\u7968\u53F7\u7801",prop:"inv_number",width:150},{label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0",prop:"supplierName",minWidth:150},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u7801",prop:"supplierNo",width:150},{label:"\u4E70\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:150},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u7801",prop:"companyNo",width:150},{label:"\u72B6\u6001",prop:"status",width:160,cellRenderer:({row:e,props:o})=>F(f,{size:o.size},{default:()=>{var u;return(u=s.find(t=>String(e.status)===t.value))==null?void 0:u.label}})},{label:"\u9000\u7968\u7406\u7531",prop:"reason"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:140,formatter:({addtime:e})=>D(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],k={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:P,apis:{httpList:E,httpDelete:N,httpAdd:!0},deleteProp:"hpNo",superUserNoAction:!0,delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",companyProp:"supplierNo",listNoRelation:!0,showDelete:({status:e})=>Number(e)!==6},n={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"},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:s},{field:"hpNo",placeholder:"\u5BF9\u8D26\u56DE\u7968\u7F16\u7801",type:"input"},{field:"returnCode",type:"input",placeholder:"\u9000\u7968\u7533\u8BF7\u7F16\u7801"}]},x=y({__name:"index",setup(e){const o="supplyTicketReturnRelive",u="/supply/supplyTicketReturnReliveDetail",{push:t}=C(),i=B(null),d={pageSearchHook:()=>w(void 0,void 0,n)},c={content:{preview:({returnCode:a})=>t(`${u}?id=${a}`),create:()=>t(u)}};return(a,A)=>{const h=r("PageContainer"),m=r("PageAuth");return b(),g(m,{pageName:o},{default:v(()=>[p(h,{hooks:d,events:c,contentConfig:l(k),"search-config":l(n)},null,8,["contentConfig","search-config"]),p(R,{ref_key:"invoiceModalRef",ref:i},null,512)]),_:1})}}});var H=_(x,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supply/ticketReturnRelive/index.vue"]]);export{H as default};