Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2 lines
7.2KB

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