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

2 lines
6.3 KiB
JavaScript

import{I as R,y as j,G as O,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{a as te,e as le}from"./supervision_material_equipment_info.1b9ea623.js";import"./lodash.1d82ee7c.js";import{_ as ae}from"./edit.vue_vue_type_script_setup_true_name_supervisionMaterialEquipmentInfoEdit_lang.5273b446.js";import{d as g,s as ue,r as V,a0 as ne,ai as ie,o as r,c as re,V as e,M as t,O as f,u as i,L as d,S as se,a as y,k as pe,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.8f6cc90c.js";import"./supervision_project.e6761916.js";import"./index.9492d03b.js";const me=_("\u67E5\u8BE2"),de=_("\u91CD\u7F6E"),_e=_(" \u65B0\u589E "),ce=_(" \u5220\u9664 "),fe={class:"mt-4"},ve=_(" \u7F16\u8F91 "),be=_(" \u5220\u9664 "),Ce={class:"flex justify-end mt-4"},we=g({name:"supervisionMaterialEquipmentInfoLists"}),ro=g({...we,setup(Be){const v=ue(),b=V(!1),a=ne({name:"",brand:"",model:"",contract_brand:"",type:""}),E=V([]),x=n=>{E.value=n.map(({id:o})=>o)},{dictData:q}=oe(""),{pager:c,getLists:C,resetParams:A,resetPage:S}=ee({fetchFun:te,params:a}),$=async()=>{var n;b.value=!0,await D(),(n=v.value)==null||n.open("add")},I=async n=>{var o,s;b.value=!0,await D(),(o=v.value)==null||o.open("edit"),(s=v.value)==null||s.setFormData(n)},F=async n=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await le({id:n}),C()};return C(),(n,o)=>{const s=R,p=j,w=O,k=G,m=H,L=z,h=J,U=Z,u=K,M=Q,N=X,B=ie("perms"),P=W;return r(),re("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(L,{class:"mb-[-16px]",model:a,inline:""},{default:t(()=>[e(p,{label:"\u6750\u6599/\u8BBE\u5907\u540D\u79F0",prop:"name"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:a.name,"onUpdate:modelValue":o[0]||(o[0]=l=>a.name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6750\u6599/\u8BBE\u5907\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u6750\u6599/\u8BBE\u5907\u54C1\u724C",prop:"brand"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:a.brand,"onUpdate:modelValue":o[1]||(o[1]=l=>a.brand=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6750\u6599/\u8BBE\u5907\u54C1\u724C"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u578B\u53F7",prop:"model"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:a.model,"onUpdate:modelValue":o[2]||(o[2]=l=>a.model=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u578B\u53F7"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u5408\u540C\u7EA6\u5B9A\u54C1\u724C",prop:"contract_brand"},{default:t(()=>[e(k,{modelValue:a.contract_brand,"onUpdate:modelValue":o[3]||(o[3]=l=>a.contract_brand=l)},{default:t(()=>[e(w,{label:"\u5426",value:"0"}),e(w,{label:"\u662F",value:"1"})]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"\u7C7B\u578B",prop:"type"},{default:t(()=>[e(k,{modelValue:a.type,"onUpdate:modelValue":o[4]||(o[4]=l=>a.type=l)},{default:t(()=>[e(w,{label:"\u6750\u6599",value:"0"}),e(w,{label:"\u8BBE\u5907",value:"1"})]),_:1},8,["modelValue"])]),_:1}),e(p,null,{default:t(()=>[e(m,{type:"primary",onClick:i(S)},{default:t(()=>[me]),_:1},8,["onClick"]),e(m,{onClick:i(A)},{default:t(()=>[de]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),d(h,{class:"!border-none",shadow:"never"},{default:t(()=>[f((r(),d(m,{type:"primary",onClick:$},{icon:t(()=>[e(U,{name:"el-icon-Plus"})]),default:t(()=>[_e]),_:1})),[[B,["supervision_work.supervision_material_equipment_info/add"]]]),f((r(),d(m,{disabled:!E.value.length,onClick:o[5]||(o[5]=l=>F(E.value))},{default:t(()=>[ce]),_:1},8,["disabled"])),[[B,["supervision_work.supervision_material_equipment_info/delete"]]]),y("div",fe,[e(M,{data:i(c).lists,onSelectionChange:x},{default:t(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(u,{label:"\u6750\u6599/\u8BBE\u5907\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(u,{label:"\u6750\u6599/\u8BBE\u5907\u54C1\u724C",prop:"brand","show-overflow-tooltip":""}),e(u,{label:"\u578B\u53F7",prop:"model","show-overflow-tooltip":""}),e(u,{label:"\u8BA1\u6570\u5355\u4F4D",prop:"unit","show-overflow-tooltip":""}),e(u,{label:"\u8BA1\u5212\u6570\u91CF",prop:"number","show-overflow-tooltip":""}),e(u,{label:"\u5408\u540C\u7EA6\u5B9A\u54C1\u724C",prop:"contract_brand_text","show-overflow-tooltip":""}),e(u,{label:"\u7C7B\u578B",prop:"type_text","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[f((r(),d(m,{type:"primary",link:"",onClick:T=>I(l)},{default:t(()=>[ve]),_:2},1032,["onClick"])),[[B,["supervision_work.supervision_material_equipment_info/edit"]]]),f((r(),d(m,{type:"danger",link:"",onClick:T=>F(l.id)},{default:t(()=>[be]),_:2},1032,["onClick"])),[[B,["supervision_work.supervision_material_equipment_info/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",Ce,[e(N,{modelValue:i(c),"onUpdate:modelValue":o[6]||(o[6]=l=>pe(c)?c.value=l:null),onChange:i(C)},null,8,["modelValue","onChange"])])]),_:1})),[[P,i(c).loading]]),b.value?(r(),d(ae,{key:0,ref_key:"editRef",ref:v,"dict-data":i(q),onSuccess:i(C),onClose:o[7]||(o[7]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{ro as default};