index-8f46bf1f.js 12 KB

1
  1. import{d as G,r as V,f as N,z as j,o as i,j as f,w as l,D as R,a as r,i as e,a6 as K,c as p,F as c,C as _,m as o,t as w,X as Y,I as H,G as X,H as Z,Y as J,cZ as L,aX as Q,ai as $,aj as ee,ae,aY as le,Z as re,q as te,J as se,M as oe,__tla as de}from"./index-1e808f2e.js";import{_ as ue,__tla as ne}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{_ as ie,__tla as be}from"./UploadImgs-d9af51cb.js";import{E as fe,__tla as me}from"./el-text-3aab5b45.js";import{s as pe,g as ce,__tla as _e}from"./index-0fd40728.js";import{a as P,D as h,__tla as ge}from"./dict-a31cb4ba.js";import{u as ye,__tla as ke}from"./useMessage-5f9e8917.js";import{__tla as Ve}from"./el-card-03b3588b.js";import{__tla as we}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-531188a2.js";import{__tla as Pe}from"./el-image-viewer-dddb6285.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=G({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=N({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(s=>s!=null&&s.url?s.url:s),u.deliveryExpressFreePrice=100*u.deliveryExpressFreePrice,u.brokerageWithdrawMinPrice=100*u.brokerageWithdrawMinPrice,await pe(u),W.success("\u4FDD\u5B58\u6210\u529F")}finally{b.value=!1}}};return j(()=>{(async()=>{b.value=!0;try{const u=await ce();u!=null&&(u.brokeragePosterUrls=u.brokeragePosterUrls.map(s=>({url:s})),t.value=u,t.value.deliveryExpressFreePrice=u.deliveryExpressFreePrice/100,t.value.brokerageWithdrawMinPrice=u.brokerageWithdrawMinPrice/100)}finally{b.value=!1}})()}),(u,s)=>{const S=Y,d=H,v=X,E=Z,y=J,k=L,n=fe,m=Q,F=$,x=ee,D=ie,T=ae,q=le,B=re,C=te,I=se,O=ue,A=oe;return i(),f(O,null,{default:l(()=>[R((i(),f(I,{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":s[0]||(s[0]=a=>r(t).id=a)},null,8,["modelValue"])]),_:1},512),[[K,!1]]),e(B,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":s[1]||(s[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":s[2]||(s[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":s[3]||(s[3]=a=>r(t).deliveryExpressFreeEnabled=a),style:{"user-select":"none"}},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[o(" \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":s[4]||(s[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(()=>[o(" \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":s[5]||(s[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":s[6]||(s[6]=a=>r(t).brokerageEnabled=a),style:{"user-select":"none"}},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[o(" \u5546\u57CE\u662F\u5426\u5F00\u542F\u5206\u9500\u6A21\u5F0F ")]),_:1})]),_:1}),e(d,{label:"\u5206\u4F63\u6A21\u5F0F",prop:"brokerageEnabledCondition"},{default:l(()=>[e(x,{modelValue:r(t).brokerageEnabledCondition,"onUpdate:modelValue":s[7]||(s[7]=a=>r(t).brokerageEnabledCondition=a)},{default:l(()=>[(i(!0),p(c,null,_(r(P)(r(h).BROKERAGE_ENABLED_CONDITION),a=>(i(),f(F,{key:a.value,label:a.value},{default:l(()=>[o(w(a.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[o(" \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(()=>[o(" \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(x,{modelValue:r(t).brokerageBindMode,"onUpdate:modelValue":s[8]||(s[8]=a=>r(t).brokerageBindMode=a)},{default:l(()=>[(i(!0),p(c,null,_(r(P)(r(h).BROKERAGE_BIND_MODE),a=>(i(),f(F,{key:a.value,label:a.value},{default:l(()=>[o(w(a.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[o(" \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(()=>[o(" \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(D,{modelValue:r(t).brokeragePosterUrls,"onUpdate:modelValue":s[9]||(s[9]=a=>r(t).brokeragePosterUrls=a),width:"75px",height:"125px"},null,8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[o(" \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":s[10]||(s[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(()=>[o(" \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":s[11]||(s[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(()=>[o(" \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":s[12]||(s[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(()=>[o(" \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":s[13]||(s[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(()=>[o(" \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":s[14]||(s[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(()=>[o(" \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(q,{modelValue:r(t).brokerageWithdrawTypes,"onUpdate:modelValue":s[15]||(s[15]=a=>r(t).brokerageWithdrawTypes=a)},{default:l(()=>[(i(!0),p(c,null,_(r(P)(r(h).BROKERAGE_WITHDRAW_TYPE),a=>(i(),f(T,{key:a.value,label:a.value},{default:l(()=>[o(w(a.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),e(n,{class:"w-full",size:"small",type:"info"},{default:l(()=>[o(" \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(()=>[o(" \u4FDD\u5B58 ")]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","rules"])),[[A,r(b)]])]),_:1})}}})});export{he as __tla,U as default};