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

  1. /* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as z,h as B,p as j}from"./problem-feedback.02f1ee5b.js";import{d as P,r as V,l as G,C as I,U as J,V as L,W as A,X as M,Y as X,Z as K,$ as Q,c as m,e as l,w as e,g as k,K as R,o as r,b as n,t as u,F as S,v as D,z as W,Q as _,u as Y,G as Z,M as w,a0 as H}from"./index.db1e0641.js";import{f as ee,u as le}from"./uploadAction.98a2f3db.js";const te={class:"problem-feedback-fetail"},ae={key:0},oe={key:1},se={key:1,style:{color:"#999999","text-align":"center",padding:"20px","font-size":"12px"}},ne=["onClick"],ue={style:{color:"#0967FD"}},pe={key:1},re=n("p",{style:{color:"#999999","font-size":"12px","margin-left":"2px"}},"\u652F\u6301pdf\u4E0A\u4F20",-1),ie={style:{padding:"16px",display:"flex"}},de={key:3,class:"btn"},me=P({name:"problemFeedbackDetail"}),Ve=Object.assign(me,{setup(ce){const f=Y(),v=Z(),a=V({}),O=async()=>{const t=await z(f.query.id);a.value={...t.data,modelReply:t.data.modelReply?JSON.parse(t.data.modelReply):[]}},d=V({}),q=async()=>{var t,o,s,c;if(f.query.type==="1"){const i=new FormData;i.append("id",f.query.id),i.append("handleResult",((t=d.value)==null?void 0:t.handleResult)||""),i.append("handleResultFile",((o=d.value.handleResultFile)==null?void 0:o.length)&&JSON.stringify(ee(d.value.handleResultFile))||""),await B(i),w("\u63D0\u4EA4\u6210\u529F"),v.go(-1)}else if(f.query.type==="2"){const i=new FormData;i.append("id",f.query.id),i.append("processState",((s=d.value)==null?void 0:s.processState)||""),i.append("processOpinion",((c=d.value)==null?void 0:c.processOpinion)||""),await j(i),w("\u63D0\u4EA4\u6210\u529F"),v.go(-1)}},C=async t=>{t.status="uploading",t.message="\u4E0A\u4F20\u4E2D...";const o=new FormData;o.append("file",t.file);const s=await le(o);t.status="success",t.message="\u4E0A\u4F20\u6210\u529F",t.response=s.data},U=t=>{const o=t.fileName.split("."),s=o==null?void 0:o[o.length-1];["pdf","png","jpg","jpeg"].includes(s)?v.push(`/fileView?id=${t.fileId}`):H("\u6682\u4E0D\u652F\u6301\u8BE5\u683C\u5F0F\u9884\u89C8")},F=t=>{v.push({name:"problemFeedback",query:{tab:t}})};return G(()=>{O()}),(t,o)=>{const s=I,c=J,i=L,g=A,$=M,N=X,x=K,E=Q;return r(),m("div",te,[l(c,{title:"\u5E94\u7528\u4FE1\u606F"},{default:e(()=>[l(s,{title:"\u5E94\u7528\u540D\u79F0"},{default:e(()=>[n("span",null,u(a.value.applicationName),1)]),_:1}),l(s,{title:"\u9884\u8B66\u65F6\u95F4"},{default:e(()=>[n("span",null,u(a.value.warnTime),1)]),_:1}),l(s,{title:"\u6240\u5C5E\u9879\u76EE"},{default:e(()=>[n("span",null,u(a.value.projectName),1)]),_:1}),l(s,{title:"\u6307\u6807\u540D\u79F0"},{default:e(()=>[n("span",null,u(a.value.normName),1)]),_:1}),l(s,{title:"\u5F53\u524D\u6307\u6807\u503C"},{default:e(()=>[n("span",null,u(a.value.normValue),1)]),_:1}),l(s,{title:"\u76EE\u6807\u6307\u6807\u503C"},{default:e(()=>[n("span",null,u(a.value.targetValue),1)]),_:1})]),_:1}),l(c,{title:"\u5DE5\u5355\u4FE1\u606F"},{default:e(()=>{var p,h;return[(p=a.value)!=null&&p.modelReply?(r(!0),m(S,{key:0},D((h=a.value)==null?void 0:h.modelReply,(y,T)=>(r(),k(s,{key:T,title:y.columnName},{default:e(()=>{var b;return[["TEXT","SINGLE"].includes(y.modelType)?(r(),m("span",ae,u(y.value),1)):(r(),m("span",oe,u((b=y.value)==null?void 0:b.join("\u3001")),1))]}),_:2},1032,["title"]))),128)):(r(),m("p",se,"\u6682\u65E0\u6570\u636E"))]}),_:1}),a.value.processState!=="PROCESS_ON"?(r(),k(c,{key:0,title:"\u5DE5\u5355\u5904\u7406\u7ED3\u679C"},{default:e(()=>[l(s,{title:"\u5904\u7406\u7ED3\u679C"},{default:e(()=>[n("span",null,u(a.value.handleResult),1)]),_:1}),l(s,{title:"\u9644\u4EF6"},{default:e(()=>[a.value.handleResultFile&&JSON.parse(a.value.handleResultFile).length?(r(!0),m(S,{key:0},D(JSON.parse(a.value.handleResultFile),(p,h)=>(r(),m("p",{key:h},[n("a",{onClick:y=>U(p)},[n("span",ue,u(p.fileName),1)],8,ne)]))),128)):(r(),m("span",pe,"-"))]),_:1}),l(s,{title:"\u5904\u7406\u4EBA"},{default:e(()=>[n("span",null,u(a.value.handleUserName),1)]),_:1}),l(s,{title:"\u5904\u7406\u4EBA\u8054\u7CFB\u65B9\u5F0F"},{default:e(()=>[n("span",null,u(a.value.handleUserPhone),1)]),_:1})]),_:1})):R("",!0),a.value.processState!=="ON_AUDIT"&&a.value.processState!=="PROCESS_ON"?(r(),k(c,{key:1,title:"\u5DE5\u5355\u5BA1\u6838\u7ED3\u679C"},{default:e(()=>[l(s,{title:"\u5DE5\u5355\u72B6\u6001"},{default:e(()=>[n("span",{style:W(`${a.value.processState==="END"?"color:#4ECB74":"color:#F5222D"}`)},u(a.value.processState==="END"?"\u901A\u8FC7":"\u672A\u901A\u8FC7"),5)]),_:1}),l(s,{title:"\u5BA1\u6838\u4EBA"},{default:e(()=>[n("span",null,u(a.value.processUserName),1)]),_:1}),l(s,{title:"\u5BA1\u6838\u4EBA\u8054\u7CFB\u65B9\u5F0F"},{default:e(()=>[n("span",null,u(a.value.processUserPhone),1)]),_:1}),l(s,{title:"\u5907\u6CE8"},{default:e(()=>[n("span",null,u(a.value.processOpinion),1)]),_:1})]),_:1})):R("",!0),["1","2"].includes(t.$route.query.type)?(r(),k(c,{key:2,title:t.$route.query.type==="1"?"\u5DE5\u5355\u5904\u7406\u7ED3\u679C":t.$route.query.type==="2"?"\u5DE5\u5355\u5BA1\u6838\u7ED3\u679C":""},{default:e(()=>[l(E,{class:"form",onSubmit:q},{default:e(()=>[t.$route.query.type==="1"?(r(),m(S,{key:0},[l(i,{modelValue:d.value.handleResult,"onUpdate:modelValue":o[0]||(o[0]=p=>d.value.handleResult=p),rows:"2",required:"",autosize:"",label:"\u5904\u7406\u7ED3\u679C",type:"textarea",placeholder:"\u8BF7\u8F93\u5165",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},null,8,["modelValue"]),l(i,{name:"uploader",label:"\u9644\u4EF6"},{input:e(()=>[l($,{modelValue:d.value.handleResultFile,"onUpdate:modelValue":o[1]||(o[1]=p=>d.value.handleResultFile=p),"after-read":C,accept:".pdf"},{default:e(()=>[l(g,{icon:"plus",type:"primary",plain:"",size:"small"},{default:e(()=>[_("\u4E0A\u4F20\u6587\u4EF6")]),_:1})]),_:1},8,["modelValue"]),re]),_:1})],64)):(r(),m(S,{key:1},[l(i,{name:"radio",label:"\u5BA1\u6838\u7ED3\u679C",required:"",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},{input:e(()=>[l(x,{modelValue:d.value.processState,"onUpdate:modelValue":o[2]||(o[2]=p=>d.value.processState=p),direction:"horizontal"},{default:e(()=>[l(N,{name:"END"},{default:e(()=>[_("\u901A\u8FC7")]),_:1}),l(N,{name:"PROCESS_FAIL"},{default:e(()=>[_("\u672A\u901A\u8FC7")]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(i,{modelValue:d.value.processOpinion,"onUpdate:modelValue":o[3]||(o[3]=p=>d.value.processOpinion=p),rows:"2",autosize:"",label:"\u5907\u6CE8",type:"textarea",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])],64)),n("div",ie,[l(g,{block:"",style:{"margin-right":"12px"},round:"",onClick:o[4]||(o[4]=p=>F(1))},{default:e(()=>[_(" \u8FD4\u56DE ")]),_:1}),l(g,{block:"",type:"primary","native-type":"submit",round:""},{default:e(()=>[_(" \u63D0\u4EA4 ")]),_:1})])]),_:1})]),_:1},8,["title"])):R("",!0),t.$route.query.type==="3"?(r(),m("p",de,[l(g,{block:"",round:"",onClick:o[5]||(o[5]=p=>F(2))},{default:e(()=>[_(" \u8FD4\u56DE ")]),_:1})])):R("",!0)])}}});export{Ve as default};