engineering/public/admin/assets/index.df92c05c.js
shengchanzhe a2653dcd36 提交pc
2024-01-27 11:43:47 +08:00

2 lines
6.1 KiB
JavaScript

import{I as z,y as G,J as H,w as K,D as Q,C as X,L as ee,Z as te,M as oe,N as ae}from"./element-plus.4ff6f47d.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{f as ne,a as ue}from"./index.aaca920c.js";import{u as ie}from"./usePaging.f6660143.js";import{u as se}from"./useDictOptions.c83e2497.js";import{_ as re,q as pe,a as de,b as me}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.81e073fc.js";import{d as R,a0 as q,s as x,r as C,ai as ce,o as l,c as f,V as e,M as o,O as v,u as i,L as p,S as L,a as $,W as _e,a8 as fe,k as ve,T as d,n as P,U as Ee}from"./@vue.ab566ce7.js";import"./lodash.8ea2174a.js";import ye from"./detail.2f705588.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.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.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.c07aa9ab.js";import"./project.86812b1a.js";import"./index.ff7c6188.js";import"./department.a7058b70.js";import"./organization.f9ce12f7.js";import"./custom.01004c04.js";const Fe=d("\u67E5\u8BE2"),he=d("\u91CD\u7F6E"),we=d(" \u65B0\u589E "),ke=d(" \u5220\u9664 "),Ce={class:"mt-4"},be={key:0},De={key:1},Be=d(" \u7F16\u8F91 "),ge=d(" \u5220\u9664 "),Ve={class:"flex justify-end mt-4"},qe=R({name:"projectLists"}),wt=R({...qe,setup(xe){q([]);const S=x(),E=x(),y=C(!1),b=C(!1),s=q({happen_date:"",name:"",type:""}),w=C([]),N=u=>{w.value=u.map(({id:t})=>t)},{dictData:D}=se("refund_type"),{pager:c,getLists:F,resetParams:T,resetPage:U}=ie({fetchFun:pe,params:s}),M=async()=>{var u;y.value=!0,await P(),(u=E.value)==null||u.open("add")},Y=async u=>{var _,r;console.log(u.id);let t=await de({id:u.id});y.value=!0,await P(),(_=E.value)==null||_.open("edit"),(r=E.value)==null||r.setFormData(t)},B=async u=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:u}),F()};return F(),(u,t)=>{const _=z,r=G,I=H,m=K,j=Q,g=X,A=ue,n=ee,J=te,O=oe,W=le,h=ce("perms"),Z=ae;return l(),f("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(j,{class:"mb-[-16px]",model:s,inline:""},{default:o(()=>[e(r,{label:"\u4E8B\u4EF6\u540D\u79F0",prop:"name"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:s.name,"onUpdate:modelValue":t[0]||(t[0]=a=>s.name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E8B\u4EF6\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u4E8B\u4EF6\u7C7B\u578B",prop:"type"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:s.type,"onUpdate:modelValue":t[1]||(t[1]=a=>s.type=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E8B\u4EF6\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u53D1\u751F\u65E5\u671F",prop:"happen_date"},{default:o(()=>[e(I,{class:"w-[280px]",modelValue:s.happen_date,"onUpdate:modelValue":t[2]||(t[2]=a=>s.happen_date=a),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u53D1\u751F\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(r,null,{default:o(()=>[e(m,{type:"primary",onClick:i(U)},{default:o(()=>[Fe]),_:1},8,["onClick"]),e(m,{onClick:i(T)},{default:o(()=>[he]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((l(),p(g,{class:"!border-none",shadow:"never"},{default:o(()=>[v((l(),p(m,{type:"primary",onClick:M},{icon:o(()=>[e(A,{name:"el-icon-Plus"})]),default:o(()=>[we]),_:1})),[[h,["quality.quality_event/add"]]]),v((l(),p(m,{disabled:!w.value.length,onClick:t[3]||(t[3]=a=>B(w.value))},{default:o(()=>[ke]),_:1},8,["disabled"])),[[h,["quality.quality_event/delete"]]]),$("div",Ce,[e(O,{data:i(c).lists,onSelectionChange:N},{default:o(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(n,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(n,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(n,{label:"\u4E8B\u4EF6\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(n,{label:"\u4E8B\u4EF6\u7C7B\u578B",prop:"type","show-overflow-tooltip":""}),e(n,{label:"\u53D1\u751F\u65E5\u671F",prop:"happen_date","show-overflow-tooltip":""}),e(n,{label:"\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(n,{label:"\u9644\u4EF6",prop:"file","show-overflow-tooltip":""},{default:o(({row:a})=>[a.file&&a.file.length>0?(l(),f("div",be,[(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"+Ee(V+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),f("div",De," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(n,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:a})=>[v((l(),p(m,{type:"primary",link:"",onClick:k=>Y(a)},{default:o(()=>[Be]),_:2},1032,["onClick"])),[[h,["quality.quality_event/edit"]]]),v((l(),p(m,{type:"danger",link:"",onClick:k=>B(a.id)},{default:o(()=>[ge]),_:2},1032,["onClick"])),[[h,["quality.quality_event/delete"]]])]),_:1})]),_:1},8,["data"])]),$("div",Ve,[e(W,{modelValue:i(c),"onUpdate:modelValue":t[4]||(t[4]=a=>ve(c)?c.value=a:null),onChange:i(F)},null,8,["modelValue","onChange"])])]),_:1})),[[Z,i(c).loading]]),y.value?(l(),p(re,{key:0,ref_key:"editRef",ref:E,"dict-data":i(D),onSuccess:i(F),onClose:t[5]||(t[5]=a=>y.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0),b.value?(l(),p(ye,{key:1,ref_key:"detailRef",ref:S,"dict-data":i(D),onClose:t[6]||(t[6]=a=>b.value=!1)},null,8,["dict-data"])):L("",!0)])}}});export{wt as default};