1 |
- import{am as c,da as C,aR as p,bb as d,bO as F,ae as B,_ as w,d as y,x,aV as k,r as i,o as m,G as f,D as r,m as s,l as N,M as V,a as A,ar as S,bd as R,aZ as b}from"./index.js";import{e as M}from"./index.2fb9f37c.js";const L=[{type:"selection",width:40,align:"center",fixed:"left"},{label:"\u53D1\u7968\u7F16\u7801",prop:"InvCode",width:140},{label:"\u7A0E\u524D\u91D1\u989D",prop:"invoice_total",width:100},{label:"\u7A0E\u540E\u91D1\u989D",prop:"invoice_subtotal",width:100},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:u})=>c(p,{size:u.size},{default:()=>{var t;return(t=C.find(o=>String(e.status)===String(o.value)))==null?void 0:t.label}})},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",width:145,...d("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:145,...d("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u53D1\u7968\u7C7B\u578B",width:185,cellRenderer({row:e}){return c(p,null,{default:()=>{var u;return((u=F.find(({value:t})=>t===e.invoice_type))==null?void 0:u.label)||"--"}})}},{label:"\u53D1\u7968\u53F7\u7801",width:110,prop:"invoice_number"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:150,formatter:({addtime:e})=>B(e).format("YYYY-MM-DD HH:mm:ss")}],P={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:L,apis:{httpList:M}},v={formItems:[]},Y=y({__name:"index",props:{visible:{type:Boolean,required:!0}},emits:["submit"],setup(e,{emit:u}){const t=e,o=x([]),a=k(t,"visible"),g={pageSearchHook:()=>R(void 0,void 0,v)};async function h(){if(o.value.length===0){b.warning("\u8BF7\u9009\u62E9\u4E00\u6761\u6570\u636E");return}if(o.value.length>1){b.warning("\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E");return}a.value=!1,u("submit",o.value[0])}return(H,n)=>{const D=i("ElButton"),E=i("PageContainer"),_=i("ElDialog");return m(),f(_,{"close-on-click-modal":!1,"close-on-press-escape":!1,title:"\u9009\u62E9\u8FDB\u9879\u53D1\u7968",modelValue:s(a),"onUpdate:modelValue":n[1]||(n[1]=l=>S(a)?a.value=l:null),top:"10px",center:""},{default:r(()=>[s(a)?(m(),f(E,{key:0,hooks:g,notice:!1,"search-config":s(v),"content-config":s(P),onContentSelectChange:n[0]||(n[0]=l=>o.value=l)},{search_action:r(()=>[N(D,{type:"primary",onClick:h},{default:r(()=>[V(" \u4FDD\u5B58 ")]),_:1})]),_:1},8,["search-config","content-config"])):A("v-if",!0)]),_:1},8,["modelValue"])}}});var j=w(Y,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchase/ticketReturn/components/choose-invoice-modal/index.vue"]]);export{j as default};
|