1 |
- import{_ as S,d as U,m as _,aH as B,Q as M,a2 as $,r,ao as j,B as F,h as o,o as m,c as x,f as t,x as u,A as C,a1 as p,D as z,a as V,ac as H}from"./index.js";import{o as L}from"./columns.633d859e.js";import{u as O}from"./useDetail.33ec7a53.js";import{B as Q}from"./basic-descriptions.e6b0a528.js";import q from"./index.64c3fd.js";import J from"./ChildGoodEditModal.d0c9e8.js";import{h as K}from"./index.004a0bb2.js";import W from"./index.1c4000.js";import{h as X}from"./index.4109350c.js";import{P as Y}from"./index.1ed73e65.js";import"./status.b7512d56.js";import"./shared.e8e6f3b6.js";import"./tootip.c6ca5db9.js";import"./use-page-search.dfa27a70.js";import"./index.0d3e4f3d.js";import"./columns.74c15f1e.js";import"./columnRenderHelper.8411add2.js";import"./index.9ebf5a.js";import"./index.3a2f6f6a.js";import"./shared.129caa24.js";import"./index.5f93fc4f.js";import"./calc.850c7422.js";const Z={class:"padding__container"},oo=U({__name:"detail",setup(eo){const{title:N,collapses:b,id:w,isDetail:y}=O({baseName:"C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93",collapseLen:2}),g=_(!1),i=B(),h=_(!1),E=_(0),c=B(),v=M({editVisible:!1,index:-1,data:{}}),P=$(()=>({status:"1,4"})),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 A(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,D=a.childNum?Number(a.childNum)*Number(f):void 0;return{...a,goodNum:f,childActionNum:D}}return a})}function I(n,e){h.value=!0,E.value=e,c.run(X({id:n}))}return w.value&&i.run(K({id:w.value})),(n,e)=>{const d=r("ElCollapseItem"),a=r("ElButton"),f=r("ElTooltip"),D=r("ElTable"),G=r("ElCollapse"),R=r("ElDialog"),k=j("loading");return F((m(),x("div",Z,[t(G,{modelValue:o(b),"onUpdate:modelValue":e[0]||(e[0]=l=>H(b)?b.value=l:null)},{default:u(()=>[t(d,{title:o(N),name:"1"},{default:u(()=>[o(y)&&o(i).data?(m(),C(o(Q),{key:0,columns:o(L)(()=>{}),data:o(i).data},null,8,["columns","data"])):(m(),C(W,{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(D,{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})):V("v-if",!0)]),_:1},8,["modelValue"]),t(q,{otherSearchParameter:P.value,visible:g.value,"onUpdate:visible":e[1]||(e[1]=l=>g.value=l),onSubmit:T},null,8,["otherSearchParameter","visible"]),t(J,{visible:v.editVisible,"onUpdate:visible":e[2]||(e[2]=l=>v.editVisible=l),onSubmit:A,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(()=>[F((m(),x("div",null,[o(c).data?(m(),C(Y,{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"])):V("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};
|