|
1 |
- var A=Object.defineProperty,G=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var O=(u,n,e)=>n in u?A(u,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[n]=e,q=(u,n)=>{for(var e in n||(n={}))J.call(n,e)&&O(u,e,n[e]);if(j)for(var e of j(n))K.call(n,e)&&O(u,e,n[e]);return u},D=(u,n)=>G(u,H(n));var V=(u,n,e)=>new Promise((h,c)=>{var o=d=>{try{_(e.next(d))}catch(l){c(l)}},F=d=>{try{_(e.throw(d))}catch(l){c(l)}},_=d=>d.done?h(d.value):Promise.resolve(d.value).then(o,F);_((e=e.apply(u,n)).next())});import{j as L}from"./orderManage.53ba324a.js";import{d as M,r as R,z as P,f,g as Q,n as W,w as s,e as a,h as I,t as X,b as p,i as Y}from"./index.a7edfbd5.js";const Z=p("span",{class:"text-info"},"\u5343\u7C73",-1),E=p("span",{class:"text-info"},"\u5143",-1),ee=p("span",{class:"text-info"},"\u5143",-1),le=p("span",{class:"text-info"},"\u5C0F\u65F6",-1),ae=p("span",{class:"text-info"},"\u5C0F\u65F6",-1),oe=p("span",{class:"text-info"},"\u5143",-1),te=p("span",{class:"text-info"},"\u5143",-1),se=p("span",{class:"text-info"},"\u5143",-1),ne=I(" \u63D0\u4EA4 "),ue=I(" \u5173\u95ED "),de=M({name:"confirmOrderDialog"}),fe=Object.assign(de,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(u,{emit:n}){const e=u,{proxy:h}=Y(),c=R(),o=R({}),F={mileage:[{required:!0,message:"\u8BF7\u8F93\u5165\u603B\u91CC\u7A0B\u6570",trigger:"blur"}]},_=d=>V(this,null,function*(){!d||(yield d.validate(l=>V(this,null,function*(){l&&(yield L(D(q({},o.value),{countySubsidyFee:o.value.countySubsidyFee?o.value.countySubsidyFee:0})),h.$message.success("\u786E\u8BA4\u6210\u529F\uFF01"),n("close",!0))})))});return P(()=>e.visible,d=>V(this,null,function*(){var l,r,i,v,m,g,y,b,x,t,C,w,N,S,k,U,T,$,z,B;d?e.data&&(o.value={orderId:(r=(l=e.data)==null?void 0:l.basicInfo)==null?void 0:r.id,orderNum:(v=(i=e.data)==null?void 0:i.basicInfo)==null?void 0:v.orderNum,mileage:(g=(m=e.data)==null?void 0:m.costInfo)!=null&&g.mileage?Number(e.data.costInfo.mileage):void 0,parkingFee:(b=(y=e.data)==null?void 0:y.costInfo)!=null&&b.parkingFee?Number(e.data.costInfo.parkingFee):void 0,expresswayFee:(t=(x=e.data)==null?void 0:x.costInfo)!=null&&t.expresswayFee?Number(e.data.costInfo.expresswayFee):void 0,nightShiftTime:(w=(C=e.data)==null?void 0:C.costInfo)!=null&&w.nightShiftTime?Number(e.data.costInfo.nightShiftTime):void 0,overtime:(S=(N=e.data)==null?void 0:N.costInfo)!=null&&S.overtime?Number(e.data.costInfo.overtime):void 0,surcharge:(U=(k=e.data)==null?void 0:k.costInfo)!=null&&U.surcharge?Number(e.data.costInfo.surcharge):void 0,otherCost:($=(T=e.data)==null?void 0:T.costInfo)!=null&&$.otherCost?Number(e.data.costInfo.otherCost):void 0,countySubsidyFee:(B=(z=e.data)==null?void 0:z.costInfo)!=null&&B.countySubsidyFee?Number(e.data.costInfo.countySubsidyFee):void 0}):(o.value={},c.value.resetFields())})),(d,l)=>{const r=f("el-form-item"),i=f("el-col"),v=f("el-input"),m=f("el-input-number"),g=f("el-row"),y=f("el-form"),b=f("el-button"),x=f("el-dialog");return Q(),W(x,{"model-value":u.visible,title:"\u786E\u8BA4\u8BA2\u5355",width:"840px","destroy-on-close":"",onClose:l[11]||(l[11]=t=>n("close"))},{footer:s(()=>[a(b,{type:"primary",size:"small",onClick:l[9]||(l[9]=t=>_(c.value))},{default:s(()=>[ne]),_:1}),a(b,{type:"info",size:"small",onClick:l[10]||(l[10]=t=>n("close"))},{default:s(()=>[ue]),_:1})]),default:s(()=>[a(y,{ref_key:"formRef",ref:c,model:o.value,rules:F,"label-width":"90px","label-suffix":":",size:"small"},{default:s(()=>[a(g,{gutter:30},{default:s(()=>[a(i,{span:24},{default:s(()=>[a(r,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"carNo"},{default:s(()=>{var t;return[I(X((t=o.value)==null?void 0:t.orderNum),1)]}),_:1})]),_:1}),a(i,{span:12},{default:s(()=>[a(r,{label:"\u603B\u91CC\u7A0B\u6570",prop:"mileage"},{default:s(()=>[a(v,{modelValue:o.value.mileage,"onUpdate:modelValue":l[0]||(l[0]=t=>o.value.mileage=t),oninput:"if(value>999999.99){value=999999.99} value=((value.replace(/[^0-9.]/g,'')).replace(/([0-9]+\\.[0-9]{2})[0-9]*/,'$1'))",maxlength:"9",placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),Z]),_:1})]),_:1}),a(i,{span:12},{default:s(()=>[a(r,{label:"\u505C\u8F66\u8D39",prop:"parkingFee"},{default:s(()=>[a(m,{modelValue:o.value.parkingFee,"onUpdate:modelValue":l[1]||(l[1]=t=>o.value.parkingFee=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),E]),_:1})]),_:1}),a(i,{span:12},{default:s(()=>[a(r,{label:"\u9AD8\u901F\u8D39",prop:"expresswayFee"},{default:s(()=>[a(m,{modelValue:o.value.expresswayFee,"onUpdate:modelValue":l[2]||(l[2]=t=>o.value.expresswayFee=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),ee]),_:1})]),_:1}),a(i,{span:12},{default:s(()=>[a(r,{label:"\u591C\u73ED\u65F6\u957F",prop:"nightShiftTime"},{default:s(()=>[a(m,{modelValue:o.value.nightShiftTime,"onUpdate:modelValue":l[3]||(l[3]=t=>o.value.nightShiftTime=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),le]),_:1})]),_:1}),a(i,{span:12},{default:s(()=>[a(r,{label:"\u8D85\u65F6\u65F6\u957F",prop:"overtime"},{default:s(()=>[a(m,{modelValue:o.value.overtime,"onUpdate:modelValue":l[4]||(l[4]=t=>o.value.overtime=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),ae]),_:1})]),_:1}),a(i,{span:12},{default:s(()=>[a(r,{label:"\u4E0B\u53BF\u8865\u8D34"},{default:s(()=>[a(m,{modelValue:o.value.countySubsidyFee,"onUpdate:modelValue":l[5]||(l[5]=t=>o.value.countySubsidyFee=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),oe]),_:1})]),_:1}),a(i,{span:12},{default:s(()=>[a(r,{label:"\u9644\u52A0\u8D39",prop:"surcharge"},{default:s(()=>[a(m,{modelValue:o.value.surcharge,"onUpdate:modelValue":l[6]||(l[6]=t=>o.value.surcharge=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),te]),_:1})]),_:1}),a(i,{span:12},{default:s(()=>[a(r,{label:"\u5176\u4ED6\u8D39\u7528",prop:"otherCost"},{default:s(()=>[a(m,{modelValue:o.value.otherCost,"onUpdate:modelValue":l[7]||(l[7]=t=>o.value.otherCost=t),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8"},null,8,["modelValue"]),se]),_:1})]),_:1}),a(i,{span:24},{default:s(()=>[a(r,{label:"\u610F\u89C1",prop:"modificationComments"},{default:s(()=>[a(v,{modelValue:o.value.modificationComments,"onUpdate:modelValue":l[8]||(l[8]=t=>o.value.modificationComments=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165",maxlength:"200"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])}}});export{fe as default};
|