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

2 lines
5.7 KiB
JavaScript

import{I as J,y as K,G as Q,H as X,w as Y,D as Z,C as ee,L as te,M as oe,N as ae}from"./element-plus.517d4382.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as ie,a as ue}from"./index.8b1962e9.js";import{u as se}from"./usePaging.f6660143.js";import{u as re}from"./useDictOptions.b5854a9e.js";import{_ as de,q as me,a as pe}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.fec1d03c.js";import"./lodash.1d82ee7c.js";import ce from"./detail.d088a09a.js";import{d as P,a0 as q,s as B,r as h,ai as _e,o as i,c as V,V as e,M as t,O as _,u as l,L as s,S as x,W as fe,a8 as ve,a as $,k as Ce,T as p,n as L}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.b17dae19.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./custom.99349afc.js";const ye=p("\u67E5\u8BE2"),be=p("\u91CD\u7F6E"),Fe=p(" \u65B0\u589E "),we=p(" \u5220\u9664 "),Ee={class:"mt-4"},he=p(" \u7F16\u8F91 "),ke=p(" \u5220\u9664 "),De={class:"flex justify-end mt-4"},ge=P({name:"projectLists"}),Ct=P({...ge,setup(qe){q([]);const R=B(),f=B(),v=h(!1),k=h(!1),r=q({serial_number:"",node:""}),w=h([]),S=n=>{w.value=n.map(({id:o})=>o)},{dictData:C}=re("quality_detection_node"),{pager:c,getLists:y,resetParams:N,resetPage:T}=se({fetchFun:me,params:r}),I=async()=>{var n;v.value=!0,await L(),(n=f.value)==null||n.open("add")},j=async n=>{var b,d;console.log(n.id);let o=await pe({id:n.id});v.value=!0,await L(),(b=f.value)==null||b.open("edit"),(d=f.value)==null||d.setFormData(o)},D=async n=>{await ie.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),awaitqualitydetectiontempDelete({id:n}),y()};return y(),(n,o)=>{const b=J,d=K,U=Q,A=X,m=Y,M=Z,g=ee,O=ue,u=te,G=ne,H=oe,W=le,F=_e("perms"),z=ae;return i(),V("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(M,{class:"mb-[-16px]",model:r,inline:""},{default:t(()=>[e(d,{label:"\u5E8F\u53F7",prop:"serial_number"},{default:t(()=>[e(b,{class:"w-[280px]",modelValue:r.serial_number,"onUpdate:modelValue":o[0]||(o[0]=a=>r.serial_number=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E8F\u53F7"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u8D28\u91CF\u68C0\u6D4B\u8282\u70B9",prop:"node"},{default:t(()=>[e(A,{modelValue:r.node,"onUpdate:modelValue":o[1]||(o[1]=a=>r.node=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8D28\u91CF\u68C0\u6D4B\u8282\u70B9"},{default:t(()=>[(i(!0),V(fe,null,ve(l(C).quality_detection_node,(a,E)=>(i(),s(U,{key:E,label:a.name,value:parseInt(a.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(m,{type:"primary",onClick:l(T)},{default:t(()=>[ye]),_:1},8,["onClick"]),e(m,{onClick:l(N)},{default:t(()=>[be]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),s(g,{class:"!border-none",shadow:"never"},{default:t(()=>[_((i(),s(m,{type:"primary",onClick:I},{icon:t(()=>[e(O,{name:"el-icon-Plus"})]),default:t(()=>[Fe]),_:1})),[[F,["quality.quality_detection_temp/add"]]]),_((i(),s(m,{disabled:!w.value.length,onClick:o[2]||(o[2]=a=>D(w.value))},{default:t(()=>[we]),_:1},8,["disabled"])),[[F,["quality.quality_detection_temp/delete"]]]),$("div",Ee,[e(H,{data:l(c).lists,onSelectionChange:S},{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:"\u8D28\u91CF\u68C0\u6D4B\u8282\u70B9",prop:"project_name","show-overflow-tooltip":""},{default:t(({row:a})=>[e(G,{options:l(C).quality_detection_node,value:a.node},null,8,["options","value"])]),_:1}),e(u,{label:"\u5E8F\u53F7",prop:"serial_number","show-overflow-tooltip":""}),e(u,{label:"\u6807\u51C6\u5DE5\u671F",prop:"standard_duration","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:a})=>[_((i(),s(m,{type:"primary",link:"",onClick:E=>j(a)},{default:t(()=>[he]),_:2},1032,["onClick"])),[[F,["quality.quality_detection_temp/edit"]]]),_((i(),s(m,{type:"danger",link:"",onClick:E=>D(a.id)},{default:t(()=>[ke]),_:2},1032,["onClick"])),[[F,["quality.quality_detection_temp/delete"]]])]),_:1})]),_:1},8,["data"])]),$("div",De,[e(W,{modelValue:l(c),"onUpdate:modelValue":o[3]||(o[3]=a=>Ce(c)?c.value=a:null),onChange:l(y)},null,8,["modelValue","onChange"])])]),_:1})),[[z,l(c).loading]]),v.value?(i(),s(de,{key:0,ref_key:"editRef",ref:f,"dict-data":l(C),onSuccess:l(y),onClose:o[4]||(o[4]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),k.value?(i(),s(ce,{key:1,ref_key:"detailRef",ref:R,"dict-data":l(C),onClose:o[5]||(o[5]=a=>k.value=!1)},null,8,["dict-data"])):x("",!0)])}}});export{Ct as default};