Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

2 rindas
5.0KB

  1. var R=Object.defineProperty,D=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var C=(r,a,o)=>a in r?R(r,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[a]=o,S=(r,a)=>{for(var o in a||(a={}))A.call(a,o)&&C(r,o,a[o]);if(L)for(var o of L(a))E.call(a,o)&&C(r,o,a[o]);return r},j=(r,a)=>D(r,T(a));var b=(r,a,o)=>new Promise((I,c)=>{var g=d=>{try{m(o.next(d))}catch(u){c(u)}},s=d=>{try{m(o.throw(d))}catch(u){c(u)}},m=d=>d.done?I(d.value):Promise.resolve(d.value).then(g,s);m((o=o.apply(r,a)).next())});import{m as G}from"./orderManage.53ba324a.js";import{h as q,a as z,f as U,b as k}from"./uploadAction.d4782c23.js";import{d as H,y as J,r as B,z as K,f as n,g as Q,n as W,w as e,e as l,v as p,b as h,h as v,i as X}from"./index.a7edfbd5.js";const Y=h("span",{class:"text-info"},"\u5343\u7C73",-1),Z=v("\u662F"),ee=v("\u5426"),le=h("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),oe=h("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),te=v(" \u63D0\u4EA4 "),ae=v(" \u5173\u95ED "),ie=H({name:"confirmBoardingDialog"}),ue=Object.assign(ie,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(r,{emit:a}){const o=r,{proxy:I}=X(),c=J.dictStore.uploadUrl,g=B(),s=B({beginMileageImgIdList:[],driverPhotos:[],isSelf:""}),m={beginMileage:[{required:!0,message:"\u8BF7\u8F93\u5165\u603B\u91CC\u7A0B\u6570",trigger:"blur"}],isSelf:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u4E3A\u672C\u4EBA",trigger:"blur"}],beginMileageImgIdList:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u91CC\u7A0B\u56FE\u7247",trigger:"blur"}],driverPhotos:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u53F8\u673A\u4E0E\u8F66\u8F86\u6B63\u9762\u7167\uFF08\u659C45\u5EA6\uFF09",trigger:"blur"}]},d=u=>b(this,null,function*(){!u||(yield u.validate(t=>b(this,null,function*(){if(t){const{beginMileageImgIdList:y,driverPhotos:f}=s.value;yield G(j(S({},s.value),{beginMileageImgIdList:k(y),driverPhotos:k(f)})),I.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),a("close",!0)}})))});return K(()=>o.visible,u=>b(this,null,function*(){var t;u?o.data&&(s.value.orderId=(t=o.data)==null?void 0:t.id):(s.value={},g.value.resetFields())})),(u,t)=>{const y=n("el-input-number"),f=n("el-form-item"),_=n("el-col"),M=n("el-radio"),F=n("el-radio-group"),w=n("Plus"),x=n("el-icon"),P=n("el-upload"),$=n("el-row"),N=n("el-form"),V=n("el-button"),O=n("el-dialog");return Q(),W(O,{"model-value":r.visible,title:"\u786E\u8BA4\u4E0A\u8F66",width:"840px","destroy-on-close":"",onClose:t[6]||(t[6]=i=>a("close"))},{footer:e(()=>[l(V,{type:"primary",size:"small",onClick:t[4]||(t[4]=i=>d(g.value))},{default:e(()=>[te]),_:1}),l(V,{type:"info",size:"small",onClick:t[5]||(t[5]=i=>a("close"))},{default:e(()=>[ae]),_:1})]),default:e(()=>[l(N,{ref_key:"formRef",ref:g,model:s.value,rules:m,"label-width":"90px","label-suffix":":",size:"small"},{default:e(()=>[l($,{gutter:30},{default:e(()=>[l(_,{span:12},{default:e(()=>[l(f,{label:"\u603B\u91CC\u7A0B\u6570",prop:"beginMileage"},{default:e(()=>[l(y,{modelValue:s.value.beginMileage,"onUpdate:modelValue":t[0]||(t[0]=i=>s.value.beginMileage=i),controls:!1,placeholder:"\u8BF7\u8F93\u5165",class:"flex-1 mr-8",min:0},null,8,["modelValue"]),Y]),_:1})]),_:1}),l(_,{span:12},{default:e(()=>[l(f,{"label-width":"100",required:"",label:"\u662F\u5426\u4E3A\u53F8\u673A\u672C\u4EBA",prop:"isSelf"},{default:e(()=>[l(F,{modelValue:s.value.isSelf,"onUpdate:modelValue":t[1]||(t[1]=i=>s.value.isSelf=i)},{default:e(()=>[l(M,{label:"1"},{default:e(()=>[Z]),_:1}),l(M,{label:"2"},{default:e(()=>[ee]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),l(_,{span:12},{default:e(()=>[l(f,{label:"\u91CC\u7A0B\u56FE\u7247",prop:"beginMileageImgIdList"},{default:e(()=>[l(P,{"file-list":s.value.beginMileageImgIdList,"onUpdate:file-list":t[2]||(t[2]=i=>s.value.beginMileageImgIdList=i),class:"picture-card",action:p(c),"list-type":"picture-card",limit:10,"on-success":i=>p(q)(i,s.value.beginMileageImgIdList),"on-error":p(z),"before-upload":i=>p(U)(i,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:e(()=>[le]),default:e(()=>[l(x,{class:"avatar-uploader-icon"},{default:e(()=>[l(w)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1}),l(_,{span:12},{default:e(()=>[l(f,{"label-width":"200",label:"\u53F8\u673A\u4E0E\u8F66\u8F86\u6B63\u9762\u7167\uFF08\u659C45\u5EA6\uFF09",prop:"driverPhotos"},{default:e(()=>[l(P,{"file-list":s.value.driverPhotos,"onUpdate:file-list":t[3]||(t[3]=i=>s.value.driverPhotos=i),class:"picture-card",action:p(c),"list-type":"picture-card",limit:10,"on-success":i=>p(q)(i,s.value.driverPhotos),"on-error":p(z),"before-upload":i=>p(U)(i,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:e(()=>[oe]),default:e(()=>[l(x,{class:"avatar-uploader-icon"},{default:e(()=>[l(w)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])}}});export{ue as default};