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

2 lines
5.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 te,a as oe}from"./index.8b1962e9.js";import{u as ae}from"./usePaging.f6660143.js";import{u as le}from"./useDictOptions.b5854a9e.js";import{_ as ie,a as ne,b as V,c as se}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.a5b8812c.js";import"./lodash.1d82ee7c.js";import re from"./detail.8de36f1d.js";import{d as R,a0 as x,s as P,r as b,ai as pe,o as i,c as ue,V as t,M as o,O as m,u as n,L as r,S as $,a as L,k as ce,T as c,n as j}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"./projecttype.80aa89f5.js";import"./custom.99349afc.js";const de=c("\u67E5\u8BE2"),me=c("\u91CD\u7F6E"),_e=c(" \u65B0\u589E "),fe=c(" \u5220\u9664 "),ve={class:"mt-4"},Ce=c(" \u7F16\u8F91 "),he=c(" \u5220\u9664 "),ke=c(" \u8BE6\u60C5 "),ye={class:"flex justify-end mt-4"},we=R({name:"projectLists"}),ut=R({...we,setup(Ee){x([]);const y=P(),v=P(),C=b(!1),w=b(!1),h=x({project_type_name:""}),E=b([]),N=a=>{E.value=a.map(({id:e})=>e)},{dictData:D}=le(""),{pager:_,getLists:k,resetParams:S,resetPage:T}=ae({fetchFun:ne,params:h}),A=async()=>{var a;C.value=!0,await j(),(a=v.value)==null||a.open("add")},I=async a=>{var p,s;console.log(a.id);let e=await V({id:a.id});C.value=!0,await j(),(p=v.value)==null||p.open("edit"),(s=v.value)==null||s.setFormData(e)},F=async a=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await se({id:a}),k()},M=async a=>{var p,s;let e=await V({id:a.id});w.value=!0,await j(),(p=y.value)==null||p.open(),(s=y.value)==null||s.setFormData(e)};return k(),(a,e)=>{const p=H,s=J,u=K,U=Q,g=W,q=oe,d=X,O=Y,z=ee,f=pe("perms"),G=Z;return i(),ue("div",null,[t(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(U,{class:"mb-[-16px]",model:h,inline:""},{default:o(()=>[t(s,{label:"\u7C7B\u578B\u540D\u79F0",prop:"project_type_name"},{default:o(()=>[t(p,{class:"w-[280px]",modelValue:h.project_type_name,"onUpdate:modelValue":e[0]||(e[0]=l=>h.project_type_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7C7B\u578B\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(s,null,{default:o(()=>[t(u,{type:"primary",onClick:n(T)},{default:o(()=>[de]),_:1},8,["onClick"]),t(u,{onClick:n(S)},{default:o(()=>[me]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),m((i(),r(g,{class:"!border-none",shadow:"never"},{default:o(()=>[m((i(),r(u,{type:"primary",onClick:A},{icon:o(()=>[t(q,{name:"el-icon-Plus"})]),default:o(()=>[_e]),_:1})),[[f,["project.project/add"]]]),m((i(),r(u,{disabled:!E.value.length,onClick:e[1]||(e[1]=l=>F(E.value))},{default:o(()=>[fe]),_:1},8,["disabled"])),[[f,["project.project/delete"]]]),L("div",ve,[t(O,{data:n(_).lists,onSelectionChange:N},{default:o(()=>[t(d,{type:"selection",width:"55"}),t(d,{label:"\u5E8F\u53F7",type:"index",width:"55"}),t(d,{label:"\u9879\u76EE\u7C7B\u578B",prop:"project_type_name","show-overflow-tooltip":""}),t(d,{label:"\u6700\u4F4E\u5229\u6DA6\u7387(%)",prop:"profit_rate","show-overflow-tooltip":""}),t(d,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),t(d,{label:"\u64CD\u4F5C",width:"350",fixed:"right"},{default:o(({row:l})=>[m((i(),r(u,{type:"primary",link:"",onClick:B=>I(l)},{default:o(()=>[Ce]),_:2},1032,["onClick"])),[[f,["project.project/edit"]]]),m((i(),r(u,{type:"danger",link:"",onClick:B=>F(l.id)},{default:o(()=>[he]),_:2},1032,["onClick"])),[[f,["project.project/delete"]]]),m((i(),r(u,{link:"",onClick:B=>M(l)},{default:o(()=>[ke]),_:2},1032,["onClick"])),[[f,["project.project/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",ye,[t(z,{modelValue:n(_),"onUpdate:modelValue":e[2]||(e[2]=l=>ce(_)?_.value=l:null),onChange:n(k)},null,8,["modelValue","onChange"])])]),_:1})),[[G,n(_).loading]]),C.value?(i(),r(ie,{key:0,ref_key:"editRef",ref:v,"dict-data":n(D),onSuccess:n(k),onClose:e[3]||(e[3]=l=>C.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),w.value?(i(),r(re,{key:1,ref_key:"detailRef",ref:y,"dict-data":n(D),onClose:e[4]||(e[4]=l=>w.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{ut as default};