選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

2 行
5.9KB

  1. var q=Object.defineProperty,A=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var Y=(n,l,t)=>l in n?q(n,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[l]=t,x=(n,l)=>{for(var t in l||(l={}))K.call(l,t)&&Y(n,t,l[t]);if($)for(var t of $(l))Q.call(l,t)&&Y(n,t,l[t]);return n},P=(n,l)=>A(n,J(l));var V=(n,l,t)=>new Promise((D,o)=>{var _=c=>{try{f(t.next(c))}catch(u){o(u)}},C=c=>{try{f(t.throw(c))}catch(u){o(u)}},f=c=>c.done?D(c.value):Promise.resolve(c.value).then(_,C);f((t=t.apply(n,l)).next())});import{l as X,d as Z}from"./carManage.16a1d701.js";import{u as ee}from"./useTreeSelectData.cd9b00f2.js";import{d as ae,r as y,a as z,o as le,R as te,f as r,g as oe,c as se,e,w as a,x as ne,b as g,h as k,O as ie,i as re}from"./index.551f5afa.js";import de from"./vehicleDemandDialog.cf452165.js";import ce from"./releaseOrderDialog.dd039e57.js";const ue={class:"vehicleDemand"},me=k("\u67E5\u8BE2"),pe=k("\u91CD\u7F6E"),_e={class:"flex justify-between items-center"},fe=g("span",null,"\u9700\u6C42\u5217\u8868",-1),ve=k(" \u53D1\u5E03\u8BA2\u5355 "),be=k(" \u53D1\u5E03\u9700\u6C42 "),we=k(" \u5BFC\u51FA "),he=["onClick"],ye=["onClick"],ge=ae({name:"vehicleDemand"}),Oe=Object.assign(ge,{setup(n){const{proxy:l}=re(),{cascaderProps:t}=ee(),D=y([]),o=y({}),_=y(),C=y(0),f=[{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9700\u6C42\u6807\u9898",key:"title",prop:"title",minWidth:"180",showOverflowTooltip:!0},{label:"\u5173\u8054\u9879\u76EE",key:"project",prop:"project",minWidth:"180",showOverflowTooltip:!0},{label:"\u7528\u8F66\u6570\u91CF",key:"carNum",prop:"carNum",width:"120"},{label:"\u7528\u8F66\u65F6\u95F4",key:"time",prop:"time",width:"180"},{label:"\u7528\u8F66\u533A\u57DF",key:"regionDisplayName",prop:"regionDisplayName",minWidth:"180",showOverflowTooltip:!0},{label:"\u9879\u76EE\u8054\u7CFB\u4EBA",key:"driverName",render:d=>ie("span",`${d.driverName} / ${d.mobile}`),minWidth:"220",showOverflowTooltip:!0},{label:"\u5907\u6CE8",key:"remake",prop:"remake",minWidth:"180",showOverflowTooltip:!0},{label:"\u72B6\u6001",key:"state",prop:"state",width:"100"},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",key:"action",slot:"action",width:"150",fixed:"right"}],c=y([]),u=(...s)=>V(this,[...s],function*(d=_.value.pageParams){var m;const b=yield X(P(x(x({},d),o.value),{regionCode:(m=o.value.regionCode)==null?void 0:m.at(-1)}));console.log(b),C.value=b.data.total,c.value=b.data.records}),M=()=>{u()},W=()=>{o.value={},_.value.pageParams.pageNumber=1,_.value.pageParams.pageSize=10,u()},v=z({visible:!1,rowData:void 0}),p=z({visible:!1,rowData:void 0}),j=()=>{p.visible=!0,p.rowData=void 0},B=()=>{v.visible=!0,v.rowData=void 0},H=d=>{p.visible=!0,p.rowData=d},U=d=>{l.$messageBox.confirm("\u662F\u5426\u5173\u95ED\u8BE5\u9700\u6C42?","\u63D0\u793A\uFF01",{type:"warning"}).then(()=>V(this,null,function*(){yield Z({id:d.id}),l.$message.success("\u5220\u9664\u6210\u529F\uFF01"),yield u()}))},N=(d,s)=>{d.visible=!1,s&&u()};return le(()=>V(this,null,function*(){D.value=(yield te()).data,yield u()})),(d,s)=>{const b=r("el-input"),m=r("el-form-item"),w=r("el-col"),R=r("el-cascader"),O=r("el-option"),L=r("el-select"),S=r("el-date-picker"),h=r("el-button"),E=r("el-row"),F=r("el-form"),T=r("el-card"),G=r("table-list");return oe(),se("div",ue,[e(T,{shadow:"never",class:"search mb-16"},{default:a(()=>[e(F,{"label-suffix":":",model:o.value,size:"small"},{default:a(()=>[e(E,{gutter:16},{default:a(()=>[e(w,{span:8},{default:a(()=>[e(m,{label:"\u5173\u8054\u9879\u76EE"},{default:a(()=>[e(b,{modelValue:o.value.carNo,"onUpdate:modelValue":s[0]||(s[0]=i=>o.value.carNo=i),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(w,{span:8,class:"mb-16"},{default:a(()=>[e(m,{label:"\u7528\u8F66\u533A\u57DF"},{default:a(()=>[e(R,{modelValue:o.value.regionCode,"onUpdate:modelValue":s[1]||(s[1]=i=>o.value.regionCode=i),props:ne(t),options:D.value,clearable:"",class:"w-full"},null,8,["modelValue","props","options"])]),_:1})]),_:1}),e(w,{span:8,class:"mb-16"},{default:a(()=>[e(m,{label:"\u72B6\u6001"},{default:a(()=>[e(L,{modelValue:o.value.carType,"onUpdate:modelValue":s[2]||(s[2]=i=>o.value.carType=i),clearable:"",placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:a(()=>[e(O,{label:"\u6B63\u5E38",value:1}),e(O,{label:"\u5173\u95ED",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(w,{span:12},{default:a(()=>[e(m,{label:"\u7528\u8F66\u65F6\u95F4"},{default:a(()=>[e(S,{modelValue:o.value.times,"onUpdate:modelValue":s[3]||(s[3]=i=>o.value.times=i),format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm",type:"datetimerange","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),e(w,{span:12},{default:a(()=>[e(m,{class:"btn"},{default:a(()=>[e(h,{type:"primary",onClick:M},{default:a(()=>[me]),_:1}),e(h,{type:"info",onClick:W},{default:a(()=>[pe]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(T,{shadow:"never"},{header:a(()=>[g("div",_e,[fe,g("div",null,[e(h,{type:"primary",icon:"Plus",size:"small",onClick:j},{default:a(()=>[ve]),_:1}),e(h,{type:"primary",icon:"Plus",size:"small",onClick:B},{default:a(()=>[be]),_:1}),e(h,{type:"primary",plain:"",icon:"Download",size:"small"},{default:a(()=>[we]),_:1})])])]),default:a(()=>[e(G,{ref_key:"tableListRef",ref:_,column:f,data:c.value,total:C.value,onGetTableData:u},{action:a(({scope:i})=>[g("a",{class:"text-danger",onClick:I=>U(i.row)},"\u5173\u95ED\u9700\u6C42",8,he),g("a",{class:"text-primary",onClick:I=>H(i.row)},"\u5173\u8054\u8BA2\u5355",8,ye)]),_:1},8,["data","total"])]),_:1}),e(de,{visible:v.visible,data:v.rowData,onClose:s[4]||(s[4]=i=>N(v))},null,8,["visible","data"]),e(ce,{visible:p.visible,data:p.rowData,onClose:s[5]||(s[5]=i=>N(p))},null,8,["visible","data"])])}}});export{Oe as default};