2 lines
8.4 KiB
JavaScript
2 lines
8.4 KiB
JavaScript
import{I as G,y as H,J as K,w as Q,D as X,C as Z,L as ee,_ as oe,M as le,N as te}from"./element-plus.517d4382.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as ue,a as re}from"./index.8b1962e9.js";import{u as se}from"./usePaging.f6660143.js";import{u as ie}from"./useDictOptions.b5854a9e.js";import{h as pe,e as ne,i as de}from"./safety_check.36bca4dd.js";import{d as P,a0 as x,s as A,r as b,ai as me,o as s,c as f,V as e,M as t,O as y,u as n,L as d,S as U,a as L,W as ce,a8 as _e,k as fe,T as m,n as $,U as ye}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as Ee}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.86408fb6.js";import he from"./detail.77191e45.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"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.99349afc.js";const we=m("\u67E5\u8BE2"),ke=m("\u91CD\u7F6E"),ve=m(" \u65B0\u589E "),Fe=m(" \u5220\u9664 "),be={class:"mt-4"},Ce={key:0},De={key:1},Ve=m(" \u7F16\u8F91 "),Be=m(" \u5220\u9664 "),ge={class:"flex justify-end mt-4"},xe=P({name:"projectLists"}),Co=P({...xe,setup(Ae){x([]);const R=A(),E=A(),h=b(!1),C=b(!1),u=x({check_nature:"",check_date:"",check_user:"",check_company:"",modify_term:"",modify_company:"",modify_user:"",resp_user:""}),v=b([]),S=i=>{v.value=i.map(({id:o})=>o)},{dictData:D}=ie("refund_type"),{pager:_,getLists:w,resetParams:N,resetPage:T}=se({fetchFun:pe,params:u}),j=async()=>{var i;h.value=!0,await $(),(i=E.value)==null||i.open("add")},M=async i=>{var p,r;console.log(i.id);let o=await ne({id:i.id});h.value=!0,await $(),(p=E.value)==null||p.open("edit"),(r=E.value)==null||r.setFormData(o)},V=async i=>{await ue.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:i}),w()};return w(),(i,o)=>{const p=G,r=H,Y=K,c=Q,I=X,B=Z,q=re,a=ee,z=oe,J=le,O=ae,k=me("perms"),W=te;return s(),f("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(I,{class:"mb-[-16px]",model:u,inline:"","label-width":"auto"},{default:t(()=>[e(r,{label:"\u68C0\u67E5\u4EBA",prop:"check_user"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:u.check_user,"onUpdate:modelValue":o[0]||(o[0]=l=>u.check_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u4EBA"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u68C0\u67E5\u5355\u4F4D",prop:"check_company"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:u.check_company,"onUpdate:modelValue":o[1]||(o[1]=l=>u.check_company=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u68C0\u67E5\u6027\u8D28",prop:"check_nature"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:u.check_nature,"onUpdate:modelValue":o[2]||(o[2]=l=>u.check_nature=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u6027\u8D28"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u6574\u6539\u671F\u9650",prop:"modify_term"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:u.modify_term,"onUpdate:modelValue":o[3]||(o[3]=l=>u.modify_term=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6574\u6539\u671F\u9650"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u6574\u6539\u5355\u4F4D",prop:"modify_company"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:u.modify_company,"onUpdate:modelValue":o[4]||(o[4]=l=>u.modify_company=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6574\u6539\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u6574\u6539\u4EBA",prop:"modify_user"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:u.modify_user,"onUpdate:modelValue":o[5]||(o[5]=l=>u.modify_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6574\u6539\u4EBA"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u8D23\u4EFB\u4EBA",prop:"resp_user"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:u.resp_user,"onUpdate:modelValue":o[6]||(o[6]=l=>u.resp_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D23\u4EFB\u4EBA"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u68C0\u67E5\u65E5\u671F",prop:"check_date"},{default:t(()=>[e(Y,{class:"w-[280px]",modelValue:u.check_date,"onUpdate:modelValue":o[7]||(o[7]=l=>u.check_date=l),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u68C0\u67E5\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(r,null,{default:t(()=>[e(c,{type:"primary",onClick:n(T)},{default:t(()=>[we]),_:1},8,["onClick"]),e(c,{onClick:n(N)},{default:t(()=>[ke]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),y((s(),d(B,{class:"!border-none",shadow:"never"},{default:t(()=>[y((s(),d(c,{type:"primary",onClick:j},{icon:t(()=>[e(q,{name:"el-icon-Plus"})]),default:t(()=>[ve]),_:1})),[[k,["safety.safety_modify/add"]]]),y((s(),d(c,{disabled:!v.value.length,onClick:o[8]||(o[8]=l=>V(v.value))},{default:t(()=>[Fe]),_:1},8,["disabled"])),[[k,["safety.safety_modify/delete"]]]),L("div",be,[e(J,{data:n(_).lists,onSelectionChange:S},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(a,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(a,{label:"\u68C0\u67E5\u65E5\u671F",prop:"check_date","show-overflow-tooltip":""}),e(a,{label:"\u6574\u6539\u671F\u9650",prop:"modify_term","show-overflow-tooltip":""}),e(a,{label:"\u68C0\u67E5\u4EBA",prop:"check_user","show-overflow-tooltip":""}),e(a,{label:"\u68C0\u67E5\u5355\u4F4D",prop:"check_company","show-overflow-tooltip":""}),e(a,{label:"\u6574\u6539\u5355\u4F4D",prop:"modify_company","show-overflow-tooltip":""}),e(a,{label:"\u8D23\u4EFB\u4EBA",prop:"resp_user","show-overflow-tooltip":""}),e(a,{label:"\u6574\u6539\u4EBA",prop:"modify_user","show-overflow-tooltip":""}),e(a,{label:"\u68C0\u67E5\u9879",prop:"check_item","show-overflow-tooltip":""}),e(a,{label:"\u5B89\u5168\u9690\u60A3",prop:"safety_hazard","show-overflow-tooltip":""}),e(a,{label:"\u68C0\u67E5\u6027\u8D28",prop:"check_nature","show-overflow-tooltip":""}),e(a,{label:"\u68C0\u67E5\u7ED3\u679C",prop:"check_result","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u9644\u4EF6",prop:"file","show-overflow-tooltip":""},{default:t(({row:l})=>[l.file&&l.file.length>0?(s(),f("div",Ce,[(s(!0),f(ce,null,_e(l.file,(F,g)=>(s(),f("div",{key:g},[e(z,{href:F,target:"_blank"},{default:t(()=>[m("\u6587\u4EF6"+ye(g+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(s(),f("div",De," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(a,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:l})=>[y((s(),d(c,{type:"primary",link:"",onClick:F=>M(l)},{default:t(()=>[Ve]),_:2},1032,["onClick"])),[[k,["safety.safety_modify/edit"]]]),y((s(),d(c,{type:"danger",link:"",onClick:F=>V(l.id)},{default:t(()=>[Be]),_:2},1032,["onClick"])),[[k,["safety.safety_modify/delete"]]])]),_:1})]),_:1},8,["data"])]),L("div",ge,[e(O,{modelValue:n(_),"onUpdate:modelValue":o[9]||(o[9]=l=>fe(_)?_.value=l:null),onChange:n(w)},null,8,["modelValue","onChange"])])]),_:1})),[[W,n(_).loading]]),h.value?(s(),d(Ee,{key:0,ref_key:"editRef",ref:E,"dict-data":n(D),onSuccess:n(w),onClose:o[10]||(o[10]=l=>h.value=!1)},null,8,["dict-data","onSuccess"])):U("",!0),C.value?(s(),d(he,{key:1,ref_key:"detailRef",ref:R,"dict-data":n(D),onClose:o[11]||(o[11]=l=>C.value=!1)},null,8,["dict-data"])):U("",!0)])}}});export{Co as default};
|