index-752eb6e3.js 12 KB

1
  1. import{d as N,r as V,e as G,k as K,o as i,q as f,w as l,v as R,a as r,f as e,a3 as H,c as p,F as c,n as _,m as s,t as w,U as j,z as L,x as Y,y as J,V as Q,d2 as X,bb as Z,ag as $,ah as ee,ac as ae,bc as le,W as re,B as te,C as oe,H as se,__tla as de}from"./index-2eab2d23.js";import{_ as ue,__tla as ne}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{_ as ie,__tla as be}from"./UploadImgs-88de5939.js";import{E as fe,__tla as me}from"./el-text-b1163e3d.js";import{s as pe,g as ce,__tla as _e}from"./index-e7f20230.js";import{a as P,D as h,__tla as ge}from"./dict-1ad71b6f.js";import{u as ye,__tla as ke}from"./useMessage-171aa63e.js";import{__tla as Ve}from"./el-card-c558f0ec.js";import{__tla as we}from"./UploadImgs.vue_vue_type_style_index_0_scoped_0ff04634_lang-20f165d6.js";import{__tla as Pe}from"./el-image-viewer-5d14bc77.js";import"./_plugin-vue_export-helper-1b428a4d.js";let U,he=Promise.all([(()=>{try{return de}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Pe}catch{}})()]).then(async()=>{U=N({name:"TradeConfig",__name:"index",setup(ve){const W=ye(),b=V(!1),g=V(),t=V({id:null,afterSaleRefundReasons:[],afterSaleReturnReasons:[],deliveryExpressFreeEnabled:!1,deliveryExpressFreePrice:0,deliveryPickUpEnabled:!1,brokerageEnabled:!1,brokerageEnabledCondition:void 0,brokerageBindMode:void 0,brokeragePosterUrls:[],brokerageFirstPercent:0,brokerageSecondPercent:0,brokerageWithdrawMinPrice:0,brokerageWithdrawFeePercent:0,brokerageFrozenDays:0,brokerageWithdrawTypes:[]}),z=G({deliveryExpressFreePrice:[{required:!0,message:"\u6EE1\u989D\u5305\u90AE\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],brokerageEnabledCondition:[{required:!0,message:"\u5206\u4F63\u6A21\u5F0F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],brokerageBindMode:[{required:!0,message:"\u5206\u9500\u5173\u7CFB\u7ED1\u5B9A\u6A21\u5F0F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],brokerageFirstPercent:[{required:!0,message:"\u4E00\u7EA7\u8FD4\u4F63\u6BD4\u4F8B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],brokerageSecondPercent:[{required:!0,message:"\u4E8C\u7EA7\u8FD4\u4F63\u6BD4\u4F8B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],brokerageWithdrawMinPrice:[{required:!0,message:"\u7528\u6237\u63D0\u73B0\u6700\u4F4E\u91D1\u989D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],brokerageWithdrawFeePercent:[{required:!0,message:"\u63D0\u73B0\u624B\u7EED\u8D39\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],brokerageFrozenDays:[{required:!0,message:"\u4F63\u91D1\u51BB\u7ED3\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],brokerageWithdrawTypes:[{required:!0,message:"\u63D0\u73B0\u65B9\u5F0F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}),M=async()=>{if(!b.value&&g&&await g.value.validate()){b.value=!0;try{const u={...t.value};u.brokeragePosterUrls=t.value.brokeragePosterUrls.map(o=>o!=null&&o.url?o.url:o),u.deliveryExpressFreePrice=100*u.deliveryExpressFreePrice,u.brokerageWithdrawMinPrice=100*u.brokerageWithdrawMinPrice,await pe(u),W.success("\u4FDD\u5B58\u6210\u529F")}finally{b.value=!1}}};return K(()=>{(async()=>{b.value=!0;try{const u=await ce();u!=null&&(u.brokeragePosterUrls=u.brokeragePosterUrls.map(o=>({url:o})),t.value=u,t.value.deliveryExpressFreePrice=u.deliveryExpressFreePrice/100,t.value.brokerageWithdrawMinPrice=u.brokerageWithdrawMinPrice/100)}finally{b.value=!1}})()}),(u,o)=>{const S=j,d=L,v=Y,E=J,y=Q,k=X,n=fe,m=Z,x=$,F=ee,B=ie,D=ae,T=le,q=re,C=te,O=oe,A=ue,I=se;return i(),f(A,null,{default:l(()=>[R((i(),f(O,{ref_key:"formRef",ref:g,model:r(t),rules:r(z),"label-width":"120px"},{default:l(()=>[R(e(d,{label:"hideId"},{default:l(()=>[e(S,{modelValue:r(t).id,"onUpdate:modelValue":o[0]||(o[0]=a=>r(t).id=a)},null,8,["modelValue"])]),_:1},512),[[H,!1]]),e(q,null,{default:l(()=>[e(y,{label:"\u552E\u540E"},{default:l(()=>[e(d,{label:"\u9000\u6B3E\u7406\u7531",prop:"afterSaleRefundReasons"},{default:l(()=>[e(E,{modelValue:r(t).afterSaleRefundReasons,"onUpdate:modelValue":o[1]||(o[1]=a=>r(t).afterSaleRefundReasons=a),filterable:"",multiple:"","allow-create":"",placeholder:"\u8BF7\u76F4\u63A5\u8F93\u5165\u9000\u6B3E\u7406\u7531"},{default:l(()=>[(i(!0),p(c,null,_(r(t).afterSaleRefundReasons,a=>(i(),f(v,{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u9000\u8D27\u7406\u7531",prop:"afterSaleReturnReasons"},{default:l(()=>[e(E,{modelValue:r(t).afterSaleReturnReasons,"onUpdate:modelValue":o[2]||(o[2]=a=>r(t).afterSaleReturnReasons=a),"allow-create":"",filterable:"",multiple:"",placeholder:"\u8BF7\u76F4\u63A5\u8F93\u5165\u9000\u8D27\u7406\u7531"},{default:l(()=>[(i(!0),p(c,null,_(r(t).afterSaleReturnReasons,a=>(i(),f(v,{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(y,{label:"\u914D\u9001"},{default:l(()=>[e(d,{label:"\u542F\u7528\u5305\u90AE",prop:"deliveryExpressFreeEnabled"},{default:l(()=>[e(k,{modelValue:r(t).deliveryExpressFreeEnabled,"onUpdate:modelValue":o[3]||(o[3]=a=>r(t).deliveryExpressFreeEnabled=a),style:{"user-select":"none"}},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u5546\u57CE\u662F\u5426\u542F\u7528\u5168\u573A\u5305\u90AE ")]),_:1})]),_:1}),e(d,{label:"\u6EE1\u989D\u5305\u90AE",prop:"deliveryExpressFreePrice"},{default:l(()=>[e(m,{modelValue:r(t).deliveryExpressFreePrice,"onUpdate:modelValue":o[4]||(o[4]=a=>r(t).deliveryExpressFreePrice=a),placeholder:"\u8BF7\u8F93\u5165\u6EE1\u989D\u5305\u90AE",class:"!w-xs",precision:2,min:0},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u5546\u57CE\u5546\u54C1\u6EE1\u591A\u5C11\u91D1\u989D\u5373\u53EF\u5305\u90AE\uFF0C\u5355\u4F4D\uFF1A\u5143 ")]),_:1})]),_:1}),e(d,{label:"\u542F\u7528\u95E8\u5E97\u81EA\u63D0",prop:"deliveryPickUpEnabled"},{default:l(()=>[e(k,{modelValue:r(t).deliveryPickUpEnabled,"onUpdate:modelValue":o[5]||(o[5]=a=>r(t).deliveryPickUpEnabled=a),style:{"user-select":"none"}},null,8,["modelValue"])]),_:1})]),_:1}),e(y,{label:"\u5206\u9500"},{default:l(()=>[e(d,{label:"\u5206\u4F63\u542F\u7528",prop:"brokerageEnabled"},{default:l(()=>[e(k,{modelValue:r(t).brokerageEnabled,"onUpdate:modelValue":o[6]||(o[6]=a=>r(t).brokerageEnabled=a),style:{"user-select":"none"}},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u5546\u57CE\u662F\u5426\u5F00\u542F\u5206\u9500\u6A21\u5F0F ")]),_:1})]),_:1}),e(d,{label:"\u5206\u4F63\u6A21\u5F0F",prop:"brokerageEnabledCondition"},{default:l(()=>[e(F,{modelValue:r(t).brokerageEnabledCondition,"onUpdate:modelValue":o[7]||(o[7]=a=>r(t).brokerageEnabledCondition=a)},{default:l(()=>[(i(!0),p(c,null,_(r(P)(r(h).BROKERAGE_ENABLED_CONDITION),a=>(i(),f(x,{key:a.value,label:a.value},{default:l(()=>[s(w(a.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u4EBA\u4EBA\u5206\u9500\uFF1A\u6BCF\u4E2A\u7528\u6237\u90FD\u53EF\u4EE5\u6210\u4E3A\u63A8\u5E7F\u5458 ")]),_:1}),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u6307\u5B9A\u5206\u9500\uFF1A\u4EC5\u53EF\u5728\u540E\u53F0\u624B\u52A8\u8BBE\u7F6E\u63A8\u5E7F\u5458 ")]),_:1})]),_:1}),e(d,{label:"\u5206\u9500\u5173\u7CFB\u7ED1\u5B9A",prop:"brokerageBindMode"},{default:l(()=>[e(F,{modelValue:r(t).brokerageBindMode,"onUpdate:modelValue":o[8]||(o[8]=a=>r(t).brokerageBindMode=a)},{default:l(()=>[(i(!0),p(c,null,_(r(P)(r(h).BROKERAGE_BIND_MODE),a=>(i(),f(x,{key:a.value,label:a.value},{default:l(()=>[s(w(a.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u9996\u6B21\u7ED1\u5B9A\uFF1A\u53EA\u8981\u7528\u6237\u6CA1\u6709\u63A8\u5E7F\u4EBA\uFF0C\u968F\u65F6\u90FD\u53EF\u4EE5\u7ED1\u5B9A\u63A8\u5E7F\u5173\u7CFB ")]),_:1}),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u6CE8\u518C\u7ED1\u5B9A\uFF1A\u53EA\u6709\u65B0\u7528\u6237\u6CE8\u518C\u65F6\u6216\u9996\u6B21\u8FDB\u5165\u7CFB\u7EDF\u65F6\u624D\u53EF\u4EE5\u7ED1\u5B9A\u63A8\u5E7F\u5173\u7CFB ")]),_:1})]),_:1}),e(d,{label:"\u5206\u9500\u6D77\u62A5\u56FE"},{default:l(()=>[e(B,{modelValue:r(t).brokeragePosterUrls,"onUpdate:modelValue":o[9]||(o[9]=a=>r(t).brokeragePosterUrls=a),width:"75px",height:"125px"},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u4E2A\u4EBA\u4E2D\u5FC3\u5206\u9500\u6D77\u62A5\u56FE\u7247\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8 600x1000 ")]),_:1})]),_:1}),e(d,{label:"\u4E00\u7EA7\u8FD4\u4F63\u6BD4\u4F8B",prop:"brokerageFirstPercent"},{default:l(()=>[e(m,{modelValue:r(t).brokerageFirstPercent,"onUpdate:modelValue":o[10]||(o[10]=a=>r(t).brokerageFirstPercent=a),placeholder:"\u8BF7\u8F93\u5165\u4E00\u7EA7\u8FD4\u4F63\u6BD4\u4F8B",class:"!w-xs",min:0,max:100},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u8BA2\u5355\u4EA4\u6613\u6210\u529F\u540E\u7ED9\u63A8\u5E7F\u4EBA\u8FD4\u4F63\u7684\u767E\u5206\u6BD4 ")]),_:1})]),_:1}),e(d,{label:"\u4E8C\u7EA7\u8FD4\u4F63\u6BD4\u4F8B",prop:"brokerageSecondPercent"},{default:l(()=>[e(m,{modelValue:r(t).brokerageSecondPercent,"onUpdate:modelValue":o[11]||(o[11]=a=>r(t).brokerageSecondPercent=a),placeholder:"\u8BF7\u8F93\u5165\u4E8C\u7EA7\u8FD4\u4F63\u6BD4\u4F8B",class:"!w-xs",min:0,max:100},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u8BA2\u5355\u4EA4\u6613\u6210\u529F\u540E\u7ED9\u63A8\u5E7F\u4EBA\u7684\u63A8\u8350\u4EBA\u8FD4\u4F63\u7684\u767E\u5206\u6BD4 ")]),_:1})]),_:1}),e(d,{label:"\u4F63\u91D1\u51BB\u7ED3\u5929\u6570",prop:"brokerageFrozenDays"},{default:l(()=>[e(m,{modelValue:r(t).brokerageFrozenDays,"onUpdate:modelValue":o[12]||(o[12]=a=>r(t).brokerageFrozenDays=a),placeholder:"\u8BF7\u8F93\u5165\u4F63\u91D1\u51BB\u7ED3\u5929\u6570",class:"!w-xs",min:0},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u9632\u6B62\u7528\u6237\u9000\u6B3E\uFF0C\u4F63\u91D1\u88AB\u63D0\u73B0\u4E86\uFF0C\u6240\u4EE5\u9700\u8981\u8BBE\u7F6E\u4F63\u91D1\u51BB\u7ED3\u65F6\u95F4\uFF0C\u5355\u4F4D\uFF1A\u5929 ")]),_:1})]),_:1}),e(d,{label:"\u63D0\u73B0\u6700\u4F4E\u91D1\u989D",prop:"brokerageWithdrawMinPrice"},{default:l(()=>[e(m,{modelValue:r(t).brokerageWithdrawMinPrice,"onUpdate:modelValue":o[13]||(o[13]=a=>r(t).brokerageWithdrawMinPrice=a),placeholder:"\u8BF7\u8F93\u5165\u63D0\u73B0\u6700\u4F4E\u91D1\u989D",class:"!w-xs",precision:2,min:0},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u7528\u6237\u63D0\u73B0\u6700\u4F4E\u91D1\u989D\u9650\u5236\uFF0C\u5355\u4F4D\uFF1A\u5143 ")]),_:1})]),_:1}),e(d,{label:"\u63D0\u73B0\u624B\u7EED\u8D39",prop:"brokerageWithdrawFeePercent"},{default:l(()=>[e(m,{modelValue:r(t).brokerageWithdrawFeePercent,"onUpdate:modelValue":o[14]||(o[14]=a=>r(t).brokerageWithdrawFeePercent=a),placeholder:"\u8BF7\u8F93\u5165\u63D0\u73B0\u624B\u7EED\u8D39",class:"!w-xs",min:0,max:100},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u63D0\u73B0\u624B\u7EED\u8D39\u767E\u5206\u6BD4\uFF0C\u8303\u56F4 0-100\uFF0C0 \u4E3A\u65E0\u63D0\u73B0\u624B\u7EED\u8D39\u3002\u4F8B\uFF1A\u8BBE\u7F6E 10\uFF0C\u5373\u6536\u53D6 10% \u624B\u7EED\u8D39\uFF0C\u63D0\u73B0 10 \u5143\uFF0C\u5230\u8D26 9 \u5143\uFF0C1 \u5143\u624B\u7EED\u8D39 ")]),_:1})]),_:1}),e(d,{label:"\u63D0\u73B0\u65B9\u5F0F",prop:"brokerageWithdrawTypes"},{default:l(()=>[e(T,{modelValue:r(t).brokerageWithdrawTypes,"onUpdate:modelValue":o[15]||(o[15]=a=>r(t).brokerageWithdrawTypes=a)},{default:l(()=>[(i(!0),p(c,null,_(r(P)(r(h).BROKERAGE_WITHDRAW_TYPE),a=>(i(),f(D,{key:a.value,label:a.value},{default:l(()=>[s(w(a.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[s(" \u5546\u57CE\u5F00\u901A\u63D0\u73B0\u7684\u4ED8\u6B3E\u65B9\u5F0F ")]),_:1})]),_:1})]),_:1})]),_:1}),e(d,null,{default:l(()=>[e(C,{type:"primary",onClick:M,loading:r(b)},{default:l(()=>[s(" \u4FDD\u5B58 ")]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","rules"])),[[I,r(b)]])]),_:1})}}})});export{he as __tla,U as default};