1 |
- import{_ as S,d as U,w as _,aY as F,W as j,a7 as M,r,at as $,H as B,l as o,o as m,c as x,j as t,C as u,G as C,aN as p,J as z,a as N,ah as H}from"./index.js";import{o as J}from"./columns.77429d4b.js";import{u as L}from"./useDetail.4d3c165e.js";import{B as O}from"./basic-descriptions.c79c2d96.js";import W from"./index.23a090.js";import Y from"./ChildGoodEditModal.d0c9e8.js";import{h as q}from"./index.0b63e24d.js";import K from"./index.26a26c.js";import{h as Q}from"./index.c69c629a.js";import{P as X}from"./index.8e09a6fa.js";import"./status.b7512d56.js";import"./shared.a743a5f7.js";import"./tootip.4c68c02b.js";import"./use-page-search.ccdda2cc.js";import"./index.3df46f90.js";import"./columns.f9aa8f9a.js";import"./columnRenderHelper.e2cf0def.js";import"./index.c48d03.js";import"./index.fa2d778e.js";import"./index.49a440d7.js";import"./calc.850c7422.js";const Z={class:"padding__container"},oo=U({__name:"detail",setup(eo){const{title:V,collapses:b,id:D,isDetail:y}=L({baseName:"C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93",collapseLen:2}),g=_(!1),i=F(),h=_(!1),E=_(0),c=F(),v=j({editVisible:!1,index:-1,data:{}}),P=M(()=>({status:"1"})),s=_({goods:[],month:""});function T(n){const e=s.value.goods.map(({id:a})=>a),d=n.filter(a=>!e.includes(a.id));s.value.goods=[...d,...s.value.goods]}function G(n,e){const{id:d}=s.value.goods[n];s.value.goods=s.value.goods.map(a=>{if(a.id===d){const f=e.goodNum,w=a.childNum?Number(a.childNum)*Number(f):void 0;return{...a,goodNum:f,childActionNum:w}}return a})}function I(n,e){h.value=!0,E.value=e,c.run(Q({id:n}))}return D.value&&i.run(q({id:D.value})),(n,e)=>{const d=r("ElCollapseItem"),a=r("ElButton"),f=r("ElTooltip"),w=r("ElTable"),A=r("ElCollapse"),R=r("ElDialog"),k=$("loading");return B((m(),x("div",Z,[t(A,{modelValue:o(b),"onUpdate:modelValue":e[0]||(e[0]=l=>H(b)?b.value=l:null)},{default:u(()=>[t(d,{title:o(V),name:"1"},{default:u(()=>[o(y)&&o(i).data?(m(),C(o(O),{key:0,columns:o(J)(()=>{}),data:o(i).data},null,8,["columns","data"])):(m(),C(K,{key:1}))]),_:1},8,["title"]),o(i).data&&o(i).data.status!="1"?(m(),C(d,{key:0,title:"\u5546\u54C1\u4FE1\u606F",name:"2"},{default:u(()=>[t(w,{size:"small",border:"",data:o(i).data.ProductRela},{default:u(()=>[t(o(p),{label:"\u5546\u54C1ID",prop:"product_id",width:"60px","show-overflow-tooltip":""}),t(o(p),{label:"\u5546\u54C1\u7F16\u53F7",prop:"skuCode","show-overflow-tooltip":""}),t(o(p),{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName","show-overflow-tooltip":""}),t(o(p),{label:"\u64CD\u4F5C\u6570\u91CF",prop:"num","show-overflow-tooltip":""}),t(o(p),{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),t(o(p),{label:"\u64CD\u4F5C",width:"100px"},{default:u(l=>[t(f,{content:"\u67E5\u770B\u8BE6\u60C5"},{default:u(()=>[t(a,{type:"primary",link:"",icon:o(z)("eye-view"),onClick:to=>I(l.row.product_id,l.$index)},null,8,["icon","onClick"])]),_:2},1024)]),_:1})]),_:1},8,["data"])]),_:1})):N("v-if",!0)]),_:1},8,["modelValue"]),t(W,{otherSearchParameter:P.value,visible:g.value,"onUpdate:visible":e[1]||(e[1]=l=>g.value=l),onSubmit:T},null,8,["otherSearchParameter","visible"]),t(Y,{visible:v.editVisible,"onUpdate:visible":e[2]||(e[2]=l=>v.editVisible=l),onSubmit:G,index:v.index,data:v.data},null,8,["visible","index","data"]),t(R,{center:"",title:"\u5546\u54C1\u8BE6\u60C5",modelValue:h.value,"onUpdate:modelValue":e[3]||(e[3]=l=>h.value=l),style:{overflow:"hidden"}},{default:u(()=>[B((m(),x("div",null,[o(c).data?(m(),C(X,{key:0,data:o(c).data,num:o(i).data.ProductRela[E.value].num,name:o(i).data.ProductRela[E.value].apply_name},null,8,["data","num","name"])):N("v-if",!0)])),[[k,o(c).loading]])]),_:1},8,["modelValue"])])),[[k,o(i).loading]])}}});var Fo=S(oo,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/detail.vue"]]);export{Fo as default};
|