You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.4KB

  1. import{g as y}from"./uploadAction.a771741b.js";import{d as F,B as S,r as p,J as b,c as l,e as k,G as x,i as r,h as f,j as g,g as n,k as O,q as R}from"./index.88314652.js";import{p as V}from"./index.52f0c4e2.js";const B=F({name:"approvalDialog"}),M=Object.assign(B,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(c,{emit:_}){const{proxy:v}=R(),L=S.dictStore.uploadUrl,s=c,u=_,a=p(!1),i=p({higherLineSuperOrgReviewComments:[]}),N={higherLineSuperOrgReviewComments:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},h=p(),w=async t=>{if(!t){d();return}t.validate(async e=>{e&&d()})},d=async()=>{var t,e;a.value=!0;try{await V({projectInfo:{...i.value,higherLineSuperOrgReviewComments:((e=(t=i.value)==null?void 0:t.higherLineSuperOrgReviewComments)==null?void 0:e.length)&&JSON.stringify(y(i.value.higherLineSuperOrgReviewComments))||void 0,id:s.data.id}}),v.$message.success("\u53D1\u8D77\u6210\u529F\uFF01"),a.value=!1,u("close",!0)}catch{a.value=!1}};return b(()=>s.visible,async t=>{t?console.log("props.data",s.data):i.value={higherLineSuperOrgReviewComments:[]}}),(t,e)=>{const m=l("el-button"),$=l("el-upload"),D=l("el-form-item"),j=l("el-form"),C=l("el-dialog");return k(),x(C,{"model-value":c.visible,title:"\u9884\u5BA1\u7533\u62A5",width:"600px","destroy-on-close":"",onClose:e[3]||(e[3]=o=>u("close"))},{footer:r(()=>[f(m,{type:"primary",loading:a.value,onClick:e[1]||(e[1]=o=>w(h.value))},{default:r(()=>e[6]||(e[6]=[g(" \u63D0\u4EA4 ")])),_:1},8,["loading"]),f(m,{onClick:e[2]||(e[2]=o=>u("close"))},{default:r(()=>e[7]||(e[7]=[g(" \u5173\u95ED ")])),_:1})]),default:r(()=>[e[8]||(e[8]=n("div",null,[n("p",null,"\u6839\u636E\u300A\u6D59\u6C5F\u7701\u7535\u5B50\u653F\u52A1\u91CD\u5927\u5E94\u7528\u9879\u76EE\u8054\u5BA1\u300B\u8981\u6C42\uFF0C\u63D0\u4EA4\u9884\u5BA1\u540E\uFF1A"),n("p",null,"1\u3001\u5E02\u7EA7\u5927\u4E8E1000\u4E07\u5143\u7684\u91CD\u5927\u9879\u76EE\u5C06\u7531\u7701\u7EA7\u6570\u6539\u7275\u5934\u90E8\u95E8\u53CA\u4E1A\u52A1\u4E3B\u7BA1\u5355\u4F4D\u8FDB\u884C\u8054\u5BA1"),n("p",null,"2\u3001\u533A\u53BF\u7533\u62A5\u9879\u76EE\u5C06\u7531\u5E02\u7EA7\u6570\u6539\u7275\u5934\u90E8\u95E8\u53CA\u4E1A\u52A1\u4E3B\u7BA1\u5355\u4F4D\u8FDB\u884C\u8054\u5BA1\uFF0C\u5927\u4E8E500\u4E07\u5143\u7684\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u540E\u4F1A\u63D0\u4EA4\u7701\u91CC\u8FDB\u884C\u5907\u6848\u3002")],-1)),O("",!0)]),_:1},8,["model-value"])}}});export{M as default};