engineering/public/admin/assets/index.dafe443e.js
2024-02-20 17:15:05 +08:00

2 lines
6.0 KiB
JavaScript

import{I as H,y as J,w as K,D as Q,C as X,L as Y,a0 as Z,M as ee,N as te}from"./element-plus.b3353ca6.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import{f as ae,a as le}from"./index.892155dd.js";import{u as ie}from"./usePaging.f6660143.js";import{u as ue}from"./useDictOptions.c47985a3.js";import{_ as ne,q as se,a as re,b as pe}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.5faee963.js";import{d as R,a0 as q,s as x,r as F,ai as de,o as l,c as f,V as e,M as o,O as v,u as n,L as p,S as L,a as $,W as me,a8 as ce,k as _e,T as d,n as P,U as fe}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import ve from"./detail.e9b6e0b7.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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.771e5a41.js";import"./department.cd9c927d.js";import"./organization.c13a1cd8.js";import"./custom.735a8774.js";const ye=d("\u67E5\u8BE2"),Ce=d("\u91CD\u7F6E"),Ee=d(" \u65B0\u589E "),he=d(" \u5220\u9664 "),we={class:"mt-4"},be={key:0},Fe={key:1},ke=d(" \u7F16\u8F91 "),De=d(" \u5220\u9664 "),ge={class:"flex justify-end mt-4"},Be=R({name:"projectLists"}),yt=R({...Be,setup(Ve){q([]);const S=x(),y=x(),C=F(!1),k=F(!1),s=q({release_dept:"",name:"",type:""}),w=F([]),N=u=>{w.value=u.map(({id:t})=>t)},{dictData:D}=ue("refund_type"),{pager:_,getLists:E,resetParams:T,resetPage:U}=ie({fetchFun:se,params:s}),I=async()=>{var u;C.value=!0,await P(),(u=y.value)==null||u.open("add")},j=async u=>{var m,r;console.log(u.id);let t=await re({id:u.id});C.value=!0,await P(),(m=y.value)==null||m.open("edit"),(r=y.value)==null||r.setFormData(t)},g=async u=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:u}),E()};return E(),(u,t)=>{const m=H,r=J,c=K,A=Q,B=X,M=le,i=Y,O=Z,W=ee,z=oe,h=de("perms"),G=te;return l(),f("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(A,{class:"mb-[-16px]",model:s,inline:""},{default:o(()=>[e(r,{label:"\u89C4\u8303\u7C7B\u522B",prop:"type"},{default:o(()=>[e(m,{class:"w-[280px]",modelValue:s.type,"onUpdate:modelValue":t[0]||(t[0]=a=>s.type=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89C4\u8303\u7C7B\u522B"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u89C4\u8303\u540D\u79F0",prop:"name"},{default:o(()=>[e(m,{class:"w-[280px]",modelValue:s.name,"onUpdate:modelValue":t[1]||(t[1]=a=>s.name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89C4\u8303\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u53D1\u5E03\u90E8\u95E8",prop:"release_dept"},{default:o(()=>[e(m,{class:"w-[280px]",modelValue:s.release_dept,"onUpdate:modelValue":t[2]||(t[2]=a=>s.release_dept=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u5E03\u90E8\u95E8"},null,8,["modelValue"])]),_:1}),e(r,null,{default:o(()=>[e(c,{type:"primary",onClick:n(U)},{default:o(()=>[ye]),_:1},8,["onClick"]),e(c,{onClick:n(T)},{default:o(()=>[Ce]),_: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:I},{icon:o(()=>[e(M,{name:"el-icon-Plus"})]),default:o(()=>[Ee]),_:1})),[[h,["quality.quality_specification/add"]]]),v((l(),p(c,{disabled:!w.value.length,onClick:t[3]||(t[3]=a=>g(w.value))},{default:o(()=>[he]),_:1},8,["disabled"])),[[h,["quality.quality_specification/delete"]]]),$("div",we,[e(W,{data:n(_).lists,onSelectionChange:N},{default:o(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(i,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(i,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(i,{label:"\u89C4\u8303\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(i,{label:"\u89C4\u8303\u7C7B\u522B",prop:"type","show-overflow-tooltip":""}),e(i,{label:"\u53D1\u5E03\u90E8\u95E8",prop:"release_dept","show-overflow-tooltip":""}),e(i,{label:"\u53D1\u5E03\u65F6\u95F4",prop:"release_date","show-overflow-tooltip":""}),e(i,{label:"\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(i,{label:"\u89C4\u8303\u9644\u4EF6",prop:"file","show-overflow-tooltip":""},{default:o(({row:a})=>[a.file&&a.file.length>0?(l(),f("div",be,[(l(!0),f(me,null,ce(a.file,(b,V)=>(l(),f("div",{key:V},[e(O,{href:b,target:"_blank"},{default:o(()=>[d("\u6587\u4EF6"+fe(V+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),f("div",Fe," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(i,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:a})=>[v((l(),p(c,{type:"primary",link:"",onClick:b=>j(a)},{default:o(()=>[ke]),_:2},1032,["onClick"])),[[h,["quality.quality_specification/edit"]]]),v((l(),p(c,{type:"danger",link:"",onClick:b=>g(a.id)},{default:o(()=>[De]),_:2},1032,["onClick"])),[[h,["quality.quality_specification/delete"]]])]),_:1})]),_:1},8,["data"])]),$("div",ge,[e(z,{modelValue:n(_),"onUpdate:modelValue":t[4]||(t[4]=a=>_e(_)?_.value=a:null),onChange:n(E)},null,8,["modelValue","onChange"])])]),_:1})),[[G,n(_).loading]]),C.value?(l(),p(ne,{key:0,ref_key:"editRef",ref:y,"dict-data":n(D),onSuccess:n(E),onClose:t[5]||(t[5]=a=>C.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0),k.value?(l(),p(ve,{key:1,ref_key:"detailRef",ref:S,"dict-data":n(D),onClose:t[6]||(t[6]=a=>k.value=!1)},null,8,["dict-data"])):L("",!0)])}}});export{yt as default};