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.8KB

  1. import{c as w,f as x}from"./unitManage.92dc7eb4.js";import{d as V,z as k,r as m,o as z,c as l,e as S,I as b,i as n,h as r,k as B,j as N,g as $,x as j}from"./index.d340e473.js";const q=$("span",{class:"text-info ml-16"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u5370\u7AE0\u6388\u6743\u5E73\u53F0\uFF1Ahttps://zjyz.zjzwfw.gov.cn/main ",-1),R=V({name:"sealConfiguration"}),U=Object.assign(R,{props:{orgCode:{type:String,default:""}},setup(f){const u=k(),{proxy:p}=j(),i=f,t=m({}),c=m(),_=(o,e,a)=>{if(e==="")return a(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8D22\u653F\u7F16\u7801\uFF1A6\u4F4D\u7EAF\u6570\u5B57"));if(/^\d{6}$/.test(e))a();else return a(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8D22\u653F\u7F16\u7801\uFF1A6\u4F4D\u7EAF\u6570\u5B57"))},g={sealSn:[{required:!0,message:"\u8BF7\u8F93\u5165\u5370\u7AE0\u7F16\u7801"}],fiscalCode:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D22\u653F\u7F16\u7801"},{validator:_,trigger:"blur"}]},C=async o=>{!o||await o.validate(async e=>{e&&(await x({...t.value,organizationCode:i.orgCode||u.query.id}),p.$message.success("\u63D0\u4EA4\u6210\u529F"))})};return z(async()=>{const o=await w({organizationCode:i.orgCode||u.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"),h=l("el-card");return S(),b(h,{shadow:"never"},{default:n(()=>[r(y,{ref_key:"formRef",ref:c,"label-position":"right",model:t.value,rules:g},{default:n(()=>[r(s,{label:"\u5370\u7AE0\u7F16\u7801",prop:"sealSn"},{default:n(()=>[r(a,{modelValue:t.value.sealSn,"onUpdate:modelValue":e[0]||(e[0]=d=>t.value.sealSn=d),style:{width:"200px"},placeholder:"\u8BF7\u8F93\u5165",maxlength:20},null,8,["modelValue"]),q]),_:1}),B("",!0),r(s,null,{default:n(()=>[r(v,{type:"primary",onClick:e[2]||(e[2]=d=>C(c.value))},{default:n(()=>[N("\u63D0\u4EA4")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})}}});export{U as default};