1 |
- import{ac as i,aY as p,_ as x,d as D,aZ as k,n as O,w as P,r as b,o as f,G as C,C as h,l as o,a as M,j as V,M as z,ah as I,a_ as N,az as R}from"./index.js";import{u as S}from"./use-page-search.0088a7fd.js";import{a as L}from"./index.f515ddec.js";import{u as T}from"./status.4e0ebdbc.js";import{r as d}from"./columnRenderHelper.e53c11ea.js";const B=[{value:"1",label:"\u5165\u5E93"},{value:"2",label:"\u51FA\u5E93"},{value:"3",label:"\u5165\u5E93\u7EA2\u51B2"},{value:"4",label:"\u51FA\u5E93\u7EA2\u51B2"}];B.reduce((u,e)=>({...u,[e.label]:e.value}),{});const j=[{value:"1",label:"\u91C7\u9500\u7ED3\u7B97"},{value:"2",label:"\u7EBF\u4E0B\u8BA2\u5355"}];j.reduce((u,e)=>({...u,[e.label]:e.value}),{});const v=[{value:"1",label:"\u5F85\u5904\u7406",type:"warning"},{value:"2",label:"\u5904\u7406\u5B8C\u6210",type:"success"}],U=[{width:40,type:"selection",fixed:"left"},{label:"\u786E\u8BA4\u5355\u7F16\u53F7",prop:"orderCode",width:150},{label:"\u9500\u552E\u4E3B\u5355\u53F7",prop:"cxCode",width:150},{label:"\u4E1A\u52A1\u7C7B\u578B",prop:"type",width:80,cellRenderer({row:u}){return i(p,{size:"small"},{default:()=>{var e;return((e=B.find(t=>t.value==u.type))==null?void 0:e.label)||"--"}})}},{label:"\u72B6\u6001",width:90,cellRenderer({row:u}){var e;return i(p,{size:"small",type:((e=v.find(t=>t.value==u.status))==null?void 0:e.type)||"warning"},{default:()=>{var t;return((t=v.find(s=>s.value==u.status))==null?void 0:t.label)||"--"}})}},{label:"\u5F02\u5E38\u539F\u56E0",width:120,prop:"error_remark"},{label:"\u5E73\u53F0\u8BA2\u5355\u53F7",prop:"poCode",width:100},{label:"\u5E73\u53F0\u7C7B\u578B",width:80,cellRenderer({row:u}){return i(p,{size:"small"},{default:()=>{var e;return((e=T.find(t=>t.value==u.platform_type))==null?void 0:e.label)||"--"}})}},{label:"\u5356\u51FA\u65B9\u516C\u53F8",width:160,...d("seller_code","seller_name","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u53F7\uFF1A")},{label:"\u5BA2\u6237\u516C\u53F8",width:160,...d("buyer_code","buyer_name","\u5BA2\u6237\u516C\u53F8\u7F16\u53F7:")},{label:"\u5546\u54C1\u540D\u79F0",width:160,...d("goodNo","goodName","\u5546\u54C1\u7F16\u53F7:")},{label:"\u4E0B\u5355\u6570\u91CF",prop:"num",width:100},{label:"\u9500\u552E\u5355\u4EF7",prop:"goodPrice",width:100},{label:"\u9500\u552E\u5408\u8BA1",prop:"totalPrice",width:100},{label:"\u51FA\u5E93\u65F6\u95F4",prop:"fz_date",width:100},{label:"\u64CD\u4F5C",fixed:"right",width:50,slot:"operation"}],q={columns:U,permissions:["007"],apis:{httpList:(u={})=>L({...u,channel:"3"}),httpAdd:!0}},E={formItems:[{field:"timer",type:"date_picker",span:7,label:"\u521B\u5EFA\u65F6\u95F4",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}}]},G=D({__name:"index",props:{visible:{type:Boolean,required:!0}},emits:["submit"],setup(u,{emit:e}){const t=u,s=e,a=k(t,"visible"),c=O(),g={pageSearchHook:()=>S(void 0,void 0,E)},n=P([]),w={content:{preview:({id:m})=>c.push("/invoiceInOut/productManagerDetail?id="+m),create:()=>c.push("/invoiceInOut/productManagerDetail")}};function A(){if(n.value.length===0){R.warning("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u8BA2\u5355");return}a.value=!1,s("submit",n.value)}return(m,l)=>{const _=b("PageContainer"),y=b("ElButton");return f(),C(o(N),{class:"relative",modelValue:o(a),"onUpdate:modelValue":l[1]||(l[1]=r=>I(a)?a.value=r:null),title:"\u9009\u62E9C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355",center:"",top:"10px"},{default:h(()=>[o(a)?(f(),C(_,{key:0,hooks:g,events:w,searchConfig:o(E),contentConfig:o(q),isPageStart:!0,onContentSelectChange:l[0]||(l[0]=r=>n.value=r.map(F=>({...F,child_num:"1",child_id:F.id})))},null,8,["searchConfig","contentConfig"])):M("v-if",!0),V(y,{class:"absolute bottom-[30px] right-[20px]",type:"primary",onClick:A},{default:h(()=>l[2]||(l[2]=[z("\u4FDD\u5B58 ")])),_:1})]),_:1},8,["modelValue"])}}});var Q=x(G,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/components/ChooseOrderModal/index.vue"]]);export{Q as default};
|