2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
import{D as L,C as N,w as S,L as T,M as j,N as q}from"./element-plus.258bf9e7.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as U,a as z}from"./index.96d7cfe4.js";import{u as G}from"./usePaging.f6660143.js";import{u as H}from"./useDictOptions.904e4649.js";import{_ as I,a as J,b as K,c as Q}from"./edit.vue_vue_type_script_setup_true_name_manageMonthlyProgressReportEdit_lang.852471a7.js";import"./lodash.1d82ee7c.js";import{d as k,s as W,r as C,a0 as X,ai as Y,o as r,c as Z,V as e,M as s,O as u,u as i,L as l,S as ee,a as E,k as oe,T as v,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.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./dialogTableConfig.d8226f4e.js";import"./supervision_project.7a70e9ab.js";import"./manage_project.2aefb02e.js";import"./cost_approved_project.41eaf9ee.js";import"./task_type.53e0543a.js";import"./consult_project.6742c616.js";import"./index.1b5b8b5d.js";import"./index.d922571c.js";const te=v(" \u65B0\u589E "),ae=v(" \u5220\u9664 "),se={class:"mt-4"},re=v(" \u7F16\u8F91 "),ne=v(" \u5220\u9664 "),ie={class:"flex mt-4 justify-end"},le=k({name:"manageMonthlyProgressReportLists"}),ao=k({...le,setup(pe){const c=W(),d=C(!1),b=X({project_id:""}),w=C([]),F=t=>{w.value=t.map(({id:o})=>o)},{dictData:B}=H("engineering_status"),{pager:p,getLists:_,resetParams:me,resetPage:ue}=G({fetchFun:J,params:b}),x=async()=>{var t;d.value=!0,await D(),(t=c.value)==null||t.open("add")},M=async t=>{var f,m;let o=await K({id:t.id});d.value=!0,await D(),(f=c.value)==null||f.open("edit"),(m=c.value)==null||m.setFormData(o)},y=async t=>{await U.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Q({id:t}),_()};return _(),(t,o)=>{const f=L,m=N,P=z,g=S,a=T,R=j,V=O,h=Y("perms"),A=q;return r(),Z("div",null,[e(m,{class:"!border-none mb-4",shadow:"never"},{default:s(()=>[e(f,{class:"mb-[-16px]",model:b,inline:""},null,8,["model"])]),_:1}),u((r(),l(m,{class:"!border-none",shadow:"never"},{default:s(()=>[u((r(),l(g,{type:"primary",onClick:x},{icon:s(()=>[e(P,{name:"el-icon-Plus"})]),default:s(()=>[te]),_:1})),[[h,["manage_progress.manage_monthly_progress_report/add"]]]),u((r(),l(g,{disabled:!w.value.length,onClick:o[0]||(o[0]=n=>y(w.value))},{default:s(()=>[ae]),_:1},8,["disabled"])),[[h,["manage_progress.manage_monthly_progress_report/delete"]]]),E("div",se,[e(R,{data:i(p).lists,onSelectionChange:F},{default:s(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u5E74\u6708",prop:"date","show-overflow-tooltip":""}),e(a,{label:"\u7D2F\u8BA1\u5DE5\u7A0B\u8FDB\u5EA6",prop:"progress","show-overflow-tooltip":""}),e(a,{label:"\u5DE5\u7A0B\u72B6\u6001",prop:"status_text","show-overflow-tooltip":""}),e(a,{label:"\u5B58\u5728\u95EE\u9898",prop:"problem","show-overflow-tooltip":""}),e(a,{label:"\u8FDB\u5EA6\u63CF\u8FF0",prop:"desc","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:s(({row:n})=>[u((r(),l(g,{type:"primary",link:"",onClick:$=>M(n)},{default:s(()=>[re]),_:2},1032,["onClick"])),[[h,["manage_progress.manage_monthly_progress_report/edit"]]]),u((r(),l(g,{type:"danger",link:"",onClick:$=>y(n.id)},{default:s(()=>[ne]),_:2},1032,["onClick"])),[[h,["manage_progress.manage_monthly_progress_report/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",ie,[e(V,{modelValue:i(p),"onUpdate:modelValue":o[1]||(o[1]=n=>oe(p)?p.value=n:null),onChange:i(_)},null,8,["modelValue","onChange"])])]),_:1})),[[A,i(p).loading]]),d.value?(r(),l(I,{key:0,ref_key:"editRef",ref:c,"dict-data":i(B),onSuccess:i(_),onClose:o[2]||(o[2]=n=>d.value=!1)},null,8,["dict-data","onSuccess"])):ee("",!0)])}}});export{ao as default};
|