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

2 lines
5.5 KiB
JavaScript

import{w as M,L as z,b as I,M as O,C as U,N as G}from"./element-plus.258bf9e7.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as J,a as K}from"./index.ec401e3b.js";import{u as Q}from"./usePaging.f6660143.js";import{u as W}from"./useDictOptions.c644f395.js";import{b as X,e as Y,a as Z}from"./build_report.39d59a6b.js";import"./lodash.1d82ee7c.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.6f0fedec.js";import te from"./detail.f3c2a879.js";import{d as A,s as F,r as f,a0 as oe,ai as ae,o as i,c as C,O as m,u as n,L as p,M as r,S as y,V as e,a as B,k as ie,T as v,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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_style_index_0_lang.0ff67de9.js";import"./common.c510575b.js";import"./picker.4547601e.js";import"./index.9492d03b.js";import"./index.59cb12da.js";import"./index.7a6cc892.js";import"./index.vue_vue_type_script_setup_true_lang.84fcd2ee.js";import"./file.vue_vue_type_style_index_0_scoped_5ccc0f84_lang.e4e8877b.js";import"./vue3-video-play.b66b1487.js";import"./vuedraggable.05ef589e.js";import"./vue.6436c619.js";import"./sortablejs.81b741d7.js";import"./index.vue_vue_type_script_setup_true_lang.0ec25c70.js";import"./project_personnel.09fb588e.js";import"./build_plan.e089b470.js";import"./custom.13e75d58.js";const le=v(" \u65B0\u589E "),re=v(" \u5220\u9664 "),se={class:"mt-4"},ne={key:0},pe={key:1},ue=v(" \u5220\u9664 "),me=v(" \u8BE6\u60C5 "),ce={class:"flex justify-end mt-4"},de=A({name:"projectLists"}),ht=A({...de,setup(_e){const w=F(),D=F(),h=f(!1),b=f(!1);f([]);const x=oe({deliver_time:"",start_time:"",declare_time:""}),E=f([]),V=l=>{E.value=l.map(({id:o})=>o)},{dictData:g}=W(""),{pager:u,getLists:c,resetParams:fe,resetPage:ve}=Q({fetchFun:X,params:x}),$=async()=>{var l;h.value=!0,await j(),(l=D.value)==null||l.open("add")},k=async l=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Y({id:l}),c()},L=async l=>{var d,s;let o=await Z({id:l.id});b.value=!0,await j(),(d=w.value)==null||d.open(),(s=w.value)==null||s.setFormData(o)};return c(),(l,o)=>{const d=K,s=M,t=z,P=I,R=O,N=H,S=U,_=ae("perms"),T=G;return i(),C("div",null,[m((i(),p(S,{class:"!border-none",shadow:"never"},{default:r(()=>[m((i(),p(s,{type:"primary",onClick:$},{icon:r(()=>[e(d,{name:"el-icon-Plus"})]),default:r(()=>[le]),_:1})),[[_,["project.project_plan/add"]]]),m((i(),p(s,{disabled:!E.value.length,onClick:o[0]||(o[0]=a=>k(E.value))},{default:r(()=>[re]),_:1},8,["disabled"])),[[_,["project.project_plan/delete"]]]),B("div",se,[e(R,{data:n(u).lists,onSelectionChange:V},{default:r(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(t,{label:"\u65BD\u5DE5\u6C47\u62A5\u5355\u53F7",prop:"report_code","show-overflow-tooltip":""}),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",prop:"process_step","show-overflow-tooltip":""}),e(t,{label:"\u8D28\u91CF\u63A7\u5236\u70B9",prop:"quality_control_points","show-overflow-tooltip":""}),e(t,{label:"\u56FE\u4F8B\u8BF4\u660E",prop:"file","show-overflow-tooltip":""},{default:r(({row:a})=>[a.file&&a.file.length>0?(i(),C("div",ne,[e(P,{style:{width:"50px",height:"50px"},src:a.file},null,8,["src"])])):(i(),C("div",pe," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(t,{label:"\u5DE5\u5E8F\u6B65\u9AA4\u53F7",prop:"process_step_no","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:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:r(({row:a})=>[m((i(),p(s,{type:"danger",link:"",onClick:q=>k(a.id)},{default:r(()=>[ue]),_:2},1032,["onClick"])),[[_,["project.project_plan/delete"]]]),m((i(),p(s,{link:"",onClick:q=>L(a)},{default:r(()=>[me]),_:2},1032,["onClick"])),[[_,["project.project_plan/detail"]]])]),_:1})]),_:1},8,["data"])]),B("div",ce,[e(N,{modelValue:n(u),"onUpdate:modelValue":o[1]||(o[1]=a=>ie(u)?u.value=a:null),onChange:n(c)},null,8,["modelValue","onChange"])])]),_:1})),[[T,n(u).loading]]),h.value?(i(),p(ee,{key:0,ref_key:"editRef",ref:D,"dict-data":n(g),onSuccess:n(c),onClose:o[2]||(o[2]=a=>h.value=!1)},null,8,["dict-data","onSuccess"])):y("",!0),b.value?(i(),p(te,{key:1,ref_key:"detailRef",ref:w,"dict-data":n(g),onClose:o[3]||(o[3]=a=>b.value=!1)},null,8,["dict-data"])):y("",!0)])}}});export{ht as default};