(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c910d016"],{"0293":function(e,t,i){},"1f7c":function(e,t,i){},"3e14":function(e,t,i){"use strict";i("1f7c")},"5c63":function(e,t,i){e.exports=i.p+"img/txt.f739312b.png"},"7b96":function(e,t,i){"use strict";i.r(t);i("fb6a"),i("b0c0");var a=function(){var e=this,t=e._self._c;return t("a-form-model",{ref:"ruleForm",staticClass:"form-add",attrs:{model:e.form,rules:e.rules,labelCol:{span:24},wrapperCol:{span:24}}},[t("a-spin",{attrs:{spinning:e.spinning}},[e.detailInfo?t("div",{staticClass:"info"},[t("div",{staticClass:"item"},[t("h3",{staticClass:"title-h3"},[e._v("审核内容：")]),t("div",{staticClass:"cur-model audit-content"},[t("h4",[t("label",[e._v("说明文字：")]),t("span",[e._v(e._s(e.detailInfo.remark))])]),e.detailInfo.files&&e.detailInfo.files.length>0?[t("h4",[t("label",[e._v("图片文字：")])]),t("div",{staticClass:"img-group"},[e._l(e.detailInfo.files,(function(a,r){return["img"==e.isFileType(a.fileUrl)?t("div",{key:r},[t("viewer",{ref:"viewer",refInFor:!0,staticClass:"viewer",attrs:{images:e.detailInfo.files},on:{inited:function(t){return e.$viewer=t}}},[t("img",{attrs:{src:a.fileUrl}})])],1):e._e(),"pdf"==e.isFileType(a.fileUrl)?t("div",{key:r,on:{click:function(t){return e.viewerFile(a.fileUrl)}}},[t("img",{attrs:{src:i("b9de")}}),t("p",[e._v(e._s(a.fileUrl.slice(a.fileUrl.lastIndexOf("/")+1)))])]):e._e(),"xls"==e.isFileType(a.fileUrl)?t("div",{key:r,on:{click:function(t){return e.viewerFile(a.fileUrl)}}},[t("img",{attrs:{src:i("ffdb")}}),t("p",[e._v(e._s(a.fileUrl.slice(a.fileUrl.lastIndexOf("/")+1)))])]):e._e(),"doc"==e.isFileType(a.fileUrl)?t("div",{key:r,on:{click:function(t){return e.viewerFile(a.fileUrl)}}},[t("img",{attrs:{src:i("af4b")}}),t("p",[e._v(e._s(a.fileUrl.slice(a.fileUrl.lastIndexOf("/")+1)))])]):e._e(),"txt"==e.isFileType(a.fileUrl)?t("div",{key:r,on:{click:function(t){return e.viewerFile(a.fileUrl)}}},[t("img",{attrs:{src:i("5c63")}}),t("p",[e._v(e._s(a.fileUrl.slice(a.fileUrl.lastIndexOf("/")+1)))])]):e._e()]}))],2)]:e._e(),t("h4",[t("label",[e._v("疑点处理人：")]),t("span",[e._v(e._s(e.detailInfo.senderRoleName))])]),t("h4",[t("label",[e._v("水司名称：")]),t("span",[e._v(e._s(e.detailInfo.senderDeptName))])]),t("h4",[t("label",[e._v("提交时间：")]),t("span",[e._v(e._s(e.detailInfo.sendTime))])])],2)]),[t("h3",{staticClass:"title-h3"},[e._v("处理进度：")]),t("div",{staticClass:"item proces"},[t("componentProces",{attrs:{modelData:e.modelData}})],1)],t("div",{staticClass:"item"},[t("h3",{staticClass:"title-h3"},[e._v("当前预警等级：")]),t("div",{staticClass:"cur-model"},[t("p",[e._v("预警等级： "),3==e.modelData.nowGrade?t("a-tag",{staticStyle:{color:"red !important"},attrs:{color:"red"}},[e._v("红色")]):1==e.modelData.nowGrade?t("a-tag",{staticStyle:{color:"blue !important"},attrs:{color:"blue"}},[e._v("蓝色")]):t("a-tag",{staticStyle:{color:"orange !important"},attrs:{color:"orange"}},[e._v("黄色")])],1),t("p",[e._v("模型名称： "),t("span",{style:{color:e.getColor(e.modelData.nowGrade)}},[e._v(e._s(e.modelData.warnModel.name))])]),t("p",[e._v("触发条件： "),t("span",{style:{color:e.getColor(e.modelData.nowGrade)}},[e._v(e._s(e.modelData.warnModel.condi))])])])]),-1!=e.rolesC.indexOf(e.roleKey)||-1!=e.rolesA.indexOf(e.roleKey)?t("div",{staticClass:"item"},[t("h3",[e._v("升/降级预警等级："),e.form.grade?t("span",[e._v("您已选择"+e._s(e.modelData.nowGrade<e.form.grade?" [升级] ":" [降级] ")+"为 "),1==e.form.grade?[t("i",{staticStyle:{color:"#096dd9"}},[e._v("蓝色")])]:e._e(),2==e.form.grade?[t("i",{staticStyle:{color:"#fa8c16"}},[e._v("黄色")])]:e._e(),3==e.form.grade?[t("i",{staticStyle:{color:"#f5222d"}},[e._v("红色")])]:e._e(),e._v(" 预警")],2):e._e()]),t("div",{staticClass:"cur-model"},[t("a-form-model-item",{attrs:{prop:"grade"}},[t("a-select",{attrs:{placeholder:"请选择",allowClear:""},on:{change:e.chengeModelName},model:{value:e.form.grade,callback:function(t){e.$set(e.form,"grade",t)},expression:"form.grade"}},[e._l(e.warnModel,(function(i,a){return[t("a-select-option",{key:a,attrs:{value:i.grade,disabled:e.modelData.nowGrade==i.grade}},[e._v(e._s(e.modelData.nowGrade==i.grade?i.name+"（当前预警等级）":i.name))])]}))],2)],1)],1)]):t("div",{staticClass:"item"},[[t("h3",{staticClass:"title-h3"},[e._v("请审核：")]),t("a-form-model-item",{attrs:{prop:"status"}},[t("a-radio-group",{on:{change:e.changeStatus},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},[-1!=e.rolesD.indexOf(e.roleKey)?[t("a-radio",{attrs:{value:1}},[e._v("不通过")]),t("a-radio",{attrs:{value:4}},[e._v("通过")])]:e._e(),-1!=e.rolesC_sub.indexOf(e.roleKey)?[t("a-radio",{attrs:{value:6}},[e._v("不通过")]),t("a-radio",{attrs:{value:5}},[e._v("通过")])]:e._e(),-1!=e.rolesB.indexOf(e.roleKey)?[t("a-radio",{attrs:{value:9}},[e._v("不通过")]),t("a-radio",{attrs:{value:8}},[e._v("通过")])]:e._e()],2)],1)]],2),t("div",{staticClass:"cur-model"},[t("a-form-model-item",{attrs:{prop:"remark",label:"审核理由"}},[t("a-textarea",{attrs:{placeholder:"填写审核理由",rows:4},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),t("div",{staticClass:"item"},[t("h3",{staticClass:"title-h3"},[e._v("上传附件：")]),t("a-form-model-item",{attrs:{label:"支持上传格式 pdf、docx、xlsx、txt、jpg、jpeg、png，最多可上传9个附件"}},[t("a-upload",{attrs:{fileList:e.fileList,"list-type":"picture",maxCount:9,multiple:"",accept:".jpg,.jpeg,.png,.gif,.tif,.bmp,.webp,.pdf,.PDF,.docx,.doc,.xls,.xlsx,.txt",remove:function(t){return e.remove(t,"fileList")},"before-upload":function(t){return e.beforeUpload(t,"fileList")}},on:{preview:function(t){return e.filePreview(t.url)},change:function(t){return e.handleChange(t,"fileList")}}},[t("a-button",{attrs:{type:"primary"}},[t("a-icon",{attrs:{type:"upload"}}),e._v("上传")],1)],1)],1)],1)],2):e._e()])],1)},r=[],s=i("5530"),l=(i("c740"),i("a15b"),i("d81d"),i("a434"),i("d3b7"),i("159b"),i("b841")),n=i("3e83"),o=i("bb62"),d={props:["modelData"],components:{componentProces:o["default"]},data:function(){return{fileList:[],uploading:!1,detailInfo:null,form:{recordId:null,grade:void 0,remark:"",status:null,fileIds:""},rules:{remark:[{required:!0,message:"请填写审核理由",trigger:"change"}]},list:[],roleKey:"",spinning:!0,rolesA:["leader","supervise"],rolesB:["supervises"],rolesC:["operate"],rolesC_sub:["operates"],rolesD_Parent:["branch:super"],rolesD:["branch:audi"],rolesE:["branch:oper"],warnModel:[{grade:1,name:"蓝"},{grade:2,name:"黄"},{grade:3,name:"红"}]}},computed:{},watch:{},mounted:function(){this.roleKey=this.$store.state.user.roles[this.$store.state.user.roles.length-1].roleKey,-1==this.rolesB.indexOf(this.roleKey)&&-1==this.rolesC_sub.indexOf(this.roleKey)&&-1==this.rolesD.indexOf(this.roleKey)||(this.rules.status=[{required:!0,message:"请选择是否通过",trigger:"change"}])},created:function(){this.modelData.id&&(this.form.recordId=this.modelData.id,this.getModelList())},methods:{viewerFile:function(e){window.open(e,"_blank")},getModelList:function(){var e=this;2==this.modelData.pageType?Object(n["n"])({recordId:this.modelData.id,status:""}).then((function(t){200===t.code&&(e.spinning=!1,e.detailInfo=t.data)})):Object(n["fb"])({recordId:this.modelData.id,status:""}).then((function(t){200===t.code&&(e.spinning=!1,e.detailInfo=t.data)}))},chengeModelName:function(e){this.$emit("chengeGrade",e),e?delete this.rules.status:(this.form.grade=null,this.rules.status=[{required:!0,message:"请选择是否通过",trigger:"change"}])},changeStatus:function(e){this.$emit("changeAuditStatue",e.target.value)},getGrade:function(e){var t=this;this.detailInfo.chooseModels.forEach((function(i){e==i.id&&(t.form.grade=i.grade)}))},onSubmit:function(){var e=this;return new Promise((function(t,i){e.$refs.ruleForm.validate((function(a){if(!a)return i(),!1;-1==e.rolesC.indexOf(e.roleKey)&&-1==e.rolesA.indexOf(e.roleKey)||e.form.grade?(e.fileList.length>0&&(e.form.fileIds=e.fileList.map((function(e){return e.uid})).join(",")),e.form.grade&&e.form.grade!=e.modelData.nowGrade?2==e.modelData.pageType?Object(n["l"])({recordId:e.form.recordId,remark:e.form.remark,grade:e.form.grade,modelId:e.form.modelId}).then((function(i){e.$notification.success({message:"成功",description:(JSON.stringify(e.modelData),"提交成功")}),t()})).catch((function(t){e.$notification.error({message:"失败",description:t.msg}),i()})):Object(n["db"])({recordId:e.form.recordId,remark:e.form.remark,grade:e.form.grade,modelId:e.form.modelId}).then((function(i){e.$notification.success({message:"成功",description:(JSON.stringify(e.modelData),"提交成功")}),t()})).catch((function(t){e.$notification.error({message:"失败",description:t.msg}),i()})):2==e.modelData.pageType?Object(n["m"])(Object(s["a"])({},e.form)).then((function(i){e.$notification.success({message:"成功",description:(JSON.stringify(e.modelData),"提交成功")}),t()})).catch((function(t){e.$notification.error({message:"失败",description:t.msg}),i()})):Object(n["eb"])(Object(s["a"])({},e.form)).then((function(i){e.$notification.success({message:"成功",description:(JSON.stringify(e.modelData),"提交成功")}),t()})).catch((function(t){e.$notification.error({message:"失败",description:t.msg}),i()}))):e.$notification.warning({message:"提示",description:"您还未进行修改！"})}))}))},beforeUpload:function(e,t,i){var a=this;"fileList"==t&&(this.uploading=!0);var r=new FormData;return[e].forEach((function(e){r.append("file",e)})),Object(l["a"])(r).then((function(e){200==e.data.code&&a.fileList.push({uid:e.data.id,name:e.data.fileName,status:"done",url:e.data.url,thumbUrl:e.data.url})})).catch((function(e){})).finally((function(){"fileList"==t&&(a.uploading=!1)})),!1},handleChange:function(e,t,i){e.fileList;var a=e.file;if("removed"==a.status&&"fileList"==t){var r=this.fileList.findIndex((function(e){return e.uid===a.uid}));this.fileList.splice(r,1)}},remove:function(e,t){if("fileList"==t){var i=this.fileLis.findIndex((function(t){return t.uid===e.uid}));this.fileList.splice(i,1)}},filePreview:function(e){window.open(e,"_blank")}}},c=d,f=(i("c48a"),i("2877")),u=Object(f["a"])(c,a,r,!1,null,"d1e5ead0",null);t["default"]=u.exports},af4b:function(e,t,i){e.exports=i.p+"img/doc.1c249456.png"},b9de:function(e,t,i){e.exports=i.p+"img/pdf.bccb93b7.png"},bb62:function(e,t,i){"use strict";i.r(t);i("fb6a");var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ant-card"},[t("a-spin",{attrs:{spinning:e.spinning}},[e.list.length>0?t("div",{staticClass:"info"},[t("h2",[e._v("疑点工单进度跟踪")]),t("div",{staticClass:"progress"},e._l(e.list,(function(a,r){return t("div",{key:r,staticClass:"item",class:a.isEnd?"is-end":""},[t("h3",[e._v(e._s(a.statusName)+" "),t("span",[e._v(e._s(a.sendTime))])]),t("h4",[e._v("水司名称："+e._s(a.senderDeptName))]),t("h4",[e._v("操作人："+e._s(a.senderRoleName))]),1==a.status||6==a.status||9==a.status?t("h4",[e._v("审核结果： "),t("span",{staticStyle:{color:"#F3130E"}},[e._v("不通过（退回疑点工单）")])]):e._e(),a.level?t("h4",[e._v("状态："+e._s(1==a.level?"降级工单":"升级工单"))]):e._e(),3==a.status?[t("h4",{staticStyle:{"margin-top":"8px"}},[e._v("处理内容：")]),t("h5",[e._v(e._s(a.remark?a.remark:"无"))]),t("h4",{staticStyle:{"margin-top":"8px"}},[e._v("实际情况及原因分析：")]),t("h5",[e._v(e._s(a.actualSituation?a.actualSituation:"无"))]),t("h4",{staticStyle:{"margin-top":"8px"}},[e._v("情况描述：")]),0==a.situation?t("h5",[e._v("正常")]):1==a.situation?t("h5",[e._v("异常")]):t("h5",[e._v("暂无")])]:[t("h4",{staticStyle:{"margin-top":"8px"}},[e._v("审核理由：")]),t("h5",[e._v(e._s(a.remark?a.remark:"无"))])],a.files&&a.files.length>0?[t("h4",[e._v("图片说明：")]),t("div",{staticClass:"img-group"},[e._l(a.files,(function(a,r){return["img"==e.isFileType(a.fileUrl)?t("div",{key:r},[t("viewer",{ref:"viewer",refInFor:!0,staticClass:"viewer",attrs:{images:a.files},on:{inited:function(t){return e.$viewer=t}}},[t("img",{attrs:{src:a.fileUrl}})])],1):e._e(),"pdf"==e.isFileType(a.fileUrl)?t("div",{key:r,on:{click:function(t){return e.viewerFile(a.fileUrl)}}},[t("img",{attrs:{src:i("b9de")}}),t("p",[e._v(e._s(a.fileUrl.slice(a.fileUrl.lastIndexOf("/")+1)))])]):e._e(),"xls"==e.isFileType(a.fileUrl)?t("div",{key:r,on:{click:function(t){return e.viewerFile(a.fileUrl)}}},[t("img",{attrs:{src:i("ffdb")}}),t("p",[e._v(e._s(a.fileUrl.slice(a.fileUrl.lastIndexOf("/")+1)))])]):e._e(),"doc"==e.isFileType(a.fileUrl)?t("div",{key:r,on:{click:function(t){return e.viewerFile(a.fileUrl)}}},[t("img",{attrs:{src:i("af4b")}}),t("p",[e._v(e._s(a.fileUrl.slice(a.fileUrl.lastIndexOf("/")+1)))])]):e._e(),"txt"==e.isFileType(a.fileUrl)?t("div",{key:r,on:{click:function(t){return e.viewerFile(a.fileUrl)}}},[t("img",{attrs:{src:i("5c63")}}),t("p",[e._v(e._s(a.fileUrl.slice(a.fileUrl.lastIndexOf("/")+1)))])]):e._e()]}))],2)]:e._e()],2)})),0)]):t("div",[t("p",{staticStyle:{padding:"10px 22px"}},[e._v("暂无处理进度！")])])])],1)},r=[],s=i("3e83"),l={props:["modelData"],data:function(){return{list:[],spinning:!0}},computed:{},watch:{},created:function(){(this.modelData.id||this.modelData.recordId)&&this.getDetil()},methods:{viewerFile:function(e){window.open(e,"_blank")},getDetil:function(e){var t=this;2==this.modelData.pageType?Object(s["o"])({recordId:this.modelData.id?this.modelData.id:this.modelData.recordId}).then((function(e){200===e.code&&(t.spinning=!1,t.list=e.data)})):Object(s["Z"])({recordId:this.modelData.id?this.modelData.id:this.modelData.recordId}).then((function(e){200===e.code&&(t.spinning=!1,t.list=e.data)}))},changeAudit:function(e){this.$emit("changeAudit",e.target.value)}}},n=l,o=(i("3e14"),i("2877")),d=Object(o["a"])(n,a,r,!1,null,"0274f792",null);t["default"]=d.exports},c48a:function(e,t,i){"use strict";i("0293")},ffdb:function(e,t,i){e.exports=i.p+"img/xls.2355d70e.png"}}]);