|
- var O=Object.defineProperty,P=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var U=(n,i,s)=>i in n?O(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,C=(n,i)=>{for(var s in i||(i={}))D.call(i,s)&&U(n,s,i[s]);if(F)for(var s of F(i))A.call(i,s)&&U(n,s,i[s]);return n},k=(n,i)=>P(n,R(i));var I=(n,i,s)=>new Promise((V,g)=>{var v=r=>{try{b(s.next(r))}catch(m){g(m)}},o=r=>{try{b(s.throw(r))}catch(m){g(m)}},b=r=>r.done?V(r.value):Promise.resolve(r.value).then(v,o);b((s=s.apply(n,i)).next())});import{k as E}from"./orderManage.83f936be.js";import{h as j,a as z,f as S,b as B}from"./uploadAction.9c148b89.js";import{d as G,y as H,r as $,z as J,f as d,g as K,n as M,w as l,e,v as _,b as c,h as q,i as Q}from"./index.56ad3315.js";const W=c("span",{class:"text-info"},"\u5343\u7C73",-1),X=c("span",{class:"text-info"},"\u5143",-1),Y=c("span",{class:"text-info"},"\u5143",-1),Z=c("span",{class:"text-info"},"\u5C0F\u65F6",-1),ee=c("span",{class:"text-info"},"\u5143",-1),le=c("span",{class:"text-info"},"\u5143",-1),ae=c("span",{class:"text-info"},"\u5143",-1),te=c("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),oe=c("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),se=q(" \u63D0\u4EA4 "),ie=q(" \u5173\u95ED "),ne=G({name:"orderCompletionDialog"}),fe=Object.assign(ne,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(n,{emit:i}){const s=n,{proxy:V}=Q(),g=H.dictStore.uploadUrl,v=$(),o=$({mileageImgIdList:[],feeImgIdList:[]}),b={mileage:[{required:!0,message:"\u8BF7\u8F93\u5165\u603B\u91CC\u7A0B\u6570",trigger:"blur"}],mileageImgIdList:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u91CC\u7A0B\u56FE\u7247",trigger:"blur"}]},r=m=>I(this,null,function*(){!m||(yield m.validate(a=>I(this,null,function*(){if(a){const{mileageImgIdList:f,feeImgIdList:u}=o.value;yield E(k(C({},o.value),{mileageImgIdList:B(f),feeImgIdList:B(u)})),V.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),i("close",!0)}})))});return J(()=>s.visible,m=>I(this,null,function*(){var a;m?s.data&&(o.value.orderId=(a=s.data)==null?void 0:a.id):(o.value={},v.value.resetFields())})),(m,a)=>{const f=d("el-input-number"),u=d("el-form-item"),p=d("el-col"),x=d("el-row"),y=d("Plus"),L=d("el-icon"),h=d("el-upload"),N=d("el-form"),w=d("el-button"),T=d("el-dialog");return K(),M(T,{"model-value":n.visible,title:"\u8BA2\u5355\u5B8C\u6210",width:"840px","destroy-on-close":"",onClose:a[11]||(a[11]=t=>i("close"))},{footer:l(()=>[e(w,{type:"primary",size:"small",onClick:a[9]||(a[9]=t=>r(v.value))},{default:l(()=>[se]),_:1}),e(w,{type:"info",size:"small",onClick:a[10]||(a[10]=t=>i("close"))},{default:l(()=>[ie]),_:1})]),default:l(()=>[e(N,{ref_key:"formRef",ref:v,model:o.value,rules:b,"label-width":"90px","label-suffix":":",size:"small"},{default:l(()=>[e(x,{gutter:30},{default:l(()=>[e(p,{span:12},{default:l(()=>[e(u,{label:"\u603B\u91CC\u7A0B\u6570",prop:"mileage"},{default:l(()=>[e(f,{modelValue:o.value.mileage,"onUpdate:modelValue":a[0]||(a[0]=t=>o.value.mileage=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),W]),_:1})]),_:1})]),_:1}),e(x,{gutter:30},{default:l(()=>[e(p,{span:12},{default:l(()=>[e(u,{label:"\u9AD8\u901F\u8D39"},{default:l(()=>[e(f,{modelValue:o.value.expresswayFee,"onUpdate:modelValue":a[1]||(a[1]=t=>o.value.expresswayFee=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),X]),_:1})]),_:1}),e(p,{span:12},{default:l(()=>[e(u,{label:"\u505C\u8F66\u8D39"},{default:l(()=>[e(f,{modelValue:o.value.parkingFee,"onUpdate:modelValue":a[2]||(a[2]=t=>o.value.parkingFee=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),Y]),_:1})]),_:1}),e(p,{span:12},{default:l(()=>[e(u,{label:"\u591C\u73ED\u65F6\u957F"},{default:l(()=>[e(f,{modelValue:o.value.nightShiftTime,"onUpdate:modelValue":a[3]||(a[3]=t=>o.value.nightShiftTime=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),Z]),_:1})]),_:1}),e(p,{span:12},{default:l(()=>[e(u,{label:"\u4E0B\u53BF\u8865\u8D34"},{default:l(()=>[e(f,{modelValue:o.value.countySubsidyFee,"onUpdate:modelValue":a[4]||(a[4]=t=>o.value.countySubsidyFee=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),ee]),_:1})]),_:1}),e(p,{span:12},{default:l(()=>[e(u,{label:"\u9644\u52A0\u8D39"},{default:l(()=>[e(f,{modelValue:o.value.surcharge,"onUpdate:modelValue":a[5]||(a[5]=t=>o.value.surcharge=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),le]),_:1})]),_:1}),e(p,{span:12},{default:l(()=>[e(u,{label:"\u5176\u4ED6\u8D39\u7528"},{default:l(()=>[e(f,{modelValue:o.value.otherCost,"onUpdate:modelValue":a[6]||(a[6]=t=>o.value.otherCost=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),ae]),_:1})]),_:1}),e(p,{span:12},{default:l(()=>[e(u,{label:"\u91CC\u7A0B\u56FE\u7247",prop:"mileageImgIdList"},{default:l(()=>[e(h,{"file-list":o.value.mileageImgIdList,"onUpdate:file-list":a[7]||(a[7]=t=>o.value.mileageImgIdList=t),class:"picture-card",action:_(g),"list-type":"picture-card",limit:10,"on-success":t=>_(j)(t,o.value.mileageImgIdList),"on-error":_(z),"before-upload":t=>_(S)(t,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[te]),default:l(()=>[e(L,{class:"avatar-uploader-icon"},{default:l(()=>[e(y)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1}),e(p,{span:12},{default:l(()=>[e(u,{label:"\u8D39\u7528\u56FE\u7247"},{default:l(()=>[e(h,{"file-list":o.value.feeImgIdList,"onUpdate:file-list":a[8]||(a[8]=t=>o.value.feeImgIdList=t),class:"picture-card",action:_(g),"list-type":"picture-card",limit:10,"on-success":t=>_(j)(t,o.value.feeImgIdList),"on-error":_(z),"before-upload":t=>_(S)(t,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[oe]),default:l(()=>[e(L,{class:"avatar-uploader-icon"},{default:l(()=>[e(y)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])}}});export{fe as default};
|