2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
import{I as M,y as O,G as q,H as G,w as H,D as z,C as J,L as K,M as Q,N as W}from"./element-plus.258bf9e7.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as Y,a as Z}from"./index.ec401e3b.js";import{u as ee}from"./usePaging.f6660143.js";import{u as oe}from"./useDictOptions.c644f395.js";import{_ as te,a as ae,b as le,c as ie}from"./edit.vue_vue_type_script_setup_true_name_supervisionDeviceEntryEdit_lang.9c522778.js";import"./lodash.1d82ee7c.js";import{d as B,s as ne,r as y,a0 as se,ai as re,o as s,c as ue,V as e,M as o,O as _,u as n,L as m,S as pe,a as k,k as me,T as c,n as g}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.52610225.js";import"./supervision_material_equipment_info.1b9ea623.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.9492d03b.js";import"./supervision_inspection.84905332.js";const ce=c("\u67E5\u8BE2"),de=c("\u91CD\u7F6E"),_e=c(" \u65B0\u589E "),ve=c(" \u5220\u9664 "),fe={class:"mt-4"},we=c(" \u7F16\u8F91 "),Ee=c(" \u5220\u9664 "),Ce={class:"flex justify-end mt-4"},be=B({name:"supervisionDeviceEntryLists"}),_o=B({...be,setup(De){const v=ne(),f=y(!1),r=se({project_id:"",code:"",enter_result:""}),b=y([]),V=l=>{b.value=l.map(({id:t})=>t)},{dictData:x}=oe("accept_type,problem_cate"),{pager:d,getLists:w,resetParams:S,resetPage:A}=ee({fetchFun:ae,params:r}),$=async()=>{var l;f.value=!0,await g(),(l=v.value)==null||l.open("add")},L=async l=>{var E,u;let t=await le({id:l.id});f.value=!0,await g(),(E=v.value)==null||E.open("edit"),(u=v.value)==null||u.setFormData(t)},D=async l=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:l}),w()};return w(),(l,t)=>{const E=M,u=O,F=q,N=G,p=H,P=z,h=J,T=Z,i=K,R=Q,j=X,C=re("perms"),I=W;return s(),ue("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(P,{class:"mb-[-16px]",model:r,inline:""},{default:o(()=>[e(u,{label:"\u7F16\u53F7",prop:"code"},{default:o(()=>[e(E,{class:"w-[280px]",modelValue:r.code,"onUpdate:modelValue":t[0]||(t[0]=a=>r.code=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u8FDB\u573A\u7ED3\u679C",prop:"enter_result"},{default:o(()=>[e(N,{modelValue:r.enter_result,"onUpdate:modelValue":t[1]||(t[1]=a=>r.enter_result=a)},{default:o(()=>[e(F,{label:"\u8FDB\u573A",value:"0"}),e(F,{label:"\u9000\u573A",value:"1"})]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(p,{type:"primary",onClick:n(A)},{default:o(()=>[ce]),_:1},8,["onClick"]),e(p,{onClick:n(S)},{default:o(()=>[de]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((s(),m(h,{class:"!border-none",shadow:"never"},{default:o(()=>[_((s(),m(p,{type:"primary",onClick:$},{icon:o(()=>[e(T,{name:"el-icon-Plus"})]),default:o(()=>[_e]),_:1})),[[C,["supervision_work.supervision_device_entry/add"]]]),_((s(),m(p,{disabled:!b.value.length,onClick:t[2]||(t[2]=a=>D(b.value))},{default:o(()=>[ve]),_:1},8,["disabled"])),[[C,["supervision_work.supervision_device_entry/delete"]]]),k("div",fe,[e(R,{data:n(d).lists,onSelectionChange:V},{default:o(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(i,{label:"\u7F16\u53F7",prop:"code","show-overflow-tooltip":""}),e(i,{label:"\u8FDB\u573A\u65F6\u95F4",prop:"enter_time","show-overflow-tooltip":""}),e(i,{label:"\u65BD\u5DE5\u5355\u4F4D",prop:"company_name","show-overflow-tooltip":""}),e(i,{label:"\u8FDB\u573A\u7ED3\u679C",prop:"enter_result_text","show-overflow-tooltip":""}),e(i,{label:"\u5171\u540C\u53C2\u4E0E\u4EBA",prop:"co_participant","show-overflow-tooltip":""}),e(i,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:a})=>[_((s(),m(p,{type:"primary",link:"",onClick:U=>L(a)},{default:o(()=>[we]),_:2},1032,["onClick"])),[[C,["supervision_work.supervision_device_entry/edit"]]]),_((s(),m(p,{type:"danger",link:"",onClick:U=>D(a.id)},{default:o(()=>[Ee]),_:2},1032,["onClick"])),[[C,["supervision_work.supervision_device_entry/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",Ce,[e(j,{modelValue:n(d),"onUpdate:modelValue":t[3]||(t[3]=a=>me(d)?d.value=a:null),onChange:n(w)},null,8,["modelValue","onChange"])])]),_:1})),[[I,n(d).loading]]),f.value?(s(),m(te,{key:0,ref_key:"editRef",ref:v,"dict-data":n(x),onSuccess:n(w),onClose:t[4]||(t[4]=a=>f.value=!1)},null,8,["dict-data","onSuccess"])):pe("",!0)])}}});export{_o as default};
|