1 |
- import{a7 as n,bq as _,a1 as t,bm as D,D as A,a0 as y,_ as w,d as h,bs as x,m as g,w as N,r as O,o as f,A as m,x as C,h as i,a as T,e as b,f as F,bu as V,H as k,ac as z,bt as G}from"./index.js";import{c as B,x as I}from"./status.b7512d56.js";import{s as E}from"./shared.d9aac3ad.js";import{c as d}from"./tootip.c6ca5db9.js";import{B as j}from"./basic-descriptions.e6b0a528.js";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(s,{good_type:e}){return n(_,{size:"small"},{default:()=>{var u;return((u=B.find(l=>l.value==e))==null?void 0:u.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:"num",label:"\u8BA1\u63D0\u6570\u91CF",span:6},{field:"out_fee",label:"\u8BA1\u63D0\u91D1\u989D",span:6},{span:6,label:"\u72B6\u6001",render(s,{status:e}){var u;return n(_,{size:"small",type:(u=E.find(l=>l.value==e))==null?void 0:u.type},{default:()=>{var l;return(l=E.find(a=>a.value==e))==null?void 0:l.label}})}},{span:6,label:"\u662F\u5426\u52A0\u5165\u8C03\u6574\u5355",render(s,{is_checkOrder:e}){return e==0?"\u5426":"\u662F"}},{span:6,label:"\u521B\u5EFA\u4EBA",field:"apply_name"},{span:6,label:"\u521B\u5EFA\u65F6\u95F4",field:"create_time"},{span:6,label:"\u64CD\u4F5C\u65F6\u95F4",field:"update_time"}],W=s=>[{label:"\u8BA2\u5355\u8D2D\u4E70\u65B9\u516C\u53F8",span:12,render(e,u){return d(u.buyer_code,"\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(e,u){return d(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(e,{cat_code:u,cat_name:l,tax:a}){return`${u}-${l}-${Number(a)+"%"}`}},{label:"\u5546\u54C1\u7C7B\u578B",span:6,render(e,{goodType:u}){return n(_,{size:"small"},{default:()=>{var l;return(l=B.find(a=>a.value==u))==null?void 0:l.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},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",span:12,render(e,u){return d(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(e,u){return d(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(e,u){var l;return(l=I.find(a=>a.value==u.inv_type))==null?void 0:l.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(e,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(e,{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"},{label:"\u51FA\u5E93\u5546\u54C1",span:24,render(e,{Manager:u}){return n(y,{size:"small",border:!0,style:{width:"100 %"},data:(u==null?void 0:u.ProductRela)||[]},[n(t,{prop:"product_id",label:"ID",width:"60px",showOverflowTooltip:!0}),n(t,{prop:"skuCode",label:"\u5546\u54C1\u7F16\u53F7",showOverflowTooltip:!0}),n(t,{prop:"goodName",label:"\u5546\u54C1\u540D\u79F0",showOverflowTooltip:!0}),n(t,{prop:"num",label:"\u64CD\u4F5C\u6570\u91CF",showOverflowTooltip:!0}),n(t,{prop:"apply_name",label:"\u64CD\u4F5C\u4EBA",showOverflowTooltip:!0}),n(t,{prop:"create_time",label:"\u521B\u5EFA\u65F6\u95F4",showOverflowTooltip:!0}),n(t,{label:"\u64CD\u4F5C",showOverflowTooltip:!0},{default:({row:l,$index:a})=>n(D,{onClick:()=>s(l.product_id,a),icon:A("eye-view"),type:"primary",size:"small",link:!0})})])}}],P={class:"flex justify-between mt-[10px]"},$={class:"flex items-center"},R=h({__name:"ChildGoodEditModal",props:{visible:{type:Boolean,required:!0},index:{type:null,required:!0},data:{type:null,required:!0}},emits:["submit"],setup(s,{emit:e}){const u=s,l=e,a=x(u,"visible"),r=g(0);N(()=>a.value,()=>{!a.value||(r.value=u.data.goodNum)});function c(){l("submit",u.index,{...u.data,goodNum:r.value}),a.value=!1}return(U,o)=>{const v=O("ElButton");return f(),m(i(G),{modelValue:i(a),"onUpdate:modelValue":o[1]||(o[1]=p=>z(a)?a.value=p:null),title:"\u7F16\u8F91\u5546\u54C1",center:""},{default:C(()=>[u.data?(f(),m(i(j),{key:0,style:{overflow:"hidden"},data:u.data,columns:i(q)},null,8,["data","columns"])):T("v-if",!0),b("div",P,[b("div",$,[o[2]||(o[2]=b("p",{style:{width:"110px"}},"\u5173\u8054\u6570\u91CF:",-1)),F(i(V),{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=p=>r.value=p),placeholder:"\u64CD\u4F5C\u6570\u91CF"},null,8,["modelValue"])]),F(v,{type:"primary",onClick:c},{default:C(()=>o[3]||(o[3]=[k("\u4FDD\u5B58")])),_:1})])]),_:1},8,["modelValue"])}}});var S=w(R,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/provisionOut/components/ChildGoodEditModal.vue"]]),X=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"}));export{S as C,X as a,W as i,Q as o};
|