ChildGoodEditModal.6f5322.js 5.8 KB

1
  1. import{ac as t,aY as i,_ as v,d as B,aZ as D,w as y,z as A,r as g,o as _,G as b,C as m,l as d,a as x,h as f,j as E,aO as N,M as V,ah as h,a_ as z}from"./index.js";import{c as M,x as O}from"./status.d3ab78fb.js";import{t as k,s as G,a as C,m as j}from"./shared.3ff0a9a1.js";import{c as o}from"./tootip.dc37052a.js";import{B as S}from"./basic-descriptions.e05142a3.js";const T=[{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(a,{good_type:u}){return t(i,{size:"small"},{default:()=>{var e;return((e=M.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}],J=[{field:"invoiceCode",label:"\u4E1A\u52A1\u7F16\u53F7",span:12},{label:"\u7C7B\u578B",span:6,render(a,u){return t(i,{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 t(i,{type:"primary",size:"small"},{default:()=>{var e;return(e=G.find(l=>l.value==u.source))==null?void 0:e.label}})}},{label:"\u72B6\u6001",span:6,render(a,u){var e;return t(i,{type:(e=C.find(l=>l.value==u.status))==null?void 0:e.type,size:"small"},{default:()=>{var l;return(l=C.find(n=>n.value==u.status))==null?void 0:l.label}})}},{label:"\u5F02\u5E38\u539F\u56E0",span:18},{label:"\u9500\u552E\u65B9\u516C\u53F8",span:12,render(a,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(a,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(a,u){return Number(u.tax)*100+"%"}},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",span:12,render(a,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(a,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(a,u){var e;return(e=O.find(l=>l.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(a,u){return t(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(a,u){return t(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(a,u){var e;return(e=j.find(l=>l.value==u.manager_status))==null?void 0:e.label}},{label:"\u5907\u6CE8",span:12,field:"remark"}],q={class:"flex justify-between mt-[10px]"},I={class:"flex items-center"},P=B({__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,n=D(e,"visible"),r=y(0);A(()=>n.value,()=>{!n.value||(r.value=e.data.goodNum)});function c(){l("submit",e.index,{...e.data,goodNum:r.value}),n.value=!1}return(w,s)=>{const F=g("ElButton");return _(),b(d(z),{modelValue:d(n),"onUpdate:modelValue":s[1]||(s[1]=p=>h(n)?n.value=p:null),title:"\u7F16\u8F91\u5546\u54C1",center:""},{default:m(()=>[e.data?(_(),b(d(S),{key:0,style:{overflow:"hidden"},data:e.data,columns:d(T)},null,8,["data","columns"])):x("v-if",!0),f("div",q,[f("div",I,[s[2]||(s[2]=f("p",{style:{width:"110px"}},"\u64CD\u4F5C\u6570\u91CF:",-1)),E(d(N),{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]=[V("\u4FDD\u5B58")])),_:1})])]),_:1},8,["modelValue"])}}});var U=v(P,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/outManager/components/ChildGoodEditModal.vue"]]),K=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"}));export{U as C,K as a,J as o};