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

2 lines
7.9 KiB
JavaScript

import{J as H,y as K,w as Q,D as W,C as X,L as Z,M as oo,N as eo}from"./element-plus.517d4382.js";import{_ as to}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as lo,a as ao}from"./index.8b1962e9.js";import{u as uo}from"./usePaging.f6660143.js";import{u as ro}from"./useDictOptions.b5854a9e.js";import{_ as so,a as po,b as V,c as io}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.59849dff.js";import"./lodash.1d82ee7c.js";import no from"./detail.c4d20407.js";import{d as L,a0 as x,s as P,r as b,ai as mo,o as s,c as co,V as o,M as a,O as _,u as i,L as n,S as $,a as Y,k as _o,T as c,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"./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.vue_vue_type_style_index_0_lang.c7aef442.js";import"./common.9d529cba.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./custom.99349afc.js";const fo=c("\u67E5\u8BE2"),wo=c("\u91CD\u7F6E"),vo=c(" \u65B0\u589E "),Eo=c(" \u5220\u9664 "),ho={class:"mt-4"},bo=c(" \u7F16\u8F91 "),Fo=c(" \u5220\u9664 "),Do=c(" \u8BE6\u60C5 "),Bo={class:"flex justify-end mt-4"},Co=L({name:"projectLists"}),he=L({...Co,setup(ko){x([]);const F=P(),E=P(),h=b(!1),D=b(!1),B=b([]),d=x({deliver_time:"",start_time:"",declare_time:""}),M=l=>{d.start_time=l[0],d.deliver_time=l[1]},R=()=>{Object.assign(d,{project_approval_date:"",start_date:"",delivery_date:""}),B.value="",w()},C=b([]),T=l=>{C.value=l.map(({id:t})=>t)},{dictData:y}=ro(""),{pager:f,getLists:w,resetParams:yo,resetPage:N}=uo({fetchFun:po,params:d}),S=async()=>{var l;h.value=!0,await k(),(l=E.value)==null||l.open("add")},U=async l=>{var p,r;console.log(l.id);let t=await V({id:l.id});h.value=!0,await k(),(p=E.value)==null||p.open("edit"),(r=E.value)==null||r.setFormData(t)},g=async l=>{await lo.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await io({id:l}),w()},O=async l=>{var p,r;let t=await V({id:l.id});D.value=!0,await k(),(p=F.value)==null||p.open(),(r=F.value)==null||r.setFormData(t)};return w(),(l,t)=>{const p=H,r=K,m=Q,q=W,j=X,I=ao,e=Z,J=oo,z=to,v=mo("perms"),G=eo;return s(),co("div",null,[o(j,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(q,{class:"mb-[-16px]",model:d,inline:""},{default:a(()=>[o(r,{label:"\u586B\u62A5\u65E5\u671F",prop:"declare_time"},{default:a(()=>[o(p,{class:"flex-1 !flex",modelValue:d.declare_time,"onUpdate:modelValue":t[0]||(t[0]=u=>d.declare_time=u),clearable:"",type:"date","value-format":"YYYY-MM-DD ",placeholder:"\u9009\u62E9\u586B\u62A5\u65E5\u671F"},null,8,["modelValue"])]),_:1}),o(r,{label:"\u9879\u76EE\u65F6\u95F4\u8303\u56F4"},{default:a(()=>[o(p,{modelValue:B.value,"onUpdate:modelValue":t[1]||(t[1]=u=>B.value=u),type:"daterange","start-placeholder":"\u9879\u76EE\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u9879\u76EE\u4EA4\u4ED8\u65E5\u671F","default-time":l.defaultTime,"value-format":"YYYY-MM-DD ",onChange:M},null,8,["modelValue","default-time"])]),_:1}),o(r,null,{default:a(()=>[o(m,{type:"primary",onClick:i(N)},{default:a(()=>[fo]),_:1},8,["onClick"]),o(m,{onClick:R},{default:a(()=>[wo]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),_((s(),n(j,{class:"!border-none",shadow:"never"},{default:a(()=>[_((s(),n(m,{type:"primary",onClick:S},{icon:a(()=>[o(I,{name:"el-icon-Plus"})]),default:a(()=>[vo]),_:1})),[[v,["project.project_plan/add"]]]),_((s(),n(m,{disabled:!C.value.length,onClick:t[2]||(t[2]=u=>g(C.value))},{default:a(()=>[Eo]),_:1},8,["disabled"])),[[v,["project.project_plan/delete"]]]),Y("div",ho,[o(J,{data:i(f).lists,onSelectionChange:T},{default:a(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5E8F\u53F7",type:"index",width:"55"}),o(e,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),o(e,{label:"\u8282\u70B9\u540D\u79F0",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u662F\u5426\u672B\u8282\u70B9",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u4E00\u7EA7\u8282\u70B9",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u4E8C\u7EA7\u8282\u70B9",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u4E09\u7EA7\u8282\u70B9",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u56DB\u7EA7\u8282\u70B9",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u4E94\u7EA7\u8282\u70B9",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u516D\u7EA7\u8282\u70B9",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u4E03\u7EA7\u8282\u70B9",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u516B\u7EA7\u8282\u70B9",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u4E5D\u7EA7\u8282\u70B9",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u8BA1\u5212\u5F00\u59CB\u65E5\u671F",prop:"start_time","show-overflow-tooltip":""}),o(e,{label:"\u8BA1\u5212\u7ED3\u675F\u65E5\u671F",prop:"deliver_time","show-overflow-tooltip":""}),o(e,{label:"\u8D1F\u8D23\u4EBA",prop:"project_manager_name","show-overflow-tooltip":""}),o(e,{label:"\u9884\u7B97\u5DE5\u65F6",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u5DE5\u65F6\u5355\u4EF7",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u9884\u7B97\u5DE5\u65F6\u8D39",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u5B9E\u9645\u5F00\u59CB\u65E5\u671F",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u5B9E\u9645\u7ED3\u675F\u65E5\u671F",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u5B9E\u9645\u5DE5\u65F6",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u5B9E\u9645\u5DE5\u65F6\u8D39",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u6743\u91CD",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u5DE5\u65F6\u8FDB\u5EA6",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u8F93\u51FA\u8D44\u6599",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u6743\u91CD",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u6392\u5E8F\u53F7",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u5173\u952E\u91CC\u7A0B\u7891",prop:"sort","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:u})=>[_((s(),n(m,{type:"primary",link:"",onClick:A=>U(u)},{default:a(()=>[bo]),_:2},1032,["onClick"])),[[v,["project.project_plan/edit"]]]),_((s(),n(m,{type:"danger",link:"",onClick:A=>g(u.id)},{default:a(()=>[Fo]),_:2},1032,["onClick"])),[[v,["project.project_plan/delete"]]]),_((s(),n(m,{link:"",onClick:A=>O(u)},{default:a(()=>[Do]),_:2},1032,["onClick"])),[[v,["project.project_plan/detail"]]])]),_:1})]),_:1},8,["data"])]),Y("div",Bo,[o(z,{modelValue:i(f),"onUpdate:modelValue":t[3]||(t[3]=u=>_o(f)?f.value=u:null),onChange:i(w)},null,8,["modelValue","onChange"])])]),_:1})),[[G,i(f).loading]]),h.value?(s(),n(so,{key:0,ref_key:"editRef",ref:E,"dict-data":i(y),onSuccess:i(w),onClose:t[4]||(t[4]=u=>h.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),D.value?(s(),n(no,{key:1,ref_key:"detailRef",ref:F,"dict-data":i(y),onClose:t[5]||(t[5]=u=>D.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{he as default};