2025-03-20 10:46:42 +08:00

2 lines
6.0 KiB
JavaScript

import{I as B,J as F,G as I,H as K,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 A}from"./index.37024cd6.js";import{d as G}from"./department.23a87470.js";import{j as J}from"./post.6b27df48.js";import{Z as Y,r as d,o as u,K as f,L as a,U as e,c as p,T as b,a9 as D,u as s,Q,n as S}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 Z={key:0},W={__name:"zg",props:{formData:Object},setup(t,{expose:E}){let U=["jyr","lwrq","wjmc","sex","rzbm","drzw","lwrq1","lwrq2","bz1","rzbm1","drzw1"];Y(["\u5DEE\u65C5\u8D39","\u529E\u516C\u8D39","\u62DB\u5F85\u8D39","\u4EA4\u901A\u8D39","\u901A\u8BAF\u8D39","\u91C7\u8D2D\u4ED8\u6B3E","\u5176\u4ED6"]);let y=t;const _=d(null),w=d([]);(async()=>{const r=await G();w.value=r})();const V=d([]);(async()=>{const r=await J();V.value=r})();const k=Y({});(()=>{U.forEach(r=>{k[r]=[{required:!0,message:"\u4E0D\u53EF\u4E3A\u7A7A",trigger:["blur"]}]})})();const z=d(!1),q=d(null);let v;const j=async r=>{z.value=!0,v=r,await S(),q.value.open()},H=r=>{y.formData[v]=r.name,y.formData[v+"_id"]=r.id,z.value=!1};return E({check:async()=>{var r;await((r=_.value)==null?void 0:r.validate())}}),(r,o)=>{const g=O,m=P,n=B,x=F,i=I,c=K,L=A,C=N,M=$,R=T;return u(),f(R,{ref_key:"formRef",ref:_,model:t.formData,"label-width":"120px",rules:s(k)},{default:a(()=>[e(C,null,{default:a(()=>[e(n,{span:8},{default:a(()=>[e(m,{label:"\u5458\u5DE5\u59D3\u540D",prop:"jyr"},{default:a(()=>[e(g,{modelValue:t.formData.jyr,"onUpdate:modelValue":o[0]||(o[0]=l=>t.formData.jyr=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5458\u5DE5\u59D3\u540D",onClick:o[1]||(o[1]=l=>j("jyr"))},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(m,{label:"\u5165\u804C\u65F6\u95F4",prop:"lwrq"},{default:a(()=>[e(x,{class:"flex-1 !flex",modelValue:t.formData.lwrq,"onUpdate:modelValue":o[2]||(o[2]=l=>t.formData.lwrq=l),clearable:"",type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"\u8BF7\u9009\u62E9\u5165\u804C\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(m,{label:"\u5F53\u524D\u6240\u5728\u90E8\u95E8",prop:"rzbm"},{default:a(()=>[e(c,{modelValue:t.formData.rzbm,"onUpdate:modelValue":o[3]||(o[3]=l=>t.formData.rzbm=l),placeholder:"\u8BF7\u9009\u62E9\u5F53\u524D\u6240\u5728\u90E8\u95E8",class:"flex-1"},{default:a(()=>[(u(!0),p(b,null,D(s(w),l=>(u(),f(i,{label:l.name,value:l.name},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(m,{label:"\u62C5\u4EFB\u804C\u52A1",prop:"drzw"},{default:a(()=>[e(c,{modelValue:t.formData.drzw,"onUpdate:modelValue":o[4]||(o[4]=l=>t.formData.drzw=l),placeholder:"\u8BF7\u9009\u62E9\u62C5\u4EFB\u804C\u52A1",class:"flex-1"},{default:a(()=>[(u(!0),p(b,null,D(s(V),l=>(u(),f(i,{label:l.name,value:l.name},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(m,{label:"\u8F6C\u5C97\u540E\u6240\u5728\u90E8\u95E8",prop:"rzbm"},{default:a(()=>[e(c,{modelValue:t.formData.rzbm1,"onUpdate:modelValue":o[5]||(o[5]=l=>t.formData.rzbm1=l),placeholder:"\u8BF7\u9009\u62E9\u8F6C\u5C97\u540E\u6240\u5728\u90E8\u95E8",class:"flex-1"},{default:a(()=>[(u(!0),p(b,null,D(s(w),l=>(u(),f(i,{label:l.name,value:l.name},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(m,{label:"\u8F6C\u521A\u540E\u804C\u52A1",prop:"drzw"},{default:a(()=>[e(c,{modelValue:t.formData.drzw1,"onUpdate:modelValue":o[6]||(o[6]=l=>t.formData.drzw1=l),placeholder:"\u8BF7\u9009\u62E9\u8F6C\u521A\u540E\u804C\u52A1",class:"flex-1"},{default:a(()=>[(u(!0),p(b,null,D(s(V),l=>(u(),f(i,{label:l.name,value:l.name},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(m,{label:"\u7533\u8BF7\u8F6C\u5C97\u65E5\u671F",prop:"lwrq1"},{default:a(()=>[e(x,{class:"flex-1 !flex",modelValue:t.formData.lwrq1,"onUpdate:modelValue":o[7]||(o[7]=l=>t.formData.lwrq1=l),clearable:"",type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"\u8BF7\u9009\u62E9\u7533\u8BF7\u8F6C\u5C97\u65E5\u671F"},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(m,{label:"\u9884\u8BA1\u8F6C\u521A\u65E5\u671F",prop:"lwrq2"},{default:a(()=>[e(x,{class:"flex-1 !flex",modelValue:t.formData.lwrq2,"onUpdate:modelValue":o[8]||(o[8]=l=>t.formData.lwrq2=l),clearable:"",type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"\u8BF7\u9009\u62E9\u9884\u8BA1\u8F6C\u521A\u65E5\u671F"},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(m,{label:"\u8F6C\u5C97\u539F\u56E0",prop:"bz1"},{default:a(()=>[e(g,{modelValue:t.formData.bz1,"onUpdate:modelValue":o[9]||(o[9]=l=>t.formData.bz1=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8F6C\u5C97\u539F\u56E0",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:24},{default:a(()=>[e(m,{label:"\u9644\u4EF6"},{default:a(()=>[e(L,{"form-data":t.formData},null,8,["form-data"])]),_:1})]),_:1})]),_:1}),s(z)?(u(),p("div",Z,[e(M,{ref_key:"personnel",ref:q,onConfirm:H,type:"1"},null,512)])):Q("",!0)]),_:1},8,["model","rules"])}}},Fe=W;export{Fe as default};