engineering/public/admin/assets/index.839a39fa.js
2024-02-27 10:28:16 +08:00

2 lines
6.8 KiB
JavaScript

import{I as K,y as Q,G as X,H as Y,w as Z,D as ee,C as te,L as oe,M as ae,N as le}from"./element-plus.517d4382.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as ue,a as ie}from"./index.8b1962e9.js";import{u as se}from"./usePaging.f6660143.js";import{u as pe}from"./useDictOptions.b5854a9e.js";import{a as ne,b as j,e as de}from"./project_trip_apply.674c9014.js";import"./lodash.1d82ee7c.js";import{_ as ce}from"./edit.vue_vue_type_script_setup_true_name_projectTripApplyEdit_lang.199d46ba.js";import me from"./detail.8d7ac805.js";import{u as _e}from"./vue-router.87ebc608.js";import{d as L,s as x,r as g,a0 as fe,ai as Ee,o as i,c as P,V as e,M as a,O as _,u as p,L as d,S as T,W as ve,a8 as Fe,a as $,k as we,T as m,n as k}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./flowSet.6da79e1c.js";const ye=m("\u67E5\u8BE2"),be=m("\u91CD\u7F6E"),Ce=m(" \u65B0\u589E "),De=m(" \u5220\u9664 "),he={class:"mt-4"},ge=m(" \u7F16\u8F91 "),ke=m(" \u5220\u9664 "),Ae=m(" \u8BE6\u60C5 "),Be={class:"flex justify-end mt-4"},Ve=L({name:"projectTripApplyLists"}),ht=L({...Ve,setup(je){var B;const b=x(),v=x(),F=g(!1),C=g(!1),s=fe({project_id:"",trip_apply_code:"",origin_address:"",target_address:"",traffic:""}),D=g([]),R=r=>{D.value=r.map(({id:t})=>t)},{dictData:h}=pe("traffic"),{pager:f,getLists:w,resetParams:S,resetPage:N}=se({fetchFun:ne,params:s}),U=async()=>{var r;F.value=!0,await k(),(r=v.value)==null||r.open("add")},I=async r=>{var n,u;let t=await j({id:r.id});F.value=!0,await k(),(n=v.value)==null||n.open("edit"),(u=v.value)==null||u.setFormData(t)},A=async r=>{await ue.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:r}),w()},q=async r=>{var n,u;let t=await j({id:r.id});C.value=!0,await k(),(n=b.value)==null||n.open(),(u=b.value)==null||u.setFormData(t)};return(B=_e().query)!=null&&B.listId,w(),(r,t)=>{const n=K,u=Q,M=X,O=Y,c=Z,G=ee,V=te,H=ie,l=oe,W=ae,z=re,E=Ee("perms"),J=le;return i(),P("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(G,{class:"mb-[-16px]",model:s,inline:""},{default:a(()=>[e(u,{label:"\u7533\u8BF7\u5355\u53F7",prop:"trip_apply_code"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:s.trip_apply_code,"onUpdate:modelValue":t[0]||(t[0]=o=>s.trip_apply_code=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7533\u8BF7\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u51FA\u5DEE\u8D77\u59CB\u5730",prop:"origin_address"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:s.origin_address,"onUpdate:modelValue":t[1]||(t[1]=o=>s.origin_address=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u51FA\u5DEE\u8D77\u59CB\u5730"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u51FA\u5DEE\u76EE\u7684\u5730",prop:"target_address"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:s.target_address,"onUpdate:modelValue":t[2]||(t[2]=o=>s.target_address=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u51FA\u5DEE\u76EE\u7684\u5730"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u4EA4\u901A\u5DE5\u5177",prop:"traffic"},{default:a(()=>[e(O,{class:"w-[280px]",modelValue:s.traffic,"onUpdate:modelValue":t[3]||(t[3]=o=>s.traffic=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4EA4\u901A\u5DE5\u5177"},{default:a(()=>[(i(!0),P(ve,null,Fe(p(h).traffic,(o,y)=>(i(),d(M,{key:y,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:a(()=>[e(c,{type:"primary",onClick:p(N)},{default:a(()=>[ye]),_:1},8,["onClick"]),e(c,{onClick:p(S)},{default:a(()=>[be]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),d(V,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),d(c,{type:"primary",onClick:U},{icon:a(()=>[e(H,{name:"el-icon-Plus"})]),default:a(()=>[Ce]),_:1})),[[E,["project.project_trip_apply/add"]]]),_((i(),d(c,{disabled:!D.value.length,onClick:t[4]||(t[4]=o=>A(D.value))},{default:a(()=>[De]),_:1},8,["disabled"])),[[E,["project.project_trip_apply/delete"]]]),$("div",he,[e(W,{data:p(f).lists,onSelectionChange:R},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u7533\u8BF7\u5355\u53F7",prop:"trip_apply_code","show-overflow-tooltip":""}),e(l,{label:"\u51FA\u5DEE\u8D77\u59CB\u5730",prop:"origin_address","show-overflow-tooltip":""}),e(l,{label:"\u51FA\u5DEE\u76EE\u7684\u5730",prop:"target_address","show-overflow-tooltip":""}),e(l,{label:"\u4EA4\u901A\u5DE5\u5177",prop:"traffic_text","show-overflow-tooltip":""}),e(l,{label:"\u51FA\u5DEE\u65F6\u95F4",prop:"start_date","show-overflow-tooltip":""}),e(l,{label:"\u7ED3\u675F\u65F6\u95F4",prop:"end_date","show-overflow-tooltip":""}),e(l,{label:"\u51FA\u5DEE\u4E8B\u7531",prop:"reason","show-overflow-tooltip":""}),e(l,{label:"\u5386\u65F6\u5929\u6570",prop:"days","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:o})=>[_((i(),d(c,{type:"primary",link:"",onClick:y=>I(o)},{default:a(()=>[ge]),_:2},1032,["onClick"])),[[E,["project.project_trip_apply/edit"]]]),_((i(),d(c,{type:"danger",link:"",onClick:y=>A(o.id)},{default:a(()=>[ke]),_:2},1032,["onClick"])),[[E,["project.project_trip_apply/delete"]]]),_((i(),d(c,{link:"",onClick:y=>q(o)},{default:a(()=>[Ae]),_:2},1032,["onClick"])),[[E,["project.project_trip_apply/detail"]]])]),_:1})]),_:1},8,["data"])]),$("div",Be,[e(z,{modelValue:p(f),"onUpdate:modelValue":t[5]||(t[5]=o=>we(f)?f.value=o:null),onChange:p(w)},null,8,["modelValue","onChange"])])]),_:1})),[[J,p(f).loading]]),F.value?(i(),d(ce,{key:0,ref_key:"editRef",ref:v,"dict-data":p(h),onSuccess:p(w),onClose:t[6]||(t[6]=o=>F.value=!1)},null,8,["dict-data","onSuccess"])):T("",!0),C.value?(i(),d(me,{key:1,ref_key:"detailRef",ref:b,"dict-data":p(h),onClose:t[7]||(t[7]=o=>C.value=!1)},null,8,["dict-data"])):T("",!0)])}}});export{ht as default};