2025-03-20 10:25:32 +08:00

2 lines
4.3 KiB
JavaScript

import{I as H,J as I,G as K,H as M,K as N,B as O,C as P,D as T}from"./element-plus.2acb577d.js";import{_ as $}from"./index.vue_vue_type_style_index_0_lang.9e5f7fb0.js";import{_ as h}from"./index.37024cd6.js";import{d as A}from"./department.23a87470.js";import{j as G}from"./post.6b27df48.js";import{Z as x,r as u,o as s,K as f,L as l,U as e,c,T as g,a9 as E,u as p,Q as J,n as Q}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.81df6f20.js";import"./lodash.6bfd3540.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";const S={key:0},Z={__name:"zz",props:{formData:Object},setup(o,{expose:j}){let L=["jyr","lwrq","wjmc","sex","rzbm","drzw","bz1"];x(["\u5DEE\u65C5\u8D39","\u529E\u516C\u8D39","\u62DB\u5F85\u8D39","\u4EA4\u901A\u8D39","\u901A\u8BAF\u8D39","\u91C7\u8D2D\u4ED8\u6B3E","\u5176\u4ED6"]);let _=o;const b=u(null),D=u([]);(async()=>{const a=await A();D.value=a})();const w=u([]);(async()=>{const a=await G();w.value=a})();const z=x({});(()=>{L.forEach(a=>{z[a]=[{required:!0,message:"\u4E0D\u53EF\u4E3A\u7A7A",trigger:["blur"]}]})})();const i=u(!1),V=u(null);let d;const C=async a=>{i.value=!0,d=a,await Q(),V.value.open()},R=a=>{_.formData[d]=a.name,_.formData[d+"_id"]=a.id,i.value=!1};return j({check:async()=>{var a;await((a=b.value)==null?void 0:a.validate())}}),(a,r)=>{const v=O,m=P,n=H,U=I,y=K,k=M,q=h,B=N,Y=$,F=T;return s(),f(F,{ref_key:"formRef",ref:b,model:o.formData,"label-width":"110px",rules:p(z)},{default:l(()=>[e(B,null,{default:l(()=>[e(n,{span:8},{default:l(()=>[e(m,{label:"\u5458\u5DE5\u59D3\u540D",prop:"jyr"},{default:l(()=>[e(v,{modelValue:o.formData.jyr,"onUpdate:modelValue":r[0]||(r[0]=t=>o.formData.jyr=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5458\u5DE5\u59D3\u540D",onClick:r[1]||(r[1]=t=>C("jyr"))},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:l(()=>[e(m,{label:"\u8F6C\u6B63\u65E5\u671F",prop:"lwrq"},{default:l(()=>[e(U,{class:"flex-1 !flex",modelValue:o.formData.lwrq,"onUpdate:modelValue":r[2]||(r[2]=t=>o.formData.lwrq=t),clearable:"",type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"\u8BF7\u9009\u62E9\u8F6C\u6B63\u65E5\u671F"},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:l(()=>[e(m,{label:"\u6240\u5728\u90E8\u95E8",prop:"rzbm"},{default:l(()=>[e(k,{modelValue:o.formData.rzbm,"onUpdate:modelValue":r[3]||(r[3]=t=>o.formData.rzbm=t),placeholder:"\u8BF7\u9009\u62E9\u5165\u804C\u90E8\u95E8",class:"flex-1"},{default:l(()=>[(s(!0),c(g,null,E(p(D),t=>(s(),f(y,{label:t.name,value:t.name},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:l(()=>[e(m,{label:"\u62C5\u4EFB\u804C\u52A1",prop:"drzw"},{default:l(()=>[e(k,{modelValue:o.formData.drzw,"onUpdate:modelValue":r[4]||(r[4]=t=>o.formData.drzw=t),placeholder:"\u8BF7\u9009\u62E9\u62C5\u4EFB\u804C\u52A1",class:"flex-1"},{default:l(()=>[(s(!0),c(g,null,E(p(w),t=>(s(),f(y,{label:t.name,value:t.name},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:l(()=>[e(m,{label:"\u8BD5\u7528\u671F\u8BC4\u4EF7",prop:"bz1"},{default:l(()=>[e(v,{modelValue:o.formData.bz1,"onUpdate:modelValue":r[5]||(r[5]=t=>o.formData.bz1=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BD5\u7528\u671F\u8BC4\u4EF7",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:24},{default:l(()=>[e(m,{label:"\u9644\u4EF6"},{default:l(()=>[e(q,{"form-data":o.formData},null,8,["form-data"])]),_:1})]),_:1})]),_:1}),p(i)?(s(),c("div",S,[e(Y,{ref_key:"personnel",ref:V,onConfirm:R,type:"1"},null,512)])):J("",!0)]),_:1},8,["model","rules"])}}},Ie=Z;export{Ie as default};