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

2 lines
5.5KB

  1. var O=Object.defineProperty;var z=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var $=(d,r,o)=>r in d?O(d,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[r]=o,x=(d,r)=>{for(var o in r||(r={}))G.call(r,o)&&$(d,o,r[o]);if(z)for(var o of z(r))P.call(r,o)&&$(d,o,r[o]);return d};var y=(d,r,o)=>new Promise((C,N)=>{var v=l=>{try{s(o.next(l))}catch(m){N(m)}},j=l=>{try{s(o.throw(l))}catch(m){N(m)}},s=l=>l.done?C(l.value):Promise.resolve(l.value).then(v,j);s((o=o.apply(d,r)).next())});import{p as W,n as A}from"./orderManage.fe83d1aa.js";import{u as S}from"./useExportExc.d21c8116.js";import{d as H,a as R,r as b,A as J,f,g as K,c as Q,e as a,w as t,b as X,F as Z,h as g,B as ee,i as ae}from"./index.551f5afa.js";const te=g(" \u5BFC\u51FA "),le=g(" \u5173\u95ED "),oe=g("\u67E5\u8BE2"),re=g("\u91CD\u7F6E"),se=g(" \u786E\u5B9A "),ne=g(" \u5173\u95ED "),ie=H({name:"trajectoryDialog"}),ce=Object.assign(ie,{props:{visible:{type:Boolean,default:!1,required:!0}},emits:["close"],setup(d,{emit:r}){const o=d,{proxy:C}=ae(),{exportData:N}=S(),v=R({realName:void 0}),j=b(),s=b({}),l=R({visible:!1,rowData:void 0}),m=b(),V=b(0),B=[{type:"radio",width:"55",key:"projectId"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"180",showOverflowTooltip:!0},{label:"\u6240\u5C5E\u4F01\u4E1A",key:"companyName",prop:"companyName",minWidth:"150",showOverflowTooltip:!0},{label:"\u6240\u5C5E\u533A\u57DF",key:"regionDisplayName",prop:"regionDisplayName",width:"150"},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createTime",prop:"createTime",width:"170"}],h=b([]),k=p=>y(this,null,function*(){var u,n;yield ee(),p=m.value.pageParams;const e=yield W(x(x({},p),v));h.value=e.data.records,V.value=e.data.total,(u=l.rowData)!=null&&u.length&&((n=h.value)==null||n.forEach(_=>{var c;((c=l==null?void 0:l.rowData)==null?void 0:c.map(D=>D.projectId)).includes(_.projectId)&&m.value.setRadio(_.projectId)}))}),M=()=>{k()},U=()=>{v.projectName=void 0,m.value.pageParams.pageNumber=1,m.value.pageParams.pageSize=10,k()},q=p=>{const{projectName:e,projectId:u}=p;s.value={projectName:e,projectId:u}},I=()=>y(this,null,function*(){l.rowData=[{projectId:s.value.projectId,projectName:s.value.projectName}],l.visible=!0,yield k()}),T=b(!1),E=p=>y(this,null,function*(){!p||(yield p.validate(e=>y(this,null,function*(){if(e){const{projectId:u,times:n,carNo:_}=s.value,w={carNo:_,projectId:u,startDate:n==null?void 0:n[0],endDate:n==null?void 0:n[1],times:void 0};yield N(()=>A(w),T),C.$message.success("\u5BFC\u51FA\u6210\u529F\uFF01"),r("close",!0)}})))});return J(()=>o.visible,p=>y(this,null,function*(){p||(s.value={})})),(p,e)=>{const u=f("el-input"),n=f("el-form-item"),_=f("el-date-picker"),w=f("el-form"),c=f("el-button"),D=f("el-dialog"),Y=f("el-col"),F=f("el-row"),L=f("table-list");return K(),Q(Z,null,[a(D,{"model-value":d.visible,title:"\u5BFC\u51FA\u8F68\u8FF9",width:"560px","destroy-on-close":"",onClose:e[5]||(e[5]=i=>r("close"))},{footer:t(()=>[a(c,{type:"primary",size:"small",loading:T.value,onClick:e[3]||(e[3]=i=>E(j.value))},{default:t(()=>[te]),_:1},8,["loading"]),a(c,{type:"info",size:"small",onClick:e[4]||(e[4]=i=>r("close"))},{default:t(()=>[le]),_:1})]),default:t(()=>[a(w,{ref_key:"formRef",ref:j,model:s.value,"label-width":"90px","label-suffix":":",size:"small"},{default:t(()=>[a(n,{label:"\u9009\u62E9\u9879\u76EE",prop:"projectName",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE",trigger:"change"}]},{default:t(()=>[a(u,{modelValue:s.value.projectName,"onUpdate:modelValue":e[0]||(e[0]=i=>s.value.projectName=i),placeholder:"\u8BF7\u9009\u62E9",readonly:"",style:{cursor:"pointer"},onClick:I},{append:t(()=>[X("a",{onClick:I},"\u6DFB\u52A0")]),_:1},8,["modelValue"])]),_:1}),a(n,{label:"\u8F66\u724C\u53F7",prop:"carNo"},{default:t(()=>[a(u,{modelValue:s.value.carNo,"onUpdate:modelValue":e[1]||(e[1]=i=>s.value.carNo=i),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1}),a(n,{label:"\u7528\u8F66\u65F6\u95F4",prop:"times",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7528\u8F66\u65F6\u95F4",trigger:"change"}]},{default:t(()=>[a(_,{modelValue:s.value.times,"onUpdate:modelValue":e[2]||(e[2]=i=>s.value.times=i),format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",type:"daterange","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"]),a(D,{"model-value":l.visible,title:"\u9009\u62E9\u9879\u76EE",width:"840px","destroy-on-close":"",onClose:e[9]||(e[9]=i=>l.visible=!1)},{footer:t(()=>[a(c,{type:"primary",size:"small",onClick:e[7]||(e[7]=i=>l.visible=!1)},{default:t(()=>[se]),_:1}),a(c,{type:"info",size:"small",onClick:e[8]||(e[8]=i=>l.visible=!1)},{default:t(()=>[ne]),_:1})]),default:t(()=>[a(w,{"label-suffix":":",model:v,size:"small"},{default:t(()=>[a(F,{gutter:16},{default:t(()=>[a(Y,{span:8},{default:t(()=>[a(n,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a(u,{modelValue:v.projectName,"onUpdate:modelValue":e[6]||(e[6]=i=>v.projectName=i),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(Y,{span:8},{default:t(()=>[a(n,null,{default:t(()=>[a(c,{type:"primary",onClick:M},{default:t(()=>[oe]),_:1}),a(c,{type:"info",onClick:U},{default:t(()=>[re]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),a(L,{ref_key:"tableListRef",ref:m,column:B,data:h.value,total:V.value,"row-key":"projectId",onGetTableData:k,onRadioChange:q},null,8,["data","total"])]),_:1},8,["model-value"])],64)}}});export{ce as default};