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

2 lines
5.9 KiB
JavaScript

import{I as U,y as I,w as q,D as z,C as M,L as O,M as G,N as H}from"./element-plus.517d4382.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as K,a as Q}from"./index.8b1962e9.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.b5854a9e.js";import{_ as Y,a as Z,b as ee}from"./edit.vue_vue_type_script_setup_true_name_projectSurveySignatureEdit_lang.f52201f6.js";import"./lodash.1d82ee7c.js";import{d as j,s as oe,r as B,a0 as te,ai as le,o as s,c as ae,V as e,M as l,O as _,u as n,L as m,S as ue,a as D,k as re,T as c,n as C}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";const ne=c("\u67E5\u8BE2"),se=c("\u91CD\u7F6E"),pe=c(" \u65B0\u589E "),ie=c(" \u5220\u9664 "),me={class:"mt-4"},ce=c(" \u7F16\u8F91 "),de=c(" \u5220\u9664 "),_e={class:"flex mt-4 justify-end"},fe=j({name:"projectSurveySignatureLists"}),oo=j({...fe,setup(ve){const f=oe(),v=B(!1),r=te({num:"",project:"",project_num:""}),b=B([]),y=u=>{b.value=u.map(({id:o})=>o)},{dictData:k}=X(""),{pager:d,getLists:w,resetParams:V,resetPage:x}=W({fetchFun:Z,params:r}),S=async()=>{var u;v.value=!0,await C(),(u=f.value)==null||u.open("add")},A=async u=>{var o,p;v.value=!0,await C(),(o=f.value)==null||o.open("edit"),(p=f.value)==null||p.setFormData(u)},h=async u=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:u}),w()};return w(),(u,o)=>{const p=U,E=I,i=q,P=z,g=M,$=Q,t=O,L=G,N=J,F=le("perms"),T=H;return s(),ae("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(P,{class:"mb-[-16px]",model:r,inline:""},{default:l(()=>[e(E,{label:"\u5355\u636E\u7F16\u53F7",prop:"num"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:r.num,"onUpdate:modelValue":o[0]||(o[0]=a=>r.num=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(E,{label:"\u9879\u76EE\u540D\u79F0",prop:"project"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:r.project,"onUpdate:modelValue":o[1]||(o[1]=a=>r.project=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(E,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:r.project_num,"onUpdate:modelValue":o[2]||(o[2]=a=>r.project_num=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(E,null,{default:l(()=>[e(i,{type:"primary",onClick:n(x)},{default:l(()=>[ne]),_:1},8,["onClick"]),e(i,{onClick:n(V)},{default:l(()=>[se]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((s(),m(g,{class:"!border-none",shadow:"never"},{default:l(()=>[_((s(),m(i,{type:"primary",onClick:S},{icon:l(()=>[e($,{name:"el-icon-Plus"})]),default:l(()=>[pe]),_:1})),[[F,["project_process_management.project_survey_signature/add"]]]),_((s(),m(i,{disabled:!b.value.length,onClick:o[3]||(o[3]=a=>h(b.value))},{default:l(()=>[ie]),_:1},8,["disabled"])),[[F,["project_process_management.project_survey_signature/delete"]]]),D("div",me,[e(L,{data:n(d).lists,onSelectionChange:y},{default:l(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"",prop:"dataid","show-overflow-tooltip":""}),e(t,{label:"\u5355\u636E\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"project","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num","show-overflow-tooltip":""}),e(t,{label:"\u59D4\u6258\u5355\u4F4D",prop:"wt_unit","show-overflow-tooltip":""}),e(t,{label:"\u5EFA\u8BBE\u5355\u4F4D",prop:"jsdw","show-overflow-tooltip":""}),e(t,{label:"\u90E8\u95E8\u8D1F\u8D23\u4EBA",prop:"bmfz","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",prop:"xmfz","show-overflow-tooltip":""}),e(t,{label:"\u8E0F\u52D8\u65E5\u671F",prop:"riqi","show-overflow-tooltip":""}),e(t,{label:"\u8E0F\u52D8\u4EBA\u5458",prop:"people","show-overflow-tooltip":""}),e(t,{label:"\u767B\u8BB0\u4EBA",prop:"djr","show-overflow-tooltip":""}),e(t,{label:"\u767B\u8BB0\u65E5\u671F",prop:"apptime","show-overflow-tooltip":""}),e(t,{label:"\u8E0F\u52D8\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(t,{label:"\u6838\u5B9E\u7ED3\u679C",prop:"result","show-overflow-tooltip":""}),e(t,{label:"",prop:"remark","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[_((s(),m(i,{type:"primary",link:"",onClick:R=>A(a)},{default:l(()=>[ce]),_:2},1032,["onClick"])),[[F,["project_process_management.project_survey_signature/edit"]]]),_((s(),m(i,{type:"danger",link:"",onClick:R=>h(a.id)},{default:l(()=>[de]),_:2},1032,["onClick"])),[[F,["project_process_management.project_survey_signature/delete"]]])]),_:1})]),_:1},8,["data"])]),D("div",_e,[e(N,{modelValue:n(d),"onUpdate:modelValue":o[4]||(o[4]=a=>re(d)?d.value=a:null),onChange:n(w)},null,8,["modelValue","onChange"])])]),_:1})),[[T,n(d).loading]]),v.value?(s(),m(Y,{key:0,ref_key:"editRef",ref:f,"dict-data":n(k),onSuccess:n(w),onClose:o[5]||(o[5]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):ue("",!0)])}}});export{oo as default};