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

2 lines
5.4 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.258bf9e7.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as te,a as oe}from"./index.ec401e3b.js";import{u as ae}from"./usePaging.f6660143.js";import{u as le}from"./useDictOptions.c644f395.js";import{_ as ie,a as ne,b as x,c as ue}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.a885cd3f.js";import"./lodash.1d82ee7c.js";import re from"./detail.7bee3091.js";import{d as R,a0 as V,s as P,r as B,ai as se,o as n,c as pe,V as e,M as o,O as m,u,L as s,S as $,a as L,k as ce,T as d,n as E}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.5a5f706a.js";import"./project.bccf4059.js";import"./custom.13e75d58.js";const de=d("\u67E5\u8BE2"),me=d("\u91CD\u7F6E"),_e=d(" \u65B0\u589E "),fe=d(" \u5220\u9664 "),ve={class:"mt-4"},Fe=d(" \u7F16\u8F91 "),be=d(" \u5220\u9664 "),he=d(" \u8BE6\u60C5 "),we={class:"flex justify-end mt-4"},De=R({name:"projectLists"}),ct=R({...De,setup(Ce){V([]);const w=P(),v=P(),F=B(!1),D=B(!1),b=V({name:""}),C=B([]),N=a=>{C.value=a.map(({id:t})=>t)},{dictData:k}=le(""),{pager:_,getLists:h,resetParams:S,resetPage:T}=ae({fetchFun:ne,params:b}),A=async()=>{var a;F.value=!0,await E(),(a=v.value)==null||a.open("add")},I=async a=>{var p,r;console.log(a.id);let t=await x({id:a.id});F.value=!0,await E(),(p=v.value)==null||p.open("edit"),(r=v.value)==null||r.setFormData(t)},g=async a=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ue({id:a}),h()},M=async a=>{var p,r;let t=await x({id:a.id});D.value=!0,await E(),(p=w.value)==null||p.open(),(r=w.value)==null||r.setFormData(t)};return h(),(a,t)=>{const p=H,r=J,c=K,U=Q,y=W,q=oe,i=X,O=Y,z=ee,f=se("perms"),G=Z;return n(),pe("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(U,{class:"mb-[-16px]",model:b,inline:""},{default:o(()=>[e(r,{label:"\u9879\u76EE\u540D\u79F0",prop:"procurement_contract_id"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:b.name,"onUpdate:modelValue":t[0]||(t[0]=l=>b.name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,null,{default:o(()=>[e(c,{type:"primary",onClick:u(T)},{default:o(()=>[de]),_:1},8,["onClick"]),e(c,{onClick:u(S)},{default:o(()=>[me]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),m((n(),s(y,{class:"!border-none",shadow:"never"},{default:o(()=>[m((n(),s(c,{type:"primary",onClick:A},{icon:o(()=>[e(q,{name:"el-icon-Plus"})]),default:o(()=>[_e]),_:1})),[[f,["project.project/add"]]]),m((n(),s(c,{disabled:!C.value.length,onClick:t[1]||(t[1]=l=>g(C.value))},{default:o(()=>[fe]),_:1},8,["disabled"])),[[f,["project.project/delete"]]]),L("div",ve,[e(O,{data:u(_).lists,onSelectionChange:N},{default:o(()=>[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:"\u6750\u6599\u9884\u7B97\u82B1\u8D39\u6BD4\u4F8B(\uFF05)",prop:"material_budget_expenditure_ratio","show-overflow-tooltip":""}),e(i,{label:"\u4EBA\u5DE5\u9884\u7B97\u82B1\u8D39\u6BD4\u4F8B(\uFF05)",prop:"labour_budget_expenditure_ratio","show-overflow-tooltip":""}),e(i,{label:"\u8D39\u7528\u9884\u7B97\u82B1\u8D39\u6BD4\u4F8B(\uFF05)",prop:"cost_budget_expenditure_ratio","show-overflow-tooltip":""}),e(i,{label:"\u5206\u5305\u9884\u7B97\u82B1\u8D39\u6BD4\u4F8B(\uFF05)",prop:"subcontract_budget_expenditure_ratio","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:l})=>[m((n(),s(c,{type:"primary",link:"",onClick:j=>I(l)},{default:o(()=>[Fe]),_:2},1032,["onClick"])),[[f,["project.project/edit"]]]),m((n(),s(c,{type:"danger",link:"",onClick:j=>g(l.id)},{default:o(()=>[be]),_:2},1032,["onClick"])),[[f,["project.project/delete"]]]),m((n(),s(c,{link:"",onClick:j=>M(l)},{default:o(()=>[he]),_:2},1032,["onClick"])),[[f,["project.project/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",we,[e(z,{modelValue:u(_),"onUpdate:modelValue":t[2]||(t[2]=l=>ce(_)?_.value=l:null),onChange:u(h)},null,8,["modelValue","onChange"])])]),_:1})),[[G,u(_).loading]]),F.value?(n(),s(ie,{key:0,ref_key:"editRef",ref:v,"dict-data":u(k),onSuccess:u(h),onClose:t[3]||(t[3]=l=>F.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),D.value?(n(),s(re,{key:1,ref_key:"detailRef",ref:w,"dict-data":u(k),onClose:t[4]||(t[4]=l=>D.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{ct as default};