engineering/public/admin/assets/index.c742fa71.js
2024-03-04 15:04:21 +08:00

2 lines
6.7 KiB
JavaScript

import{I as z,y as J,w as M,D as q,C as O,L as G,M as H,N as K}from"./element-plus.258bf9e7.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as W,a as X}from"./index.ec401e3b.js";import{_ as Y}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as Z}from"./usePaging.f6660143.js";import{u as oo}from"./useDictOptions.c644f395.js";import{a as j,d as eo,e as to}from"./jianli_project_progress_report.58c3b8f2.js";import"./lodash.1d82ee7c.js";import{_ as ao}from"./edit.vue_vue_type_script_setup_true_name_jianliProjectProgressReportEdit_lang.0b7088a7.js";import{d as k,s as lo,r as B,a0 as ro,ai as uo,o as n,c as so,V as o,M as a,O as f,u as r,L as d,S as po,a as C,k as no,T as _,n as D}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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_style_index_0_lang.0ff67de9.js";import"./common.c510575b.js";import"./index.vue_vue_type_script_setup_true_lang.c11935ba.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./cost_project.2762b876.js";import"./index.a7758114.js";const io=_("\u67E5\u8BE2"),mo=_("\u91CD\u7F6E"),co=_(" \u65B0\u589E "),_o=_(" \u5220\u9664 "),fo={class:"mt-4"},Fo=_(" \u7F16\u8F91 "),wo=_(" \u5220\u9664 "),Eo={class:"flex justify-end mt-4"},vo=k({name:"jianliProjectProgressReportLists"}),de=k({...vo,setup(ho){const F=lo(),w=B(!1),u=ro({num:"",project:"",project_num:"",datas:""}),h=B([]),V=s=>{h.value=s.map(({id:t})=>t)},{dictData:y}=oo(""),{pager:i,getLists:E,resetParams:x,resetPage:P}=Z({fetchFun:j,params:u}),A=async()=>{var s;w.value=!0,await D(),(s=F.value)==null||s.open("add")},R=async s=>{var m,p;let t=await eo({id:s.id});w.value=!0,await D(),(m=F.value)==null||m.open("edit"),(p=F.value)==null||p.setFormData(t)},b=async s=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await to({id:s}),E()};return E(),(s,t)=>{const m=z,p=J,c=M,$=Y,L=q,g=O,I=X,e=G,N=H,S=Q,v=uo("perms"),T=K;return n(),so("div",null,[o(g,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(L,{class:"mb-[-16px]",model:u,inline:""},{default:a(()=>[o(p,{label:"\u5355\u636E\u7F16\u53F7",prop:"num"},{default:a(()=>[o(m,{class:"w-[280px]",modelValue:u.num,"onUpdate:modelValue":t[0]||(t[0]=l=>u.num=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),o(p,{label:"\u9879\u76EE\u540D\u79F0",prop:"project"},{default:a(()=>[o(m,{class:"w-[280px]",modelValue:u.project,"onUpdate:modelValue":t[1]||(t[1]=l=>u.project=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(p,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num"},{default:a(()=>[o(m,{class:"w-[280px]",modelValue:u.project_num,"onUpdate:modelValue":t[2]||(t[2]=l=>u.project_num=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),o(p,null,{default:a(()=>[o(c,{type:"primary",onClick:r(P)},{default:a(()=>[io]),_:1},8,["onClick"]),o(c,{onClick:r(x)},{default:a(()=>[mo]),_:1},8,["onClick"]),o($,{class:"ml-2.5","fetch-fun":r(j),params:u,"page-size":r(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((n(),d(g,{class:"!border-none",shadow:"never"},{default:a(()=>[f((n(),d(c,{type:"primary",onClick:A},{icon:a(()=>[o(I,{name:"el-icon-Plus"})]),default:a(()=>[co]),_:1})),[[v,["project_process_management.jianli_project_progress_report/add"]]]),f((n(),d(c,{disabled:!h.value.length,onClick:t[3]||(t[3]=l=>b(h.value))},{default:a(()=>[_o]),_:1},8,["disabled"])),[[v,["project_process_management.jianli_project_progress_report/delete"]]]),C("div",fo,[o(N,{data:r(i).lists,onSelectionChange:V},{default:a(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5355\u636E\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u540D\u79F0",prop:"projectInfo.project_name","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u7F16\u53F7",prop:"projectInfo.project_num","show-overflow-tooltip":""}),o(e,{label:"\u90E8\u95E8\u8D1F\u8D23\u4EBA",prop:"bm_master","show-overflow-tooltip":""}),o(e,{label:"\u59D4\u6258\u5355\u4F4D",prop:"wt_unit","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",prop:"xm_master","show-overflow-tooltip":""}),o(e,{label:"\u5B9E\u9645\u5F00\u59CB\u65E5\u671F",prop:"start_date","show-overflow-tooltip":""}),o(e,{label:"\u5B9E\u9645\u7ED3\u675F\u65E5\u671F",prop:"end_date","show-overflow-tooltip":""}),o(e,{label:"\u5DE5\u671F\uFF08\u5929\uFF09",prop:"duration","show-overflow-tooltip":""}),o(e,{label:"\u5DE5\u65F6",prop:"working_hours","show-overflow-tooltip":""}),o(e,{label:"\u7D2F\u8BA1\u5DF2\u5B8C\u6210\u8FDB\u5EA6\uFF08%\uFF09",prop:"done_progress","show-overflow-tooltip":""}),o(e,{label:"\u672C\u9636\u6BB5\u5B8C\u6210\u8FDB\u5EA6(%)",prop:"bjd_progress","show-overflow-tooltip":""}),o(e,{label:"\u767B\u8BB0\u4EBA",prop:"djr","show-overflow-tooltip":""}),o(e,{label:"\u767B\u8BB0\u65F6\u95F4",prop:"apptime","show-overflow-tooltip":""}),o(e,{label:"\u5F62\u8C61\u8FDB\u5EA6\u63CF\u8FF0",prop:"jdms","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[f((n(),d(c,{type:"primary",link:"",onClick:U=>R(l)},{default:a(()=>[Fo]),_:2},1032,["onClick"])),[[v,["project_process_management.jianli_project_progress_report/edit"]]]),f((n(),d(c,{type:"danger",link:"",onClick:U=>b(l.id)},{default:a(()=>[wo]),_:2},1032,["onClick"])),[[v,["project_process_management.jianli_project_progress_report/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",Eo,[o(S,{modelValue:r(i),"onUpdate:modelValue":t[4]||(t[4]=l=>no(i)?i.value=l:null),onChange:r(E)},null,8,["modelValue","onChange"])])]),_:1})),[[T,r(i).loading]]),w.value?(n(),d(ao,{key:0,ref_key:"editRef",ref:F,"dict-data":r(y),onSuccess:r(E),onClose:t[5]||(t[5]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):po("",!0)])}}});export{de as default};