1 |
- import{a1 as c,aO as m,_ as y,d as D,aP as k,n as x,w as P,r as C,o as h,G as f,C as g,l,a as M,j as A,M as O,a6 as V,aQ as N,aq as S}from"./index.js";import{h as I,u as R}from"./index.384d251b.js";import{c as G,a as b,g as L}from"./status.915de772.js";const T=[{width:40,type:"selection",fixed:"left"},{label:"\u5546\u54C1\u7F16\u7801",prop:"skuCode",width:150},{label:"\u9500\u552E\u65B9\u516C\u53F8",prop:"seller_name",width:160},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",prop:"buyer_name",width:160},{label:"\u5546\u54C1\u7C7B\u578B",width:100,cellRenderer({row:e}){return c(m,{size:"small"},{default:()=>{var u;return((u=G.find(t=>t.value==e.good_type))==null?void 0:u.label)||"--"}})}},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:150},{label:"\u89C4\u683C",prop:"spec",width:80},{label:"\u5355\u4F4D",prop:"unit",width:80},{label:"\u72B6\u6001",prop:"status",width:80,cellRenderer({row:e}){var u;return c(m,{size:"small",type:((u=b.find(t=>t.value==e.status))==null?void 0:u.type)||"warning"},{default:()=>{var t;return((t=b.find(n=>n.value==e.status))==null?void 0:t.label)||"--"}})}},{label:"\u7A0E\u524D\u5355\u4EF7",prop:"subunit_price",width:100},{label:"\u7A0E\u540E\u5355\u4EF7",prop:"unit_price",width:100},{label:"\u91CD\u91CF",prop:"unit_weight",width:80},{label:"\u5206\u5149",prop:"spectral",width:80},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",width:140}],j={columns:T,apis:{httpList:(e={})=>I({...e,is_combind:"0"})}},_={formItems:[{field:"skuCode",type:"input",placeholder:"\u5546\u54C1\u7F16\u7801"},{field:"good_type",type:"select",options:L,placeholder:"\u5546\u54C1\u7C7B\u578B"},{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"}}]},q=D({__name:"index",props:{visible:{type:Boolean,required:!0}},emits:["submit"],setup(e,{emit:u}){const t=e,n=u,a=k(t,"visible"),p=x(),F={pageSearchHook:()=>R(void 0,void 0,_)},i=P([]),v={content:{preview:({id:s})=>p.push("/invoiceInOut/productManagerDetail?id="+s),create:()=>p.push("/invoiceInOut/productManagerDetail")}};function w(){if(i.value.length===0){S.warning("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u5B50\u5546\u54C1");return}a.value=!1,n("submit",i.value.map(s=>({...s,goodNum:0})))}return(s,o)=>{const E=C("PageContainer"),B=C("ElButton");return h(),f(l(N),{class:"relative",modelValue:l(a),"onUpdate:modelValue":o[1]||(o[1]=r=>V(a)?a.value=r:null),title:"\u9009\u62E9\u5546\u54C1",center:"",top:"10px"},{default:g(()=>[l(a)?(h(),f(E,{key:0,hooks:F,events:v,searchConfig:l(_),contentConfig:l(j),isPageStart:!0,onContentSelectChange:o[0]||(o[0]=r=>i.value=r.map(d=>({...d,child_num:"1",child_id:d.id})))},null,8,["searchConfig","contentConfig"])):M("v-if",!0),A(B,{class:"absolute bottom-[30px] right-[20px]",type:"primary",onClick:w},{default:g(()=>o[2]||(o[2]=[O("\u4FDD\u5B58 ")])),_:1})]),_:1},8,["modelValue"])}}});var Q=y(q,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inOutManager/components/ChooseGoodModal/index.vue"]]);export{Q as default};
|