engineering/public/admin/assets/index.a79490a2.js
2024-02-27 10:28:16 +08:00

2 lines
7.0 KiB
JavaScript

import{I as O,y as G,w as H,D as J,C as K,L as Q,M as W,N as X}from"./element-plus.517d4382.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as Z,a as ee}from"./index.8b1962e9.js";import{u as oe}from"./usePaging.f6660143.js";import{u as le}from"./useDictOptions.b5854a9e.js";import{_ as te,q as ue,a as ae,b as ie}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.b16e3f8a.js";import"./lodash.1d82ee7c.js";import se from"./detail.275110f4.js";import{d as A,a0 as V,s as B,r as C,ai as re,o as p,c as ne,V as e,M as t,O as f,u as n,L as d,S as g,a as x,k as pe,T as c,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.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 de=c("\u67E5\u8BE2"),me=c("\u91CD\u7F6E"),ce=c(" \u65B0\u589E "),_e=c(" \u5220\u9664 "),fe={class:"mt-4"},ye=c(" \u7F16\u8F91 "),he=c(" \u5220\u9664 "),we={class:"flex justify-end mt-4"},Ee=A({name:"projectLists"}),mo=A({...Ee,setup(ve){V([]);const $=B(),y=B(),h=C(!1),b=C(!1),a=V({check_nature:"",check_user:"",check_unit:"",modify_unit:"",resp_user:"",copy_user:""}),v=C([]),U=i=>{v.value=i.map(({id:o})=>o)},{dictData:k}=le("refund_type"),{pager:_,getLists:w,resetParams:L,resetPage:P}=oe({fetchFun:ue,params:a}),R=async()=>{var i;h.value=!0,await q(),(i=y.value)==null||i.open("add")},N=async i=>{var r,s;console.log(i.id);let o=await ae({id:i.id});h.value=!0,await q(),(r=y.value)==null||r.open("edit"),(s=y.value)==null||s.setFormData(o)},F=async i=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:i}),w()};return w(),(i,o)=>{const r=O,s=G,m=H,S=J,D=K,T=ee,u=Q,I=W,j=Y,E=re("perms"),M=X;return p(),ne("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(S,{class:"mb-[-16px]",model:a,inline:"","label-width":"auto"},{default:t(()=>[e(s,{label:"\u68C0\u67E5\u6027\u8D28",prop:"check_nature"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:a.check_nature,"onUpdate:modelValue":o[0]||(o[0]=l=>a.check_nature=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u6027\u8D28"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u68C0\u67E5\u4EBA",prop:"check_user"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:a.check_user,"onUpdate:modelValue":o[1]||(o[1]=l=>a.check_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u68C0\u67E5\u5355\u4F4D",prop:"check_unit"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:a.check_unit,"onUpdate:modelValue":o[2]||(o[2]=l=>a.check_unit=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u67E5\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u6574\u6539\u5355\u4F4D",prop:"modify_unit"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:a.modify_unit,"onUpdate:modelValue":o[3]||(o[3]=l=>a.modify_unit=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6574\u6539\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u8D23\u4EFB\u4EBA",prop:"resp_user"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:a.resp_user,"onUpdate:modelValue":o[4]||(o[4]=l=>a.resp_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D23\u4EFB\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u6284\u9001\u4EBA",prop:"resp_user"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:a.copy_user,"onUpdate:modelValue":o[5]||(o[5]=l=>a.copy_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6284\u9001\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,null,{default:t(()=>[e(m,{type:"primary",onClick:n(P)},{default:t(()=>[de]),_:1},8,["onClick"]),e(m,{onClick:n(L)},{default:t(()=>[me]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((p(),d(D,{class:"!border-none",shadow:"never"},{default:t(()=>[f((p(),d(m,{type:"primary",onClick:R},{icon:t(()=>[e(T,{name:"el-icon-Plus"})]),default:t(()=>[ce]),_:1})),[[E,["quality.quality_modify/add"]]]),f((p(),d(m,{disabled:!v.value.length,onClick:o[6]||(o[6]=l=>F(v.value))},{default:t(()=>[_e]),_:1},8,["disabled"])),[[E,["quality.quality_modify/delete"]]]),x("div",fe,[e(I,{data:n(_).lists,onSelectionChange:U},{default:t(()=>[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",prop:"check_nature","show-overflow-tooltip":""}),e(u,{label:"\u68C0\u67E5\u65E5\u671F",prop:"check_date","show-overflow-tooltip":""}),e(u,{label:"\u6574\u6539\u671F\u9650",prop:"modify_term","show-overflow-tooltip":""}),e(u,{label:"\u68C0\u67E5\u4EBA",prop:"check_user","show-overflow-tooltip":""}),e(u,{label:"\u6284\u9001\u4EBA",prop:"copy_user","show-overflow-tooltip":""}),e(u,{label:"\u68C0\u67E5\u5355\u4F4D",prop:"check_unit","show-overflow-tooltip":""}),e(u,{label:"\u6574\u6539\u5355\u4F4D",prop:"modify_unit","show-overflow-tooltip":""}),e(u,{label:"\u68C0\u67E5\u9879",prop:"check_item","show-overflow-tooltip":""}),e(u,{label:"\u8D28\u91CF\u9690\u60A3",prop:"quality_hazards","show-overflow-tooltip":""}),e(u,{label:"\u68C0\u67E5\u7ED3\u679C",prop:"check_result","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:l})=>[f((p(),d(m,{type:"primary",link:"",onClick:z=>N(l)},{default:t(()=>[ye]),_:2},1032,["onClick"])),[[E,["quality.quality_modify/edit"]]]),f((p(),d(m,{type:"danger",link:"",onClick:z=>F(l.id)},{default:t(()=>[he]),_:2},1032,["onClick"])),[[E,["quality.quality_modify/delete"]]])]),_:1})]),_:1},8,["data"])]),x("div",we,[e(j,{modelValue:n(_),"onUpdate:modelValue":o[7]||(o[7]=l=>pe(_)?_.value=l:null),onChange:n(w)},null,8,["modelValue","onChange"])])]),_:1})),[[M,n(_).loading]]),h.value?(p(),d(te,{key:0,ref_key:"editRef",ref:y,"dict-data":n(k),onSuccess:n(w),onClose:o[8]||(o[8]=l=>h.value=!1)},null,8,["dict-data","onSuccess"])):g("",!0),b.value?(p(),d(se,{key:1,ref_key:"detailRef",ref:$,"dict-data":n(k),onClose:o[9]||(o[9]=l=>b.value=!1)},null,8,["dict-data"])):g("",!0)])}}});export{mo as default};