engineering/public/admin/assets/index.1585f458.js
2024-03-04 15:04:21 +08:00

2 lines
7.5 KiB
JavaScript

import{I as T,y as R,w as j,D as I,C as O,L as z,M as G,N as H}from"./element-plus.258bf9e7.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as K,a as Q}from"./index.ec401e3b.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{_ as Y,a as Z,b as ee}from"./edit.vue_vue_type_script_setup_true_name_supervisionLargeMechanicalEquipmentEdit_lang.009182e7.js";import"./lodash.1d82ee7c.js";import{d as y,s as oe,r as h,a0 as le,ai as ue,o as r,c as ae,V as e,M as l,O as f,u as n,L as d,S as te,a as C,k as ie,T as _,n as D}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.vue_vue_type_script_setup_true_lang.305c8f92.js";import"./supervision_participating_units.aea21075.js";import"./index.vue_vue_type_script_setup_true_lang.8f6cc90c.js";import"./supervision_project.e6761916.js";import"./index.a7758114.js";import"./index.9492d03b.js";const pe=_("\u67E5\u8BE2"),ne=_("\u91CD\u7F6E"),se=_(" \u65B0\u589E "),re=_(" \u5220\u9664 "),me={class:"mt-4"},de=_(" \u7F16\u8F91 "),_e=_(" \u5220\u9664 "),ce={class:"flex mt-4 justify-end"},fe=y({name:"supervisionLargeMechanicalEquipmentLists"}),io=y({...fe,setup(ve){const v=oe(),B=h(!1),t=le({project_id:"",sn:"",name:"",use_site:"",company_id:"",approval_result:"",approval_type:""}),A=h([]),g=i=>{A.value=i.map(({id:o})=>o)},{dictData:V}=X("approval_type,first_audit_opinion,final_audit_opinion"),{pager:c,getLists:F,resetParams:k,resetPage:x}=W({fetchFun:Z,params:t}),L=async()=>{var i;B.value=!0,await D(),(i=v.value)==null||i.open("add")},q=async i=>{var o,p;B.value=!0,await D(),(o=v.value)==null||o.open("edit"),(p=v.value)==null||p.setFormData(i)},E=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:i}),F()};return F(),(i,o)=>{const p=T,s=R,m=j,S=I,b=O,U=Q,u=z,$=G,M=J,w=ue("perms"),N=H;return r(),ae("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(S,{class:"mb-[-16px]",model:t,inline:""},{default:l(()=>[e(s,{label:"\u5E8F\u53F7",prop:"sn"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:t.sn,"onUpdate:modelValue":o[0]||(o[0]=a=>t.sn=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E8F\u53F7"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5927\u578B\u673A\u68B0\u8BBE\u5907\u53CA\u4EEA\u5668\u5177",prop:"name"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:t.name,"onUpdate:modelValue":o[1]||(o[1]=a=>t.name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5927\u578B\u673A\u68B0\u8BBE\u5907\u53CA\u4EEA\u5668\u5177"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u4F7F\u7528\u90E8\u4F4D",prop:"use_site"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:t.use_site,"onUpdate:modelValue":o[2]||(o[2]=a=>t.use_site=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F7F\u7528\u90E8\u4F4D"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u62A5\u5BA1\u5355\u4F4D\u540D\u79F0",prop:"company_id"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:t.company_id,"onUpdate:modelValue":o[3]||(o[3]=a=>t.company_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u5BA1\u5355\u4F4D\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u62A5\u5BA1\u7ED3\u679C",prop:"approval_result"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:t.approval_result,"onUpdate:modelValue":o[4]||(o[4]=a=>t.approval_result=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u5BA1\u7ED3\u679C"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u62A5\u5BA1\u7C7B\u578B",prop:"approval_type"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:t.approval_type,"onUpdate:modelValue":o[5]||(o[5]=a=>t.approval_type=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u5BA1\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(s,null,{default:l(()=>[e(m,{type:"primary",onClick:n(x)},{default:l(()=>[pe]),_:1},8,["onClick"]),e(m,{onClick:n(k)},{default:l(()=>[ne]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),d(b,{class:"!border-none",shadow:"never"},{default:l(()=>[f((r(),d(m,{type:"primary",onClick:L},{icon:l(()=>[e(U,{name:"el-icon-Plus"})]),default:l(()=>[se]),_:1})),[[w,["supervision_dangerous.supervision_large_mechanical_equipment/add"]]]),f((r(),d(m,{disabled:!A.value.length,onClick:o[6]||(o[6]=a=>E(A.value))},{default:l(()=>[re]),_:1},8,["disabled"])),[[w,["supervision_dangerous.supervision_large_mechanical_equipment/delete"]]]),C("div",me,[e($,{data:n(c).lists,onSelectionChange:g},{default:l(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u9879\u76EE\xB7\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(u,{label:"\u5E8F\u53F7",prop:"sn","show-overflow-tooltip":""}),e(u,{label:"\u5927\u578B\u673A\u68B0\u8BBE\u5907\u53CA\u4EEA\u5668\u5177",prop:"name","show-overflow-tooltip":""}),e(u,{label:"\u4F7F\u7528\u90E8\u4F4D",prop:"use_site","show-overflow-tooltip":""}),e(u,{label:"\u8FDB\u573A\u65F6\u95F4",prop:"entry_time","show-overflow-tooltip":""}),e(u,{label:"\u62A5\u5BA1\u5355\u4F4D\u540D\u79F0",prop:"company_name","show-overflow-tooltip":""}),e(u,{label:"\u62A5\u5BA1\u65E5\u671F",prop:"approval_date","show-overflow-tooltip":""}),e(u,{label:"\u62A5\u5BA1\u7ED3\u679C",prop:"approval_result","show-overflow-tooltip":""}),e(u,{label:"\u62A5\u5BA1\u8868\u7F16\u53F7",prop:"approval_form_code","show-overflow-tooltip":""}),e(u,{label:"\u62A5\u5BA1\u7C7B\u578B",prop:"approval_type_text","show-overflow-tooltip":""}),e(u,{label:"\u4E13\u76D1\u521D\u5BA1\u610F\u89C1",prop:"first_audit_opinion_text","show-overflow-tooltip":""}),e(u,{label:"\u521D\u5BA1\u4EBA",prop:"first_auditor","show-overflow-tooltip":""}),e(u,{label:"\u521D\u5BA1\u65F6\u95F4",prop:"first_audit_time","show-overflow-tooltip":""}),e(u,{label:"\u603B\u76D1\u5BA1\u5B9A\u7ED3\u8BBA",prop:"final_audit_opinion_text","show-overflow-tooltip":""}),e(u,{label:"\u5BA1\u5B9A\u65F6\u95F4",prop:"final_audit_time","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[f((r(),d(m,{type:"primary",link:"",onClick:P=>q(a)},{default:l(()=>[de]),_:2},1032,["onClick"])),[[w,["supervision_dangerous.supervision_large_mechanical_equipment/edit"]]]),f((r(),d(m,{type:"danger",link:"",onClick:P=>E(a.id)},{default:l(()=>[_e]),_:2},1032,["onClick"])),[[w,["supervision_dangerous.supervision_large_mechanical_equipment/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",ce,[e(M,{modelValue:n(c),"onUpdate:modelValue":o[7]||(o[7]=a=>ie(c)?c.value=a:null),onChange:n(F)},null,8,["modelValue","onChange"])])]),_:1})),[[N,n(c).loading]]),B.value?(r(),d(Y,{key:0,ref_key:"editRef",ref:v,"dict-data":n(V),onSuccess:n(F),onClose:o[8]||(o[8]=a=>B.value=!1)},null,8,["dict-data","onSuccess"])):te("",!0)])}}});export{io as default};