|
|
-import{d as E,w as c,aW as D,r as l,ar as b,o as d,c as m,j as e,C as s,l as i,J as B,H as k,G as y,a as F,_ as P}from"./index.js";import{h as x}from"./index.0bffb9a0.js";import{P as T}from"./index.e2551c7f.js";const g={class:"w-full"},R=E({__name:"index",props:{ProductRela:{type:Array,required:!0}},setup(V){const p=c(!1),a=c(0),u=D();function _(t,n){p.value=!0,a.value=n,u.run(x({id:t}))}return(t,n)=>{const o=l("ElTableColumn"),v=l("ElButton"),f=l("ElTooltip"),w=l("ElTable"),C=l("ElDialog"),h=b("loading");return d(),m("div",g,[e(w,{size:"small",border:"",data:t.ProductRela},{default:s(()=>[e(o,{label:"\u5546\u54C1ID",prop:"product_id",width:"60px","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u7F16\u53F7",prop:"skuCode","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C\u6570\u91CF",prop:"num",width:"80px","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C\u4EBA",prop:"apply_name",width:"80px","show-overflow-tooltip":""}),e(o,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"100px"},{default:s(r=>[e(f,{content:"\u67E5\u770B\u8BE6\u60C5"},{default:s(()=>[e(v,{type:"primary",link:"",icon:i(B)("eye-view"),onClick:A=>_(r.row.product_id,r.$index)},null,8,["icon","onClick"])]),_:2},1024)]),_:1})]),_:1},8,["data"]),e(C,{center:"",title:"\u5546\u54C1\u8BE6\u60C5",modelValue:p.value,"onUpdate:modelValue":n[0]||(n[0]=r=>p.value=r),style:{overflow:"hidden"}},{default:s(()=>[k((d(),m("div",null,[i(u).data?(d(),y(T,{key:0,data:i(u).data,num:t.ProductRela[a.value].num,time:t.ProductRela[a.value].create_time,name:t.ProductRela[a.value].apply_name},null,8,["data","num","time","name"])):F("v-if",!0)])),[[h,i(u).loading]])]),_:1},8,["modelValue"])])}}});var U=P(R,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/components/BasicProducts/index.vue"]]);export{U as B};
|
|
|
+import{d as E,w as c,aW as D,r as l,ar as b,o as d,c as m,j as e,C as s,l as i,J as B,H as k,G as y,a as F,_ as P}from"./index.js";import{h as x}from"./index.29e355d3.js";import{P as T}from"./index.e9d91bcc.js";const g={class:"w-full"},R=E({__name:"index",props:{ProductRela:{type:Array,required:!0}},setup(V){const p=c(!1),a=c(0),u=D();function _(t,n){p.value=!0,a.value=n,u.run(x({id:t}))}return(t,n)=>{const o=l("ElTableColumn"),v=l("ElButton"),f=l("ElTooltip"),w=l("ElTable"),C=l("ElDialog"),h=b("loading");return d(),m("div",g,[e(w,{size:"small",border:"",data:t.ProductRela},{default:s(()=>[e(o,{label:"\u5546\u54C1ID",prop:"product_id",width:"60px","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u7F16\u53F7",prop:"skuCode","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C\u6570\u91CF",prop:"num",width:"80px","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C\u4EBA",prop:"apply_name",width:"80px","show-overflow-tooltip":""}),e(o,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"100px"},{default:s(r=>[e(f,{content:"\u67E5\u770B\u8BE6\u60C5"},{default:s(()=>[e(v,{type:"primary",link:"",icon:i(B)("eye-view"),onClick:A=>_(r.row.product_id,r.$index)},null,8,["icon","onClick"])]),_:2},1024)]),_:1})]),_:1},8,["data"]),e(C,{center:"",title:"\u5546\u54C1\u8BE6\u60C5",modelValue:p.value,"onUpdate:modelValue":n[0]||(n[0]=r=>p.value=r),style:{overflow:"hidden"}},{default:s(()=>[k((d(),m("div",null,[i(u).data?(d(),y(T,{key:0,data:i(u).data,num:t.ProductRela[a.value].num,time:t.ProductRela[a.value].create_time,name:t.ProductRela[a.value].apply_name},null,8,["data","num","time","name"])):F("v-if",!0)])),[[h,i(u).loading]])]),_:1},8,["modelValue"])])}}});var U=P(R,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/components/BasicProducts/index.vue"]]);export{U as B};
|