Browse Source

任务管理 2022-10-13 sxm

master
[li_she] 4 years ago
parent
commit
265fa36ac3
  1. 26
      src/views/modules/taskmanage/alltasklist.vue
  2. 45
      src/views/modules/taskmanage/mysendtasklist.vue
  3. 43
      src/views/modules/taskmanage/mytasklist.vue
  4. 21
      src/views/modules/taskmanage/task-file-upload-list.vue
  5. 60
      src/views/modules/taskmanage/tasklist.vue

26
src/views/modules/taskmanage/alltasklist.vue

@ -27,6 +27,13 @@
<el-form-item label="责任人"> <el-form-item label="责任人">
<el-input style="width: 120px" v-model="dataForm.responsiblePerson" clearable></el-input> <el-input style="width: 120px" v-model="dataForm.responsiblePerson" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="最终状态">
<el-select v-model="dataForm.finalStatus" style="width: 120px">
<el-option label="未完成" value="未完成"></el-option>
<el-option label="已完成" value="已完成"></el-option>
<el-option label="全部" value=""></el-option>
</el-select>
</el-form-item>
<el-form-item label="发起日期"> <el-form-item label="发起日期">
<el-date-picker style="width: 120px" v-model="dataForm.startDate" <el-date-picker style="width: 120px" v-model="dataForm.startDate"
value-format='yyyy-MM-dd 00:00:00' value-format='yyyy-MM-dd 00:00:00'
@ -45,12 +52,14 @@
<el-form-item label="客户"> <el-form-item label="客户">
<el-input style="width: 120px" v-model="dataForm.customer" clearable></el-input> <el-input style="width: 120px" v-model="dataForm.customer" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目">
<el-input style="width: 120px" v-model="dataForm.project" clearable></el-input>
</el-form-item>
<el-form-item label="状态"> <el-form-item label="状态">
<el-select v-model="dataForm.status" style="width: 120px"> <el-select v-model="dataForm.status" style="width: 120px">
<el-option label="全部" value=""></el-option>
<el-option label="未受理" value="未受理"></el-option> <el-option label="未受理" value="未受理"></el-option>
<el-option label="已受理" value="已受理"></el-option> <el-option label="已受理" value="已受理"></el-option>
<el-option label="已结束" value="已结束"></el-option>
<el-option label="全部" value=""></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="要求完成日期"> <el-form-item label="要求完成日期">
@ -205,8 +214,8 @@
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
columnProp: "taskHeader",
columnLabel: "任务主题",
columnProp: "project",
columnLabel: "项目",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -223,8 +232,8 @@
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
columnProp: "project",
columnLabel: "项目",
columnProp: "taskHeader",
columnLabel: "任务主题",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -238,6 +247,7 @@
columnType: null, columnType: null,
align: null align: null
}, },
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
@ -443,7 +453,7 @@
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.height = window.innerHeight - 250;
this.height = window.innerHeight - 200;
}) })
}, },
methods: { methods: {
@ -484,7 +494,7 @@
let dto = { let dto = {
fileTypeCode: 'TASK', fileTypeCode: 'TASK',
orderRef2:row.id, orderRef2:row.id,
orderRef1:row.taskId,
orderRef3:row.taskId,
} }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.taskFileList.init(dto) this.$refs.taskFileList.init(dto)

45
src/views/modules/taskmanage/mysendtasklist.vue

@ -27,15 +27,11 @@
<el-form-item label="责任人"> <el-form-item label="责任人">
<el-input style="width: 120px" v-model="dataForm.responsiblePerson" clearable></el-input> <el-input style="width: 120px" v-model="dataForm.responsiblePerson" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="客户">
<el-input style="width: 120px" v-model="dataForm.customer" clearable></el-input>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="dataForm.status" style="width: 120px">
<el-form-item label="最终状态">
<el-select v-model="dataForm.finalStatus" style="width: 120px">
<el-option label="未完成" value="未完成"></el-option>
<el-option label="已完成" value="已完成"></el-option>
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="未受理" value="未受理"></el-option>
<el-option label="已受理" value="已受理"></el-option>
<el-option label="已结束" value="已结束"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="发起日期"> <el-form-item label="发起日期">
@ -49,6 +45,23 @@
format='yyyy-MM-dd' format='yyyy-MM-dd'
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="margin-top: -5px" :span="24">
<el-form-item label="客户">
<el-input style="width: 120px" v-model="dataForm.customer" clearable></el-input>
</el-form-item>
<el-form-item label="项目">
<el-input style="width: 120px" v-model="dataForm.project" clearable></el-input>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="dataForm.status" style="width: 120px">
<el-option label="未受理" value="未受理"></el-option>
<el-option label="已受理" value="已受理"></el-option>
<el-option label="全部" value=""></el-option>
</el-select>
</el-form-item>
<el-form-item label="要求完成日期"> <el-form-item label="要求完成日期">
<el-date-picker style="width: 120px" v-model="dataForm.finishStartDate" <el-date-picker style="width: 120px" v-model="dataForm.finishStartDate"
value-format='yyyy-MM-dd 00:00:00' value-format='yyyy-MM-dd 00:00:00'
@ -101,7 +114,7 @@
<el-link type="text" size="small" @click="addOrUpdateHandle(scope.row.taskId)">修改 |</el-link> <el-link type="text" size="small" @click="addOrUpdateHandle(scope.row.taskId)">修改 |</el-link>
<el-link type="text" size="small" @click="updateStatusDialog(scope.row)">更改最终状态 |</el-link> <el-link type="text" size="small" @click="updateStatusDialog(scope.row)">更改最终状态 |</el-link>
<el-link type="text" size="small" @click="chatHistoryDialog(scope.row.id)">沟通 |</el-link> <el-link type="text" size="small" @click="chatHistoryDialog(scope.row.id)">沟通 |</el-link>
<el-link type="text" size="small" @click="annex(scope.row.taskId)">附件 |</el-link>
<el-link type="text" size="small" @click="annex(scope.row)">附件 |</el-link>
<!-- <el-link type="text" size="small" @click="annex(scope.row.id)"> 沟通附件</el-link>--> <!-- <el-link type="text" size="small" @click="annex(scope.row.id)"> 沟通附件</el-link>-->
<el-link type="text" size="small" <el-link type="text" size="small"
@click="deleteHandle(scope.row.id)">删除 @click="deleteHandle(scope.row.id)">删除
@ -227,8 +240,8 @@
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
columnProp: "taskHeader",
columnLabel: "任务主题",
columnProp: "project",
columnLabel: "项目",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -245,8 +258,8 @@
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
columnProp: "project",
columnLabel: "项目",
columnProp: "taskHeader",
columnLabel: "任务主题",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -260,6 +273,7 @@
columnType: null, columnType: null,
align: null align: null
}, },
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
@ -511,11 +525,12 @@
}) })
}, },
// //
annex(id) {
annex(row) {
this.taskFileVisible = true this.taskFileVisible = true
let dto = { let dto = {
fileTypeCode: 'TASK', fileTypeCode: 'TASK',
orderRef3:id
orderRef3:row.taskId,
orderRef2:row.id
} }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.taskFileList.init(dto) this.$refs.taskFileList.init(dto)

43
src/views/modules/taskmanage/mytasklist.vue

@ -19,18 +19,14 @@
<el-form :inline="true" label-position="top" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" label-position="top" :model="dataForm" @keyup.enter.native="getDataList()">
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="责任部门">
<el-input style="width: 120px" v-model="dataForm.department" clearable></el-input>
</el-form-item>
<el-form-item label="客户"> <el-form-item label="客户">
<el-input style="width: 120px" v-model="dataForm.customer" clearable></el-input> <el-input style="width: 120px" v-model="dataForm.customer" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="状态">
<el-select v-model="dataForm.status" style="width: 120px">
<el-form-item label="最终状态">
<el-select v-model="dataForm.finalStatus" style="width: 120px">
<el-option label="未完成" value="未完成"></el-option>
<el-option label="已完成" value="已完成"></el-option>
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="未受理" value="未受理"></el-option>
<el-option label="已受理" value="已受理"></el-option>
<el-option label="已结束" value="已结束"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="发起日期"> <el-form-item label="发起日期">
@ -44,6 +40,21 @@
format='yyyy-MM-dd' format='yyyy-MM-dd'
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="margin-top: -5px" :span="24">
<el-form-item label="项目">
<el-input style="width: 120px" v-model="dataForm.project" clearable></el-input>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="dataForm.status" style="width: 120px">
<el-option label="未受理" value="未受理"></el-option>
<el-option label="已受理" value="已受理"></el-option>
<el-option label="全部" value=""></el-option>
</el-select>
</el-form-item>
<el-form-item label="要求完成日期"> <el-form-item label="要求完成日期">
<el-date-picker style="width: 120px" v-model="dataForm.finishStartDate" <el-date-picker style="width: 120px" v-model="dataForm.finishStartDate"
value-format='yyyy-MM-dd 00:00:00' value-format='yyyy-MM-dd 00:00:00'
@ -94,7 +105,7 @@
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link type="text" size="small" @click="chatHistoryDialog(scope.row.id)">沟通 |</el-link> <el-link type="text" size="small" @click="chatHistoryDialog(scope.row.id)">沟通 |</el-link>
<el-link type="text" size="small" @click="annex(scope.row.taskId)">附件</el-link>
<el-link type="text" size="small" @click="annex(scope.row)">附件</el-link>
<!-- <el-link type="text" size="small" @click="annex(scope.row.id)"> 沟通附件</el-link>--> <!-- <el-link type="text" size="small" @click="annex(scope.row.id)"> 沟通附件</el-link>-->
</template> </template>
</el-table-column> </el-table-column>
@ -214,8 +225,8 @@
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
columnProp: "taskHeader",
columnLabel: "任务主题",
columnProp: "project",
columnLabel: "项目",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -232,8 +243,8 @@
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
columnProp: "project",
columnLabel: "项目",
columnProp: "taskHeader",
columnLabel: "任务主题",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -247,6 +258,7 @@
columnType: null, columnType: null,
align: null align: null
}, },
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
@ -496,11 +508,12 @@
}) })
}, },
// //
annex(id) {
annex(row) {
this.taskFileVisible = true this.taskFileVisible = true
let dto = { let dto = {
fileTypeCode: 'TASK', fileTypeCode: 'TASK',
orderRef2:id
orderRef2:row.id,
orderRef3:row.taskId
} }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.taskFileList.init(dto) this.$refs.taskFileList.init(dto)

21
src/views/modules/taskmanage/task-file-upload-list.vue

@ -80,6 +80,21 @@
height: 200, height: 200,
// //
columnList: [ columnList: [
{
columnProp: "businessType",
columnLabel: "附件类型",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 80,
format: null,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null
},
{ {
columnProp: "fileName", columnProp: "fileName",
columnLabel: "文件名", columnLabel: "文件名",
@ -163,9 +178,9 @@
// //
let dto = { let dto = {
id: childValue.id, id: childValue.id,
orderRef1: this.dataForm.orderRef2,
orderRef2: this.dataForm.orderRef2,
orderRef3: this.dataForm.orderRef2,
orderRef1: this.dataForm.orderRef3,
orderRef2: this.dataForm.orderRef3,
orderRef3: this.dataForm.orderRef3,
fileTypeCode: this.dataForm.fileTypeCode, fileTypeCode: this.dataForm.fileTypeCode,
businessType: '任务附件', businessType: '任务附件',
} }

60
src/views/modules/taskmanage/tasklist.vue

@ -48,13 +48,8 @@
<el-form-item label="客户"> <el-form-item label="客户">
<el-input style="width: 120px" v-model="dataForm.customer" clearable></el-input> <el-input style="width: 120px" v-model="dataForm.customer" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="状态">
<el-select v-model="dataForm.status" style="width: 120px">
<el-option label="全部" value=""></el-option>
<el-option label="未受理" value="未受理"></el-option>
<el-option label="已受理" value="已受理"></el-option>
<el-option label="已结束" value="已结束"></el-option>
</el-select>
<el-form-item label="项目">
<el-input style="width: 120px" v-model="dataForm.project" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="要求完成日期"> <el-form-item label="要求完成日期">
<el-date-picker style="width: 120px" v-model="dataForm.finishStartDate" <el-date-picker style="width: 120px" v-model="dataForm.finishStartDate"
@ -115,7 +110,7 @@
<!-- <el-link type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改 |</el-link>--> <!-- <el-link type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改 |</el-link>-->
<!-- <el-link type="text" size="small" @click="updateStatusDialog(scope.row)">更改最终状态 |</el-link>--> <!-- <el-link type="text" size="small" @click="updateStatusDialog(scope.row)">更改最终状态 |</el-link>-->
<!-- <el-link type="text" size="small" @click="chatHistoryDialog(scope.row.id)">沟通记录 |</el-link>--> <!-- <el-link type="text" size="small" @click="chatHistoryDialog(scope.row.id)">沟通记录 |</el-link>-->
<el-link type="text" size="small" @click="annex(scope.row.id)">附件</el-link>
<el-link type="text" size="small" @click="annex(scope.row)">附件</el-link>
<!-- <el-link v-if="isAuth('taskmanage:tasklist:delete')" type="text" size="small"--> <!-- <el-link v-if="isAuth('taskmanage:tasklist:delete')" type="text" size="small"-->
<!-- @click="deleteHandle(scope.row.id)">删除--> <!-- @click="deleteHandle(scope.row.id)">删除-->
<!-- </el-link>--> <!-- </el-link>-->
@ -238,8 +233,8 @@
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
columnProp: "taskHeader",
columnLabel: "任务主题",
columnProp: "project",
columnLabel: "项目",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -256,8 +251,8 @@
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
columnProp: "project",
columnLabel: "项目",
columnProp: "taskHeader",
columnLabel: "任务主题",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -271,6 +266,7 @@
columnType: null, columnType: null,
align: null align: null
}, },
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
@ -307,42 +303,6 @@
columnType: null, columnType: null,
align: null align: null
}, },
{
tableId: "ProjectInfo",
tableName: this.$route.meta.title,
columnProp: "status",
columnLabel: "状态",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: null,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null
},
{
tableId: "ProjectInfo",
tableName: this.$route.meta.title,
columnProp: "finalStatus",
columnLabel: "最终状态",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: null,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null
},
{ {
tableId: "ProjectInfo", tableId: "ProjectInfo",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
@ -493,11 +453,11 @@
}) })
}, },
// //
annex(id) {
annex(row) {
this.taskFileVisible = true this.taskFileVisible = true
let dto = { let dto = {
fileTypeCode: 'TASK', fileTypeCode: 'TASK',
orderRef3: id
orderRef3: row.id
} }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.taskFileList.init(dto) this.$refs.taskFileList.init(dto)

Loading…
Cancel
Save