Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2 Zeilen
5.3KB

  1. var $=Object.defineProperty,q=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var F=(a,l,t)=>l in a?$(a,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[l]=t,V=(a,l)=>{for(var t in l||(l={}))K.call(l,t)&&F(a,t,l[t]);if(N)for(var t of N(l))M.call(l,t)&&F(a,t,l[t]);return a},O=(a,l)=>q(a,T(l));var g=(a,l,t)=>new Promise((w,o)=>{var R=n=>{try{u(t.next(n))}catch(v){o(v)}},e=n=>{try{u(t.throw(n))}catch(v){o(v)}},u=n=>n.done?w(n.value):Promise.resolve(n.value).then(R,e);u((t=t.apply(a,l)).next())});import{_ as z,d as G,D as H,r as I,L as Q,e as c,f,I as b,a7 as W,l as s,h as A,k as d,m as j,t as k,i as m,g as P,j as y,F as X,J as Y,p as Z}from"./index.11dc4694.js";import{r as ee,h as te,f as ae,c as S,b as le,e as ie,g as se}from"./uploadAction.c865409e.js";import{d as oe,f as re}from"./projectReform.df8e9c2d.js";import{A as ne}from"./index.3731dd96.js";const ue={class:"mb-16"},de={key:1},pe={class:"el-upload__tip"},ce={class:"flex justify-center"},fe=G({name:"upLoadReplayDialog"}),me=Object.assign(fe,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object,isEdit:{type:Boolean,default:!0}},emits:["close"],setup(a,{emit:l}){const t=H.dictStore.uploadUrl,{proxy:w}=Z(),o=a,R=l,e=I({}),u=I(!1),n={rectifyResult:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},v=I(),B=x=>g(this,null,function*(){!x||(yield x.validate(i=>g(this,null,function*(){var _;if(i){u.value=!0;const C={appraisalId:o.data.appraisalId,appraisalProjectId:e.value.appraisalProjectId,appraisalProjectCode:e.value.appraisalProjectCode,rectifyResult:e.value.rectifyResult,rectifyResultAppendix:((_=e.value.rectifyResultAppendix)==null?void 0:_.length)&&JSON.stringify(se(e.value.rectifyResultAppendix))};try{yield re(C),w.$message.success("\u63D0\u4EA4\u6210\u529F"),e.value={},u.value=!1,R("close",!0)}catch(h){u.value=!1}}})))});return Q(()=>o.visible,x=>g(this,null,function*(){if(x){const i=yield oe(o.data.appraisalId,o.data.projectCode);e.value=O(V({},i.data),{appraisalProjectId:o.data.projectId,appraisalProjectCode:o.data.projectCode,rectifyResultAppendix:i.data.rectifyResultAppendix&&ee(JSON.parse(i.data.rectifyResultAppendix))||[]})}})),(x,i)=>{const _=c("el-form-item"),C=c("el-alert"),h=c("el-input"),D=c("el-button"),E=c("el-upload"),J=c("el-form"),L=c("el-dialog");return f(),b(L,{"model-value":a.visible,title:o.isEdit?"\u586B\u5199\u6574\u6539\u610F\u89C1":"\u6574\u6539\u8BE6\u60C5","destroy-on-close":"",onClose:i[4]||(i[4]=p=>R("close"))},W({default:s(()=>[d(J,{ref_key:"formRef",ref:v,model:e.value,rules:n,"label-suffix":":","label-width":"130"},{default:s(()=>[d(_,{label:"\u6574\u6539\u610F\u89C1"},{default:s(()=>[j(k(e.value.rectifyOpinion),1)]),_:1}),A("div",ue,[e.value.rectifyAuditResult===2||e.value.rectifyAuditResult===1?(f(),b(C,{key:0,title:e.value.rectifyAuditResult===2?"\u6574\u6539\u6838\u67E5\u4E0D\u901A\u8FC7":"\u6574\u6539\u6838\u67E5\u901A\u8FC7",type:e.value.rectifyAuditResult===2?"error":"success",effect:"dark",closable:!1},{default:s(()=>[A("div",null,"\u6838\u67E5\u610F\u89C1\uFF1A"+k(e.value.rectifyAuditOpinion),1),m(' <div class="flex">'),m(" <span>\u9644\u4EF6\uFF1A</span>"),m(' <p v-for="(file,fileIndex) in formData.rectifyResultAppendix&&JSON.parse(formData.rectifyResultAppendix)" :key="fileIndex" class="mb-4">'),m(' <accessory :file-name="file.originalFileName" :file-id="file.id" />'),m(" </p>"),m(" </div>")]),_:1},8,["title","type"])):m("v-if",!0)]),d(_,{label:"\u6574\u6539\u7ED3\u679C\u8BF4\u660E",prop:"rectifyResult"},{default:s(()=>[a.isEdit?(f(),b(h,{key:0,modelValue:e.value.rectifyResult,"onUpdate:modelValue":i[0]||(i[0]=p=>e.value.rectifyResult=p),type:"textarea","show-word-limit":"",maxlength:500},null,8,["modelValue"])):(f(),P("span",de,k(e.value.rectifyResult),1))]),_:1}),d(_,{label:"\u76F8\u5173\u6750\u6599"},{default:s(()=>{var p;return[a.isEdit?(f(),b(E,{key:0,"file-list":e.value.rectifyResultAppendix,"onUpdate:fileList":i[1]||(i[1]=r=>e.value.rectifyResultAppendix=r),action:y(t),multiple:"","on-success":r=>y(te)(r,e.value.rectifyResultAppendix,!0),"before-upload":r=>y(ae)(r,{types:y(S)}),accept:y(S).map(r=>`.${r}`).join(","),"on-preview":y(le)},{tip:s(()=>[A("div",pe," \u652F\u6301"+k(y(ie))+"\u6587\u4EF6 ",1)]),default:s(()=>[d(D,{plain:"",type:"primary"},{default:s(()=>[j("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","before-upload","accept","on-preview"])):(f(!0),P(X,{key:1},Y(((p=e.value.rectifyResultAppendix)==null?void 0:p.length)&&e.value.rectifyResultAppendix,(r,U)=>(f(),P("p",{key:U,class:"mb-4"},[d(ne,{"file-name":r.name,"file-id":r.response.data.id},null,8,["file-name","file-id"])]))),128))]}),_:1})]),_:1},8,["model"])]),_:2},[o.isEdit?{name:"footer",fn:s(()=>[A("div",ce,[d(D,{class:"ml-22",type:"primary",loading:u.value,onClick:i[2]||(i[2]=p=>B(v.value))},{default:s(()=>[j(" \u63D0\u4EA4 ")]),_:1},8,["loading"]),d(D,{onClick:i[3]||(i[3]=p=>R("close"))},{default:s(()=>[j("\u5173\u95ED")]),_:1})])]),key:"0"}:void 0]),1032,["model-value","title"])}}}),ge=z(me,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/performanceEvaluation/projectReform/reformProjectList/components/rectifyDialog.vue"]]);export{ge as default};