SkuList-c0266e82.js 24 KB

12345
  1. <<<<<<<< HEAD:dist/assets/SkuList-405b1975.js
  2. import{d as X,ag as x,r as B,by as j,L as R,o as p,c as V,v as h,w as i,a as f,P as w,F as v,f as t,q as F,g as N,t as d,n as u,H as S,aD as Y,b9 as Z,G as ee,V as le,bb as ae,C as te,_ as ie,__tla as re}from"./index-d75b4e4d.js";import{E as oe,__tla as ne}from"./el-image-c9652061.js";import{__tla as se}from"./el-image-viewer-b9e519ff.js";import{__tla as ce}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-9da549c0.js";import{_ as de,__tla as me}from"./UploadImg-fb25ebf8.js";import{__tla as ue}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-9eeee79a.js";import{__tla as pe}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-b0737e04.js";import{c as fe,__tla as he}from"./index-6c07820e.js";import{u as we,__tla as ge}from"./useMessage-ba892ac2.js";let $,_e=Promise.all([(()=>{try{return re}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return ge}catch{}})()]).then(async()=>{let E,T,z;E={style:{"font-weight":"bold",color:"#40aaff"}},T={style:{"font-weight":"bold",color:"#40aaff"}},z={style:{"font-weight":"bold",color:"#40aaff"}},$=ie(X({name:"SkuList",__name:"SkuList",props:{propFormData:{type:Object,default:()=>{}},propertyList:{type:Array,default:()=>[]},ruleConfig:{type:Array,default:()=>[]},isBatch:x.bool.def(!1),isDetail:x.bool.def(!1),isComponent:x.bool.def(!1),isActivityComponent:x.bool.def(!1)},emits:["selectionChange"],setup(g,{expose:q,emit:G}){const D=we(),y=g,m=B(),P=B([{price:0,marketPrice:0,costPrice:0,barCode:"",picUrl:"",stock:0,weight:0,volume:0,firstBrokeragePrice:0,secondBrokeragePrice:0,promotionFee:0,mark:""}]);j(()=>{P.value.forEach(r=>{r.promotionFee=r.price-r.costPrice})});const L=r=>{fe({zIndex:9999999,urlList:[r]})},H=()=>{m.value.skus.forEach(r=>{Z(r,P.value[0])})},U=B([]),W=(r,c)=>{const e=c.split(".");let o=r;for(const s of e){if(!o||typeof o!="object"||!(s in o)){o=void 0;break}o=o[s]}return o},K=G,M=r=>{K("selectionChange",r)};R(()=>y.propFormData,r=>{r&&(m.value=r,j(()=>{m.value.skus.forEach(c=>{c.promotionFee=c.price-c.costPrice})}))},{deep:!0,immediate:!0});const A=r=>{const c=r.map(o=>o.values.map(s=>({propertyId:o.id,propertyName:o.name,valueId:s.id,valueName:s.name}))),e=I(c);O(r)||(m.value.skus=[]);for(const o of e){const s={properties:Array.isArray(o)?o:[o],price:0,marketPrice:0,costPrice:0,barCode:"",picUrl:"",stock:0,weight:0,volume:0,firstBrokeragePrice:0,secondBrokeragePrice:0,promotionFee:0,mark:""};m.value.skus.findIndex(k=>JSON.stringify(k.properties)===JSON.stringify(s.properties))===-1&&m.value.skus.push(s)}},O=r=>{const c=[];m.value.skus.forEach(o=>{var s,k;return(k=(s=o.properties)==null?void 0:s.map(b=>b.propertyId))==null?void 0:k.forEach(b=>{c.indexOf(b)===-1&&c.push(b)})});const e=r.map(o=>o.id);return c.length===e.length},I=r=>{if(r.length===0)return[];if(r.length===1)return r[0];{const c=[],e=I(r.slice(1));for(let o=0;o<r[0].length;o++)for(let s=0;s<e.length;s++)Array.isArray(e[s])?c.push([r[0][o],...e[s]]):c.push([r[0][o],e[s]]);return c}};R(()=>y.propertyList,r=>{m.value.specType&&(y.isBatch&&(P.value=[{price:0,marketPrice:0,costPrice:0,barCode:"",picUrl:"",stock:0,weight:0,volume:0,firstBrokeragePrice:0,secondBrokeragePrice:0,promotionFee:0,mark:""}]),JSON.stringify(r)!=="[]"&&(U.value=[],r.forEach((c,e)=>{U.value.push({prop:`name${e}`,label:c.name})}),O(r)||r.some(c=>c.values.length===0)||A(r)))},{deep:!0,immediate:!0});const J=B();return q({generateTableData:A,validateSku:()=>{let r="\u8BF7\u68C0\u67E5\u5546\u54C1\u5404\u884C\u76F8\u5173\u5C5E\u6027\u914D\u7F6E\uFF0C",c=!0;for(const e of m.value.skus){for(const o of y==null?void 0:y.ruleConfig){const s=W(e,o.name);if(!o.rule(s)){c=!1,r+=o.message;break}}if(e.price<e.costPrice)throw D.warning("\u5546\u54C1\u9500\u552E\u4EF7\u5FC5\u987B\u5927\u4E8E\u6210\u672C\u4EF7"),new Error("\u5546\u54C1\u9500\u552E\u4EF7\u5FC5\u987B\u5927\u4E8E\u6210\u672C\u4EF7");if(!c)throw D.warning(r),new Error(r)}},getSkuTableRef:()=>J.value}),(r,c)=>{const e=ee,o=le,s=ae,k=te,b=oe;return p(),V(v,null,[g.isDetail||g.isActivityComponent?w("",!0):(p(),h(f(S),{key:0,data:g.isBatch?f(P):f(m).skus,border:"",class:"tabNumWidth","max-height":"500",size:"small"},{default:i(()=>{var l;return[t(e,{align:"center",label:"\u56FE\u7247","min-width":"65"},{default:i(({row:a})=>[t(f(de),{modelValue:a.picUrl,"onUpdate:modelValue":n=>a.picUrl=n,height:"50px",width:"50px"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),f(m).specType&&!g.isBatch?(p(!0),V(v,{key:0},F(f(U),(a,n)=>(p(),h(e,{key:n,label:a.label,align:"center","min-width":"120"},{default:i(({row:_})=>{var C;return[N("span",E,d((C=_.properties[n])==null?void 0:C.valueName),1)]}),_:2},1032,["label"]))),128)):w("",!0),t(e,{align:"center",label:"\u5546\u54C1\u6761\u7801","min-width":"168"},{default:i(({row:a})=>[t(o,{modelValue:a.barCode,"onUpdate:modelValue":n=>a.barCode=n,class:"w-100%"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u9500\u552E\u4EF7","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.price,"onUpdate:modelValue":n=>a.price=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u5E02\u573A\u4EF7","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.marketPrice,"onUpdate:modelValue":n=>a.marketPrice=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u6210\u672C\u4EF7","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.costPrice,"onUpdate:modelValue":n=>a.costPrice=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u63A8\u5E7F\u8D39","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.promotionFee,"onUpdate:modelValue":n=>a.promotionFee=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u5E93\u5B58","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.stock,"onUpdate:modelValue":n=>a.stock=n,min:0,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u91CD\u91CF(kg)","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.weight,"onUpdate:modelValue":n=>a.weight=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u4F53\u79EF(m^3)","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.volume,"onUpdate:modelValue":n=>a.volume=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u5907\u6CE8","min-width":"168"},{default:i(({row:a})=>[t(o,{modelValue:a.mark,"onUpdate:modelValue":n=>a.mark=n,class:"w-100%"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),f(m).subCommissionType?(p(),V(v,{key:1},[t(e,{align:"center",label:"\u4E00\u7EA7\u8FD4\u4F63(\u5143)","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.firstBrokeragePrice,"onUpdate:modelValue":n=>a.firstBrokeragePrice=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u4E8C\u7EA7\u8FD4\u4F63(\u5143)","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.secondBrokeragePrice,"onUpdate:modelValue":n=>a.secondBrokeragePrice=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1})],64)):w("",!0),(l=f(m))!=null&&l.specType?(p(),h(e,{key:2,align:"center",fixed:"right",label:"\u64CD\u4F5C",width:"80"},{default:i(({row:a})=>[g.isBatch?(p(),h(k,{key:0,link:"",size:"small",type:"primary",onClick:H},{default:i(()=>[u(" \u6279\u91CF\u6DFB\u52A0 ")]),_:1})):(p(),h(k,{key:1,link:"",size:"small",type:"primary",onClick:n=>(_=>{const C=m.value.skus.findIndex(Q=>JSON.stringify(Q.properties)===JSON.stringify(_.properties));m.value.skus.splice(C,1)})(a)},{default:i(()=>[u("\u5220\u9664")]),_:2},1032,["onClick"]))]),_:1})):w("",!0)]}),_:1},8,["data"])),g.isDetail?(p(),h(f(S),{key:1,ref_key:"activitySkuListRef",ref:J,data:f(m).skus,border:"","max-height":"500",size:"small",style:{width:"99%"},onSelectionChange:M},{default:i(()=>[g.isComponent?(p(),h(e,{key:0,type:"selection",width:"45"})):w("",!0),t(e,{align:"center",label:"\u56FE\u7247","min-width":"80"},{default:i(({row:l})=>[l.picUrl?(p(),h(b,{key:0,src:l.picUrl,class:"h-50px w-50px",onClick:a=>L(l.picUrl)},null,8,["src","onClick"])):w("",!0)]),_:1}),f(m).specType&&!g.isBatch?(p(!0),V(v,{key:1},F(f(U),(l,a)=>(p(),h(e,{key:a,label:l.label,align:"center","min-width":"80"},{default:i(({row:n})=>{var _;return[N("span",T,d((_=n.properties[a])==null?void 0:_.valueName),1)]}),_:2},1032,["label"]))),128)):w("",!0),t(e,{align:"center",label:"\u5546\u54C1\u6761\u7801","min-width":"100"},{default:i(({row:l})=>[u(d(l.barCode),1)]),_:1}),t(e,{align:"center",label:"\u9500\u552E\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.price),1)]),_:1}),t(e,{align:"center",label:"\u5E02\u573A\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.marketPrice),1)]),_:1}),t(e,{align:"center",label:"\u6210\u672C\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.costPrice),1)]),_:1}),t(e,{align:"center",label:"\u63A8\u5E7F\u8D39(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.promotionFee),1)]),_:1}),t(e,{align:"center",label:"\u5E93\u5B58","min-width":"80"},{default:i(({row:l})=>[u(d(l.stock),1)]),_:1}),t(e,{align:"center",label:"\u91CD\u91CF(kg)","min-width":"80"},{default:i(({row:l})=>[u(d(l.weight),1)]),_:1}),t(e,{align:"center",label:"\u4F53\u79EF(m^3)","min-width":"80"},{default:i(({row:l})=>[u(d(l.volume),1)]),_:1}),t(e,{align:"center",label:"\u5907\u6CE8","min-width":"100"},{default:i(({row:l})=>[u(d(l.mark),1)]),_:1}),f(m).subCommissionType?(p(),V(v,{key:2},[t(e,{align:"center",label:"\u4E00\u7EA7\u8FD4\u4F63(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.firstBrokeragePrice),1)]),_:1}),t(e,{align:"center",label:"\u4E8C\u7EA7\u8FD4\u4F63(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.secondBrokeragePrice),1)]),_:1})],64)):w("",!0)]),_:1},8,["data"])):w("",!0),g.isActivityComponent?(p(),h(f(S),{key:2,data:f(m).skus,border:"","max-height":"500",size:"small",style:{width:"99%"}},{default:i(()=>[g.isComponent?(p(),h(e,{key:0,type:"selection",width:"45"})):w("",!0),t(e,{align:"center",label:"\u56FE\u7247","min-width":"80"},{default:i(({row:l})=>[t(b,{src:l.picUrl,class:"h-60px w-60px",onClick:a=>L(l.picUrl)},null,8,["src","onClick"])]),_:1}),f(m).specType?(p(!0),V(v,{key:1},F(f(U),(l,a)=>(p(),h(e,{key:a,label:l.label,align:"center","min-width":"80"},{default:i(({row:n})=>{var _;return[N("span",z,d((_=n.properties[a])==null?void 0:_.valueName),1)]}),_:2},1032,["label"]))),128)):w("",!0),t(e,{align:"center",label:"\u5546\u54C1\u6761\u7801","min-width":"100"},{default:i(({row:l})=>[u(d(l.barCode),1)]),_:1}),t(e,{align:"center",label:"\u9500\u552E\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.price),1)]),_:1}),t(e,{align:"center",label:"\u5E02\u573A\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.marketPrice),1)]),_:1}),t(e,{align:"center",label:"\u6210\u672C\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.costPrice),1)]),_:1}),t(e,{align:"center",label:"\u63A8\u5E7F\u8D39(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.promotionFee),1)]),_:1}),t(e,{align:"center",label:"\u5E93\u5B58","min-width":"80"},{default:i(({row:l})=>[u(d(l.stock),1)]),_:1}),t(e,{align:"center",label:"\u5907\u6CE8","min-width":"100"},{default:i(({row:l})=>[u(d(l.mark),1)]),_:1}),Y(r.$slots,"extension")]),_:3},8,["data"])):w("",!0)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/components/SkuList.vue"]])});export{_e as __tla,$ as default};
  3. ========
  4. import{d as X,ag as x,r as B,by as j,L as R,o as p,c as V,v as h,w as i,a as f,P as w,F as v,f as t,q as F,g as N,t as d,n as u,H as S,aD as Y,b9 as Z,G as ee,V as le,bb as ae,C as te,_ as ie,__tla as re}from"./index-c9fff140.js";import{E as oe,__tla as ne}from"./el-image-7432aa55.js";import{__tla as se}from"./el-image-viewer-0aee2692.js";import{__tla as ce}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-df9f9d77.js";import{_ as de,__tla as me}from"./UploadImg-93acf2a6.js";import{__tla as ue}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-41301250.js";import{__tla as pe}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-be006cbe.js";import{c as fe,__tla as he}from"./index-71863882.js";import{u as we,__tla as ge}from"./useMessage-5d45d53a.js";let $,_e=Promise.all([(()=>{try{return re}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return ge}catch{}})()]).then(async()=>{let E,T,z;E={style:{"font-weight":"bold",color:"#40aaff"}},T={style:{"font-weight":"bold",color:"#40aaff"}},z={style:{"font-weight":"bold",color:"#40aaff"}},$=ie(X({name:"SkuList",__name:"SkuList",props:{propFormData:{type:Object,default:()=>{}},propertyList:{type:Array,default:()=>[]},ruleConfig:{type:Array,default:()=>[]},isBatch:x.bool.def(!1),isDetail:x.bool.def(!1),isComponent:x.bool.def(!1),isActivityComponent:x.bool.def(!1)},emits:["selectionChange"],setup(g,{expose:q,emit:G}){const D=we(),y=g,m=B(),P=B([{price:0,marketPrice:0,costPrice:0,barCode:"",picUrl:"",stock:0,weight:0,volume:0,firstBrokeragePrice:0,secondBrokeragePrice:0,promotionFee:0,mark:""}]);j(()=>{P.value.forEach(r=>{r.promotionFee=r.price-r.costPrice})});const L=r=>{fe({zIndex:9999999,urlList:[r]})},H=()=>{m.value.skus.forEach(r=>{Z(r,P.value[0])})},U=B([]),W=(r,c)=>{const e=c.split(".");let o=r;for(const s of e){if(!o||typeof o!="object"||!(s in o)){o=void 0;break}o=o[s]}return o},K=G,M=r=>{K("selectionChange",r)};R(()=>y.propFormData,r=>{r&&(m.value=r,j(()=>{m.value.skus.forEach(c=>{c.promotionFee=c.price-c.costPrice})}))},{deep:!0,immediate:!0});const A=r=>{const c=r.map(o=>o.values.map(s=>({propertyId:o.id,propertyName:o.name,valueId:s.id,valueName:s.name}))),e=I(c);O(r)||(m.value.skus=[]);for(const o of e){const s={properties:Array.isArray(o)?o:[o],price:0,marketPrice:0,costPrice:0,barCode:"",picUrl:"",stock:0,weight:0,volume:0,firstBrokeragePrice:0,secondBrokeragePrice:0,promotionFee:0,mark:""};m.value.skus.findIndex(k=>JSON.stringify(k.properties)===JSON.stringify(s.properties))===-1&&m.value.skus.push(s)}},O=r=>{const c=[];m.value.skus.forEach(o=>{var s,k;return(k=(s=o.properties)==null?void 0:s.map(b=>b.propertyId))==null?void 0:k.forEach(b=>{c.indexOf(b)===-1&&c.push(b)})});const e=r.map(o=>o.id);return c.length===e.length},I=r=>{if(r.length===0)return[];if(r.length===1)return r[0];{const c=[],e=I(r.slice(1));for(let o=0;o<r[0].length;o++)for(let s=0;s<e.length;s++)Array.isArray(e[s])?c.push([r[0][o],...e[s]]):c.push([r[0][o],e[s]]);return c}};R(()=>y.propertyList,r=>{m.value.specType&&(y.isBatch&&(P.value=[{price:0,marketPrice:0,costPrice:0,barCode:"",picUrl:"",stock:0,weight:0,volume:0,firstBrokeragePrice:0,secondBrokeragePrice:0,promotionFee:0,mark:""}]),JSON.stringify(r)!=="[]"&&(U.value=[],r.forEach((c,e)=>{U.value.push({prop:`name${e}`,label:c.name})}),O(r)||r.some(c=>c.values.length===0)||A(r)))},{deep:!0,immediate:!0});const J=B();return q({generateTableData:A,validateSku:()=>{let r="\u8BF7\u68C0\u67E5\u5546\u54C1\u5404\u884C\u76F8\u5173\u5C5E\u6027\u914D\u7F6E\uFF0C",c=!0;for(const e of m.value.skus){for(const o of y==null?void 0:y.ruleConfig){const s=W(e,o.name);if(!o.rule(s)){c=!1,r+=o.message;break}}if(e.price<e.costPrice)throw D.warning("\u5546\u54C1\u9500\u552E\u4EF7\u5FC5\u987B\u5927\u4E8E\u6210\u672C\u4EF7"),new Error("\u5546\u54C1\u9500\u552E\u4EF7\u5FC5\u987B\u5927\u4E8E\u6210\u672C\u4EF7");if(!c)throw D.warning(r),new Error(r)}},getSkuTableRef:()=>J.value}),(r,c)=>{const e=ee,o=le,s=ae,k=te,b=oe;return p(),V(v,null,[g.isDetail||g.isActivityComponent?w("",!0):(p(),h(f(S),{key:0,data:g.isBatch?f(P):f(m).skus,border:"",class:"tabNumWidth","max-height":"500",size:"small"},{default:i(()=>{var l;return[t(e,{align:"center",label:"\u56FE\u7247","min-width":"65"},{default:i(({row:a})=>[t(f(de),{modelValue:a.picUrl,"onUpdate:modelValue":n=>a.picUrl=n,height:"50px",width:"50px"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),f(m).specType&&!g.isBatch?(p(!0),V(v,{key:0},F(f(U),(a,n)=>(p(),h(e,{key:n,label:a.label,align:"center","min-width":"120"},{default:i(({row:_})=>{var C;return[N("span",E,d((C=_.properties[n])==null?void 0:C.valueName),1)]}),_:2},1032,["label"]))),128)):w("",!0),t(e,{align:"center",label:"\u5546\u54C1\u6761\u7801","min-width":"168"},{default:i(({row:a})=>[t(o,{modelValue:a.barCode,"onUpdate:modelValue":n=>a.barCode=n,class:"w-100%"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u9500\u552E\u4EF7","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.price,"onUpdate:modelValue":n=>a.price=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u5E02\u573A\u4EF7","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.marketPrice,"onUpdate:modelValue":n=>a.marketPrice=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u6210\u672C\u4EF7","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.costPrice,"onUpdate:modelValue":n=>a.costPrice=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u63A8\u5E7F\u8D39","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.promotionFee,"onUpdate:modelValue":n=>a.promotionFee=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u5E93\u5B58","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.stock,"onUpdate:modelValue":n=>a.stock=n,min:0,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u91CD\u91CF(kg)","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.weight,"onUpdate:modelValue":n=>a.weight=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u4F53\u79EF(m^3)","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.volume,"onUpdate:modelValue":n=>a.volume=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u5907\u6CE8","min-width":"168"},{default:i(({row:a})=>[t(o,{modelValue:a.mark,"onUpdate:modelValue":n=>a.mark=n,class:"w-100%"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),f(m).subCommissionType?(p(),V(v,{key:1},[t(e,{align:"center",label:"\u4E00\u7EA7\u8FD4\u4F63(\u5143)","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.firstBrokeragePrice,"onUpdate:modelValue":n=>a.firstBrokeragePrice=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(e,{align:"center",label:"\u4E8C\u7EA7\u8FD4\u4F63(\u5143)","min-width":"168"},{default:i(({row:a})=>[t(s,{modelValue:a.secondBrokeragePrice,"onUpdate:modelValue":n=>a.secondBrokeragePrice=n,min:0,precision:2,step:.1,class:"w-100%","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1})],64)):w("",!0),(l=f(m))!=null&&l.specType?(p(),h(e,{key:2,align:"center",fixed:"right",label:"\u64CD\u4F5C",width:"80"},{default:i(({row:a})=>[g.isBatch?(p(),h(k,{key:0,link:"",size:"small",type:"primary",onClick:H},{default:i(()=>[u(" \u6279\u91CF\u6DFB\u52A0 ")]),_:1})):(p(),h(k,{key:1,link:"",size:"small",type:"primary",onClick:n=>(_=>{const C=m.value.skus.findIndex(Q=>JSON.stringify(Q.properties)===JSON.stringify(_.properties));m.value.skus.splice(C,1)})(a)},{default:i(()=>[u("\u5220\u9664")]),_:2},1032,["onClick"]))]),_:1})):w("",!0)]}),_:1},8,["data"])),g.isDetail?(p(),h(f(S),{key:1,ref_key:"activitySkuListRef",ref:J,data:f(m).skus,border:"","max-height":"500",size:"small",style:{width:"99%"},onSelectionChange:M},{default:i(()=>[g.isComponent?(p(),h(e,{key:0,type:"selection",width:"45"})):w("",!0),t(e,{align:"center",label:"\u56FE\u7247","min-width":"80"},{default:i(({row:l})=>[l.picUrl?(p(),h(b,{key:0,src:l.picUrl,class:"h-50px w-50px",onClick:a=>L(l.picUrl)},null,8,["src","onClick"])):w("",!0)]),_:1}),f(m).specType&&!g.isBatch?(p(!0),V(v,{key:1},F(f(U),(l,a)=>(p(),h(e,{key:a,label:l.label,align:"center","min-width":"80"},{default:i(({row:n})=>{var _;return[N("span",T,d((_=n.properties[a])==null?void 0:_.valueName),1)]}),_:2},1032,["label"]))),128)):w("",!0),t(e,{align:"center",label:"\u5546\u54C1\u6761\u7801","min-width":"100"},{default:i(({row:l})=>[u(d(l.barCode),1)]),_:1}),t(e,{align:"center",label:"\u9500\u552E\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.price),1)]),_:1}),t(e,{align:"center",label:"\u5E02\u573A\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.marketPrice),1)]),_:1}),t(e,{align:"center",label:"\u6210\u672C\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.costPrice),1)]),_:1}),t(e,{align:"center",label:"\u63A8\u5E7F\u8D39(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.promotionFee),1)]),_:1}),t(e,{align:"center",label:"\u5E93\u5B58","min-width":"80"},{default:i(({row:l})=>[u(d(l.stock),1)]),_:1}),t(e,{align:"center",label:"\u91CD\u91CF(kg)","min-width":"80"},{default:i(({row:l})=>[u(d(l.weight),1)]),_:1}),t(e,{align:"center",label:"\u4F53\u79EF(m^3)","min-width":"80"},{default:i(({row:l})=>[u(d(l.volume),1)]),_:1}),t(e,{align:"center",label:"\u5907\u6CE8","min-width":"100"},{default:i(({row:l})=>[u(d(l.mark),1)]),_:1}),f(m).subCommissionType?(p(),V(v,{key:2},[t(e,{align:"center",label:"\u4E00\u7EA7\u8FD4\u4F63(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.firstBrokeragePrice),1)]),_:1}),t(e,{align:"center",label:"\u4E8C\u7EA7\u8FD4\u4F63(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.secondBrokeragePrice),1)]),_:1})],64)):w("",!0)]),_:1},8,["data"])):w("",!0),g.isActivityComponent?(p(),h(f(S),{key:2,data:f(m).skus,border:"","max-height":"500",size:"small",style:{width:"99%"}},{default:i(()=>[g.isComponent?(p(),h(e,{key:0,type:"selection",width:"45"})):w("",!0),t(e,{align:"center",label:"\u56FE\u7247","min-width":"80"},{default:i(({row:l})=>[t(b,{src:l.picUrl,class:"h-60px w-60px",onClick:a=>L(l.picUrl)},null,8,["src","onClick"])]),_:1}),f(m).specType?(p(!0),V(v,{key:1},F(f(U),(l,a)=>(p(),h(e,{key:a,label:l.label,align:"center","min-width":"80"},{default:i(({row:n})=>{var _;return[N("span",z,d((_=n.properties[a])==null?void 0:_.valueName),1)]}),_:2},1032,["label"]))),128)):w("",!0),t(e,{align:"center",label:"\u5546\u54C1\u6761\u7801","min-width":"100"},{default:i(({row:l})=>[u(d(l.barCode),1)]),_:1}),t(e,{align:"center",label:"\u9500\u552E\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.price),1)]),_:1}),t(e,{align:"center",label:"\u5E02\u573A\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.marketPrice),1)]),_:1}),t(e,{align:"center",label:"\u6210\u672C\u4EF7(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.costPrice),1)]),_:1}),t(e,{align:"center",label:"\u63A8\u5E7F\u8D39(\u5143)","min-width":"80"},{default:i(({row:l})=>[u(d(l.promotionFee),1)]),_:1}),t(e,{align:"center",label:"\u5E93\u5B58","min-width":"80"},{default:i(({row:l})=>[u(d(l.stock),1)]),_:1}),t(e,{align:"center",label:"\u5907\u6CE8","min-width":"100"},{default:i(({row:l})=>[u(d(l.mark),1)]),_:1}),Y(r.$slots,"extension")]),_:3},8,["data"])):w("",!0)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/components/SkuList.vue"]])});export{_e as __tla,$ as default};
  5. >>>>>>>> 2589804fb89eb98fd6498c1ee41a354dcce32af3:dist/assets/SkuList-c0266e82.js