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

2 lines
4.8 KiB
JavaScript

import{I as z,y as G,w as H,D as J,C as K,L as Q,M as W,N as X}from"./element-plus.258bf9e7.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as Z,a as ee}from"./index.ec401e3b.js";import{u as te}from"./usePaging.f6660143.js";import{u as oe}from"./useDictOptions.c644f395.js";import{_ as ae,p as le,a as se,b as ie}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.d7fad67d.js";import"./lodash.1d82ee7c.js";import ne from"./detail.c4b63d68.js";import{d as $,a0 as F,s as B,r as w,ai as re,o as i,c as ue,V as e,M as o,O as d,u as s,L as r,S as V,a as x,k as me,T as m,n as q}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.9492d03b.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./custom.13e75d58.js";const pe=m("\u67E5\u8BE2"),ce=m("\u91CD\u7F6E"),de=m(" \u65B0\u589E "),_e=m(" \u5220\u9664 "),fe={class:"mt-4"},ye=m(" \u7F16\u8F91 "),ve=m(" \u5220\u9664 "),Ce={class:"flex justify-end mt-4"},ge=$({name:"projectLists"}),ut=$({...ge,setup(he){F([]);const L=B(),_=B(),f=w(!1),k=w(!1),y=F({classify_name:""}),h=w([]),P=a=>{h.value=a.map(({id:t})=>t)},{dictData:b}=oe("refund_type"),{pager:p,getLists:v,resetParams:R,resetPage:N}=te({fetchFun:le,params:y}),S=async()=>{var a;f.value=!0,await q(),(a=_.value)==null||a.open("add")},T=async a=>{var C,c;console.log(a.id);let t=await se({id:a.id});f.value=!0,await q(),(C=_.value)==null||C.open("edit"),(c=_.value)==null||c.setFormData(t)},E=async a=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:a}),v()};return v(),(a,t)=>{const C=z,c=G,u=H,I=J,D=K,j=ee,n=Q,A=W,M=Y,g=re("perms"),U=X;return i(),ue("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(I,{class:"mb-[-16px]",model:y,inline:""},{default:o(()=>[e(c,{label:"\u5206\u7C7B\u540D",prop:"classify_name"},{default:o(()=>[e(C,{class:"w-[280px]",modelValue:y.classify_name,"onUpdate:modelValue":t[0]||(t[0]=l=>y.classify_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D"},null,8,["modelValue"])]),_:1}),e(c,null,{default:o(()=>[e(u,{type:"primary",onClick:s(N)},{default:o(()=>[pe]),_:1},8,["onClick"]),e(u,{onClick:s(R)},{default:o(()=>[ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((i(),r(D,{class:"!border-none",shadow:"never"},{default:o(()=>[d((i(),r(u,{type:"primary",onClick:S},{icon:o(()=>[e(j,{name:"el-icon-Plus"})]),default:o(()=>[de]),_:1})),[[g,["quality.quality_professional_category/add"]]]),d((i(),r(u,{disabled:!h.value.length,onClick:t[1]||(t[1]=l=>E(h.value))},{default:o(()=>[_e]),_:1},8,["disabled"])),[[g,["quality.quality_professional_category/delete"]]]),x("div",fe,[e(A,{data:s(p).lists,onSelectionChange:P},{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:"\u5206\u7C7B\u540D",prop:"classify_name","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:l})=>[d((i(),r(u,{type:"primary",link:"",onClick:O=>T(l)},{default:o(()=>[ye]),_:2},1032,["onClick"])),[[g,["quality.quality_professional_category/edit"]]]),d((i(),r(u,{type:"danger",link:"",onClick:O=>E(l.id)},{default:o(()=>[ve]),_:2},1032,["onClick"])),[[g,["quality.quality_professional_category/delete"]]])]),_:1})]),_:1},8,["data"])]),x("div",Ce,[e(M,{modelValue:s(p),"onUpdate:modelValue":t[2]||(t[2]=l=>me(p)?p.value=l:null),onChange:s(v)},null,8,["modelValue","onChange"])])]),_:1})),[[U,s(p).loading]]),f.value?(i(),r(ae,{key:0,ref_key:"editRef",ref:_,"dict-data":s(b),onSuccess:s(v),onClose:t[3]||(t[3]=l=>f.value=!1)},null,8,["dict-data","onSuccess"])):V("",!0),k.value?(i(),r(ne,{key:1,ref_key:"detailRef",ref:L,"dict-data":s(b),onClose:t[4]||(t[4]=l=>k.value=!1)},null,8,["dict-data"])):V("",!0)])}}});export{ut as default};