Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 linhas
1.7KB

  1. import{c as x,f as V}from"./unitManage-104cfe86.js";import{x as h,r as f,o as b,b as l,c as k,L as S,h as n,f as r,e as z,j as B,i as N,k as $,s as j}from"./index-dd5fae99.js";const q=$({name:"sealConfiguration"}),U=Object.assign(q,{props:{orgCode:{type:String,default:""}},setup(c){const d=h(),{proxy:p}=j(),i=c,t=f({}),m=f(),_=(o,e,a)=>{if(e==="")return a(new Error("请输入正确的财政编码:6位纯数字"));if(/^\d{6}$/.test(e))a();else return a(new Error("请输入正确的财政编码:6位纯数字"))},g={sealSn:[{required:!0,message:"请输入印章编码"}],fiscalCode:[{required:!0,message:"请输入财政编码"},{validator:_,trigger:"blur"}]},C=async o=>{o&&await o.validate(async e=>{e&&(await V({...t.value,organizationCode:i.orgCode||d.query.id}),p.$message.success("提交成功"))})};return b(async()=>{const o=await x({organizationCode:i.orgCode||d.query.id});t.value={...o.data}}),(o,e)=>{const a=l("el-input"),s=l("el-form-item"),v=l("el-button"),y=l("el-form"),w=l("el-card");return k(),S(w,{shadow:"never"},{default:n(()=>[r(y,{ref_key:"formRef",ref:m,"label-position":"right",model:t.value,rules:g},{default:n(()=>[r(s,{label:"印章编码",prop:"sealSn"},{default:n(()=>[r(a,{modelValue:t.value.sealSn,"onUpdate:modelValue":e[0]||(e[0]=u=>t.value.sealSn=u),style:{width:"200px"},placeholder:"请输入",maxlength:20},null,8,["modelValue"]),e[3]||(e[3]=z("span",{class:"text-info ml-16"},"温馨提示:印章授权平台:https://zjyz.zjzwfw.gov.cn/main ",-1))]),_:1}),B("",!0),r(s,null,{default:n(()=>[r(v,{type:"primary",onClick:e[2]||(e[2]=u=>C(m.value))},{default:n(()=>e[4]||(e[4]=[N("提交")])),_:1})]),_:1})]),_:1},8,["model"])]),_:1})}}});export{U as default};