moreShopAdmin/dist/admin/assets/details11.d138100a.js

2 lines
5.4 KiB
JavaScript

import{a0 as A,a1 as I,x as R,y as q,b as O,M as W,N as z,g as M}from"./element-plus.4a7d92a3.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as Z}from"./usePaging.6a6670f9.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import{r as $}from"./index.b17b0724.js";import{d as x,s as G,r as p,Z as F,o as D,c as V,U as e,L as t,u as l,j as h,R as k,S as E,a as H,Q as J}from"./@vue.18505fe0.js";import"./lodash.9dc701ad.js";import{d as K}from"./system_store.0064c44e.js";import{a as X}from"./warehouse_product_storege.cc8d987c.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";function Y(v){return $.get({url:"/store_product_attr_value/storeproductattrvalue/lists",params:v})}const ee={class:"edit-popup"},oe={style:{"white-space":"pre"}},te={key:0,class:"flex mt-4 justify-end"},ae=x({name:"storeProductDETAILS"}),ze=x({...ae,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(v,{expose:B,emit:le}){G(),p("add");const C=p([]),n=p(!1),m=p("first"),P=s=>{s.paneName=="second"&&_(),s.paneName=="warehouse"&&N()},r=F({id:"",image:"",store_name:"",bar_code:"",cate_id:"",cate_name:"",price:"",unit:"",unit_name:"",stock:"",cost:"",purchase:"",rose:"0",manufacturer_information:""}),y=async s=>{d.product_id=s.id,m.value=="second"&&_();for(const a in r)s[a]!=null&&s[a]!=null&&(r[a]=s[a]);Y({product_id:s.id}).then(a=>{C.value=a.lists})},L=()=>{n.value=!0},d=F({product_id:""}),{pager:i,getLists:_,resetParams:se,resetPage:ue}=Z({fetchFun:K,params:d}),g=p([]),N=()=>{X(d).then(s=>{g.value=s.lists})};return B({open:L,setFormData:y}),(s,a)=>{const c=A,f=O,S=I,o=W,w=z,b=R,T=Q,U=q,j=M;return D(),V("div",ee,[e(j,{title:"\u5546\u54C1\u8BE6\u60C5",size:1200,modelValue:l(n),"onUpdate:modelValue":a[2]||(a[2]=u=>h(n)?n.value=u:null)},{default:t(()=>[e(U,{modelValue:l(m),"onUpdate:modelValue":a[1]||(a[1]=u=>h(m)?m.value=u:null),class:"demo-tabs",onTabClick:P},{default:t(()=>[e(b,{label:"\u57FA\u7840\u4FE1\u606F",name:"first"},{default:t(()=>[e(S,{class:"margin-top",column:2,border:""},{default:t(()=>[e(c,{label:"\u5546\u54C1\u540D\u79F0"},{default:t(()=>[k(E(l(r).store_name),1)]),_:1}),e(c,{label:"\u5546\u54C1\u5206\u7C7B"},{default:t(()=>[k(E(l(r).cate_name),1)]),_:1}),e(c,{label:"\u5546\u54C1\u56FE\u7247",span:2},{default:t(()=>[e(f,{src:l(r).image,class:"w-20 h-20","preview-teleported":!0},null,8,["src"])]),_:1}),e(c,{label:"\u5382\u5BB6\u5907\u6CE8",span:2},{default:t(()=>[H("div",oe,E(l(r).manufacturer_information),1)]),_:1})]),_:1}),e(w,{data:l(C),border:"",class:"mt-4"},{default:t(()=>[e(o,{label:"\u89C4\u683C\u540D\u79F0",prop:"sku_name","min-width":"150"}),e(o,{label:"\u5355\u4F4D",prop:"unit_name"}),e(o,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(o,{label:"\u5546\u6237\u4EF7",prop:"cost","show-overflow-tooltip":""}),e(o,{label:"\u96F6\u552E\u4EF7",prop:"price","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u9500\u91CF",prop:"sales","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u5E93\u5B58",prop:"stock","show-overflow-tooltip":""}),e(o,{label:"\u6761\u7801",prop:"bar_code","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1}),e(b,{label:"\u9002\u7528\u95E8\u5E97",name:"second"},{default:t(()=>[e(w,{data:l(i).lists,border:""},{default:t(()=>[e(o,{label:"\u95E8\u5E97\u540D\u79F0",prop:"system_store_name","min-width":"200"}),e(o,{label:"\u5546\u54C1\u56FE",prop:"image",width:"80","show-overflow-tooltip":""},{default:t(({row:u})=>[e(f,{src:u.image,class:"w-[50px] h-[50px]","preview-teleported":!0},null,8,["src"])]),_:1}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"150"}),e(o,{label:"\u5546\u54C1\u5E93\u5B58",prop:"stock","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u4EF7\u683C",prop:"price","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u9500\u91CF",prop:"sales","show-overflow-tooltip":""})]),_:1},8,["data"]),l(i).count>l(i).lists.length?(D(),V("div",te,[e(T,{modelValue:l(i),"onUpdate:modelValue":a[0]||(a[0]=u=>h(i)?i.value=u:null),onChange:l(_)},null,8,["modelValue","onChange"])])):J("",!0)]),_:1}),e(b,{label:"\u4ED3\u5E93",name:"warehouse"},{default:t(()=>[e(w,{data:l(g)},{default:t(()=>[e(o,{label:"\u4ED3\u5E93",prop:"warehouse_name","min-width":"150"}),e(o,{label:"\u5546\u54C1\u56FE",prop:"image",width:"80","show-overflow-tooltip":""},{default:t(({row:u})=>[e(f,{src:u.image,class:"w-[50px] h-[50px]","preview-teleported":!0},null,8,["src"])]),_:1}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"150"}),e(o,{label:"\u5546\u54C1\u5E93\u5B58",prop:"nums","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}});export{ze as default};