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

2 lines
5.8 KiB
JavaScript

import{I as U,y as M,w as q,D as O,C as G,L as H,M as J,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 ee}from"./useDictOptions.c644f395.js";import{_ as oe,a as D,b as te}from"./edit.vue_vue_type_script_setup_true_name_approvalIssuanceAchievementDocumentsEdit_lang.e62013cc.js";import"./lodash.1d82ee7c.js";import{d as y,s as ae,r as k,a0 as le,ai as se,o as p,c as ne,V as e,M as t,O as _,u as s,L as m,S as ue,a as g,k as pe,T as c,n as B}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_script_setup_true_lang.c11935ba.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./cost_project.2762b876.js";const ie=c("\u67E5\u8BE2"),re=c("\u91CD\u7F6E"),me=c(" \u65B0\u589E "),ce=c(" \u5220\u9664 "),de={class:"mt-4"},_e=c(" \u7F16\u8F91 "),fe=c(" \u5220\u9664 "),ve={class:"flex justify-end mt-4"},he=y({name:"approvalIssuanceAchievementDocumentsLists"}),uo=y({...he,setup(we){const f=ae(),v=k(!1),u=le({project:"",project_num:""}),E=k([]),V=n=>{E.value=n.map(({id:o})=>o)},{dictData:j}=ee(""),{pager:i,getLists:h,resetParams:A,resetPage:x}=Z({fetchFun:D,params:u}),I=async()=>{var n;v.value=!0,await B(),(n=f.value)==null||n.open("add")},$=async n=>{var o,d;v.value=!0,await B(),(o=f.value)==null||o.open("edit"),(d=f.value)==null||d.setFormData(n)},C=async n=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await te({id:n}),h()};return h(),(n,o)=>{const d=U,b=M,r=q,L=Y,N=O,F=G,P=X,a=H,S=J,T=Q,w=se("perms"),R=K;return p(),ne("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[e(b,{label:"\u9879\u76EE\u540D\u79F0",prop:"project"},{default:t(()=>[e(d,{class:"w-[280px]",modelValue:u.project,"onUpdate:modelValue":o[0]||(o[0]=l=>u.project=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(b,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num"},{default:t(()=>[e(d,{class:"w-[280px]",modelValue:u.project_num,"onUpdate:modelValue":o[1]||(o[1]=l=>u.project_num=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(b,null,{default:t(()=>[e(r,{type:"primary",onClick:s(x)},{default:t(()=>[ie]),_:1},8,["onClick"]),e(r,{onClick:s(A)},{default:t(()=>[re]),_:1},8,["onClick"]),e(L,{class:"ml-2.5","fetch-fun":s(D),params:u,"page-size":s(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),_((p(),m(F,{class:"!border-none",shadow:"never"},{default:t(()=>[_((p(),m(r,{type:"primary",onClick:I},{icon:t(()=>[e(P,{name:"el-icon-Plus"})]),default:t(()=>[me]),_:1})),[[w,["approval_issuance_achievement_documents/add"]]]),_((p(),m(r,{disabled:!E.value.length,onClick:o[2]||(o[2]=l=>C(E.value))},{default:t(()=>[ce]),_:1},8,["disabled"])),[[w,["approval_issuance_achievement_documents/delete"]]]),g("div",de,[e(S,{data:s(i).lists,onSelectionChange:V},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5355\u636E\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"projectInfo.project_name","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u7F16\u53F7",prop:"projectInfo.project_num","show-overflow-tooltip":""}),e(a,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task","show-overflow-tooltip":""}),e(a,{label:"\u5DE5\u5E8F",prop:"processes","show-overflow-tooltip":""}),e(a,{label:"\u8D44\u6599\u4EFD\u6570",prop:"number","show-overflow-tooltip":""}),e(a,{label:"\u767B\u8BB0\u65E5\u671F",prop:"apptime","show-overflow-tooltip":""}),e(a,{label:"\u767B\u8BB0\u4EBA",prop:"person","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"tips","show-overflow-tooltip":""}),e(a,{label:"\u591A\u884C\u6587\u672C\u68461",prop:"fd_1","show-overflow-tooltip":""}),e(a,{label:"\u591A\u884C\u6587\u672C\u68462",prop:"fd_2","show-overflow-tooltip":""}),e(a,{label:"\u591A\u884C\u6587\u672C\u68463",prop:"fd_3","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[_((p(),m(r,{type:"primary",link:"",onClick:z=>$(l)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[w,["approval_issuance_achievement_documents/edit"]]]),_((p(),m(r,{type:"danger",link:"",onClick:z=>C(l.id)},{default:t(()=>[fe]),_:2},1032,["onClick"])),[[w,["approval_issuance_achievement_documents/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",ve,[e(T,{modelValue:s(i),"onUpdate:modelValue":o[3]||(o[3]=l=>pe(i)?i.value=l:null),onChange:s(h)},null,8,["modelValue","onChange"])])]),_:1})),[[R,s(i).loading]]),v.value?(p(),m(oe,{key:0,ref_key:"editRef",ref:f,"dict-data":s(j),onSuccess:s(h),onClose:o[4]||(o[4]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):ue("",!0)])}}});export{uo as default};