1 |
- import{a7 as t,bq as i,_ as v,d as D,bs as y,m as A,w as g,r as x,o as f,A as _,x as m,h as d,a as h,e as b,f as E,bu as N,H as V,ac as z,bt as O}from"./index.js";import{c as C,x as k}from"./status.b7512d56.js";import{c as G,t as M,s as j,m as q,a as F}from"./shared.110b48c6.js";import{c as o}from"./tootip.c6ca5db9.js";import{B as I}from"./basic-descriptions.e6b0a528.js";const S=[{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=C.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}],Q=[{field:"invoiceCode",label:"\u4E1A\u52A1\u7F16\u53F7",span:6},{label:"\u5BFC\u5165\u65B9\u5F0F",width:100,render(a,u){return t(i,{type:"primary",size:"small"},{default:()=>{var e;return(e=G.find(l=>l.value==u.channel))==null?void 0:e.label}})}},{label:"\u7C7B\u578B",span:6,render(a,u){return t(i,{type:"primary",size:"small"},{default:()=>{var e;return(e=M.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=j.find(l=>l.value==u.source))==null?void 0:e.label}})}},{label:"\u4E1A\u52A1\u7C7B\u578B",span:6,render(a,u){var e;return(e=q.find(l=>l.value==u.manager_status))==null?void 0:e.label}},{label:"\u5173\u8054\u91D1\u989D",span:6,field:"inv_fee"},{label:"\u521B\u5EFA\u4EBA",span:6,field:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",span:6,field:"create_time"},{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:"\u5907\u6CE8",span:12,field:"remark"},{label:"\u5165\u8D26\u6708\u4EFD",span:6,field:"fz_date"},{label:"\u72B6\u6001",span:6,render(a,u){var e;return t(i,{type:(e=F.find(l=>l.value==u.status))==null?void 0:e.type,size:"small"},{default:()=>{var l;return(l=F.find(n=>n.value==u.status))==null?void 0:l.label}})}},{label:"\u5F02\u5E38\u539F\u56E0",span:12}],W=[{label:"\u8BA2\u5355\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:"\u8BA2\u5355\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:"\u7C7B\u76EE\u7F16\u7801",span:12,render(a,{cat_code:u,cat_name:e,tax:l}){return`${u}-${e}-${Number(l)+"%"}`}},{label:"\u5546\u54C1\u7C7B\u578B",span:6,render(a,{goodType:u}){return t(i,{size:"small"},{default:()=>{var e;return(e=C.find(l=>l.value==u))==null?void 0:e.label}})}},{label:"\u5546\u54C1\u7F16\u53F7",span:6,field:"goodNo"},{label:"\u5546\u54C1\u540D\u79F0",span:12,field:"goodName"},{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}],X=[{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",span:12,render(a,u){return o(u.inv_buyer_name,"\u8D2D\u4E70\u65B9\u516C\u53F8\u7EB3\u7A0E\u8BC6\u522B\u53F7 : "+u.inv_buyer_code,340)}},{label:"\u9500\u552E\u65B9\u516C\u53F8",span:12,render(a,u){return o(u.inv_seller_name,"\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u8BC6\u522B\u53F7 : "+u.inv_seller_code,340)}},{label:"\u53D1\u7968\u53F7\u7801",field:"inv_number",span:6},{label:"\u5F00\u7968\u65E5\u671F",field:"inv_open_date",span:6},{label:"\u53D1\u7968\u7C7B\u578B",span:6,render(a,u){var e;return(e=k.find(l=>l.value==u.inv_type))==null?void 0:e.label}},{label:"\u53D1\u7968\u660E\u7EC6ID",field:"inv_item_id",span:6},{label:"\u8D27\u7269\u6216\u5E94\u7A0E\u52B3\u52A1\u3001\u670D\u52A1\u540D\u79F0",field:"inv_good_name",span:12},{label:"\u7C7B\u76EE\u7F16\u53F7",span:6,render(a,u){return u.inv_cat_code}},{label:"\u89C4\u683C\u578B\u53F7",span:6,field:"inv_spec"},{label:"\u5355\u4F4D",span:6,field:"inv_unit"},{label:"\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:"\u7A0E\u7387",span:6,field:"inv_tax",render(a,{inv_tax:u}){return Number(u)+"%"}},{span:6,label:"\u7A0E\u989D",field:"inv_tax_total"},{label:"\u7A0E\u540E\u5355\u4EF7",span:6,field:"inv_price"},{label:"\u7A0E\u540E\u603B\u989D",span:6,field:"inv_subtotal"}],T={class:"flex justify-between mt-[10px]"},$={class:"flex items-center"},P=D({__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=y(e,"visible"),r=A(0);g(()=>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 B=x("ElButton");return f(),_(d(O),{modelValue:d(n),"onUpdate:modelValue":s[1]||(s[1]=p=>z(n)?n.value=p:null),title:"\u7F16\u8F91\u5546\u54C1",center:""},{default:m(()=>[e.data?(f(),_(d(I),{key:0,style:{overflow:"hidden"},data:e.data,columns:d(S)},null,8,["data","columns"])):h("v-if",!0),b("div",T,[b("div",$,[s[2]||(s[2]=b("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(B,{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/inManager/components/ChildGoodEditModal.vue"]]),Y=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"}));export{U as C,X as a,Y as b,W as i,Q as o};
|