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