2 lines
5.2 KiB
JavaScript
2 lines
5.2 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,q as le,a as ue,b as ne}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.40438498.js";import"./lodash.1d82ee7c.js";import ie from"./detail.a6ba0d94.js";import{d as A,a0 as g,s as B,r as k,ai as se,o as i,c as re,V as e,M as o,O as f,u as n,L as s,S as V,a as q,k as pe,T as d,n as x}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 me=d("\u67E5\u8BE2"),de=d("\u91CD\u7F6E"),ce=d(" \u65B0\u589E "),_e=d(" \u5220\u9664 "),fe={class:"mt-4"},ve=d(" \u7F16\u8F91 "),he=d(" \u5220\u9664 "),Ee={class:"flex justify-end mt-4"},ye=A({name:"projectLists"}),rt=A({...ye,setup(Ce){g([]);const $=B(),v=B(),h=k(!1),w=k(!1),r=g({user:"",name:""}),C=k([]),L=l=>{C.value=l.map(({id:t})=>t)},{dictData:F}=oe("refund_type"),{pager:c,getLists:E,resetParams:P,resetPage:R}=te({fetchFun:le,params:r}),N=async()=>{var l;h.value=!0,await x(),(l=v.value)==null||l.open("add")},S=async l=>{var _,p;console.log(l.id);let t=await ue({id:l.id});h.value=!0,await x(),(_=v.value)==null||_.open("edit"),(p=v.value)==null||p.setFormData(t)},b=async l=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:l}),E()};return E(),(l,t)=>{const _=z,p=G,m=H,T=J,D=K,I=ee,u=Q,U=W,j=Y,y=se("perms"),M=X;return i(),re("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(T,{class:"mb-[-16px]",model:r,inline:""},{default:o(()=>[e(p,{label:"\u68C0\u67E5\u6027\u8D28\u540D\u79F0",prop:"name"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:r.name,"onUpdate:modelValue":t[0]||(t[0]=a=>r.name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u6027\u8D28\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u521B\u5EFA\u4EBA",prop:"user"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:r.user,"onUpdate:modelValue":t[1]||(t[1]=a=>r.user=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u521B\u5EFA\u4EBA"},null,8,["modelValue"])]),_:1}),e(p,null,{default:o(()=>[e(m,{type:"primary",onClick:n(R)},{default:o(()=>[me]),_:1},8,["onClick"]),e(m,{onClick:n(P)},{default:o(()=>[de]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((i(),s(D,{class:"!border-none",shadow:"never"},{default:o(()=>[f((i(),s(m,{type:"primary",onClick:N},{icon:o(()=>[e(I,{name:"el-icon-Plus"})]),default:o(()=>[ce]),_:1})),[[y,["quality.quality_check_nature/add"]]]),f((i(),s(m,{disabled:!C.value.length,onClick:t[2]||(t[2]=a=>b(C.value))},{default:o(()=>[_e]),_:1},8,["disabled"])),[[y,["quality.quality_check_nature/delete"]]]),q("div",fe,[e(U,{data:n(c).lists,onSelectionChange:L},{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:"\u68C0\u67E5\u6027\u8D28\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(u,{label:"\u521B\u5EFA\u4EBA",prop:"user","show-overflow-tooltip":""}),e(u,{label:"\u8BF4\u660E",prop:"illustrate","show-overflow-tooltip":""}),e(u,{label:"\u521B\u5EFA\u65E5\u671F",prop:"date","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:a})=>[f((i(),s(m,{type:"primary",link:"",onClick:O=>S(a)},{default:o(()=>[ve]),_:2},1032,["onClick"])),[[y,["quality.quality_check_nature/edit"]]]),f((i(),s(m,{type:"danger",link:"",onClick:O=>b(a.id)},{default:o(()=>[he]),_:2},1032,["onClick"])),[[y,["quality.quality_check_nature/delete"]]])]),_:1})]),_:1},8,["data"])]),q("div",Ee,[e(j,{modelValue:n(c),"onUpdate:modelValue":t[3]||(t[3]=a=>pe(c)?c.value=a:null),onChange:n(E)},null,8,["modelValue","onChange"])])]),_:1})),[[M,n(c).loading]]),h.value?(i(),s(ae,{key:0,ref_key:"editRef",ref:v,"dict-data":n(F),onSuccess:n(E),onClose:t[4]||(t[4]=a=>h.value=!1)},null,8,["dict-data","onSuccess"])):V("",!0),w.value?(i(),s(ie,{key:1,ref_key:"detailRef",ref:$,"dict-data":n(F),onClose:t[5]||(t[5]=a=>w.value=!1)},null,8,["dict-data"])):V("",!0)])}}});export{rt as default};
|