multiStoreAdmin/build/store/assets/index.9e831b4b.js

2 lines
4.9 KiB
JavaScript

import{$ as G,a0 as M,Q as O,R as q,D as A,C as Q,w as W,F as z,I as H,L as J,t as K,M as X,N as Y}from"./element-plus.9175fe58.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.0fb3ad1e.js";import{u as ee}from"./usePaging.d25ebf19.js";import{b as te,c as oe,a as le}from"./goodsList.8db28082.js";import{_ as ae}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.685ff810.js";import{d as B,s as se,r as E,a0 as g,o as C,c as ue,W as e,O as t,u as a,T as b,P as ne,M as h,a as F,j as ie,S as re,n as pe}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.1f51da93.js";import"./axios.13991fdc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.026c5631.js";import"./lodash.6c5d06b3.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./index.2c1fd077.js";const me={class:"mt-4"},_e={class:"flex mt-4 justify-end"},de=B({name:"manageProjectLists"}),Ze=B({...de,setup(ce){const _=se(),d=E(!1),i=g({status:""}),V=E([]),x=u=>{V.value=u.map(({id:o})=>o)},{pager:r,getLists:c,resetParams:y,resetPage:D}=ee({fetchFun:le,params:i}),k=u=>{te({}).finally(()=>{c()})},L=async u=>{var o,n;d.value=!0,await pe(),(o=_.value)==null||o.open("edit"),(n=_.value)==null||n.setFormData(u)},T=g([]);return(async()=>{let u=await oe();T.push(...u)})(),c(),(u,o)=>{const n=O,S=q,p=A,m=G,P=Q,f=W,R=M,$=z,w=H,s=J,j=K,N=X,U=Z,I=Y;return C(),ue("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:a(i),"label-width":"80px"},{default:t(()=>[e(R,null,{default:t(()=>[e(m,{span:6},{default:t(()=>[e(p,{label:"\u5546\u54C1\u72B6\u6001"},{default:t(()=>[e(S,{class:"flex-1",modelValue:a(i).status,"onUpdate:modelValue":o[0]||(o[0]=l=>a(i).status=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u72B6\u6001"},{default:t(()=>[e(n,{label:"\u9500\u552E\u4E2D",value:0}),e(n,{label:"\u4ED3\u5E93\u4E2D",value:0}),e(n,{label:"\u5DF2\u552E\u7F44",value:0}),e(n,{label:"\u5E93\u5B58\u9884\u8B66",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{span:6},{default:t(()=>[e(p,{label:"\u5546\u54C1\u5206\u7C7B",prop:"project_code"})]),_:1}),e(m,{span:6},{default:t(()=>[e(p,{label:"\u5546\u54C1\u641C\u7D22",prop:"nature"},{default:t(()=>[e(P,{modelValue:a(i).status,"onUpdate:modelValue":o[1]||(o[1]=l=>a(i).status=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:6},{default:t(()=>[e(p,null,{default:t(()=>[e(f,{type:"primary",onClick:a(D)},{default:t(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:a(y)},{default:t(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),ne((C(),h(w,{class:"!border-none",shadow:"never"},{default:t(()=>[F("div",me,[e(N,{border:"",data:a(r).lists,onSelectionChange:x},{default:t(()=>[e(s,{label:"\u5546\u54C1id",prop:"progress","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u56FE",prop:"build_area_text","show-overflow-tooltip":""},{default:t(({row:l})=>[]),_:1}),e(s,{label:"\u5546\u54C1\u540D\u79F0",prop:"project_level_text","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u552E\u4EF7",prop:"total_investment","show-overflow-tooltip":"",width:"120"}),e(s,{label:"\u9500\u91CF",prop:"engineering_status_text","show-overflow-tooltip":""}),e(s,{label:"\u5E93\u5B58",prop:"engineering_status_text","show-overflow-tooltip":""}),e(s,{label:"\u6392\u5E8F",prop:"engineering_status_text","show-overflow-tooltip":""}),e(s,{label:"\u72B6\u6001",prop:"engineering_status_text","show-overflow-tooltip":""},{default:t(({row:l})=>[e(j,{modelValue:l.status,"onUpdate:modelValue":v=>l.status=v,"active-value":1,"inactive-value":0,onChange:v=>k(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:t(({row:l})=>[e(f,{type:"primary",link:"",onClick:v=>L(l)},{default:t(()=>[b(" \u5E93\u5B58\u7BA1\u7406 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),F("div",_e,[e(U,{modelValue:a(r),"onUpdate:modelValue":o[2]||(o[2]=l=>ie(r)?r.value=l:null),onChange:a(c)},null,8,["modelValue","onChange"])])]),_:1})),[[I,a(r).loading]]),a(d)?(C(),h(ae,{key:0,ref_key:"editRef",ref:_,onClose:o[3]||(o[3]=l=>d.value=!1)},null,512)):re("",!0)])}}});export{Ze as default};