-
- {{item.original_name}}
-
- 预览
-
-
- 下载
-
+
+
+ {{item.original_name}}
+
+ 预览
+
+
+ 下载
+
@@ -239,25 +243,27 @@
-
-
-
-
-
-
-
- {{scope.row.mission_group?(scope.row.mission_group.name?scope.row.mission_group.name:''):''}}
- {{scope.row.mission_group?(scope.row.mission_group.type==1?'组长'+':':':'):''}}
- {{scope.row.accept_admin?scope.row.accept_admin.name:''}}
-
-
-
转办来源:{{scope.row.from_user?scope.row.from_user.name:''}}
- {{scope.row.admin_type==1?'责任人:':''}}
- {{scope.row.admin_type==2?'承办人:':''}}
- {{scope.row.accept_admin?scope.row.accept_admin.name:''}}
-
-
-
+
+
+
+
+
+
+
+
转办来源:{{scope.row.from_user?scope.row.from_user.name:''}}
+
+ {{scope.row.mission_group?(scope.row.mission_group.name?scope.row.mission_group.name:''):''}}
+ {{scope.row.mission_group?(scope.row.mission_group.type==1?'组长'+':':':'):''}}
+ {{scope.row.accept_admin?scope.row.accept_admin.name:''}}
+
+
+
转办来源:{{scope.row.from_user?scope.row.from_user.name:''}}
+ {{scope.row.admin_type==1?'责任人:':''}}
+ {{scope.row.admin_type==2?'承办人:':''}}
+ {{scope.row.accept_admin?scope.row.accept_admin.name:''}}
+
+
+
@@ -296,15 +302,15 @@
-
- {{item.original_name}}
-
- 预览
-
-
- 下载
-
-
+
+ {{item.original_name}}
+
+ 预览
+
+
+ 下载
+
+
@@ -323,7 +329,7 @@
-
@@ -380,8 +386,8 @@
-
-
+
+
@@ -405,7 +411,7 @@
import state from "@/store/modules/user.js"
import viewFile from '@/components/viewFile/viewFile.vue'
import showLogs from '../components/showLogs.vue'
- import addBackPlan from '../components/addBackPlan.vue'
+ import addBackPlan from '../components/addBackPlan.vue'
import {
deepCopy
} from '../../../../utils';
@@ -485,8 +491,8 @@
distributeTable: [{
label: '执行人',
prop: 'accept_admin_name',
- width: 140,
- align:'left'
+ width: 140,
+ align: 'left'
}, {
label: '执行状态',
prop: 'carry_status',
@@ -503,23 +509,23 @@
prop: 'end_date',
}, {
label: '进展状态',
- prop: 'keep_status',
+ prop: 'keep_status',
width: 80
}, {
label: '当前进展概述',
- prop: 'ing_introduce',
- align:'left'
+ prop: 'ing_introduce',
+ align: 'left'
}, {
label: '完成概述',
- prop: 'end_introduce',
- align:'left'
+ prop: 'end_introduce',
+ align: 'left'
}, {
label: '成果资料',
prop: 'file_ids',
}, {
label: '审核意见',
- prop: 'check_contents',
- align:'left'
+ prop: 'check_contents',
+ align: 'left'
}],
}
@@ -530,11 +536,11 @@
this.department_id = state.state.department_id
this.getUnitTypeList()
},
- methods: {
- toshowFile(url) {
- console.log("url", url)
- this.$refs.viewFile.url = url
- this.$refs.viewFile.diaShow = true
+ methods: {
+ toshowFile(url) {
+ console.log("url", url)
+ this.$refs.viewFile.url = url
+ this.$refs.viewFile.diaShow = true
},
startLoad(row, type) {
console.log("row", row)
@@ -547,7 +553,7 @@
reloadList() {
this.$emit("refresh")
},
- // 提交完 执行状态之后
+ // 提交完 执行状态之后 sendid是转办返回生成的id
carryTypeWhat(e) {
console.log("carryTypeWhat", e)
@@ -555,7 +561,8 @@
//自己执行
// this.openMyMission()
} else if (e == 'carry_type1') {
- // 任务分解 初始责任人直接编辑选择参与对象
+ // 任务分解 初始责任人直接编辑选择参与对象
+
// 参与对象任务分解,新建任务 且责任人为他自己
if (this.showform.mission_distribute.length > 1) {
this.editorUnit('pid')
@@ -619,7 +626,7 @@
accept_department_ids: res?.accept_department_ids,
mission_groups: res?.groups,
- }
+ }
// 我的执行
let md = []
res.mission_distribute.map(item => {
@@ -634,7 +641,7 @@
}
})
this.my_mission_distribute = md
- console.log(this.my_mission_distribute)
+ console.log(this.my_mission_distribute)
this.pictureList = []
for (var f of res.files) {
this.pictureList.push({
diff --git a/src/views/task/list/components/openLoad.vue b/src/views/task/list/components/openLoad.vue
index 8eaec29..adf8cb8 100644
--- a/src/views/task/list/components/openLoad.vue
+++ b/src/views/task/list/components/openLoad.vue
@@ -7,8 +7,9 @@
*执行方式:
-
-
+
+
@@ -305,10 +306,18 @@
if(!this.formObj.end_date || this.isMoreThanOrEqualToToday(this.formObj.end_date,this.unitEndDate)){
this.$Message.warning('预计完成时间不能为空或晚于任务完成时间')
return
- }
- if (this.type == 'add') {
- this.formObj.carry_status = 1
- this.formObj.keep_status = 0
+ }
+
+
+ if (this.type == 'add') {
+ // 如果是任务转办 就完成 责任人还是原样
+ if(this.formObj.carry_type===2 && this.formObj.admin_type!=1){
+ this.formObj.keep_status = 2
+ this.formObj.carry_status = 2
+ }else{
+ this.formObj.carry_status = 1
+ this.formObj.keep_status = 0
+ }
}
if (this.type == 'editor') {
if(!this.formObj.finish_status){
@@ -320,7 +329,9 @@
if (this.type == 'check') {
this.formObj.keep_status = this.check_status
this.formObj.carry_status = this.check_status == 2 ? 2 : 1
- }
+ }
+
+
let _files = []
if (this.fileList.length > 0) {
for (var h of this.fileList) {
@@ -347,7 +358,8 @@
this.$emit('refresh', 'carry_type0')
} else if (this.formObj.carry_type == 1) {
this.$emit('refresh', 'carry_type1')
- } else if (this.formObj.carry_type == 2) {
+ } else if (this.formObj.carry_type == 2) {
+ // 任务转办
this.$emit('refresh', 'carry_type2')
}
}