25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
7.8KB

  1. var M=Object.defineProperty,T=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var A=(m,r,n)=>r in m?M(m,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):m[r]=n,$=(m,r)=>{for(var n in r||(r={}))O.call(r,n)&&A(m,n,r[n]);if(k)for(var n of k(r))R.call(r,n)&&A(m,n,r[n]);return m},N=(m,r)=>T(m,H(r));var h=(m,r,n)=>new Promise((w,v)=>{var b=c=>{try{I(n.next(c))}catch(_){v(_)}},a=c=>{try{I(n.throw(c))}catch(_){v(_)}},I=c=>c.done?w(c.value):Promise.resolve(c.value).then(b,a);I((n=n.apply(m,r)).next())});import{d as Y,k as G}from"./orderManage.9678cead.js";import{h as U,a as P,b as C}from"./uploadAction.e5090866.js";import{d as J,y as K,r as E,z as Q,f,g as W,n as X,w as l,e,v as g,b as p,h as j,i as Z}from"./index.fdfd5892.js";import{f as ee}from"./imageWaterUtils.2f29f38d.js";const le=p("span",{class:"text-info"},"\u5343\u7C73",-1),te=p("span",{class:"text-info"},"\u5143",-1),ae=p("span",{class:"text-info"},"\u5143",-1),oe=p("span",{class:"text-info"},"\u5C0F\u65F6",-1),se=p("span",{class:"text-info"},"\u5143",-1),ne=p("span",{class:"text-info"},"\u5143",-1),ie=p("span",{class:"text-info"},"\u5143",-1),re=p("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),de=p("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),ue=p("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),me=j(" \u63D0\u4EA4 "),fe=j(" \u5173\u95ED "),pe=J({name:"orderCompletionDialog"}),Ie=Object.assign(pe,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(m,{emit:r}){const n=m,{proxy:w}=Z(),v=K.dictStore.uploadUrl,b=E(),a=E({mileageImgIdList:[],feeImgIdList:[],driverPhotosAtEnd:[]}),I={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"}]},c=s=>h(this,null,function*(){!s||(yield s.validate(t=>h(this,null,function*(){if(t){const{mileageImgIdList:d,feeImgIdList:i,driverPhotosAtEnd:u}=a.value;yield G(N($({},a.value),{mileageImgIdList:C(d),feeImgIdList:C(i),driverPhotosAtEnd:C(u)})),w.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),r("close",!0)}})))});Q(()=>n.visible,s=>h(this,null,function*(){var t;s?n.data&&(a.value.orderId=(t=n.data)==null?void 0:t.id,D()):(a.value={},b.value.resetFields())}));function _(s){return new Promise((t,d)=>{var i=["\u516C \u53F8 \u5B81\u8FBE\u79D1\u6280",`\u65F6 \u95F4 ${B()}`,`\u7ECF \u5EA6 ${parseFloat(x.value.basicInfo.addresses[1].lng).toFixed(2)}\xB0E`,`\u7EAC \u5EA6 ${parseFloat(x.value.basicInfo.addresses[1].lat).toFixed(2)}\xB0N`,`\u5730 \u70B9 ${x.value.basicInfo.addresses[0].address}`];ee(s,i).then(u=>{t(u)})})}function B(){var s=new Date,t=s.getFullYear(),d=s.getMonth()+1,i=s.getDate(),u=s.getHours()<10?"0"+s.getHours():s.getHours(),y=s.getMinutes()<10?"0"+s.getMinutes():s.getMinutes(),V=s.getSeconds()<10?"0"+s.getSeconds():s.getSeconds();return d>=1&&d<=9&&(d="0"+d),i>=0&&i<=9&&(i="0"+i),t+"-"+d+"-"+i+" "+u+":"+y+":"+V}const x=E({});function D(){return h(this,null,function*(){const s=yield Y({orderNum:n.data.orderNum});x.value=s.data,console.log(x)})}return(s,t)=>{const d=f("el-input-number"),i=f("el-form-item"),u=f("el-col"),y=f("el-row"),V=f("Plus"),F=f("el-icon"),L=f("el-upload"),q=f("el-form"),S=f("el-button"),z=f("el-dialog");return W(),X(z,{"model-value":m.visible,title:"\u8BA2\u5355\u5B8C\u6210",width:"840px","destroy-on-close":"",onClose:t[12]||(t[12]=o=>r("close"))},{footer:l(()=>[e(S,{type:"primary",size:"small",onClick:t[10]||(t[10]=o=>c(b.value))},{default:l(()=>[me]),_:1}),e(S,{type:"info",size:"small",onClick:t[11]||(t[11]=o=>r("close"))},{default:l(()=>[fe]),_:1})]),default:l(()=>[e(q,{ref_key:"formRef",ref:b,model:a.value,rules:I,"label-width":"90px","label-suffix":":",size:"small"},{default:l(()=>[e(y,{gutter:30},{default:l(()=>[e(u,{span:12},{default:l(()=>[e(i,{label:"\u603B\u91CC\u7A0B\u6570",prop:"mileage"},{default:l(()=>[e(d,{modelValue:a.value.mileage,"onUpdate:modelValue":t[0]||(t[0]=o=>a.value.mileage=o),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),le]),_:1})]),_:1})]),_:1}),e(y,{gutter:30},{default:l(()=>[e(u,{span:12},{default:l(()=>[e(i,{label:"\u9AD8\u901F\u8D39"},{default:l(()=>[e(d,{modelValue:a.value.expresswayFee,"onUpdate:modelValue":t[1]||(t[1]=o=>a.value.expresswayFee=o),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),te]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(i,{label:"\u505C\u8F66\u8D39"},{default:l(()=>[e(d,{modelValue:a.value.parkingFee,"onUpdate:modelValue":t[2]||(t[2]=o=>a.value.parkingFee=o),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),ae]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(i,{label:"\u591C\u73ED\u65F6\u957F"},{default:l(()=>[e(d,{modelValue:a.value.nightShiftTime,"onUpdate:modelValue":t[3]||(t[3]=o=>a.value.nightShiftTime=o),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),oe]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(i,{label:"\u4E0B\u53BF\u8865\u8D34"},{default:l(()=>[e(d,{modelValue:a.value.countySubsidyFee,"onUpdate:modelValue":t[4]||(t[4]=o=>a.value.countySubsidyFee=o),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),se]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(i,{label:"\u9644\u52A0\u8D39"},{default:l(()=>[e(d,{modelValue:a.value.surcharge,"onUpdate:modelValue":t[5]||(t[5]=o=>a.value.surcharge=o),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),ne]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(i,{label:"\u5176\u4ED6\u8D39\u7528"},{default:l(()=>[e(d,{modelValue:a.value.otherCost,"onUpdate:modelValue":t[6]||(t[6]=o=>a.value.otherCost=o),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),ie]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(i,{label:"\u91CC\u7A0B\u56FE\u7247",prop:"mileageImgIdList"},{default:l(()=>[e(L,{"file-list":a.value.mileageImgIdList,"onUpdate:file-list":t[7]||(t[7]=o=>a.value.mileageImgIdList=o),class:"picture-card",action:g(v),"list-type":"picture-card",limit:10,"on-success":o=>g(U)(o,a.value.mileageImgIdList),"on-error":g(P),"before-upload":_},{tip:l(()=>[re]),default:l(()=>[e(F,{class:"avatar-uploader-icon"},{default:l(()=>[e(V)]),_:1})]),_:1},8,["file-list","action","on-success","on-error"])]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(i,{label:"\u8D39\u7528\u56FE\u7247"},{default:l(()=>[e(L,{"file-list":a.value.feeImgIdList,"onUpdate:file-list":t[8]||(t[8]=o=>a.value.feeImgIdList=o),class:"picture-card",action:g(v),"list-type":"picture-card",limit:10,"on-success":o=>g(U)(o,a.value.feeImgIdList),"on-error":g(P),"before-upload":_},{tip:l(()=>[de]),default:l(()=>[e(F,{class:"avatar-uploader-icon"},{default:l(()=>[e(V)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(i,{label:"\u53F8\u673A\u4E0E\u8F66\u8F86\u6B63\u9762\u7167\uFF08\u659C45\u5EA6\uFF09","label-width":"200",prop:"driverPhotosAtEnd"},{default:l(()=>[e(L,{"file-list":a.value.driverPhotosAtEnd,"onUpdate:file-list":t[9]||(t[9]=o=>a.value.driverPhotosAtEnd=o),class:"picture-card",action:g(v),"list-type":"picture-card",limit:10,"on-success":o=>g(U)(o,a.value.driverPhotosAtEnd),"on-error":g(P),"before-upload":_},{tip:l(()=>[ue]),default:l(()=>[e(F,{class:"avatar-uploader-icon"},{default:l(()=>[e(V)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])}}});export{Ie as default};