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

2 lines
5.2 KiB
JavaScript

import{I,y as U,w as M,D as q,C as O,L as z,M as G,N as H}from"./element-plus.258bf9e7.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as K,a as Q}from"./index.ec401e3b.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{_ as Y,a as Z,b as ee}from"./edit.vue_vue_type_script_setup_true_name_supervisionNoticeEdit_lang.27b27627.js";import"./lodash.1d82ee7c.js";import{d as g,s as oe,r as k,a0 as te,ai as ae,o as n,c as ie,V as e,M as t,O as _,u as s,L as p,S as le,a as y,k as se,T as m,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.vue_vue_type_script_setup_true_lang.305c8f92.js";import"./supervision_participating_units.aea21075.js";import"./index.vue_vue_type_script_setup_true_lang.8f6cc90c.js";import"./supervision_project.e6761916.js";import"./index.a7758114.js";import"./index.9492d03b.js";const ne=m("\u67E5\u8BE2"),ue=m("\u91CD\u7F6E"),re=m(" \u65B0\u589E "),pe=m(" \u5220\u9664 "),me={class:"mt-4"},de=m(" \u7F16\u8F91 "),ce=m(" \u5220\u9664 "),_e={class:"flex justify-end mt-4"},fe=g({name:"supervisionNoticeLists"}),so=g({...fe,setup(ve){const f=oe(),v=k(!1),u=te({project_id:"",code:"",notify_user:""}),h=k([]),B=i=>{h.value=i.map(({id:o})=>o)},{dictData:V}=X(""),{pager:d,getLists:E,resetParams:A,resetPage:x}=W({fetchFun:Z,params:u}),N=async()=>{var i;v.value=!0,await D(),(i=f.value)==null||i.open("add")},S=async i=>{var o,c;v.value=!0,await D(),(o=f.value)==null||o.open("edit"),(c=f.value)==null||c.setFormData(i)},C=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:i}),E()};return E(),(i,o)=>{const c=I,F=U,r=M,$=q,b=O,L=Q,l=z,P=G,T=J,w=ae("perms"),R=H;return n(),ie("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[e(F,{label:"\u9879\u76EE\u901A\u77E5\u7F16\u53F7",prop:"code"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:u.code,"onUpdate:modelValue":o[0]||(o[0]=a=>u.code=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u901A\u77E5\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(F,{label:"\u901A\u77E5\u4EBA\u5458",prop:"notify_user"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:u.notify_user,"onUpdate:modelValue":o[1]||(o[1]=a=>u.notify_user=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u901A\u77E5\u4EBA\u5458"},null,8,["modelValue"])]),_:1}),e(F,null,{default:t(()=>[e(r,{type:"primary",onClick:s(x)},{default:t(()=>[ne]),_:1},8,["onClick"]),e(r,{onClick:s(A)},{default:t(()=>[ue]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),p(b,{class:"!border-none",shadow:"never"},{default:t(()=>[_((n(),p(r,{type:"primary",onClick:N},{icon:t(()=>[e(L,{name:"el-icon-Plus"})]),default:t(()=>[re]),_:1})),[[w,["supervision_work.supervision_notice/add"]]]),_((n(),p(r,{disabled:!h.value.length,onClick:o[2]||(o[2]=a=>C(h.value))},{default:t(()=>[pe]),_:1},8,["disabled"])),[[w,["supervision_work.supervision_notice/delete"]]]),y("div",me,[e(P,{data:s(d).lists,onSelectionChange:B},{default:t(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u901A\u77E5\u7F16\u53F7",prop:"code","show-overflow-tooltip":""}),e(l,{label:"\u8981\u6C42\u56DE\u590D\u65E5\u671F",prop:"reply_date","show-overflow-tooltip":""}),e(l,{label:"\u65BD\u5DE5\u5355\u4F4D",prop:"company_name","show-overflow-tooltip":""}),e(l,{label:"\u901A\u77E5\u4EBA\u5458",prop:"notify_user","show-overflow-tooltip":""}),e(l,{label:"\u4E0B\u8FBE\u65E5\u671F",prop:"issue_date","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[_((n(),p(r,{type:"primary",link:"",onClick:j=>S(a)},{default:t(()=>[de]),_:2},1032,["onClick"])),[[w,["supervision_work.supervision_notice/edit"]]]),_((n(),p(r,{type:"danger",link:"",onClick:j=>C(a.id)},{default:t(()=>[ce]),_:2},1032,["onClick"])),[[w,["supervision_work.supervision_notice/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",_e,[e(T,{modelValue:s(d),"onUpdate:modelValue":o[3]||(o[3]=a=>se(d)?d.value=a:null),onChange:s(E)},null,8,["modelValue","onChange"])])]),_:1})),[[R,s(d).loading]]),v.value?(n(),p(Y,{key:0,ref_key:"editRef",ref:f,"dict-data":s(V),onSuccess:s(E),onClose:o[4]||(o[4]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):le("",!0)])}}});export{so as default};