2 lines
6.3 KiB
JavaScript
2 lines
6.3 KiB
JavaScript
import{I as Q,y as X,w as Y,D as Z,C as ee,L as te,a2 as oe,M as se,N as ie}from"./element-plus.258bf9e7.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as le,a as ne}from"./index.ec401e3b.js";import{u as re}from"./usePaging.f6660143.js";import{u as ue}from"./useDictOptions.c644f395.js";import{b as pe,a as $,e as de}from"./build_process_settings.3ec09d85.js";import{d as N,a0 as L,s as P,r as w,ai as ce,o as i,c as g,V as e,M as t,O as m,u as r,L as u,S as R,a as S,W as me,a8 as _e,k as fe,T as p,n as D,U as ve}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.8e7a5a94.js";import ge from"./detail.ca38695d.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"./build_division.e8610f8e.js";import"./index.9492d03b.js";import"./index.a7758114.js";import"./picker.4547601e.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"./custom.13e75d58.js";const Ee=p("\u67E5\u8BE2"),he=p("\u91CD\u7F6E"),ke=p(" \u65B0\u589E "),we=p(" \u5220\u9664 "),Fe={class:"mt-4"},ye={key:0},Ce={key:1},De=p(" \u7F16\u8F91 "),Be=p(" \u5220\u9664 "),Ae=p(" \u8BE6\u60C5 "),xe={class:"flex justify-end mt-4"},Ve=N({name:"projectLists"}),$t=N({...Ve,setup($e){L([]);const F=P(),E=P(),h=w(!1),y=w(!1),T=w([]),_=L({process_step:""}),j=()=>{Object.assign(_,{project_approval_date:"",start_date:"",delivery_date:""}),T.value="",v()},C=w([]),I=a=>{C.value=a.map(({id:o})=>o)},{dictData:B}=ue(""),{pager:f,getLists:v,resetParams:Le,resetPage:U}=re({fetchFun:pe,params:_}),q=async()=>{var a;h.value=!0,await D(),(a=E.value)==null||a.open("add")},M=async a=>{var d,n;console.log(a.id);let o=await $({id:a.id});h.value=!0,await D(),(d=E.value)==null||d.open("edit"),(n=E.value)==null||n.setFormData(o)},A=async a=>{await le.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:a}),v()},O=async a=>{var d,n;let o=await $({id:a.id});y.value=!0,await D(),(d=F.value)==null||d.open(),(n=F.value)==null||n.setFormData(o)};return v(),(a,o)=>{const d=Q,n=X,c=Y,W=Z,x=ee,z=ne,l=te,G=oe,H=se,J=ae,b=ce("perms"),K=ie;return i(),g("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(W,{class:"mb-[-16px]",model:_,inline:""},{default:t(()=>[e(n,{label:"\u5DE5\u5E8F\u6B65\u9AA4",prop:"process_step"},{default:t(()=>[e(d,{modelValue:_.process_step,"onUpdate:modelValue":o[0]||(o[0]=s=>_.process_step=s),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5DE5\u5E8F\u6B65\u9AA4"},null,8,["modelValue"])]),_:1}),e(n,null,{default:t(()=>[e(c,{type:"primary",onClick:r(U)},{default:t(()=>[Ee]),_:1},8,["onClick"]),e(c,{onClick:j},{default:t(()=>[he]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),m((i(),u(x,{class:"!border-none",shadow:"never"},{default:t(()=>[m((i(),u(c,{type:"primary",onClick:q},{icon:t(()=>[e(z,{name:"el-icon-Plus"})]),default:t(()=>[ke]),_:1})),[[b,["build.build_process_settings/add"]]]),m((i(),u(c,{disabled:!C.value.length,onClick:o[1]||(o[1]=s=>A(C.value))},{default:t(()=>[we]),_:1},8,["disabled"])),[[b,["build.build_process_settings/delete"]]]),S("div",Fe,[e(H,{data:r(f).lists,onSelectionChange:I},{default:t(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u5206\u90E8\u5DE5\u7A0B",prop:"division_engineering","show-overflow-tooltip":""}),e(l,{label:"\u5B50\u5206\u90E8\u5DE5\u7A0B",prop:"sub_division_engineering","show-overflow-tooltip":""}),e(l,{label:"\u5206\u9879\u5DE5\u7A0B",prop:"subentry_engineering","show-overflow-tooltip":""}),e(l,{label:"\u5206\u9879\u5DE5\u7A0B\u7F16\u7801",prop:"subentry_engineering_code","show-overflow-tooltip":""}),e(l,{label:"\u5DE5\u5E8F\u6B65\u9AA4\u53F7",prop:"process_step_no","show-overflow-tooltip":""}),e(l,{label:"\u5DE5\u5E8F\u6B65\u9AA4",prop:"process_step","show-overflow-tooltip":""}),e(l,{label:"\u8D28\u91CF\u63A7\u5236\u70B9",prop:"quality_control_points","show-overflow-tooltip":""}),e(l,{label:"\u56FE\u4F8B\u8BF4\u660E",prop:"file","show-overflow-tooltip":""},{default:t(({row:s})=>[s.annex&&s.annex.length>0?(i(),g("div",ye,[(i(!0),g(me,null,_e(s.annex,(k,V)=>(i(),g("div",{key:V},[e(G,{href:k.uri,target:"_blank"},{default:t(()=>[p("\u6587\u4EF6"+ve(V+1),1)]),_:2},1032,["href"])]))),128))])):(i(),g("div",Ce," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(l,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:s})=>[m((i(),u(c,{type:"primary",link:"",onClick:k=>M(s)},{default:t(()=>[De]),_:2},1032,["onClick"])),[[b,["build.build_process_settings/edit"]]]),m((i(),u(c,{type:"danger",link:"",onClick:k=>A(s.id)},{default:t(()=>[Be]),_:2},1032,["onClick"])),[[b,["build.build_process_settings/delete"]]]),m((i(),u(c,{link:"",onClick:k=>O(s)},{default:t(()=>[Ae]),_:2},1032,["onClick"])),[[b,["build.build_process_settings/detail"]]])]),_:1})]),_:1},8,["data"])]),S("div",xe,[e(J,{modelValue:r(f),"onUpdate:modelValue":o[2]||(o[2]=s=>fe(f)?f.value=s:null),onChange:r(v)},null,8,["modelValue","onChange"])])]),_:1})),[[K,r(f).loading]]),h.value?(i(),u(be,{key:0,ref_key:"editRef",ref:E,"dict-data":r(B),onSuccess:r(v),onClose:o[3]||(o[3]=s=>h.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0),y.value?(i(),u(ge,{key:1,ref_key:"detailRef",ref:F,"dict-data":r(B),onClose:o[4]||(o[4]=s=>y.value=!1)},null,8,["dict-data"])):R("",!0)])}}});export{$t as default};
|