engineering/public/admin/assets/index.acfd0034.js
2024-02-27 10:28:16 +08:00

2 lines
6.0 KiB
JavaScript

import{I as H,y as J,w as K,D as Q,C as W,L as X,M as Y,N as Z}from"./element-plus.517d4382.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as oe,a as te}from"./index.8b1962e9.js";import{u as ae}from"./usePaging.f6660143.js";import{u as le}from"./useDictOptions.b5854a9e.js";import{d as ne,a as B,e as re}from"./project_member.dc7022d6.js";import"./lodash.1d82ee7c.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.b0216753.js";import ue from"./detail.372e06c2.js";import{d as R,a0 as x,s as P,r as h,ai as se,o as u,c as pe,V as e,M as t,O as _,u as s,L as m,S as $,a as L,k as me,T as c,n as k}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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./index.vue_vue_type_style_index_0_lang.c7aef442.js";import"./common.9d529cba.js";import"./project_role_set.47e8f52b.js";import"./custom.99349afc.js";const de=c("\u67E5\u8BE2"),ce=c("\u91CD\u7F6E"),_e=c(" \u65B0\u589E "),fe=c(" \u5220\u9664 "),ve={class:"mt-4"},we=c(" \u7F16\u8F91 "),Ee=c(" \u5220\u9664 "),Fe=c(" \u8BE6\u60C5 "),be={class:"flex justify-end mt-4"},Ce=R({name:"projectLists"}),vo=R({...Ce,setup(De){x([]);const b=P(),w=P(),E=h(!1),C=h(!1),p=x({project_role_name:"",project_name:"",admin_name:""}),D=h([]),A=l=>{D.value=l.map(({id:o})=>o)},{dictData:j}=le(""),{pager:f,getLists:F,resetParams:N,resetPage:S}=ae({fetchFun:ne,params:p}),T=async()=>{var l;E.value=!0,await k(),(l=w.value)==null||l.open("add")},U=async l=>{var r,n;console.log(l.id);let o=await B({id:l.id});E.value=!0,await k(),(r=w.value)==null||r.open("edit"),(n=w.value)==null||n.setFormData(o)},y=async l=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:l}),F()},I=async l=>{var r,n;let o=await B({id:l.id});C.value=!0,await k(),(r=b.value)==null||r.open(),(n=b.value)==null||n.setFormData(o)};return F(),(l,o)=>{const r=H,n=J,d=K,M=Q,g=W,q=te,i=X,O=Y,z=ee,v=se("perms"),G=Z;return u(),pe("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(M,{class:"mb-[-16px]",model:p,inline:""},{default:t(()=>[e(n,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:p.project_name,"onUpdate:modelValue":o[0]||(o[0]=a=>p.project_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u89D2\u8272\u540D\u79F0",prop:"project_role_name"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:p.project_role_name,"onUpdate:modelValue":o[1]||(o[1]=a=>p.project_role_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u4EBA\u5458\u540D\u79F0",prop:"admin_name"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:p.admin_name,"onUpdate:modelValue":o[2]||(o[2]=a=>p.admin_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,null,{default:t(()=>[e(d,{type:"primary",onClick:s(S)},{default:t(()=>[de]),_:1},8,["onClick"]),e(d,{onClick:s(N)},{default:t(()=>[ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((u(),m(g,{class:"!border-none",shadow:"never"},{default:t(()=>[_((u(),m(d,{type:"primary",onClick:T},{icon:t(()=>[e(q,{name:"el-icon-Plus"})]),default:t(()=>[_e]),_:1})),[[v,["project.project/add"]]]),_((u(),m(d,{disabled:!D.value.length,onClick:o[3]||(o[3]=a=>y(D.value))},{default:t(()=>[fe]),_:1},8,["disabled"])),[[v,["project.project/delete"]]]),L("div",ve,[e(O,{data:s(f).lists,onSelectionChange:A},{default:t(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(i,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(i,{label:"\u89D2\u8272\u540D\u79F0",prop:"project_role_name","show-overflow-tooltip":""}),e(i,{label:"\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(i,{label:"\u5DE5\u65F6\u5355\u4EF7",prop:"working_unit_price","show-overflow-tooltip":""}),e(i,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:a})=>[_((u(),m(d,{type:"primary",link:"",onClick:V=>U(a)},{default:t(()=>[we]),_:2},1032,["onClick"])),[[v,["project.project/edit"]]]),_((u(),m(d,{type:"danger",link:"",onClick:V=>y(a.id)},{default:t(()=>[Ee]),_:2},1032,["onClick"])),[[v,["project.project/delete"]]]),_((u(),m(d,{link:"",onClick:V=>I(a)},{default:t(()=>[Fe]),_:2},1032,["onClick"])),[[v,["project.project/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",be,[e(z,{modelValue:s(f),"onUpdate:modelValue":o[4]||(o[4]=a=>me(f)?f.value=a:null),onChange:s(F)},null,8,["modelValue","onChange"])])]),_:1})),[[G,s(f).loading]]),E.value?(u(),m(ie,{key:0,ref_key:"editRef",ref:w,"dict-data":s(j),onSuccess:s(F),onClose:o[5]||(o[5]=a=>E.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),C.value?(u(),m(ue,{key:1,ref_key:"detailRef",ref:b,"dict-data":s(j),onClose:o[6]||(o[6]=a=>C.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{vo as default};