import{ac as o,aZ as d,_ as B,d as v,a_ as y,w as D,z as g,r as x,o as m,G as f,C as b,l as n,a as V,h as p,j as c,aO as h,M as A,ah as O,a$ as z}from"./index.js";import{c as N,u as M}from"./status.0f771e9a.js";import{t as k,s as G,m as j,a as C}from"./shared.e62a6d9e.js";import{c as _}from"./tootip.51743c5b.js";import{B as w}from"./basic-descriptions.1a629879.js";const T=[{span:8,field:"orderCode",label:"\u786E\u8BA4\u5355\u7F16\u53F7"},{span:8,field:"cxCode",label:"\u9500\u552E\u4E3B\u5355\u53F7"},{span:12,field:"buyer_name",label:"\u8D2D\u4E70\u65B9\u516C\u53F8"},{span:12,field:"goodName",label:"\u8BA2\u5355\u5546\u54C1\u540D\u79F0"},{span:12,field:"inv_good_name",label:"\u53D1\u7968\u5546\u54C1\u540D\u79F0"},{span:6,label:"\u5546\u54C1\u7C7B\u578B",render(a,{good_type:u}){return o(d,{size:"small"},{default:()=>{var e;return((e=N.find(l=>l.value==u))==null?void 0:e.label)||"--"}})}},{span:6,field:"good_code",label:"\u5546\u54C1\u4EE3\u7801"},{span:6,field:"spec",label:"\u89C4\u683C"},{span:6,field:"unit",label:"\u5355\u4F4D"},{span:6,field:"unit_price",label:"\u7A0E\u524D\u5355\u4EF7"},{span:6,field:"subunit_price",label:"\u7A0E\u540E\u5355\u4EF7"},{span:6,field:"unit_weight",label:"\u91CD\u91CF"},{span:6,field:"spectral",label:"\u5206\u5149"},{field:"cat_name",label:"\u8FDB\u9879\u7C7B\u76EE",span:24}],K=[{span:6,field:"orderCode",label:"\u786E\u8BA4\u5355\u7F16\u53F7"},{span:6,field:"cxCode",label:"\u9500\u552E\u4E3B\u5355\u53F7"},{label:"\u7C7B\u578B",span:6,render(a,u){return o(d,{type:"primary",size:"small"},{default:()=>{var e;return(e=k.find(l=>l.value==u.type))==null?void 0:e.label}})}},{label:"\u6570\u636E\u6765\u6E90",span:6,render(a,u){return o(d,{type:"primary",size:"small"},{default:()=>{var e;return(e=G.find(l=>l.value==u.source))==null?void 0:e.label}})}},{span:12,label:"\u9500\u552E\u65B9\u516C\u53F8",render(a,u){return _(u.seller_name,"\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:"+u.seller_code)}},{span:12,label:"\u8D2D\u4E70\u65B9\u516C\u53F8",render(a,u){return _(u.buyer_name,"\u8D2D\u4E70\u65B9\u516C\u53F8\u7F16\u53F7:"+u.buyer_code)}},{span:6,label:"\u4E1A\u52A1\u7C7B\u578B",render(a,u){var e;return(e=j.find(l=>l.value==u.manager_status))==null?void 0:e.label}},{span:6,label:"\u5E73\u53F0\u7C7B\u578B",render(a,u){return o(d,{size:"small"},{default:()=>{var e;return((e=M.find(l=>l.value==u.platform_type))==null?void 0:e.label)||"--"}})}},{label:"\u51FA\u5E93\u65F6\u95F4",span:6,field:"fz_date"},{span:6,label:"\u5E73\u53F0\u8BA2\u5355\u53F7",field:"poCode"},{label:"\u72B6\u6001",span:6,render(a,u){var e;return o(d,{type:(e=C.find(l=>l.value==u.status))==null?void 0:e.type,size:"small"},{default:()=>{var l;return(l=C.find(t=>t.value==u.status))==null?void 0:l.label}})}},{label:"\u5F02\u5E38\u539F\u56E0",span:18}],S={class:"flex justify-between mt-[10px]"},q={class:"flex items-center"},U=v({__name:"ChildGoodEditModal",props:{visible:{type:Boolean,required:!0},index:{type:null,required:!0},data:{type:null,required:!0}},emits:["submit"],setup(a,{emit:u}){const e=a,l=u,t=y(e,"visible"),r=D(0);g(()=>t.value,()=>{!t.value||(r.value=e.data.goodNum)});function E(){l("submit",e.index,{...e.data,goodNum:r.value}),t.value=!1}return($,s)=>{const F=x("ElButton");return m(),f(n(z),{modelValue:n(t),"onUpdate:modelValue":s[1]||(s[1]=i=>O(t)?t.value=i:null),title:"\u7F16\u8F91\u5546\u54C1",center:""},{default:b(()=>[e.data?(m(),f(n(w),{key:0,style:{overflow:"hidden"},data:e.data,columns:n(T)},null,8,["data","columns"])):V("v-if",!0),p("div",S,[p("div",q,[s[2]||(s[2]=p("p",{style:{width:"110px"}},"\u64CD\u4F5C\u6570\u91CF:",-1)),c(n(h),{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=i=>r.value=i),placeholder:"\u64CD\u4F5C\u6570\u91CF"},null,8,["modelValue"])]),c(F,{type:"primary",onClick:E},{default:b(()=>s[3]||(s[3]=[A("\u4FDD\u5B58")])),_:1})])]),_:1},8,["modelValue"])}}});var I=B(U,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/components/ChildGoodEditModal.vue"]]),L=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"}));export{I as C,L as a,K as o};
