1 |
- import{a1 as _,aO as b,_ as v,d as E,aP as B,w as D,z as F,r as y,o as r,G as p,C as m,l as a,a as g,h as d,j as f,aG as x,M as V,a6 as h,aQ as w}from"./index.js";import{c as M}from"./status.915de772.js";import{B as N}from"./basic-descriptions.2bd5636f.js";const G=[{span:12,field:"seller_name",label:"\u9500\u552E\u65B9\u516C\u53F8"},{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(i,{good_type:o}){return _(b,{size:"small"},{default:()=>{var e;return((e=M.find(s=>s.value==o))==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}],U=[],k={class:"flex justify-between mt-[10px]"},j={class:"flex items-center"},O=E({__name:"ChildGoodEditModal",props:{visible:{type:Boolean,required:!0},index:{type:null,required:!0},data:{type:null,required:!0}},emits:["submit"],setup(i,{emit:o}){const e=i,s=o,l=B(e,"visible"),t=D(0);F(()=>l.value,()=>{!l.value||(t.value=e.data.goodNum)});function c(){s("submit",e.index,{...e.data,goodNum:t.value}),l.value=!1}return(z,u)=>{const C=y("ElButton");return r(),p(a(w),{modelValue:a(l),"onUpdate:modelValue":u[1]||(u[1]=n=>h(l)?l.value=n:null),title:"\u7F16\u8F91\u5546\u54C1",center:""},{default:m(()=>[e.data?(r(),p(a(N),{key:0,style:{overflow:"hidden"},data:e.data,columns:a(G)},null,8,["data","columns"])):g("v-if",!0),d("div",k,[d("div",j,[u[2]||(u[2]=d("p",{style:{width:"110px"}},"\u64CD\u4F5C\u6570\u91CF:",-1)),f(a(x),{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=n=>t.value=n),placeholder:"\u64CD\u4F5C\u6570\u91CF"},null,8,["modelValue"])]),f(C,{type:"primary",onClick:c},{default:m(()=>u[3]||(u[3]=[V("\u4FDD\u5B58")])),_:1})])]),_:1},8,["modelValue"])}}});var q=v(O,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inOutManager/components/ChildGoodEditModal.vue"]]),I=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"}));export{q as C,I as a,U as o};
|