|
- var M=Object.defineProperty,N=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var W=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var U=(r,i,o)=>i in r?M(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o,y=(r,i)=>{for(var o in i||(i={}))E.call(i,o)&&U(r,o,i[o]);if(W)for(var o of W(i))S.call(i,o)&&U(r,o,i[o]);return r},w=(r,i)=>N(r,j(i));var b=(r,i,o)=>new Promise((F,c)=>{var t=g=>{try{m(o.next(g))}catch(_){c(_)}},h=g=>{try{m(o.throw(g))}catch(_){c(_)}},m=g=>g.done?F(g.value):Promise.resolve(g.value).then(t,h);m((o=o.apply(r,i)).next())});import{n as O,d as z,r as C,A as B,R as T,f as v,g as D,p as A,w as a,e,x as I,h as V,b as d,i as G}from"./index.551f5afa.js";import{u as H}from"./useTreeSelectData.cd9b00f2.js";const fe=r=>O.get("/api/v1/region-setting/page",{params:r}),J=r=>O.post("/api/v1/region-setting/save",r),me=r=>O.delete("/api/v1/region-setting/del",{data:r}),K=V("\u666E\u901A\u9A7E\u9A76\u5458\u51FA\u8F66\u914D\u7F6E"),L=d("span",{class:"text-info"},"\u5143",-1),Q=d("span",{class:"text-info"},"\u5143/\u5343\u7C73",-1),X=d("span",{class:"text-info"},"%",-1),Y=d("span",{class:"text-info"},"\u5143/\u5C0F\u65F6",-1),Z=d("span",{class:"text-info"},"\u5143",-1),ee=d("div",{style:{width:"0.5px",background:"#8c939d",height:"calc(100% - 100px)"}},null,-1),le=V("\u5DE5\u7A0B\u5E08\u517C\u9A7E\u9A76\u5458\u51FA\u8F66\u914D\u7F6E"),ae=d("span",{class:"text-info"},"\u5143",-1),te=d("span",{class:"text-info"},"\u5143/\u5343\u7C73",-1),ne=d("span",{class:"text-info"},"%",-1),oe=d("span",{class:"text-info"},"\u5143/\u5C0F\u65F6",-1),re=d("span",{class:"text-info"},"\u5143",-1),ie=d("span",{class:"text-info"},"\u5143",-1),se=V(" \u63D0\u4EA4 "),ue=V(" \u5173\u95ED "),de=z({name:"regionDialog"}),pe=Object.assign(de,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(r,{emit:i}){const o=r,{proxy:F}=G(),c=C(),t=C({workingOvertimeFee:0,nightWorkingFee:0}),h={regionCode:[{required:!0,message:"\u8BF7\u9009\u62E9\u533A\u57DF",trigger:"change"}],carExpense:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u8F66\u8D39",trigger:"blur"}],oilPrice:[{required:!0,message:"\u8BF7\u8F93\u5165\u6CB9\u5355\u4EF7",trigger:"blur"}],serviceFeeRate:[{required:!0,message:"\u8BF7\u8F93\u5165\u670D\u52A1\u8D39\u7387",trigger:"blur"}],workingOvertimeFee:[{required:!0,message:"\u8BF7\u8F93\u5165\u52A0\u73ED\u8D39\u5355\u4EF7",trigger:"blur"}],nightWorkingFee:[{required:!0,message:"\u8BF7\u8F93\u5165\u591C\u73ED\u8D39",trigger:"blur"}],engineerCarExpense:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u8F66\u8D39",trigger:"blur"}],engineerOilPrice:[{required:!0,message:"\u8BF7\u8F93\u5165\u6CB9\u5355\u4EF7",trigger:"blur"}],engineerServiceFeeRate:[{required:!0,message:"\u8BF7\u8F93\u5165\u670D\u52A1\u8D39\u7387",trigger:"blur"}],engineerWorkingOvertimeFee:[{required:!0,message:"\u8BF7\u8F93\u5165\u52A0\u73ED\u8D39\u5355\u4EF7",trigger:"blur"}],engineerNightWorkingFee:[{required:!0,message:"\u8BF7\u8F93\u5165\u591C\u73ED\u8D39",trigger:"blur"}],engineerMonthFeeMax:[{required:!0,message:"\u6708\u7ED3\u8D39\u4E0A\u9650",trigger:"blur"}]},m=x=>b(this,null,function*(){!x||(yield x.validate(l=>b(this,null,function*(){var f;l&&(yield J(w(y({},t.value),{regionCode:(f=t.value.regionCode)==null?void 0:f.at(-1)})),F.$message.success(`${o.data&&o.data.id?"\u7F16\u8F91":"\u65B0\u589E"}\u6210\u529F\uFF01`),i("close",!0))})))}),g=C([]),{cascaderProps:_}=H();return B(()=>o.visible,x=>b(this,null,function*(){var l;x?(g.value=(yield T()).data,(l=o.data)!=null&&l.id&&(t.value=w(y({},o.data),{regionCode:o.data.regionCodePath.split(",").map(f=>Number(f))}))):(t.value={},c.value.resetFields())})),(x,l)=>{var q;const f=v("el-cascader"),u=v("el-form-item"),s=v("el-col"),k=v("el-row"),p=v("el-input"),P=v("el-form"),$=v("el-button"),R=v("el-dialog");return D(),A(R,{"model-value":r.visible,title:`${(q=r.data)!=null&&q.id?"\u7F16\u8F91":"\u65B0\u589E"}\u533A\u57DF`,width:"840px","destroy-on-close":"",onClose:l[14]||(l[14]=n=>i("close"))},{footer:a(()=>[e($,{type:"primary",size:"small",onClick:l[12]||(l[12]=n=>m(c.value))},{default:a(()=>[se]),_:1}),e($,{type:"info",size:"small",onClick:l[13]||(l[13]=n=>i("close"))},{default:a(()=>[ue]),_:1})]),default:a(()=>[e(P,{ref_key:"formRef",ref:c,"label-position":"left",model:t.value,rules:h,"label-width":"120px","label-suffix":":",size:"small"},{default:a(()=>[e(s,{span:12},{default:a(()=>[e(u,{label:"\u533A\u57DF",prop:"regionCode"},{default:a(()=>[e(f,{modelValue:t.value.regionCode,"onUpdate:modelValue":l[0]||(l[0]=n=>t.value.regionCode=n),props:I(_),options:g.value,class:"w-full"},null,8,["modelValue","props","options"])]),_:1})]),_:1}),e(k,{gutter:30},{default:a(()=>[e(s,{span:11},{default:a(()=>[e(k,{span:24,style:{"justify-content":"center","font-weight":"500","font-size":"15px",padding:"10px"}},{default:a(()=>[K]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u51FA\u8F66\u8D39",prop:"carExpense"},{default:a(()=>[e(p,{modelValue:t.value.carExpense,"onUpdate:modelValue":l[1]||(l[1]=n=>t.value.carExpense=n),oninput:"if(value>99999.99){value=99999.99} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),L]),_:1})]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u6CB9\u5355\u4EF7",prop:"oilPrice"},{default:a(()=>[e(p,{modelValue:t.value.oilPrice,"onUpdate:modelValue":l[2]||(l[2]=n=>t.value.oilPrice=n),oninput:"if(value>99999.99){value=99999.99} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),Q]),_:1})]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u670D\u52A1\u8D39\u7387",prop:"serviceFeeRate"},{default:a(()=>[e(p,{modelValue:t.value.serviceFeeRate,"onUpdate:modelValue":l[3]||(l[3]=n=>t.value.serviceFeeRate=n),oninput:"if(value>4.5){value=4.5} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),X]),_:1})]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u52A0\u73ED\u8D39\u5355\u4EF7",prop:"workingOvertimeFee"},{default:a(()=>[e(p,{modelValue:t.value.workingOvertimeFee,"onUpdate:modelValue":l[4]||(l[4]=n=>t.value.workingOvertimeFee=n),oninput:"if(value>99999.99){value=99999.99} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),Y]),_:1})]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u591C\u73ED\u8D39",prop:"nightWorkingFee"},{default:a(()=>[e(p,{modelValue:t.value.nightWorkingFee,"onUpdate:modelValue":l[5]||(l[5]=n=>t.value.nightWorkingFee=n),oninput:"if(value>99999.99){value=99999.99} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),Z]),_:1})]),_:1})]),_:1}),e(s,{span:2,style:{"justify-content":"center","align-items":"center","align-content":"center",display:"flex"}},{default:a(()=>[ee]),_:1}),e(s,{span:11},{default:a(()=>[e(k,{span:24,style:{"justify-content":"center","font-weight":"500","font-size":"15px",padding:"10px"}},{default:a(()=>[le]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u51FA\u8F66\u8D39",prop:"engineerCarExpense"},{default:a(()=>[e(p,{modelValue:t.value.engineerCarExpense,"onUpdate:modelValue":l[6]||(l[6]=n=>t.value.engineerCarExpense=n),oninput:"if(value>99999.99){value=99999.99} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),ae]),_:1})]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u6CB9\u5355\u4EF7",prop:"engineerOilPrice"},{default:a(()=>[e(p,{modelValue:t.value.engineerOilPrice,"onUpdate:modelValue":l[7]||(l[7]=n=>t.value.engineerOilPrice=n),oninput:"if(value>99999.99){value=99999.99} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),te]),_:1})]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u670D\u52A1\u8D39\u7387",prop:"engineerServiceFeeRate"},{default:a(()=>[e(p,{modelValue:t.value.engineerServiceFeeRate,"onUpdate:modelValue":l[8]||(l[8]=n=>t.value.engineerServiceFeeRate=n),oninput:"if(value>4.5){value=4.5} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),ne]),_:1})]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u52A0\u73ED\u8D39\u5355\u4EF7",prop:"engineerWorkingOvertimeFee"},{default:a(()=>[e(p,{modelValue:t.value.engineerWorkingOvertimeFee,"onUpdate:modelValue":l[9]||(l[9]=n=>t.value.engineerWorkingOvertimeFee=n),oninput:"if(value>99999.99){value=99999.99} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),oe]),_:1})]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u591C\u73ED\u8D39",prop:"engineerNightWorkingFee"},{default:a(()=>[e(p,{modelValue:t.value.engineerNightWorkingFee,"onUpdate:modelValue":l[10]||(l[10]=n=>t.value.engineerNightWorkingFee=n),oninput:"if(value>99999.99){value=99999.99} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),re]),_:1})]),_:1}),e(s,{span:24},{default:a(()=>[e(u,{label:"\u6708\u7ED3\u7B97\u4E0A\u9650",prop:"engineerMonthFeeMax"},{default:a(()=>[e(p,{modelValue:t.value.engineerMonthFeeMax,"onUpdate:modelValue":l[11]||(l[11]=n=>t.value.engineerMonthFeeMax=n),oninput:"if(value>99999.99){value=99999.99} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),ie]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value","title"])}}}),_e=Object.freeze(Object.defineProperty({__proto__:null,default:pe},Symbol.toStringTag,{value:"Module"}));export{pe as _,me as d,fe as l,_e as r};
|