yxk_pc_mdh/gyhl/static/js/215.e57158e0501f5a34ab49.js

1 line
11 KiB
JavaScript
Raw Normal View History

2025-08-28 15:26:35 +08:00
webpackJsonp([215],{"MHL+":function(t,e){},fvEe:function(t,e){},oeHx:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("d7EF"),l=a.n(i),r=a("//Fk"),o=a.n(r),s=a("woOf"),n=a.n(s),c=a("Dd8w"),m=a.n(c),u=a("NYxO"),d=a("3MlD"),p=a("bzuE"),f=a("Dod7"),h={components:{DialogChooseSingleUser:d.a},name:"task_detail",data:function(){return{uploadUrl:f.a.uploadUrl,ftpPrefix:f.a.ftpPrefix,formData:{targetList:[],taglocationappearanceImage:[],deletetag_appearanceImage:[],initFileList:[],taskType:null,heldPerson:null,ccNames:""},loading:!1,initFileList:[],replyList:[],dealList:[],typeList:[],levelList:[],dialogImageUrl:"",dialogVisible:!1,chooseUserVisible:!1,type:null,btnHandleShow:!1,btnCompleteShow:!1,btnReturnShow:!1,btnReplyShow:!1,redirect:"",config:p.a}},mounted:function(){this.initialize(),this.$route.query.type&&(this.type=this.$route.query.type),this.$route.query.redirect&&(this.redirect=this.$route.query.redirect),this.$route.query.id&&(this.formData.id=this.$route.query.id,this.getDetail())},methods:m()({},Object(u.d)({removeTagNav:"tagNav/removeTagNav"}),{getDetail:function(){var t=this;this.loading=!0,this.$api.taskMainAPI.detail(this.formData.id).then(function(e){if(0===e.code){if(t.formData=n()({},t.formData,e.taskMain),e.ccIdList){var a="";e.ccIdList.forEach(function(t){a+=t.name+","}),a=a.substring(0,a.length-1),t.formData.ccNames=a}if(e.heldPerson&&(t.formData.heldPerson=parseInt(e.heldPerson.employeeId),t.formData.heldPersonName=e.heldPerson.userName),56===t.formData.statusId?(t.btnHandleShow=!0,t.btnReturnShow=!0,t.btnReplyShow=!0):57===t.formData.statusId?(t.btnCompleteShow=!0,t.btnReplyShow=!0):t.formData.statusId,371===t.type&&(t.btnHandleShow=!1,t.btnReturnShow=!1,t.btnReplyShow=!1,t.btnCompleteShow=!1),e.initFileList&&e.initFileList.length>0){t.initFileList=[];for(var i=0;i<e.initFileList.length;i++){var l={name:e.initFileList[i].id,url:t.ftpPrefix+e.initFileList[i].filePath};t.initFileList.push(l)}}e.dealList&&e.dealList.length>0&&(t.dealList=e.dealList),e.replyList&&e.replyList.length>0&&(t.replyList=e.replyList),t.loading=!1}}).catch(function(e){t.loading=!1})},initialize:function(){var t=this;o.a.all([this.$api.dictAPI.getDictsByType("task_type"),this.$api.dictAPI.getDictsByType("task_level")]).then(function(e){var a=l()(e,2),i=a[0],r=a[1];0===i.code&&(t.typeList=i.datas),0===r.code&&(t.levelList=r.datas)}).catch(function(t){console.log(t)})},back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),375==this.$route.query.type?this.$router.push({path:"/task/untreated",quey:{t:Date.now()}}):378==this.$route.query.type?this.$router.push({path:"/task/unacceptance",quey:{t:Date.now()}}):382==this.$route.query.type?this.$router.push({path:"/task/acceptance",quey:{t:Date.now()}}):this.$router.go(-1)},save_back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.redirect?this.$router.push({path:this.redirect,quey:{t:Date.now()}}):this.$router.push({path:"/task/index",quey:{t:Date.now()}})},getUser:function(t){var e=this,a=t.id,i=this.formData.id;this.$confirm("确认将任务转派给【"+t.name+"】吗?","提示",{type:"warning"}).then(function(){e.$api.taskMainAPI.reventTurnToSend({taskId:i,userId:a}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.save_back()):e.$message({message:t.msg?t.msg:"转派失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"转派失败,请重试",type:"error"})})})},reply:function(){this.$router.push({path:"/task/reply",query:{id:this.formData.id,redirect:this.$route.path}})},send:function(){this.chooseUserVisible=!0},handle:function(){this.$router.push({path:"/task/handle",query:{id:this.formData.id,t:Date.now(),redirect:this.$route.path}})},check:function(){this.$router.push({path:"/task/check",query:{id:this.formData.id,t:Date.now(),redirect:this.$route.path}})},replyDetail:function(t){},dealDetail:function(t){this.$router.push({path:"/task/check_detail",query:{id:t.id,t:Date.now()}})},handlePictureCardPreview:function(t){this.di