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

2 lines
7.2 KiB
JavaScript

import{I as K,y as Q,J as W,w as X,D as Z,C as ee,L as oe,M as te,N as le}from"./element-plus.258bf9e7.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as ue,a as ie}from"./index.ec401e3b.js";import{u as ne}from"./usePaging.f6660143.js";import{u as re}from"./useDictOptions.c644f395.js";import{d as se,b as $,e as pe}from"./build_plan.e089b470.js";import"./lodash.1d82ee7c.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.8dadbd6a.js";import me from"./detail.416bdcec.js";import{d as R,a0 as x,s as P,r as E,ai as _e,o as r,c as ce,V as e,M as l,O as c,u as p,L as d,S as j,a as L,k as fe,T as _,n as B}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"./project_member.02b5dec1.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./project.bccf4059.js";import"./build_process_settings.3ec09d85.js";import"./custom.13e75d58.js";import"./build_report.39d59a6b.js";import"./build_report_detail.0e1639b5.js";const we=_("\u67E5\u8BE2"),ve=_("\u91CD\u7F6E"),be=_(" \u65B0\u589E "),Fe=_(" \u5220\u9664 "),Ee={class:"mt-4"},he=_(" \u7F16\u8F91 "),Ce=_(" \u5220\u9664 "),De=_(" \u8BE6\u60C5 "),ke={class:"flex justify-end mt-4"},Be=R({name:"projectLists"}),Co=R({...Be,setup(ye){x([]);const h=P(),b=P(),F=E(!1),C=E(!1),D=E([]),n=x({zy_code:"",plan_end_date:"",plan_start_date:"",work_user:""}),T=a=>{n.plan_start_date=a[0],n.plan_end_date=a[1]},z=()=>{Object.assign(n,{project_approval_date:"",start_date:"",delivery_date:""}),D.value="",w()},k=E([]),N=a=>{k.value=a.map(({id:o})=>o)},{dictData:y}=re(""),{pager:f,getLists:w,resetParams:ge,resetPage:S}=ne({fetchFun:se,params:n}),M=async()=>{var a;F.value=!0,await B(),(a=b.value)==null||a.open("add")},U=async a=>{var s,i;console.log(a.id);let o=await $({id:a.id});F.value=!0,await B(),(s=b.value)==null||s.open("edit"),(i=b.value)==null||i.setFormData(o)},g=async a=>{await ue.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:a}),w()},Y=async a=>{var s,i;let o=await $({id:a.id});C.value=!0,await B(),(s=h.value)==null||s.open(),(i=h.value)==null||i.setFormData(o)};return w(),(a,o)=>{const s=K,i=Q,I=W,m=X,O=Z,A=ee,q=ie,t=oe,J=te,G=ae,v=_e("perms"),H=le;return r(),ce("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(O,{class:"mb-[-16px]",model:n,inline:""},{default:l(()=>[e(i,{label:"\u4F5C\u4E1A\u7F16\u7801",prop:"zy_code"},{default:l(()=>[e(s,{modelValue:n.zy_code,"onUpdate:modelValue":o[0]||(o[0]=u=>n.zy_code=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u65BD\u5DE5\u4EBA\u5458",prop:"work_user"},{default:l(()=>[e(s,{modelValue:n.work_user,"onUpdate:modelValue":o[1]||(o[1]=u=>n.work_user=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u65BD\u5DE5\u4EBA\u5458"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8BA1\u5212\u65F6\u95F4\u8303\u56F4"},{default:l(()=>[e(I,{modelValue:D.value,"onUpdate:modelValue":o[2]||(o[2]=u=>D.value=u),type:"daterange","start-placeholder":"\u8BA1\u5212\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u8BA1\u5212\u7ED3\u675F\u65E5\u671F","default-time":a.defaultTime,"value-format":"YYYY-MM-DD ",onChange:T},null,8,["modelValue","default-time"])]),_:1}),e(i,null,{default:l(()=>[e(m,{type:"primary",onClick:p(S)},{default:l(()=>[we]),_:1},8,["onClick"]),e(m,{onClick:z},{default:l(()=>[ve]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),c((r(),d(A,{class:"!border-none",shadow:"never"},{default:l(()=>[c((r(),d(m,{type:"primary",onClick:M},{icon:l(()=>[e(q,{name:"el-icon-Plus"})]),default:l(()=>[be]),_:1})),[[v,["build.build_plan/add"]]]),c((r(),d(m,{disabled:!k.value.length,onClick:o[3]||(o[3]=u=>g(k.value))},{default:l(()=>[Fe]),_:1},8,["disabled"])),[[v,["build.build_plan/delete"]]]),L("div",Ee,[e(J,{data:p(f).lists,onSelectionChange:N},{default:l(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(t,{label:"\u4F5C\u4E1A\u7F16\u7801",prop:"zy_code","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(t,{label:"\u5206\u9879\u5DE5\u7A0B",prop:"subentry_engineering","show-overflow-tooltip":""}),e(t,{label:"\u5DE5\u5E8F\u6B65\u9AA4\u53F7",prop:"process_step_no",width:"125","show-overflow-tooltip":""}),e(t,{label:"\u5DE5\u5E8F\u6B65\u9AA4",prop:"process_step","show-overflow-tooltip":""}),e(t,{label:"\u8BA1\u5212\u5F00\u59CB\u65E5\u671F",prop:"plan_start_date",width:"135","show-overflow-tooltip":""}),e(t,{label:"\u8BA1\u5212\u7ED3\u675F\u65E5\u671F",prop:"plan_end_date",width:"135","show-overflow-tooltip":""}),e(t,{label:"\u73ED\u7EC4\u957F",prop:"project_member_name","show-overflow-tooltip":""}),e(t,{label:"\u65BD\u5DE5\u4EBA\u5458",prop:"work_user","show-overflow-tooltip":""}),e(t,{label:"\u65BD\u5DE5\u5185\u5BB9",prop:"work_content","show-overflow-tooltip":""}),e(t,{label:"\u4F5C\u4E1A\u91CF",prop:"workload","show-overflow-tooltip":""}),e(t,{label:"\u5355\u4F4D",prop:"unit","show-overflow-tooltip":""}),e(t,{label:"\u5B8C\u5DE5\u4F5C\u4E1A\u91CF ",prop:"done_workload",width:"125","show-overflow-tooltip":""}),e(t,{label:"\u5269\u4F59\u4F5C\u4E1A\u91CF",prop:"residue_workload",width:"125","show-overflow-tooltip":""}),e(t,{label:"\u8FDB\u5EA6(%)",prop:"completion_degree",width:"85","show-overflow-tooltip":""}),e(t,{label:"\u5355\u4EF7",prop:"price","show-overflow-tooltip":""}),e(t,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:l(({row:u})=>[c((r(),d(m,{type:"primary",link:"",onClick:V=>U(u)},{default:l(()=>[he]),_:2},1032,["onClick"])),[[v,["build.build_plan/edit"]]]),c((r(),d(m,{type:"danger",link:"",onClick:V=>g(u.id)},{default:l(()=>[Ce]),_:2},1032,["onClick"])),[[v,["build.build_plan/delete"]]]),c((r(),d(m,{link:"",onClick:V=>Y(u)},{default:l(()=>[De]),_:2},1032,["onClick"])),[[v,["build.build_plan/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",ke,[e(G,{modelValue:p(f),"onUpdate:modelValue":o[4]||(o[4]=u=>fe(f)?f.value=u:null),onChange:p(w)},null,8,["modelValue","onChange"])])]),_:1})),[[H,p(f).loading]]),F.value?(r(),d(de,{key:0,ref_key:"editRef",ref:b,"dict-data":p(y),onSuccess:p(w),onClose:o[5]||(o[5]=u=>F.value=!1)},null,8,["dict-data","onSuccess"])):j("",!0),C.value?(r(),d(me,{key:1,ref_key:"detailRef",ref:h,"dict-data":p(y),onClose:o[6]||(o[6]=u=>C.value=!1)},null,8,["dict-data"])):j("",!0)])}}});export{Co as default};