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

2 lines
6.1 KiB
JavaScript

import{I as G,y as H,J as K,w as Q,D as X,C as Z,L as ee,a2 as te,M as oe,N as ae}from"./element-plus.258bf9e7.js";import{_ as le}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 se}from"./useDictOptions.c644f395.js";import{_ as re,q as pe,a as de,b as ce}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.6a6c7944.js";import{d as P,a0 as q,s as A,r as w,ai as me,o as l,c as f,V as e,M as o,O as v,u as n,L as p,S as x,a as L,W as _e,a8 as fe,k as ve,T as d,n as $,U as ye}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import Ce from"./detail.78e7c68b.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_script_setup_true_lang.5a5f706a.js";import"./project.bccf4059.js";import"./index.9492d03b.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./custom.13e75d58.js";const Ee=d("\u67E5\u8BE2"),he=d("\u91CD\u7F6E"),be=d(" \u65B0\u589E "),ke=d(" \u5220\u9664 "),we={class:"mt-4"},Fe={key:0},ge={key:1},De=d(" \u7F16\u8F91 "),Be=d(" \u5220\u9664 "),Ve={class:"flex justify-end mt-4"},qe=P({name:"projectLists"}),bt=P({...qe,setup(Ae){q([]);const R=A(),y=A(),C=w(!1),F=w(!1),s=q({accept_date:"",engineer:"",type:""}),b=w([]),S=i=>{b.value=i.map(({id:t})=>t)},{dictData:g}=se("refund_type"),{pager:m,getLists:E,resetParams:N,resetPage:T}=ne({fetchFun:pe,params:s}),U=async()=>{var i;C.value=!0,await $(),(i=y.value)==null||i.open("add")},M=async i=>{var _,r;console.log(i.id);let t=await de({id:i.id});C.value=!0,await $(),(_=y.value)==null||_.open("edit"),(r=y.value)==null||r.setFormData(t)},D=async i=>{await ue.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ce({id:i}),E()};return E(),(i,t)=>{const _=G,r=H,Y=K,c=Q,j=X,B=Z,I=ie,u=ee,J=te,O=oe,W=le,h=me("perms"),z=ae;return l(),f("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(j,{class:"mb-[-16px]",model:s,inline:""},{default:o(()=>[e(r,{label:"\u9A8C\u6536\u7C7B\u578B",prop:"type"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:s.type,"onUpdate:modelValue":t[0]||(t[0]=a=>s.type=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9A8C\u6536\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u9A8C\u6536\u5DE5\u7A0B\u5E08",prop:"engineer"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:s.engineer,"onUpdate:modelValue":t[1]||(t[1]=a=>s.engineer=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9A8C\u6536\u5DE5\u7A0B\u5E08"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u9A8C\u6536\u65E5\u671F",prop:"publish_dep"},{default:o(()=>[e(Y,{modelValue:s.accept_date,"onUpdate:modelValue":t[2]||(t[2]=a=>s.accept_date=a),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u9A8C\u6536\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(r,null,{default:o(()=>[e(c,{type:"primary",onClick:n(T)},{default:o(()=>[Ee]),_:1},8,["onClick"]),e(c,{onClick:n(N)},{default:o(()=>[he]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((l(),p(B,{class:"!border-none",shadow:"never"},{default:o(()=>[v((l(),p(c,{type:"primary",onClick:U},{icon:o(()=>[e(I,{name:"el-icon-Plus"})]),default:o(()=>[be]),_:1})),[[h,["quality.quality_accept/add"]]]),v((l(),p(c,{disabled:!b.value.length,onClick:t[3]||(t[3]=a=>D(b.value))},{default:o(()=>[ke]),_:1},8,["disabled"])),[[h,["quality.quality_accept/delete"]]]),L("div",we,[e(O,{data:n(m).lists,onSelectionChange:S},{default:o(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(u,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(u,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(u,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(u,{label:"\u9A8C\u6536\u7C7B\u578B",prop:"type","show-overflow-tooltip":""}),e(u,{label:"\u9A8C\u6536\u65E5\u671F",prop:"accept_date","show-overflow-tooltip":""}),e(u,{label:"\u9A8C\u6536\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(u,{label:"\u89C4\u8303\u9644\u4EF6",prop:"file","show-overflow-tooltip":""},{default:o(({row:a})=>[a.file&&a.file.length>0?(l(),f("div",Fe,[(l(!0),f(_e,null,fe(a.file,(k,V)=>(l(),f("div",{key:V},[e(J,{href:k,target:"_blank"},{default:o(()=>[d("\u6587\u4EF6"+ye(V+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),f("div",ge," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(u,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:a})=>[v((l(),p(c,{type:"primary",link:"",onClick:k=>M(a)},{default:o(()=>[De]),_:2},1032,["onClick"])),[[h,["quality.quality_accept/edit"]]]),v((l(),p(c,{type:"danger",link:"",onClick:k=>D(a.id)},{default:o(()=>[Be]),_:2},1032,["onClick"])),[[h,["quality.quality_accept/delete"]]])]),_:1})]),_:1},8,["data"])]),L("div",Ve,[e(W,{modelValue:n(m),"onUpdate:modelValue":t[4]||(t[4]=a=>ve(m)?m.value=a:null),onChange:n(E)},null,8,["modelValue","onChange"])])]),_:1})),[[z,n(m).loading]]),C.value?(l(),p(re,{key:0,ref_key:"editRef",ref:y,"dict-data":n(g),onSuccess:n(E),onClose:t[5]||(t[5]=a=>C.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),F.value?(l(),p(Ce,{key:1,ref_key:"detailRef",ref:R,"dict-data":n(g),onClose:t[6]||(t[6]=a=>F.value=!1)},null,8,["dict-data"])):x("",!0)])}}});export{bt as default};