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
3.5KB

  1. var U=Object.defineProperty;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var y=(t,o,e)=>o in t?U(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,F=(t,o)=>{for(var e in o||(o={}))B.call(o,e)&&y(t,e,o[e]);if(w)for(var e of w(o))S.call(o,e)&&y(t,e,o[e]);return t};var v=(t,o,e)=>new Promise((x,f)=>{var _=n=>{try{d(e.next(n))}catch(r){f(r)}},s=n=>{try{d(e.throw(n))}catch(r){f(r)}},d=n=>n.done?x(n.value):Promise.resolve(n.value).then(_,s);d((e=e.apply(t,o)).next())});import{_ as V,d as $,D as q,r as h,L as z,c as u,e as I,I as O,j as a,i as c,k as b,u as p,g as k,x as P}from"./index.47f2a3eb.js";import{j as Z,h as E,i as J,b as M,f as R,g as A}from"./uploadAction.7fbc4c63.js";import{d as K}from"./inquirySheetManage.8377a91e.js";const T=k("div",{class:"el-upload__tip"},"\u652F\u6301word\u3001zip\u3001rar\u6587\u4EF6",-1),G=k("a",{class:"ml-4",href:"/\u4E3D\u6C34\u5E02\u672C\u7EA7\u653F\u5E9C\u6295\u8D44\u4FE1\u606F\u5316\u9879\u76EE\u7EE9\u6548\u8BC4\u4EF7\u54A8\u8BE2\u5355.doc",download:"\u4E3D\u6C34\u5E02\u672C\u7EA7\u653F\u5E9C\u6295\u8D44\u4FE1\u606F\u5316\u9879\u76EE\u7EE9\u6548\u8BC4\u4EF7\u54A8\u8BE2\u5355.doc"},"\u4E0B\u8F7D\u6A21\u677F",-1),H=$({name:"upLoadZxDialog"}),Q=Object.assign(H,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(t,{emit:o}){const e=q.dictStore.uploadUrl,{proxy:x}=P(),f=t,_=o,s=h({consultationForm:[]}),d=h(),n=r=>v(this,null,function*(){!r||(yield r.validate(l=>v(this,null,function*(){var m;if(l){const g={status:5,formId:f.data.id,consultationForm:((m=s.value.consultationForm)==null?void 0:m.length)&&JSON.stringify(A(s.value.consultationForm))||void 0};yield K(F({},g)),x.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),_("close",!0)}})))});return z(()=>f.visible,r=>v(this,null,function*(){r&&(s.value.consultationForm=[])})),(r,l)=>{const m=u("el-button"),g=u("el-upload"),C=u("el-form-item"),D=u("el-col"),j=u("el-row"),L=u("el-form"),N=u("el-dialog");return I(),O(N,{"model-value":t.visible,title:"\u4E0A\u4F20\u54A8\u8BE2\u5355",width:"600px","destroy-on-close":"",onClose:l[3]||(l[3]=i=>_("close"))},{footer:a(()=>[c(m,{type:"primary",onClick:l[1]||(l[1]=i=>n(d.value))},{default:a(()=>[b(" \u63D0\u4EA4 ")]),_:1}),c(m,{onClick:l[2]||(l[2]=i=>_("close"))},{default:a(()=>[b(" \u5173\u95ED ")]),_:1})]),default:a(()=>[c(L,{ref_key:"formRef",ref:d,model:s.value,"label-width":"120px","label-suffix":":"},{default:a(()=>[c(j,null,{default:a(()=>[c(D,{span:24},{default:a(()=>[c(C,{label:"\u4E0A\u4F20\u65B0\u54A8\u8BE2\u5355",prop:"consultationForm",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u6587\u4EF6",trigger:"blur"}]},{default:a(()=>[c(g,{"file-list":s.value.consultationForm,"onUpdate:fileList":l[0]||(l[0]=i=>s.value.consultationForm=i),class:"w-full",action:p(e),limit:1,"on-exceed":p(Z),"on-success":i=>p(E)(i,s.value.consultationForm,!0),"on-error":p(J),"on-preview":p(M),"before-upload":i=>p(R)(i,{types:["doc","docx","zip","rar"]}),accept:".doc,.docx,.zip,.rar"},{tip:a(()=>[T,G]),default:a(()=>[c(m,{type:"primary",class:"mr-4"},{default:a(()=>[b("\u4E0A\u4F20\u9644\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-exceed","on-success","on-error","on-preview","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])}}}),oe=V(Q,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/performanceEvaluation/inquirySheetManage/componets/upLoadZxDialog.vue"]]);export{oe as default};