智慧教务系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
38 KiB

import{d as ce,v as fe,f as be,r as w,k as a,l as te,N as he,h as p,c as u,e as r,w as d,u as e,as as ge,m as y,F as g,O as V,n as K,a as s,t as i,B as D,i as _,bk as M,J as S,bN as ve,a9 as T,at as ye,K as Ve,G as xe,D as ke,bb as De,_ as we,ac as Ce,aj as Ue,bh as Se,aa as Te,ab as Ee,H as Pe,a7 as Re,T as Fe,E as Me,av as Ne,ax as Oe,a8 as Ge,p as Be,g as Ie}from"./index-1dc7b228.js";/* empty css */import{_ as Ae}from"./index.vue_vue_type_script_setup_true_lang-ee6338a2.js";import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import $e from"./index-372cf5b6.js";import"./el-form-item-4ed993c7.js";/* empty css *//* empty css */import{ab as Le,ac as He,ad as Ke}from"./goods-5f96a325.js";import{i as Ze,B as We}from"./delivery-9e721de0.js";import{u as je}from"./useGoodsEdit-613b2ec3.js";import{_ as ze}from"./_plugin-vue_export-helper-c27b6911.js";import"./index.vue_vue_type_style_index_0_lang-bbada8fe.js";/* empty css *//* empty css */import"./attachment-a2bedbef.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-5649c955.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-01b1252e.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-83404fbb.js";import"./sys-3783faf5.js";import"./sortable.esm-be94e56d.js";import"./test-71dfb9c1.js";import"./poster-7b4a1e7f.js";import"./diy_form-2240edfc.js";import"./range-2c6f86cf.js";const E=B=>(Be("data-v-f312886b"),B=B(),Ie(),B),qe={class:"main-container"},Je={class:"goods-type-name"},Qe={class:"goods-type-desc"},Xe=E(()=>s("div",{class:"triangle"},null,-1)),Ye=E(()=>s("div",{class:"selected"},"✓",-1)),el=["onClick"],ll={class:"goods-type-name"},tl={class:"goods-type-desc"},ol=E(()=>s("div",{class:"triangle"},null,-1)),al=E(()=>s("div",{class:"selected"},"✓",-1)),sl={class:"ml-[10px]"},rl={class:"ml-[10px]"},dl={class:"ml-[10px]"},il={class:"ml-[120px] mb-[10px] text-[12px] text-[#999] leading-[20px]"},nl={class:"ml-[10px]"},pl={class:"ml-[10px]"},ul={class:"ml-[10px]"},ml={class:"ml-[10px]"},_l={class:"mt-[10px] text-[12px] text-[#999] leading-[20px]"},cl={class:"mt-[10px] text-[12px] text-[#999] leading-[20px]"},fl={key:0,class:"mt-[10px] text-[12px] text-[#999] leading-[20px]"},bl={class:"el-form-item asterisk-left"},hl={class:"el-form-item__label w-[120px]"},gl={class:"spec-wrap"},vl={class:"spec-edit-list"},yl={class:"spec-name-wrap"},Vl={class:"spec-value-wrap"},xl=["onClick"],kl=E(()=>s("div",{class:"box"},null,-1)),Dl={class:"add-spec"},wl={class:"batch-operation-sku"},Cl={class:"sku-table"},Ul={class:"el-table--fit el-table--default el-table",style:{width:"100%"}},Sl={class:"el-table__inner-wrapper"},Tl={class:"el-table__header-wrapper"},El={class:"el-table__header",border:"0",cellpadding:"0",cellspacing:"0",style:{width:"100%"}},Pl={class:"el-table__cell w-[50px]"},Rl={class:"cell"},Fl={key:0,class:"el-table__cell"},Ml={class:"cell"},Nl={class:"el-table__cell"},Ol={class:"cell"},Gl={class:"el-table__cell"},Bl={class:"cell"},Il={class:"el-table__cell"},Al={class:"cell"},$l={class:"el-table__cell"},Ll={class:"cell"},Hl={class:"el-table__cell"},Kl={class:"cell"},Zl={class:"el-table__cell"},Wl={class:"cell"},jl={class:"el-table__cell"},zl={class:"cell"},ql={class:"el-table__cell"},Jl={class:"cell"},Ql={class:"el-table__cell"},Xl={class:"cell"},Yl={class:"el-table__body-wrapper text-[14px]"},et={class:"el-scrollbar"},lt={class:"el-scrollbar__wrap el-scrollbar__wrap--hidden-default"},tt={class:"el-scrollbar__view",style:{display:"inline-block","vertical-align":"middle"}},ot={class:"el-table__body",cellspacing:"0",cellpadding:"0",border:"0",style:{"table-layout":"fixed",width:"100%"}},at={tabindex:"-1"},st={class:"el-table__cell w-[50px]"},rt={class:"cell"},dt=["rowspan"],it={class:"cell"},nt={class:"el-table__cell"},pt={class:"cell"},ut={class:"el-table__cell"},mt={class:"cell"},_t={class:"el-table__cell"},ct={class:"cell"},ft={class:"el-table__cell"},bt={class:"cell"},ht={class:"el-table__cell"},gt={class:"cell"},vt={class:"el-table__cell"},yt={class:"cell"},Vt={class:"el-table__cell"},xt={class:"cell"},kt={class:"el-table__cell"},Dt={class:"cell"},wt={class:"el-table__cell"},Ct={class:"cell"},Ut={key:0,class:"text-[12px] text-[#999] leading-[20px]"},St={key:1,class:"text-[12px] text-[#999] leading-[20px]"},Tt={class:"mt-[10px] text-[12px] text-[#999] leading-[20px]"},Et={class:"mt-[10px] text-[12px] text-[#999] leading-[20px]"},Pt={class:"mt-[10px] text-[12px] text-[#999] leading-[20px]"},Rt={class:"mt-[10px] text-[12px] text-[#999] leading-[20px]"},Ft={key:0,class:"text-[12px] text-[#999] leading-[20px]"},Mt={class:"ml-[10px]"},Nt={class:"mt-[10px] text-[12px] text-[#999] leading-[20px]"},Ot={class:"attr-table mt-[10px]"},Gt=E(()=>s("colgroup",null,[s("col",{width:"30%"}),s("col",{width:"40%"}),s("col",{width:"20%"}),s("col",{width:"10%"})],-1)),Bt={class:"bg-[#f7f7f7]"},It={class:"prompt-block"},At={class:"flex items-center"},$t=E(()=>s("span",{class:"iconfont iconwenhao cursor-pointer ml-[3px] mt-[3px] !text-[14px]"},null,-1)),Lt={class:"attr-new"},Ht={key:0},Kt={key:1},Zt={key:1},Wt={key:2},jt=["onClick"],zt={key:1},qt={colspan:"4",class:"text-center"},Jt={class:"fixed-footer-wrap"},Qt={class:"fixed-footer"},Xt=ce({__name:"real_edit",setup(B){const oe=fe(),ae=be();oe.meta.title;const Z=w(),W=w(),A=w(),j=w(),z=w(),q=w(),J=w(),Q=w(),l=je({getFormRef(){return{basicFormRef:Z.value,priceStockFormRef:W.value,deliveryFormRef:A.value,goodsArgumentsFormRef:j.value,detailFormRef:z.value,skuFormRef:q.value,specValueRef:Q.value,priceStockCommonFormRef:J.value}},addApi:Le,editApi:He,formData:{goods_type:"real"},appendFormData:{delivery_type:[],is_free_shipping:1,fee_type:"template",delivery_money:"",delivery_template_id:""},appendRefreshGoodsSkuData:{weight:{value:"",regExp:"special",message:a("weightTips")},volume:{value:"",regExp:"special",message:a("volumeTips")}},appendSingleGoodsData(h){return{weight:h.weight,volume:h.volume}},getFormRules(h,o){return{weight:[{trigger:"blur",validator:(x,v,n)=>{h.spec_type=="single"&&v?isNaN(v)||!o.special.test(v)?n(new Error(a("weightTips"))):v<0?n(new Error(a("weightNotZeroTips"))):n():n()}}],volume:[{trigger:"blur",validator:(x,v,n)=>{h.spec_type=="single"&&v?isNaN(v)||!o.special.test(v)?n(new Error(a("volumeTips"))):v<0?n(new Error(a("volumeNotZeroTips"))):n():n()}}],delivery_type:[{required:!0,message:a("deliveryTypePlaceholder"),trigger:"blur"}],delivery_money:[{trigger:"blur",validator:(x,v,n)=>{h.delivery_type.indexOf("express")!=-1&&h.is_free_shipping==0&&h.fee_type=="fixed"?h.delivery_template_id.length==0&&v===""?n(new Error(a("deliveryMoneyPlaceholder"))):isNaN(v)||!o.digit.test(v)?n(new Error(a("deliveryMoneyTips"))):v<0?n(new Error(a("deliveryMoneyNotZeroTips"))):n():n()}}],delivery_template_id:[{trigger:"blur",validator:(x,v,n)=>{h.delivery_type.indexOf("express")!=-1&&h.is_free_shipping==0&&h.fee_type=="template"&&h.delivery_money.length==0&&v===""?n(new Error(a("deliveryTemplateIdPlaceholder"))):n()}}]}},getVerify(){return[{key:"delivery",verify:!1,ref:A.value}]}}),$=te([]),L=te([]),se=w(!1);Ze().then(h=>{const o=h.data;o&&$.splice(0,$.length,...o)});const re=()=>{const h=ae.resolve({path:"/shop/order/shipping/template"});window.open(h.href)},X=()=>{We({}).then(h=>{const o=h.data;o&&L.splice(0,L.length,...o)})};X(),Ke({goods_id:l.formData.goods_id}).then(h=>{const o=h.data;o&&(l.handleGoodsInit(o),l.formData.goods_id&&o.goods_info&&(l.formData.delivery_type=o.goods_info.delivery_type,l.formData.is_free_shipping=o.goods_info.is_free_shipping,l.formData.fee_type=o.goods_info.fee_type,l.formData.delivery_money=o.goods_info.delivery_money,l.formData.delivery_template_id=o.goods_info.delivery_template_id))});const de=()=>[{trigger:"blur",validator:(h,o,x)=>{l.formData.spec_type=="multi"?o.length>0&&(isNaN(o)||!l.regExp.special.test(o))?x(a("weightTips")):o<0?x(a("weightNotZeroTips")):x():x()}}],ie=()=>[{trigger:"blur",validator:(h,o,x)=>{l.formData.spec_type=="multi"?o.length>0&&(isNaN(o)||!l.regExp.special.test(o))?x(a("volumeTips")):o<0?x(a("volumeNotZeroTips")):x():x()}}],ne=()=>{l.save()};return(h,o)=>{const x=ye,v=Ve,n=xe,m=ke,Y=$e,pe=De,P=we,R=Ce,F=Ue,N=Se,k=Te,C=Ee,U=Pe,O=Re,ee=he("CircleCloseFilled"),le=Fe,G=Me,H=Ne,ue=Oe,me=Ae,_e=Ge;return p(),u("div",qe,[r(v,{class:"box-card !border-none",shadow:"never"},{default:d(()=>[r(x,{content:e(l).formData.goods_id?e(a)("updateGoods"):e(a)("addGoods"),icon:e(ge),onBack:o[0]||(o[0]=t=>e(l).back())},null,8,["content","icon"])]),_:1}),r(v,{class:"box-card mt-[15px] !border-none",shadow:"never"},{default:d(()=>[r(_e,{modelValue:e(l).activeName,"onUpdate:modelValue":o[69]||(o[69]=t=>e(l).activeName=t),onTabClick:e(l).tabHandleClick},{default:d(()=>[r(O,{label:e(a)("basicInfoTab"),name:"basic"},{default:d(()=>[r(U,{model:e(l).formData,"label-width":"120px",ref_key:"basicFormRef",ref:Z,rules:e(l).formRules,class:"page-form"},{default:d(()=>[e(l).formData.goods_id?(p(),y(n,{key:0,label:e(a)("goodsType")},{default:d(()=>[(p(!0),u(g,null,V(e(l).goodsType,t=>(p(),u("div",{key:t.type,class:K(["goods-type-wrap",[e(l).formData.goods_type==t.type?"selected":"disabled"]])},[s("div",Je,i(t.name),1),s("div",Qe,"("+i(t.desc)+")",1),e(l).formData.goods_type==t.type?(p(),u(g,{key:0},[Xe,Ye],64)):D("",!0)],2))),128))]),_:1},8,["label"])):(p(),y(n,{key:1,label:e(a)("goodsType")},{default:d(()=>[(p(!0),u(g,null,V(e(l).goodsType,t=>(p(),u("div",{class:K(["goods-type-wrap",{selected:e(l).formData.goods_type==t.type}]),key:t.type,onClick:f=>e(l).changeGoodsType(t)},[s("div",ll,i(t.name),1),s("div",tl,"("+i(t.desc)+")",1),e(l).formData.goods_type==t.type?(p(),u(g,{key:0},[ol,al],64)):D("",!0)],10,el))),128))]),_:1},8,["label"])),r(n,{label:e(a)("goodsName"),prop:"goods_name"},{default:d(()=>[r(m,{modelValue:e(l).formData.goods_name,"onUpdate:modelValue":o[1]||(o[1]=t=>e(l).formData.goods_name=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("goodsNamePlaceholder"),class:"input-width",maxlength:"60","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),r(n,{label:e(a)("subTitle"),prop:"sub_title"},{default:d(()=>[r(m,{modelValue:e(l).formData.sub_title,"onUpdate:modelValue":o[2]||(o[2]=t=>e(l).formData.sub_title=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("subTitlePlaceholder"),class:"input-width",maxlength:"80","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),r(n,{label:e(a)("goodsImage"),prop:"goods_image"},{default:d(()=>[r(Y,{modelValue:e(l).formData.goods_image,"onUpdate:modelValue":o[3]||(o[3]=t=>e(l).formData.goods_image=t),limit:10},null,8,["modelValue"])]),_:1},8,["label"]),r(n,{label:e(a)("goodsCategory"),prop:"goods_category"},{default:d(()=>[r(pe,{modelValue:e(l).formData.goods_category,"onUpdate:modelValue":o[4]||(o[4]=t=>e(l).formData.goods_category=t),options:e(l).goodsCategoryOptions,props:e(l).goodsCategoryProps,clearable:"",filterable:"",onChange:e(l).categoryHandleChange,"popper-class":"choice"},null,8,["modelValue","options","props","onChange"]),s("div",sl,[s("span",{class:"cursor-pointer text-primary mr-[10px]",onClick:o[5]||(o[5]=t=>e(l).refreshGoodsCategory(!0))},i(e(a)("refresh")),1),s("span",{class:"cursor-pointer text-primary",onClick:o[6]||(o[6]=(...t)=>e(l).toGoodsCategoryEvent&&e(l).toGoodsCategoryEvent(...t))},i(e(a)("addGoodsCategory")),1)])]),_:1},8,["label"]),r(n,{label:e(a)("brand")},{default:d(()=>[r(R,{modelValue:e(l).formData.brand_id,"onUpdate:modelValue":o[7]||(o[7]=t=>e(l).formData.brand_id=t),placeholder:e(a)("brandPlaceholder"),clearable:""},{default:d(()=>[(p(!0),u(g,null,V(e(l).brandOptions,t=>(p(),y(P,{key:t.brand_id,label:t.brand_name,value:t.brand_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),s("div",rl,[s("span",{class:"cursor-pointer text-primary mr-[10px]",onClick:o[8]||(o[8]=t=>e(l).refreshGoodsBrand(!0))},i(e(a)("refresh")),1),s("span",{class:"cursor-pointer text-primary",onClick:o[9]||(o[9]=(...t)=>e(l).toGoodsBrandEvent&&e(l).toGoodsBrandEvent(...t))},i(e(a)("addGoodsBrand")),1)])]),_:1},8,["label"]),r(n,{label:e(a)("poster")},{default:d(()=>[r(R,{modelValue:e(l).formData.poster_id,"onUpdate:modelValue":o[10]||(o[10]=t=>e(l).formData.poster_id=t),placeholder:e(a)("posterPlaceholder"),clearable:""},{default:d(()=>[(p(!0),u(g,null,V(e(l).posterOptions,t=>(p(),y(P,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),s("div",dl,[s("span",{class:"cursor-pointer text-primary mr-[10px]",onClick:o[11]||(o[11]=t=>e(l).refreshGoodsPoster(!0))},i(e(a)("refresh")),1),s("span",{class:"cursor-pointer text-primary",onClick:o[12]||(o[12]=(...t)=>e(l).toPosterEvent&&e(l).toPosterEvent(...t))},i(e(a)("addGoodsPoster")),1)])]),_:1},8,["label"]),s("div",il,i(e(a)("posterTips")),1),r(n,{label:e(a)("diyForm")},{default:d(()=>[r(R,{modelValue:e(l).formData.form_id,"onUpdate:modelValue":o[13]||(o[13]=t=>e(l).formData.form_id=t),placeholder:e(a)("diyFormPlaceholder"),clearable:""},{default:d(()=>[(p(!0),u(g,null,V(e(l).diyFormOptions,t=>(p(),y(P,{key:t.form_id,label:t.page_title,value:t.form_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),s("div",nl,[s("span",{class:"cursor-pointer text-primary mr-[10px]",onClick:o[14]||(o[14]=t=>e(l).refreshDiyForm(!0))},i(e(a)("refresh")),1),s("span",{class:"cursor-pointer text-primary",onClick:o[15]||(o[15]=(...t)=>e(l).toDiyFormEvent&&e(l).toDiyFormEvent(...t))},i(e(a)("addDiyForm")),1)])]),_:1},8,["label"]),r(n,{label:e(a)("label")},{default:d(()=>[r(N,{modelValue:e(l).formData.label_ids,"onUpdate:modelValue":o[16]||(o[16]=t=>e(l).formData.label_ids=t)},{default:d(()=>[(p(!0),u(g,null,V(e(l).labelOptions,(t,f)=>(p(),y(F,{label:t.label_id,key:f},{default:d(()=>[_(i(t.label_name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),s("div",pl,[s("span",{class:"cursor-pointer text-primary mr-[10px]",onClick:o[17]||(o[17]=(...t)=>e(l).refreshGoodsLabel&&e(l).refreshGoodsLabel(...t))},i(e(a)("refresh")),1),s("span",{class:"cursor-pointer text-primary",onClick:o[18]||(o[18]=(...t)=>e(l).toGoodsLabelEvent&&e(l).toGoodsLabelEvent(...t))},i(e(a)("addGoodsLabel")),1)])]),_:1},8,["label"]),r(n,{label:e(a)("goodsService")},{default:d(()=>[r(N,{modelValue:e(l).formData.service_ids,"onUpdate:modelValue":o[19]||(o[19]=t=>e(l).formData.service_ids=t)},{default:d(()=>[(p(!0),u(g,null,V(e(l).serviceOptions,(t,f)=>(p(),y(F,{label:t.service_id,key:f},{default:d(()=>[_(i(t.service_name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),s("div",ul,[s("span",{class:"cursor-pointer text-primary mr-[10px]",onClick:o[20]||(o[20]=(...t)=>e(l).refreshGoodsService&&e(l).refreshGoodsService(...t))},i(e(a)("refresh")),1),s("span",{class:"cursor-pointer text-primary",onClick:o[21]||(o[21]=(...t)=>e(l).toGoodsServiceEvent&&e(l).toGoodsServiceEvent(...t))},i(e(a)("addGoodsService")),1)])]),_:1},8,["label"]),e(l).formData.addon_shop_supplier&&e(l).formData.addon_shop_supplier.status==1?(p(),y(n,{key:2,label:e(a)("supplier")},{default:d(()=>[r(R,{modelValue:e(l).formData.supplier_id,"onUpdate:modelValue":o[22]||(o[22]=t=>e(l).formData.supplier_id=t),placeholder:e(a)("supplierPlaceholder"),clearable:""},{default:d(()=>[(p(!0),u(g,null,V(e(l).supplierOptions,t=>(p(),y(P,{key:t.supplier_id,label:t.supplier_name,value:t.supplier_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),s("div",ml,[s("span",{class:"cursor-pointer text-primary mr-[10px]",onClick:o[23]||(o[23]=(...t)=>e(l).refreshSupplier&&e(l).refreshSupplier(...t))},i(e(a)("refresh")),1),s("span",{class:"cursor-pointer text-primary",onClick:o[24]||(o[24]=(...t)=>e(l).toSupplierEvent&&e(l).toSupplierEvent(...t))},i(e(a)("addSupplier")),1)])]),_:1},8,["label"])):D("",!0),r(n,{label:e(a)("status")},{default:d(()=>[r(C,{modelValue:e(l).formData.status,"onUpdate:modelValue":o[25]||(o[25]=t=>e(l).formData.status=t)},{default:d(()=>[r(k,{label:"1"},{default:d(()=>[_(i(e(a)("statusOn")),1)]),_:1}),r(k,{label:"0"},{default:d(()=>[_(i(e(a)("statusOff")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),r(n,{label:e(a)("isGive")},{default:d(()=>[s("div",null,[r(C,{modelValue:e(l).formData.is_gift,"onUpdate:modelValue":o[26]||(o[26]=t=>e(l).formData.is_gift=t)},{default:d(()=>[r(k,{label:1},{default:d(()=>[_(i(e(a)("yes")),1)]),_:1}),r(k,{label:0},{default:d(()=>[_(i(e(a)("no")),1)]),_:1})]),_:1},8,["modelValue"]),s("div",_l,i(e(a)("giftTips")),1)])]),_:1},8,["label"]),r(n,{label:e(a)("unit"),prop:"unit"},{default:d(()=>[r(m,{modelValue:e(l).formData.unit,"onUpdate:modelValue":o[27]||(o[27]=t=>e(l).formData.unit=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("unitPlaceholder"),class:"input-width","show-word-limit":"",maxlength:"6"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),r(n,{label:e(a)("virtualSaleNum"),prop:"virtual_sale_num"},{default:d(()=>[s("div",null,[r(m,{modelValue:e(l).formData.virtual_sale_num,"onUpdate:modelValue":o[28]||(o[28]=t=>e(l).formData.virtual_sale_num=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("virtualSaleNumPlaceholder"),class:"input-width","show-word-limit":"",maxlength:"8",onKeyup:o[29]||(o[29]=t=>e(M)(t)),onBlur:o[30]||(o[30]=t=>e(l).formData.virtual_sale_num=t.target.value)},{append:d(()=>[_(i(e(l).formData.unit?e(l).formData.unit:"件"),1)]),_:1},8,["modelValue","placeholder"]),s("div",cl,i(e(a)("virtualSaleNumDesc")),1)])]),_:1},8,["label"]),r(n,{label:e(a)("sort"),prop:"sort"},{default:d(()=>[r(m,{modelValue:e(l).formData.sort,"onUpdate:modelValue":o[31]||(o[31]=t=>e(l).formData.sort=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("sortPlaceholder"),class:"input-width","show-word-limit":"",maxlength:"8",onKeyup:o[32]||(o[32]=t=>e(M)(t)),onBlur:o[33]||(o[33]=t=>e(l).formData.sort=t.target.value)},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["label"]),r(O,{label:e(a)("priceStockTab"),name:"price_stock"},{default:d(()=>[r(U,{model:e(l).formData,"label-width":"120px",ref_key:"priceStockFormRef",ref:W,rules:e(l).formRules,class:"page-form"},{default:d(()=>[r(n,{label:e(a)("specType"),prop:"spec_type"},{default:d(()=>[s("div",null,[r(C,{modelValue:e(l).formData.spec_type,"onUpdate:modelValue":o[34]||(o[34]=t=>e(l).formData.spec_type=t)},{default:d(()=>[r(k,{label:"single",disabled:e(l).isDisabledPrice()},{default:d(()=>[_(i(e(a)("singleSpec")),1)]),_:1},8,["disabled"]),r(k,{label:"multi",disabled:e(l).isDisabledPrice()},{default:d(()=>[_(i(e(a)("multiSpec")),1)]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(l).isDisabledPrice()?(p(),u("div",fl,i(e(a)("participateInActiveDisableTips")),1)):D("",!0)])]),_:1},8,["label"]),e(l).formData.spec_type=="single"?(p(),u(g,{key:0},[r(n,{label:e(a)("price"),prop:"price"},{default:d(()=>[r(m,{modelValue:e(l).formData.price,"onUpdate:modelValue":o[35]||(o[35]=t=>e(l).formData.price=t),modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",class:"input-width",maxlength:"8",disabled:e(l).isDisabledPrice()},{append:d(()=>[_(i(e(a)("yuan")),1)]),_:1},8,["modelValue","disabled"])]),_:1},8,["label"]),r(n,{label:e(a)("marketPrice"),prop:"market_price"},{default:d(()=>[r(m,{modelValue:e(l).formData.market_price,"onUpdate:modelValue":o[36]||(o[36]=t=>e(l).formData.market_price=t),modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",class:"input-width",maxlength:"8"},{append:d(()=>[_(i(e(a)("yuan")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"]),r(n,{label:e(a)("costPrice"),prop:"cost_price"},{default:d(()=>[r(m,{modelValue:e(l).formData.cost_price,"onUpdate:modelValue":o[37]||(o[37]=t=>e(l).formData.cost_price=t),modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",class:"input-width",maxlength:"8"},{append:d(()=>[_(i(e(a)("yuan")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"]),r(n,{label:e(a)("weight"),prop:"weight"},{default:d(()=>[r(m,{modelValue:e(l).formData.weight,"onUpdate:modelValue":o[38]||(o[38]=t=>e(l).formData.weight=t),modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",class:"input-width",maxlength:"6"},{append:d(()=>[_("kg")]),_:1},8,["modelValue"])]),_:1},8,["label"]),r(n,{label:e(a)("volume"),prop:"volume"},{default:d(()=>[r(m,{modelValue:e(l).formData.volume,"onUpdate:modelValue":o[39]||(o[39]=t=>e(l).formData.volume=t),modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",class:"input-width",maxlength:"6"},{append:d(()=>[_("m³")]),_:1},8,["modelValue"])]),_:1},8,["label"]),r(n,{label:e(a)("goodsStock"),prop:"stock"},{default:d(()=>[r(m,{modelValue:e(l).formData.stock,"onUpdate:modelValue":o[40]||(o[40]=t=>e(l).formData.stock=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("goodsStockPlaceholder"),class:"input-width",maxlength:"8",onKeyup:o[41]||(o[41]=t=>e(M)(t))},{append:d(()=>[_(i(e(l).formData.unit?e(l).formData.unit:e(a)("defaultUnit")),1)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),r(n,{label:e(a)("skuNo")},{default:d(()=>[r(m,{modelValue:e(l).formData.sku_no,"onUpdate:modelValue":o[42]||(o[42]=t=>e(l).formData.sku_no=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("skuNoPlaceholder"),class:"input-width",maxlength:"50",onKeyup:o[43]||(o[43]=t=>e(l).filterSpecial(t))},null,8,["modelValue","placeholder"])]),_:1},8,["label"])],64)):D("",!0)]),_:1},8,["model","rules"]),r(U,{model:e(l).goodsSkuData,"label-width":"120px",ref_key:"skuFormRef",ref:q,class:"page-form"},{default:d(()=>[S(s("div",bl,[s("div",hl,i(e(a)("goodsSku")),1),s("div",gl,[s("div",vl,[(p(!0),u(g,null,V(e(l).goodsSpecFormat,(t,f)=>(p(),u("div",{class:"spec-item",key:t.id},[s("div",yl,[r(m,{modelValue:t.spec_name,"onUpdate:modelValue":c=>t.spec_name=c,modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("specNamePlaceholder"),class:"input-width",maxlength:"20"},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),s("div",Vl,[s("ul",{ref_for:!0,ref_key:"specValueRef",ref:Q},[(p(!0),u(g,null,V(t.values,(c,b)=>(p(),u("li",{class:K("draggable-element"+f),key:c.id},[r(m,{modelValue:c.spec_value_name,"onUpdate:modelValue":I=>c.spec_value_name=I,modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("specValueNamePlaceholder"),class:"input-width","suffix-icon":e(ve),maxlength:"20",onInput:e(l).specValueNameInputListener},null,8,["modelValue","onUpdate:modelValue","placeholder","suffix-icon","onInput"]),r(le,{class:"icon",size:20,color:"#7b7b7b",onClick:I=>e(l).deleteSpecValue(f,b)},{default:d(()=>[r(ee)]),_:2},1032,["onClick"])],2))),128))],512),s("span",{class:"text-primary text-[14px] add-spec-value",onClick:c=>e(l).addSpecValue(f)},i(e(a)("addSpecValue")),9,xl),kl]),r(le,{class:"del-spec",size:20,color:"#7b7b7b",onClick:c=>e(l).deleteSpec(f)},{default:d(()=>[r(ee)]),_:2},1032,["onClick"])]))),128))]),s("div",Dl,[r(G,{type:"primary",onClick:e(l).addSpec},{default:d(()=>[_(i(e(a)("addSpec")),1)]),_:1},8,["onClick"])]),S(s("div",wl,[s("label",null,i(e(a)("batchOperationSku")),1),e(l).isDisabledPrice()?D("",!0):(p(),y(m,{key:0,modelValue:e(l).batchOperation.price,"onUpdate:modelValue":o[44]||(o[44]=t=>e(l).batchOperation.price=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("price"),class:"set-input",maxlength:"8"},null,8,["modelValue","placeholder"])),r(m,{modelValue:e(l).batchOperation.market_price,"onUpdate:modelValue":o[45]||(o[45]=t=>e(l).batchOperation.market_price=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("marketPrice"),class:"set-input",maxlength:"8"},null,8,["modelValue","placeholder"]),r(m,{modelValue:e(l).batchOperation.cost_price,"onUpdate:modelValue":o[46]||(o[46]=t=>e(l).batchOperation.cost_price=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("costPrice"),class:"set-input",maxlength:"8"},null,8,["modelValue","placeholder"]),r(m,{modelValue:e(l).batchOperation.stock,"onUpdate:modelValue":o[47]||(o[47]=t=>e(l).batchOperation.stock=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("stock"),class:"set-input",maxlength:"8"},null,8,["modelValue","placeholder"]),r(m,{modelValue:e(l).batchOperation.weight,"onUpdate:modelValue":o[48]||(o[48]=t=>e(l).batchOperation.weight=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("skuWeight"),class:"set-input",maxlength:"6"},null,8,["modelValue","placeholder"]),r(m,{modelValue:e(l).batchOperation.volume,"onUpdate:modelValue":o[49]||(o[49]=t=>e(l).batchOperation.volume=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("skuVolume"),class:"set-input",maxlength:"6"},null,8,["modelValue","placeholder"]),r(m,{modelValue:e(l).batchOperation.sku_no,"onUpdate:modelValue":o[50]||(o[50]=t=>e(l).batchOperation.sku_no=t),modelModifiers:{trim:!0},clearable:"",maxlength:"50",placeholder:e(a)("skuNo"),class:"set-input"},null,8,["modelValue","placeholder"]),r(G,{type:"primary",onClick:e(l).saveBatch},{default:d(()=>[_(i(e(a)("confirm")),1)]),_:1},8,["onClick"])],512),[[T,Object.keys(e(l).goodsSkuData).length]]),S(s("div",Cl,[s("div",Ul,[s("div",Sl,[s("div",Tl,[s("table",El,[s("thead",null,[s("tr",null,[s("th",Pl,[s("div",Rl,[r(F,{modelValue:e(l).formData.skuCheckAll,"onUpdate:modelValue":o[51]||(o[51]=t=>e(l).formData.skuCheckAll=t),indeterminate:e(l).formData.skuIsIndeterminate,onChange:e(l).skuHandleCheckAllChange},null,8,["modelValue","indeterminate","onChange"])])]),(p(!0),u(g,null,V(e(l).goodsSpecFormat,(t,f)=>(p(),u(g,{key:f},[t.spec_name?(p(),u("th",Fl,[s("div",Ml,i(t.spec_name),1)])):D("",!0)],64))),128)),s("th",Nl,[s("div",Ol,i(e(a)("image")),1)]),s("th",Gl,[s("div",Bl,i(e(a)("price")),1)]),s("th",Il,[s("div",Al,i(e(a)("marketPrice")),1)]),s("th",$l,[s("div",Ll,i(e(a)("costPrice")),1)]),s("th",Hl,[s("div",Kl,i(e(a)("stock")),1)]),s("th",Zl,[s("div",Wl,i(e(a)("skuWeight")),1)]),s("th",jl,[s("div",zl,i(e(a)("skuVolume")),1)]),s("th",ql,[s("div",Jl,i(e(a)("skuNo")),1)]),s("th",Ql,[s("div",Xl,i(e(a)("defaultSku")),1)])])])])]),r(N,{modelValue:e(l).formData.skuCheckedCities,"onUpdate:modelValue":o[52]||(o[52]=t=>e(l).formData.skuCheckedCities=t),onChange:e(l).handleCheckedCitiesChange},{default:d(()=>[s("div",Yl,[s("div",et,[s("div",lt,[s("div",tt,[s("table",ot,[s("tbody",at,[(p(!0),u(g,null,V(e(l).goodsSkuData,(t,f,c)=>(p(),u("tr",{class:"el-table__row",key:f},[s("td",st,[s("div",rt,[(p(),y(F,{label:f,key:f},{default:d(()=>[_(i(""))]),_:2},1032,["label"]))])]),(p(!0),u(g,null,V(e(l).specData,(b,I)=>(p(),u(g,{key:I},[b.index==c?(p(),u("td",{key:0,class:"el-table__cell",rowspan:b.rowSpan},[s("div",it,i(b.spec_value_name),1)],8,dt)):D("",!0)],64))),128)),s("td",nt,[s("div",pt,[r(Y,{modelValue:t.sku_image,"onUpdate:modelValue":b=>t.sku_image=b,limit:1,width:"50px",height:"50px"},null,8,["modelValue","onUpdate:modelValue"])])]),s("td",ut,[s("div",mt,[r(n,{prop:f+".price",rules:e(l).skuPriceRules(),class:"sku-form-item-wrap"},{default:d(()=>[r(m,{modelValue:t.price,"onUpdate:modelValue":b=>t.price=b,modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",maxlength:"8",disabled:e(l).isDisabledPrice()},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["prop","rules"])])]),s("td",_t,[s("div",ct,[r(n,{prop:f+".market_price",rules:e(l).skuMarketPriceRules(),class:"sku-form-item-wrap"},{default:d(()=>[r(m,{modelValue:t.market_price,"onUpdate:modelValue":b=>t.market_price=b,modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",maxlength:"8"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])])]),s("td",ft,[s("div",bt,[r(n,{prop:f+".cost_price",rules:e(l).skuCostPriceRules(),class:"sku-form-item-wrap"},{default:d(()=>[r(m,{modelValue:t.cost_price,"onUpdate:modelValue":b=>t.cost_price=b,modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",maxlength:"8"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])])]),s("td",ht,[s("div",gt,[r(n,{prop:f+".stock",rules:e(l).skuStockRules(),class:"sku-form-item-wrap"},{default:d(()=>[r(m,{modelValue:t.stock,"onUpdate:modelValue":b=>t.stock=b,modelModifiers:{trim:!0},clearable:"",placeholder:"0",onInput:e(l).specStockSum,maxlength:"8"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:2},1032,["prop","rules"])])]),s("td",vt,[s("div",yt,[r(n,{prop:f+".weight",rules:de(),class:"sku-form-item-wrap"},{default:d(()=>[r(m,{modelValue:t.weight,"onUpdate:modelValue":b=>t.weight=b,modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",maxlength:"6"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])])]),s("td",Vt,[s("div",xt,[r(n,{prop:f+".volume",rules:ie(),class:"sku-form-item-wrap"},{default:d(()=>[r(m,{modelValue:t.volume,"onUpdate:modelValue":b=>t.volume=b,modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",maxlength:"6"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])])]),s("td",kt,[s("div",Dt,[r(m,{modelValue:t.sku_no,"onUpdate:modelValue":b=>t.sku_no=b,modelModifiers:{trim:!0},clearable:"",maxlength:"50"},null,8,["modelValue","onUpdate:modelValue"])])]),s("td",wt,[s("div",Ct,[r(H,{modelValue:t.is_default,"onUpdate:modelValue":b=>t.is_default=b,"active-value":1,"inactive-value":0,onChange:b=>e(l).specValueIsDefaultChangeListener(b,f)},null,8,["modelValue","onUpdate:modelValue","onChange"])])])]))),128))])])])])])])]),_:1},8,["modelValue","onChange"])])])],512),[[T,Object.keys(e(l).goodsSkuData).length]])])],512),[[T,e(l).formData.spec_type=="multi"]]),r(n,{label:e(a)("memberDiscount")},{default:d(()=>[s("div",null,[r(C,{modelValue:e(l).formData.member_discount,"onUpdate:modelValue":o[53]||(o[53]=t=>e(l).formData.member_discount=t)},{default:d(()=>[r(k,{label:""},{default:d(()=>[_(i(e(a)("nonparticipation")),1)]),_:1}),r(k,{label:"discount"},{default:d(()=>[_(i(e(a)("discount")),1)]),_:1}),r(k,{label:"fixed_price"},{default:d(()=>[_(i(e(a)("fixedPrice")),1)]),_:1})]),_:1},8,["modelValue"]),e(l).formData.member_discount=="discount"?(p(),u("div",Ut,i(e(a)("discountHint")),1)):D("",!0),e(l).formData.member_discount=="fixed_price"?(p(),u("div",St,i(e(a)("fixedPriceHint")),1)):D("",!0)])]),_:1},8,["label"])]),_:1},8,["model"]),r(U,{model:e(l).formData,"label-width":"120px",ref_key:"priceStockCommonFormRef",ref:J,rules:e(l).formRules,class:"page-form"},{default:d(()=>[r(n,{label:e(a)("isLimit")},{default:d(()=>[s("div",null,[r(H,{modelValue:e(l).formData.is_limit,"onUpdate:modelValue":o[54]||(o[54]=t=>e(l).formData.is_limit=t),"active-value":1,"inactive-value":0},null,8,["modelValue"]),s("div",Tt,i(e(a)("isLimitTips")),1)])]),_:1},8,["label"]),e(l).formData.is_limit=="1"?(p(),y(n,{key:0,label:e(a)("limitType"),prop:"limit_type"},{default:d(()=>[s("div",null,[r(C,{modelValue:e(l).formData.limit_type,"onUpdate:modelValue":o[55]||(o[55]=t=>e(l).formData.limit_type=t)},{default:d(()=>[r(k,{label:1},{default:d(()=>[_(i(e(a)("singleTime")),1)]),_:1}),r(k,{label:2},{default:d(()=>[_(i(e(a)("singlePerson")),1)]),_:1})]),_:1},8,["modelValue"]),s("div",Et,i(e(a)("limitTypeTips")),1)])]),_:1},8,["label"])):D("",!0),e(l).formData.is_limit=="1"?(p(),y(n,{key:1,label:e(a)("maxBuy"),prop:"max_buy"},{default:d(()=>[s("div",null,[r(m,{modelValue:e(l).formData.max_buy,"onUpdate:modelValue":o[56]||(o[56]=t=>e(l).formData.max_buy=t),modelModifiers:{trim:!0},clearable:"",placeholder:e(a)("maxBuyPlaceholder"),class:"input-width",maxlength:"8",onKeyup:o[57]||(o[57]=t=>e(M)(t))},{append:d(()=>[_(i(e(l).formData.unit?e(l).formData.unit:e(a)("defaultUnit")),1)]),_:1},8,["modelValue","placeholder"]),s("div",Pt,i(e(a)("maxBuyWarnTips")),1)])]),_:1},8,["label"])):D("",!0),r(n,{label:e(a)("minBuy"),prop:"min_buy"},{default:d(()=>[s("div",null,[r(m,{modelValue:e(l).formData.min_buy,"onUpdate:modelValue":o[58]||(o[58]=t=>e(l).formData.min_buy=t),modelModifiers:{trim:!0},clearable:"",class:"input-width",maxlength:"8",onKeyup:o[59]||(o[59]=t=>e(M)(t))},{append:d(()=>[_(i(e(l).formData.unit?e(l).formData.unit:e(a)("defaultUnit")),1)]),_:1},8,["modelValue"]),s("div",Rt,i(e(a)("minBuyTips")),1)])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["label"]),r(O,{label:e(a)("deliveryTab"),name:"delivery"},{default:d(()=>[r(U,{model:e(l).formData,"label-width":"120px",ref_key:"deliveryFormRef",ref:A,rules:e(l).formRules,class:"page-form"},{default:d(()=>[r(n,{label:e(a)("deliveryType"),prop:"delivery_type"},{default:d(()=>[s("div",null,[r(N,{modelValue:e(l).formData.delivery_type,"onUpdate:modelValue":o[60]||(o[60]=t=>e(l).formData.delivery_type=t)},{default:d(()=>[(p(!0),u(g,null,V($,(t,f)=>(p(),y(F,{key:f,label:t.key},{default:d(()=>[_(i(t.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),se.value?(p(),u("div",Ft,"请先在配置设置中设置配送方式")):D("",!0)])]),_:1},8,["label"]),S(r(n,{label:e(a)("isFreeShipping")},{default:d(()=>[r(H,{modelValue:e(l).formData.is_free_shipping,"onUpdate:modelValue":o[61]||(o[61]=t=>e(l).formData.is_free_shipping=t),"active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1},8,["label"]),[[T,e(l).formData.delivery_type.indexOf("express")!=-1]]),S(r(n,{label:e(a)("feeType"),prop:"fee_type"},{default:d(()=>[r(C,{modelValue:e(l).formData.fee_type,"onUpdate:modelValue":o[62]||(o[62]=t=>e(l).formData.fee_type=t)},{default:d(()=>[r(k,{label:"template"},{default:d(()=>[_(i(e(a)("selectTemplate")),1)]),_:1}),r(k,{label:"fixed"},{default:d(()=>[_(i(e(a)("fixedShipping")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),[[T,e(l).formData.delivery_type.indexOf("express")!=-1&&e(l).formData.is_free_shipping==0]]),S(r(n,{label:e(a)("deliveryMoney"),prop:"delivery_money"},{default:d(()=>[r(m,{modelValue:e(l).formData.delivery_money,"onUpdate:modelValue":o[63]||(o[63]=t=>e(l).formData.delivery_money=t),modelModifiers:{trim:!0},clearable:"",placeholder:"0.00",class:"input-width",maxlength:"8"},{append:d(()=>[_(i(e(a)("yuan")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"]),[[T,e(l).formData.delivery_type.indexOf("express")!=-1&&e(l).formData.is_free_shipping==0&&e(l).formData.fee_type=="fixed"]]),S(r(n,{label:e(a)("deliveryTemplateId"),prop:"delivery_template_id"},{default:d(()=>[r(R,{modelValue:e(l).formData.delivery_template_id,"onUpdate:modelValue":o[64]||(o[64]=t=>e(l).formData.delivery_template_id=t),placeholder:e(a)("deliveryTemplateIdPlaceholder"),filterable:"",autocomplete:"off",clearable:""},{default:d(()=>[(p(!0),u(g,null,V(L,t=>(p(),y(P,{key:t.template_id,label:t.template_name,value:t.template_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),s("div",Mt,[s("span",{class:"cursor-pointer text-primary mr-[10px]",onClick:X},i(e(a)("refresh")),1),s("span",{class:"cursor-pointer text-primary",onClick:re},i(e(a)("addDeliveryTemplateId")),1)])]),_:1},8,["label"]),[[T,e(l).formData.delivery_type.indexOf("express")!=-1&&e(l).formData.is_free_shipping==0&&e(l).formData.fee_type=="template"]])]),_:1},8,["model","rules"])]),_:1},8,["label"]),r(O,{label:e(a)("goodsArguments"),name:"goods_arguments"},{default:d(()=>[r(U,{model:e(l).formData,"label-width":"120px",ref_key:"goodsArgumentsFormRef",ref:j,rules:e(l).formRules,class:"page-form"},{default:d(()=>[r(n,{label:e(a)("goodsArgumentsTemp")},{default:d(()=>[s("div",null,[r(R,{modelValue:e(l).formData.attr_id,"onUpdate:modelValue":o[65]||(o[65]=t=>e(l).formData.attr_id=t),placeholder:e(a)("goodsArgumentsTempPlaceholder"),clearable:"",onChange:e(l).attrChange,onClear:o[66]||(o[66]=t=>e(l).attrChange(-1))},{default:d(()=>[(p(!0),u(g,null,V(e(l).attrOptions,t=>(p(),y(P,{key:t.attr_id,label:t.attr_name,value:t.attr_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","onChange"]),s("div",Nt,i(e(a)("goodsArgumentsTempHint")),1),s("table",Ot,[Gt,s("thead",Bt,[s("tr",null,[s("th",null,i(e(a)("argumentsName")),1),s("th",null,i(e(a)("argumentsValue")),1),s("th",It,[s("div",At,[s("span",null,i(e(a)("sort")),1),r(ue,{class:"box-item",effect:"dark",content:e(a)("argumentsSortHint"),placement:"right"},{default:d(()=>[$t]),_:1},8,["content"])])]),s("th",null,i(e(a)("operation")),1)])]),s("tbody",Lt,[e(l).attrTableData.length?(p(!0),u(g,{key:0},V(e(l).attrTableData,(t,f)=>(p(),u("tr",{class:"goods-attr-tr goods-new-attr-tr",key:f},[t.attr_value_id>0?(p(),u("td",Ht,i(t.attr_value_name),1)):(p(),u("td",Kt,[r(m,{modelValue:t.attr_value_name,"onUpdate:modelValue":c=>t.attr_value_name=c,modelModifiers:{trim:!0},maxlength:"20","show-word-limit":"",clearable:""},null,8,["modelValue","onUpdate:modelValue"])])),s("td",null,[t.type=="text"?(p(),y(m,{key:0,maxlength:"20","show-word-limit":"",modelValue:t.select_child_val,"onUpdate:modelValue":c=>t.select_child_val=c,modelModifiers:{trim:!0},clearable:""},null,8,["modelValue","onUpdate:modelValue"])):t.type=="radio"?(p(),u("div",Zt,[r(C,{modelValue:t.select_child_name,"onUpdate:modelValue":c=>t.select_child_name=c,onChange:c=>e(l).attrRadioChange(f,c)},{default:d(()=>[(p(!0),u(g,null,V(t.child,(c,b)=>(p(),y(k,{key:b,label:c.id},{default:d(()=>[_(i(c.name),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])):t.type=="checkbox"?(p(),u("div",Wt,[r(N,{modelValue:t.select_child_name,"onUpdate:modelValue":c=>t.select_child_name=c,onChange:c=>e(l).attrCheckboxChange(f,c)},{default:d(()=>[(p(!0),u(g,null,V(t.child,(c,b)=>(p(),y(F,{key:b,label:c.id},{default:d(()=>[_(i(c.name),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])):D("",!0)]),s("td",null,[r(m,{modelValue:t.sort,"onUpdate:modelValue":c=>t.sort=c,modelModifiers:{trim:!0},maxlength:"6","show-word-limit":"",clearable:"",onKeyup:o[67]||(o[67]=c=>e(M)(c))},null,8,["modelValue","onUpdate:modelValue"])]),s("td",null,[s("span",{class:"cursor-pointer text-[var(--el-color-primary)]",onClick:c=>e(l).delAttr(f)},i(e(a)("delAttr")),9,jt)])]))),128)):(p(),u("tr",zt,[s("td",qt,i(e(a)("noData")),1)]))])]),r(G,{class:"mt-[15px]",onClick:e(l).addAttr},{default:d(()=>[_(i(e(a)("addGoodsArguments")),1)]),_:1},8,["onClick"])])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["label"]),r(O,{label:e(a)("goodsDesc"),name:"detail"},{default:d(()=>[r(U,{model:e(l).formData,"label-width":"120px",ref_key:"detailFormRef",ref:z,rules:e(l).formRules,class:"page-form"},{default:d(()=>[r(n,{label:e(a)("goodsDesc"),prop:"goods_desc"},{default:d(()=>[r(me,{modelValue:e(l).formData.goods_desc,"onUpdate:modelValue":o[68]||(o[68]=t=>e(l).formData.goods_desc=t),height:600,class:"editor-width",onHandleBlur:e(l).handleBlur},null,8,["modelValue","onHandleBlur"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])]),_:1}),s("div",Jt,[s("div",Qt,[r(G,{type:"primary",onClick:o[70]||(o[70]=t=>ne())},{default:d(()=>[_(i(e(a)("save")),1)]),_:1}),r(G,{onClick:o[71]||(o[71]=t=>e(l).back())},{default:d(()=>[_(i(e(a)("back")),1)]),_:1})])])])}}});const zo=ze(Xt,[["__scopeId","data-v-f312886b"]]);export{zo as default};