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

2 lines
6.4 KiB
JavaScript

import{I as U,y as q,w as M,D as O,C as G,L as H,M as J,N as K}from"./element-plus.258bf9e7.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as W,a as X}from"./index.ec401e3b.js";import{_ as Y}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as Z}from"./usePaging.f6660143.js";import{u as ee}from"./useDictOptions.c644f395.js";import{_ as oe,a as j,b as te,c as ae}from"./edit.vue_vue_type_script_setup_true_name_projectSurveySignatureEdit_lang.5403477d.js";import"./lodash.1d82ee7c.js";import{d as y,s as le,r as D,a0 as ue,ai as re,o as p,c as ne,V as e,M as a,O as f,u,L as d,S as se,a as B,k as pe,T as _,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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_style_index_0_lang.0ff67de9.js";import"./common.c510575b.js";import"./index.vue_vue_type_script_setup_true_lang.c11935ba.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./cost_project.2762b876.js";import"./index.a7758114.js";const ie=_("\u67E5\u8BE2"),me=_("\u91CD\u7F6E"),ce=_(" \u65B0\u589E "),de=_(" \u5220\u9664 "),_e={class:"mt-4"},fe=_(" \u7F16\u8F91 "),ve=_(" \u5220\u9664 "),Ee={class:"flex justify-end mt-4"},we=y({name:"projectSurveySignatureLists"}),mo=y({...we,setup(Fe){const v=le(),E=D(!1),r=ue({num:"",project:"",project_num:""}),b=D([]),k=n=>{b.value=n.map(({id:o})=>o)},{dictData:V}=ee(""),{pager:i,getLists:w,resetParams:x,resetPage:S}=Z({fetchFun:j,params:r}),P=async()=>{var n;E.value=!0,await C(),(n=v.value)==null||n.open("add")},$=async n=>{var m,s;let o=await te({id:n.id});E.value=!0,await C(),(m=v.value)==null||m.open("edit"),(s=v.value)==null||s.setFormData(o)},h=async n=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:n}),w()};return w(),(n,o)=>{const m=U,s=q,c=M,A=Y,L=O,g=G,z=X,t=H,I=J,N=Q,F=re("perms"),T=K;return p(),ne("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(L,{class:"mb-[-16px]",model:r,inline:""},{default:a(()=>[e(s,{label:"\u5355\u636E\u7F16\u53F7",prop:"num"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:r.num,"onUpdate:modelValue":o[0]||(o[0]=l=>r.num=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"project"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:r.project,"onUpdate:modelValue":o[1]||(o[1]=l=>r.project=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:r.project_num,"onUpdate:modelValue":o[2]||(o[2]=l=>r.project_num=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(s,null,{default:a(()=>[e(c,{type:"primary",onClick:u(S)},{default:a(()=>[ie]),_:1},8,["onClick"]),e(c,{onClick:u(x)},{default:a(()=>[me]),_:1},8,["onClick"]),e(A,{class:"ml-2.5","fetch-fun":u(j),params:r,"page-size":u(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((p(),d(g,{class:"!border-none",shadow:"never"},{default:a(()=>[f((p(),d(c,{type:"primary",onClick:P},{icon:a(()=>[e(z,{name:"el-icon-Plus"})]),default:a(()=>[ce]),_:1})),[[F,["project_process_management.project_survey_signature/add"]]]),f((p(),d(c,{disabled:!b.value.length,onClick:o[3]||(o[3]=l=>h(b.value))},{default:a(()=>[de]),_:1},8,["disabled"])),[[F,["project_process_management.project_survey_signature/delete"]]]),B("div",_e,[e(I,{data:u(i).lists,onSelectionChange:k},{default:a(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u5355\u636E\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"projectInfo.project_name","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u7F16\u53F7",prop:"projectInfo.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:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[f((p(),d(c,{type:"primary",link:"",onClick:R=>$(l)},{default:a(()=>[fe]),_:2},1032,["onClick"])),[[F,["project_process_management.project_survey_signature/edit"]]]),f((p(),d(c,{type:"danger",link:"",onClick:R=>h(l.id)},{default:a(()=>[ve]),_:2},1032,["onClick"])),[[F,["project_process_management.project_survey_signature/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",Ee,[e(N,{modelValue:u(i),"onUpdate:modelValue":o[4]||(o[4]=l=>pe(i)?i.value=l:null),onChange:u(w)},null,8,["modelValue","onChange"])])]),_:1})),[[T,u(i).loading]]),E.value?(p(),d(oe,{key:0,ref_key:"editRef",ref:v,"dict-data":u(V),onSuccess:u(w),onClose:o[5]||(o[5]=l=>E.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{mo as default};