engineering/public/admin/assets/index.3e425432.js
2024-02-20 17:15:05 +08:00

2 lines
5.6 KiB
JavaScript

import{J as G,y as H,I as K,w as Q,D as W,C as X,L as Z,M as ee,N as te}from"./element-plus.b3353ca6.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import{f as ae,a as le}from"./index.892155dd.js";import{u as se}from"./usePaging.f6660143.js";import{u as ie}from"./useDictOptions.c47985a3.js";import{_ as ne,a as re,b as V,c as pe}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.9cd02d79.js";import"./lodash.1d82ee7c.js";import ue from"./detail.7742cf2b.js";import{d as L,a0 as x,s as $,r as w,ai as me,o as i,c as ce,V as e,M as o,O as _,u as n,L as p,S as A,a as P,k as de,T as c,n as F}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"./vue-router.87ebc608.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.771e5a41.js";import"./index.vue_vue_type_script_setup_true_lang.3dd325bc.js";import"./project.31b61d2e.js";import"./custom.735a8774.js";const _e=c("\u67E5\u8BE2"),fe=c("\u91CD\u7F6E"),ve=c(" \u65B0\u589E "),Ce=c(" \u5220\u9664 "),he={class:"mt-4"},ke=c(" \u7F16\u8F91 "),we=c(" \u5220\u9664 "),Ee=c(" \u8BE6\u60C5 "),be={class:"flex justify-end mt-4"},je=L({name:"projectLists"}),dt=L({...je,setup(Fe){x([]);const E=$(),C=$(),h=w(!1),b=w(!1);w([]);const d=x({project_milestones_date:"",sproject_milestones:""}),j=w([]),R=a=>{j.value=a.map(({id:t})=>t)},{dictData:y}=ie("project_milestones"),{pager:f,getLists:k,resetParams:N,resetPage:S}=se({fetchFun:re,params:d}),T=async()=>{var a;h.value=!0,await F(),(a=C.value)==null||a.open("add")},M=async a=>{var u,s;console.log(a.id);let t=await V({id:a.id});h.value=!0,await F(),(u=C.value)==null||u.open("edit"),(s=C.value)==null||s.setFormData(t)},D=async a=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:a}),k()},Y=async a=>{var u,s;let t=await V({id:a.id});b.value=!0,await F(),(u=E.value)==null||u.open(),(s=E.value)==null||s.setFormData(t)};return k(),(a,t)=>{const u=G,s=H,I=K,m=Q,U=W,g=X,q=le,r=Z,J=ee,O=oe,v=me("perms"),z=te;return i(),ce("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(U,{class:"mb-[-16px]",model:d,inline:""},{default:o(()=>[e(s,{label:"\u65E5\u671F",prop:"declare_time"},{default:o(()=>[e(u,{class:"flex-1 !flex",modelValue:d.project_milestones_date,"onUpdate:modelValue":t[0]||(t[0]=l=>d.project_milestones_date=l),clearable:"",type:"date","value-format":"YYYY-MM-DD ",placeholder:"\u9009\u62E9\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u91CC\u7A0B\u7891",prop:"project_milestones"},{default:o(()=>[e(I,{class:"w-[280px]",modelValue:d.project_milestones,"onUpdate:modelValue":t[1]||(t[1]=l=>d.project_milestones=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u91CC\u7A0B\u7891"},null,8,["modelValue"])]),_:1}),e(s,null,{default:o(()=>[e(m,{type:"primary",onClick:n(S)},{default:o(()=>[_e]),_:1},8,["onClick"]),e(m,{onClick:n(N)},{default:o(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),p(g,{class:"!border-none",shadow:"never"},{default:o(()=>[_((i(),p(m,{type:"primary",onClick:T},{icon:o(()=>[e(q,{name:"el-icon-Plus"})]),default:o(()=>[ve]),_:1})),[[v,["project.project_milestones/add"]]]),_((i(),p(m,{disabled:!j.value.length,onClick:t[2]||(t[2]=l=>D(j.value))},{default:o(()=>[Ce]),_:1},8,["disabled"])),[[v,["project.project_milestones/delete"]]]),P("div",he,[e(J,{data:n(f).lists,onSelectionChange:R},{default:o(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(r,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(r,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(r,{label:"\u91CC\u7A0B\u7891",prop:"project_milestones_text","show-overflow-tooltip":""}),e(r,{label:"\u65E5\u671F",prop:"project_milestones_date","show-overflow-tooltip":""}),e(r,{label:"\u6DFB\u52A0\u4EBA",prop:"add_user_name","show-overflow-tooltip":""}),e(r,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:l})=>[_((i(),p(m,{type:"primary",link:"",onClick:B=>M(l)},{default:o(()=>[ke]),_:2},1032,["onClick"])),[[v,["project.project_milestones/edit"]]]),_((i(),p(m,{type:"danger",link:"",onClick:B=>D(l.id)},{default:o(()=>[we]),_:2},1032,["onClick"])),[[v,["project.project_milestones/delete"]]]),_((i(),p(m,{link:"",onClick:B=>Y(l)},{default:o(()=>[Ee]),_:2},1032,["onClick"])),[[v,["project.project_milestones/detail"]]])]),_:1})]),_:1},8,["data"])]),P("div",be,[e(O,{modelValue:n(f),"onUpdate:modelValue":t[3]||(t[3]=l=>de(f)?f.value=l:null),onChange:n(k)},null,8,["modelValue","onChange"])])]),_:1})),[[z,n(f).loading]]),h.value?(i(),p(ne,{key:0,ref_key:"editRef",ref:C,"dict-data":n(y),onSuccess:n(k),onClose:t[4]||(t[4]=l=>h.value=!1)},null,8,["dict-data","onSuccess"])):A("",!0),b.value?(i(),p(ue,{key:1,ref_key:"detailRef",ref:E,"dict-data":n(y),onClose:t[5]||(t[5]=l=>b.value=!1)},null,8,["dict-data"])):A("",!0)])}}});export{dt as default};