|
- import{c as x,f as V}from"./unitManage.e6941394.js";import{d as h,x as k,r as c,o as S,c as l,e as b,G as z,i as n,h as r,g as q,k as B,j as N,q as $}from"./index.149277cd.js";const j=h({name:"sealConfiguration"}),U=Object.assign(j,{props:{orgCode:{type:String,default:""}},setup(f){const d=k(),{proxy:p}=$(),i=f,t=c({}),m=c(),_=(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 V({...t.value,organizationCode:i.orgCode||d.query.id}),p.$message.success("\u63D0\u4EA4\u6210\u529F"))})};return S(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 b(),z(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:"\u5370\u7AE0\u7F16\u7801",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:"\u8BF7\u8F93\u5165",maxlength:20},null,8,["modelValue"]),e[3]||(e[3]=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))]),_: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("\u63D0\u4EA4")])),_:1})]),_:1})]),_:1},8,["model"])]),_:1})}}});export{U as default};
|