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

2 lines
6.1 KiB
JavaScript

import{G as O,H as q,y as G,I as H,w as W,D as z,C as J,L as K,M as Q,N as X}from"./element-plus.258bf9e7.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as Z,a as ee}from"./index.ec401e3b.js";import{u as oe}from"./usePaging.f6660143.js";import{u as ae}from"./useDictOptions.c644f395.js";import{_ as te,a as le,b as ne,c as ue}from"./edit.vue_vue_type_script_setup_true_name_supervisionPlanningEdit_lang.50f41ba4.js";import"./lodash.1d82ee7c.js";import{d as P,s as se,r as V,a0 as re,ai as pe,o as s,c as A,V as e,M as a,O as c,u as r,L as p,S as ie,W as me,a8 as _e,a as D,k as de,T as m,n as x}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.8f6cc90c.js";import"./supervision_project.e6761916.js";import"./index.a7758114.js";import"./index.9492d03b.js";const ce=m("\u67E5\u8BE2"),ve=m("\u91CD\u7F6E"),fe=m(" \u65B0\u589E "),Be=m(" \u5220\u9664 "),Ee={class:"mt-4"},Ce=m(" \u7F16\u8F91 "),be=m(" \u5220\u9664 "),we={class:"flex justify-end mt-4"},he=P({name:"supervisionPlanningLists"}),mo=P({...he,setup(ge){const v=se(),f=V(!1),l=re({project_id:"",approval_type:"",approval_user:"",scheme_name:"",create_user:""}),w=V([]),S=n=>{w.value=n.map(({id:o})=>o)},{dictData:F}=ae("supervision_planning_approval_type"),{pager:_,getLists:B,resetParams:L,resetPage:$}=oe({fetchFun:le,params:l}),N=async()=>{var n;f.value=!0,await x(),(n=v.value)==null||n.open("add")},T=async n=>{var E,C;let o=await ne({id:n.id});f.value=!0,await x(),(E=v.value)==null||E.open("edit"),(C=v.value)==null||C.setFormData(o)},y=async n=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ue({id:n}),B()};return B(),(n,o)=>{const E=O,C=q,d=G,h=H,i=W,U=z,k=J,I=ee,u=K,R=Q,j=Y,b=pe("perms"),M=X;return s(),A("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(U,{class:"mb-[-16px]",model:l,inline:""},{default:a(()=>[e(d,{label:"\u4E13\u9879\u5BA1\u6279\u7C7B\u578B",prop:"approval_type"},{default:a(()=>[e(C,{class:"w-[280px]",modelValue:l.approval_type,"onUpdate:modelValue":o[0]||(o[0]=t=>l.approval_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4E13\u9879\u5BA1\u6279\u7C7B\u578B"},{default:a(()=>[(s(!0),A(me,null,_e(r(F).supervision_planning_approval_type,(t,g)=>(s(),p(E,{key:g,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u8BC4\u5BA1\u4EBA\u5458",prop:"approval_user"},{default:a(()=>[e(h,{class:"w-[280px]",modelValue:l.approval_user,"onUpdate:modelValue":o[1]||(o[1]=t=>l.approval_user=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5BA1\u4EBA\u5458"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u65B9\u6848\u540D\u79F0",prop:"scheme_name"},{default:a(()=>[e(h,{class:"w-[280px]",modelValue:l.scheme_name,"onUpdate:modelValue":o[2]||(o[2]=t=>l.scheme_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u65B9\u6848\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u521B\u5EFA\u4EBA",prop:"create_user"},{default:a(()=>[e(h,{class:"w-[280px]",modelValue:l.create_user,"onUpdate:modelValue":o[3]||(o[3]=t=>l.create_user=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u521B\u5EFA\u4EBA"},null,8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(i,{type:"primary",onClick:r($)},{default:a(()=>[ce]),_:1},8,["onClick"]),e(i,{onClick:r(L)},{default:a(()=>[ve]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),c((s(),p(k,{class:"!border-none",shadow:"never"},{default:a(()=>[c((s(),p(i,{type:"primary",onClick:N},{icon:a(()=>[e(I,{name:"el-icon-Plus"})]),default:a(()=>[fe]),_:1})),[[b,["supervision_prepare.supervision_planning/add"]]]),c((s(),p(i,{disabled:!w.value.length,onClick:o[4]||(o[4]=t=>y(w.value))},{default:a(()=>[Be]),_:1},8,["disabled"])),[[b,["supervision_prepare.supervision_planning/delete"]]]),D("div",Ee,[e(R,{data:r(_).lists,onSelectionChange:S},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(u,{label:"\u4E13\u9879\u5BA1\u6279\u7C7B\u578B",prop:"approval_type_text","show-overflow-tooltip":""}),e(u,{label:"\u8BC4\u5BA1\u4EBA\u5458",prop:"approval_user","show-overflow-tooltip":""}),e(u,{label:"\u65B9\u6848\u540D\u79F0",prop:"scheme_name","show-overflow-tooltip":""}),e(u,{label:"\u8BC4\u5BA1\u5185\u5BB9",prop:"approval_content","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(u,{label:"\u521B\u5EFA\u4EBA",prop:"create_user_name","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[c((s(),p(i,{type:"primary",link:"",onClick:g=>T(t)},{default:a(()=>[Ce]),_:2},1032,["onClick"])),[[b,["supervision_prepare.supervision_planning/edit"]]]),c((s(),p(i,{type:"danger",link:"",onClick:g=>y(t.id)},{default:a(()=>[be]),_:2},1032,["onClick"])),[[b,["supervision_prepare.supervision_planning/delete"]]])]),_:1})]),_:1},8,["data"])]),D("div",we,[e(j,{modelValue:r(_),"onUpdate:modelValue":o[5]||(o[5]=t=>de(_)?_.value=t:null),onChange:r(B)},null,8,["modelValue","onChange"])])]),_:1})),[[M,r(_).loading]]),f.value?(s(),p(te,{key:0,ref_key:"editRef",ref:v,"dict-data":r(F),onSuccess:r(B),onClose:o[6]||(o[6]=t=>f.value=!1)},null,8,["dict-data","onSuccess"])):ie("",!0)])}}});export{mo as default};