2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
import{I as H,y as J,w as K,D as Q,C as X,L as Y,_ as Z,M as ee,N as te}from"./element-plus.517d4382.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as ae,a as le}from"./index.8b1962e9.js";import{u as ie}from"./usePaging.f6660143.js";import{u as ne}from"./useDictOptions.b5854a9e.js";import{_ as se,q as re,a as ue,b as pe}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.8b38e1b8.js";import{d as R,a0 as V,s as x,r as g,ai as me,o as l,c,V as e,M as t,O as _,u as s,L as r,S as L,a as $,W as de,a8 as ce,k as _e,T as u,n as P,U as fe}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import ve from"./detail.90f1c152.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.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./index.b17dae19.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./custom.99349afc.js";const be=u("\u67E5\u8BE2"),ye=u("\u91CD\u7F6E"),Ee=u(" \u65B0\u589E "),he=u(" \u5220\u9664 "),we={class:"mt-4"},Ce={key:0},ge={key:1},ke=u(" \u7F16\u8F91 "),Fe=u(" \u5220\u9664 "),De={class:"flex justify-end mt-4"},qe=R({name:"projectLists"}),Et=R({...qe,setup(Be){V([]);const S=x(),f=x(),v=g(!1),k=g(!1),b=V({target:""}),w=g([]),N=n=>{w.value=n.map(({id:o})=>o)},{dictData:F}=ne("refund_type"),{pager:m,getLists:y,resetParams:T,resetPage:A}=ie({fetchFun:re,params:b}),I=async()=>{var n;v.value=!0,await P(),(n=f.value)==null||n.open("add")},U=async n=>{var E,d;console.log(n.id);let o=await ue({id:n.id});v.value=!0,await P(),(E=f.value)==null||E.open("edit"),(d=f.value)==null||d.setFormData(o)},D=async n=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:n}),y()};return y(),(n,o)=>{const E=H,d=J,p=K,j=Q,q=X,M=le,i=Y,O=Z,W=ee,z=oe,h=me("perms"),G=te;return l(),c("div",null,[e(q,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(j,{class:"mb-[-16px]",model:b,inline:""},{default:t(()=>[e(d,{label:"\u76EE\u6807",prop:"target"},{default:t(()=>[e(E,{class:"w-[280px]",modelValue:b.target,"onUpdate:modelValue":o[0]||(o[0]=a=>b.target=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u76EE\u6807"},null,8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(p,{type:"primary",onClick:s(A)},{default:t(()=>[be]),_:1},8,["onClick"]),e(p,{onClick:s(T)},{default:t(()=>[ye]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((l(),r(q,{class:"!border-none",shadow:"never"},{default:t(()=>[_((l(),r(p,{type:"primary",onClick:I},{icon:t(()=>[e(M,{name:"el-icon-Plus"})]),default:t(()=>[Ee]),_:1})),[[h,["quality.quality_mbo/add"]]]),_((l(),r(p,{disabled:!w.value.length,onClick:o[1]||(o[1]=a=>D(w.value))},{default:t(()=>[he]),_:1},8,["disabled"])),[[h,["quality.quality_mbo/delete"]]]),$("div",we,[e(W,{data:s(m).lists,onSelectionChange:N},{default:t(()=>[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:"\u5DE5\u7A0B\u540D\u79F0",prop:"target","show-overflow-tooltip":""}),e(i,{label:"\u5408\u683C\u7387",prop:"pass_rate","show-overflow-tooltip":""}),e(i,{label:"\u76EE\u6807\u89C4\u8303",prop:"target_specification","show-overflow-tooltip":""}),e(i,{label:"\u57FA\u672C\u8981\u6C42",prop:"basic_requirements","show-overflow-tooltip":""}),e(i,{label:"\u5141\u8BB8\u504F\u5DEE",prop:"allowable_deviation","show-overflow-tooltip":""}),e(i,{label:"\u9644\u4EF6",prop:"file","show-overflow-tooltip":""},{default:t(({row:a})=>[a.file&&a.file.length>0?(l(),c("div",Ce,[(l(!0),c(de,null,ce(a.file,(C,B)=>(l(),c("div",{key:B},[e(O,{href:C,target:"_blank"},{default:t(()=>[u("\u6587\u4EF6"+fe(B+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),c("div",ge," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(i,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:a})=>[_((l(),r(p,{type:"primary",link:"",onClick:C=>U(a)},{default:t(()=>[ke]),_:2},1032,["onClick"])),[[h,["quality.quality_mbo/edit"]]]),_((l(),r(p,{type:"danger",link:"",onClick:C=>D(a.id)},{default:t(()=>[Fe]),_:2},1032,["onClick"])),[[h,["quality.quality_mbo/delete"]]])]),_:1})]),_:1},8,["data"])]),$("div",De,[e(z,{modelValue:s(m),"onUpdate:modelValue":o[2]||(o[2]=a=>_e(m)?m.value=a:null),onChange:s(y)},null,8,["modelValue","onChange"])])]),_:1})),[[G,s(m).loading]]),v.value?(l(),r(se,{key:0,ref_key:"editRef",ref:f,"dict-data":s(F),onSuccess:s(y),onClose:o[3]||(o[3]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0),k.value?(l(),r(ve,{key:1,ref_key:"detailRef",ref:S,"dict-data":s(F),onClose:o[4]||(o[4]=a=>k.value=!1)},null,8,["dict-data"])):L("",!0)])}}});export{Et as default};
|