1 |
- import{a1 as n,aP as v,aJ as B,J as D,aQ as i,_ as y,d as A,aR as g,w as x,z as N,r as V,o as _,G as b,C as m,l as d,a as h,h as f,j as E,aG as k,M as z,a6 as M,aS as O}from"./index.js";import{c as G,x as j}from"./status.21dece30.js";import{t as P,s as S,a as c,m as I}from"./shared.2f92e8a7.js";import{B as T}from"./basic-descriptions.d643872c.js";function o(l,u,e=200){return n("div",{style:{display:"flex",justifyContent:"space-between"}},{default:()=>[n("span",null,l),n(v,{placement:"top",content:u,width:e},{reference:()=>n(B,{link:!0,icon:D("information-line")})})]})}const q=[{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(l,{good_type:u}){return n(i,{size:"small"},{default:()=>{var e;return((e=G.find(a=>a.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}],W=[{field:"invoiceCode",label:"\u4E1A\u52A1\u7F16\u53F7",span:12},{label:"\u7C7B\u578B",span:6,render(l,u){return n(i,{type:"primary",size:"small"},{default:()=>{var e;return(e=P.find(a=>a.value==u.type))==null?void 0:e.label}})}},{label:"\u6570\u636E\u6765\u6E90",span:6,render(l,u){return n(i,{type:"primary",size:"small"},{default:()=>{var e;return(e=S.find(a=>a.value==u.source))==null?void 0:e.label}})}},{label:"\u72B6\u6001",span:6,render(l,u){var e;return n(i,{type:(e=c.find(a=>a.value==u.status))==null?void 0:e.type,size:"small"},{default:()=>{var a;return(a=c.find(t=>t.value==u.status))==null?void 0:a.label}})}},{label:"\u5F02\u5E38\u539F\u56E0",span:18},{label:"\u9500\u552E\u65B9\u516C\u53F8",span:12,render(l,u){return o(u.seller_name,"\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u8BC6\u522B\u53F7 : "+u.seller_code,340)}},{label:"\u8BA2\u5355\u7F16\u53F7",field:"orderCode",span:6},{label:"\u8BA2\u5355\u4E3B\u7F16\u53F7",field:"cxCode",span:6},{label:"\u5546\u54C1\u540D\u79F0",span:12,render(l,u){return o(u.goodName,"\u5546\u54C1\u7F16\u53F7 : "+u.goodNo,340)}},{label:"\u5355\u4F4D",field:"unit",span:6},{label:"\u5546\u54C1\u6570\u91CF",field:"num",span:6},{label:"\u5546\u54C1\u5355\u4EF7",field:"goodPrice",span:6},{label:"\u8BA2\u5355\u603B\u91D1\u989D",field:"totalPrice",span:6},{label:"\u7A0E\u76EE",field:"cat_code",span:6},{label:"\u7A0E\u7387",span:6,render(l,u){return Number(u.tax)*100+"%"}},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",span:12,render(l,u){return o(u.buyer_name,"\u8D2D\u4E70\u65B9\u516C\u53F8\u7EB3\u7A0E\u8BC6\u522B\u53F7 : "+u.buyer_code,340)}},{label:"\u5173\u8054\u91D1\u989D",field:"inv_fee",span:6},{label:"\u53D1\u7968\u53F7\u7801",field:"inv_number",span:6},{label:"\u53D1\u7968\u9500\u552E\u65B9\u516C\u53F8",span:12,render(l,u){return o(u.inv_seller_name,"\u53D1\u7968\u9500\u552E\u65B9\u516C\u53F8\u7F16\u53F7 : "+u.inv_seller_code,340)}},{label:"\u53D1\u7968\u660E\u7EC6ID",span:6,field:"inv_item_id"},{label:"\u53D1\u7968\u7C7B\u578B",span:6,render(l,u){var e;return(e=j.find(a=>a.value==u.inv_type))==null?void 0:e.label}},{label:"\u8D27\u7269\u6216\u5E94\u7A0E\u52B3\u52A1\u3001\u670D\u52A1\u540D\u79F0",span:12,field:"inv_good_name"},{label:"\u89C4\u683C\u578B\u53F7",span:6,field:"inv_spec"},{label:"\u53D1\u7968\u5546\u54C1\u5355\u4F4D",span:6,field:"inv_unit"},{label:"\u53D1\u7968\u5546\u54C1\u6570\u91CF",span:6,field:"inv_num"},{label:"\u7A0E\u524D\u5355\u4EF7",span:6,field:"inv_subprice"},{label:"\u7A0E\u524D\u603B\u4EF7",span:6,field:"inv_subtotal"},{label:"\u53D1\u7968\u7A0E\u7387",field:"inv_tax",span:6},{label:"\u53D1\u7968\u7A0E\u989D",field:"inv_tax_total",span:6},{label:"\u7A0E\u540E\u5355\u4EF7",field:"inv_price",span:6},{label:"\u7A0E\u540E\u5355\u4EF7",field:"inv_total",span:6},{label:"\u7C7B\u76EE\u7F16\u53F7\u72B6\u6001",span:6,render(l,u){return n(i,{size:"small",type:u.cat_diff=="0"?"danger":"success"},{default:()=>u.cat_diff=="0"?"\u4E0D\u4E00\u81F4":"\u4E00\u81F4"})}},{label:"\u7A0E\u7387\u72B6\u6001",span:6,render(l,u){return n(i,{size:"small",type:u.tax_diff=="0"?"danger":"success"},{default:()=>u.tax_diff=="0"?"\u4E0D\u4E00\u81F4":"\u4E00\u81F4"})}},{label:"\u4E1A\u52A1\u7C7B\u578B",span:6,render(l,u){var e;return(e=I.find(a=>a.value==u.manager_status))==null?void 0:e.label}},{label:"\u5907\u6CE8",span:12,field:"remark"}],R={class:"flex justify-between mt-[10px]"},U={class:"flex items-center"},w=A({__name:"ChildGoodEditModal",props:{visible:{type:Boolean,required:!0},index:{type:null,required:!0},data:{type:null,required:!0}},emits:["submit"],setup(l,{emit:u}){const e=l,a=u,t=g(e,"visible"),r=x(0);N(()=>t.value,()=>{!t.value||(r.value=e.data.goodNum)});function C(){a("submit",e.index,{...e.data,goodNum:r.value}),t.value=!1}return(Q,s)=>{const F=V("ElButton");return _(),b(d(O),{modelValue:d(t),"onUpdate:modelValue":s[1]||(s[1]=p=>M(t)?t.value=p:null),title:"\u7F16\u8F91\u5546\u54C1",center:""},{default:m(()=>[e.data?(_(),b(d(T),{key:0,style:{overflow:"hidden"},data:e.data,columns:d(q)},null,8,["data","columns"])):h("v-if",!0),f("div",R,[f("div",U,[s[2]||(s[2]=f("p",{style:{width:"110px"}},"\u64CD\u4F5C\u6570\u91CF:",-1)),E(d(k),{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=p=>r.value=p),placeholder:"\u64CD\u4F5C\u6570\u91CF"},null,8,["modelValue"])]),E(F,{type:"primary",onClick:C},{default:m(()=>s[3]||(s[3]=[z("\u4FDD\u5B58")])),_:1})])]),_:1},8,["modelValue"])}}});var J=y(w,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inOutManager/components/ChildGoodEditModal.vue"]]),X=Object.freeze(Object.defineProperty({__proto__:null,default:J},Symbol.toStringTag,{value:"Module"}));export{J as C,X as a,W as o};
|