项目管理
This commit is contained in:
@@ -52,7 +52,9 @@
|
||||
<!--style="width: 160px"-->
|
||||
<!--type="date"-->
|
||||
<!--placeholder="选择日期"/>-->
|
||||
|
||||
<!--<span>提前</span>-->
|
||||
<!--<el-input-number v-model="warningValue" :min="1" controls-position="right" size="small" style="width: 90px"/>-->
|
||||
<!--<span>天预警</span>-->
|
||||
<el-button icon="el-icon-search" type="success" size="small" style="margin-left: 20px" @click="searchTable()">查询</el-button>
|
||||
<el-table v-loading="loading" :data="tableData" size="mini" highlight-current-row style="width: 100%; margin-top: 30px" border element-loading-text="拼命加载中">
|
||||
<el-table-column label="项目名称" align="center">
|
||||
@@ -108,17 +110,22 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="开始时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.开始时间 }}
|
||||
{{ scope.row.任务开始时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="完成时间" align="center">
|
||||
<el-table-column label="计划完成时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.完成时间 }}
|
||||
{{ scope.row.计划完成时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="实际完成时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.实际完成时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="工期" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.工期 }}
|
||||
{{ scope.row.货期 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center">
|
||||
@@ -143,17 +150,22 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="开始时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.开始时间 }}
|
||||
{{ scope.row.任务开始时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="完成时间" align="center">
|
||||
<el-table-column label="计划完成时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.完成时间 }}
|
||||
{{ scope.row.计划完成时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="实际完成时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.实际完成时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="工期" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.工期 }}
|
||||
{{ scope.row.货期 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center">
|
||||
@@ -178,17 +190,22 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="开始时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.开始时间 }}
|
||||
{{ scope.row.任务开始时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="完成时间" align="center">
|
||||
<el-table-column label="计划完成时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.完成时间 }}
|
||||
{{ scope.row.计划完成时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="实际完成时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.实际完成时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="工期" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.工期 }}
|
||||
{{ scope.row.货期 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center">
|
||||
@@ -213,17 +230,22 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="开始时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.开始时间 }}
|
||||
{{ scope.row.任务开始时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="完成时间" align="center">
|
||||
<el-table-column label="计划完成时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.完成时间 }}
|
||||
{{ scope.row.计划完成时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="实际完成时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.实际完成时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="工期" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.工期 }}
|
||||
{{ scope.row.货期 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center">
|
||||
@@ -248,17 +270,22 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="开始时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.开始时间 }}
|
||||
{{ scope.row.任务开始时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="完成时间" align="center">
|
||||
<el-table-column label="计划完成时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.完成时间 }}
|
||||
{{ scope.row.计划完成时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="实际完成时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.实际完成时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="工期" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.工期 }}
|
||||
{{ scope.row.货期 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center">
|
||||
@@ -282,6 +309,18 @@ export default {
|
||||
machine: [],
|
||||
loading: false,
|
||||
loading1: false,
|
||||
now: '',
|
||||
arrival: [],
|
||||
judge: [],
|
||||
arrival1: [],
|
||||
judge1: [],
|
||||
arrival2: [],
|
||||
judge2: [],
|
||||
arrival3: [],
|
||||
judge3: [],
|
||||
arrival4: [],
|
||||
judge4: [],
|
||||
warningValue: '',
|
||||
tableData: [], // 表格数据
|
||||
tableData1: [], // 表格数据
|
||||
tableData2: [], // 表格数据
|
||||
@@ -318,6 +357,7 @@ export default {
|
||||
this.tableData3 = []
|
||||
this.tableData4 = []
|
||||
this.tableData5 = []
|
||||
this.now = new Date()
|
||||
if (this.projectValue !== '') {
|
||||
if (this.machineValue !== '') {
|
||||
searchtable(this.projectValue, this.machineValue).then(response => {
|
||||
@@ -334,12 +374,23 @@ export default {
|
||||
}).then(() => {
|
||||
searchtable2(this.machineValue, 1).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
// this.arrival.push(new Date(response.data[i].计划完成时间))
|
||||
// if ((this.arrival[i] - this.now) > 0 && (this.arrival[i] - this.now) < (86400000 * this.warningValue)) {
|
||||
// this.judge[i] = 1 // 即将拖期
|
||||
// } else if ((this.arrival[i] - this.now) < 0) {
|
||||
// this.judge[i] = 2 // 已拖期
|
||||
// } else if ((this.arrival[i] - this.now) > (86400000 * this.warningValue)) {
|
||||
// this.judge[i] = 3 // 进度正常
|
||||
// }
|
||||
if (response.data[i].任务开始时间 !== '' && response.data[i].任务开始时间 !== null) {
|
||||
response.data[i].任务开始时间 = response.data[i].任务开始时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].实际完成时间 !== '' && response.data[i].实际完成时间 !== null) {
|
||||
response.data[i].实际完成时间 = response.data[i].实际完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].计划完成时间 !== '' && response.data[i].计划完成时间 !== null) {
|
||||
response.data[i].计划完成时间 = response.data[i].计划完成时间.split(' ')[0]
|
||||
}
|
||||
}
|
||||
this.loading1 = false
|
||||
console.log(response.data, 2)
|
||||
@@ -347,12 +398,23 @@ export default {
|
||||
})
|
||||
searchtable2(this.machineValue, 2).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
// this.arrival1.push(new Date(response.data[i].计划完成时间))
|
||||
// if ((this.arrival1[i] - this.now) > 0 && (this.arrival1[i] - this.now) < (86400000 * this.warningValue)) {
|
||||
// this.judge1[i] = 1 // 即将拖期
|
||||
// } else if ((this.arrival1[i] - this.now) < 0) {
|
||||
// this.judge1[i] = 2 // 已拖期
|
||||
// } else if ((this.arrival1[i] - this.now) > (86400000 * this.warningValue)) {
|
||||
// this.judge1[i] = 3 // 进度正常
|
||||
// }
|
||||
if (response.data[i].任务开始时间 !== '' && response.data[i].任务开始时间 !== null) {
|
||||
response.data[i].任务开始时间 = response.data[i].任务开始时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].实际完成时间 !== '' && response.data[i].实际完成时间 !== null) {
|
||||
response.data[i].实际完成时间 = response.data[i].实际完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].计划完成时间 !== '' && response.data[i].计划完成时间 !== null) {
|
||||
response.data[i].计划完成时间 = response.data[i].计划完成时间.split(' ')[0]
|
||||
}
|
||||
}
|
||||
this.loading1 = false
|
||||
console.log(response.data, 3)
|
||||
@@ -360,12 +422,23 @@ export default {
|
||||
})
|
||||
searchtable2(this.machineValue, 3).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
// this.arrival2.push(new Date(response.data[i].计划完成时间))
|
||||
// if ((this.arrival2[i] - this.now) > 0 && (this.arrival2[i] - this.now) < (86400000 * this.warningValue)) {
|
||||
// this.judge2[i] = 1 // 即将拖期
|
||||
// } else if ((this.arrival2[i] - this.now) < 0) {
|
||||
// this.judge2[i] = 2 // 已拖期
|
||||
// } else if ((this.arrival[i] - this.now) > (86400000 * this.warningValue)) {
|
||||
// this.judge2[i] = 3 // 进度正常
|
||||
// }
|
||||
if (response.data[i].任务开始时间 !== '' && response.data[i].任务开始时间 !== null) {
|
||||
response.data[i].任务开始时间 = response.data[i].任务开始时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].实际完成时间 !== '' && response.data[i].实际完成时间 !== null) {
|
||||
response.data[i].实际完成时间 = response.data[i].实际完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].计划完成时间 !== '' && response.data[i].计划完成时间 !== null) {
|
||||
response.data[i].计划完成时间 = response.data[i].计划完成时间.split(' ')[0]
|
||||
}
|
||||
}
|
||||
this.loading1 = false
|
||||
console.log(response.data, 4)
|
||||
@@ -373,12 +446,23 @@ export default {
|
||||
})
|
||||
searchtable2(this.machineValue, 4).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
// this.arrival3.push(new Date(response.data[i].计划完成时间))
|
||||
// if ((this.arrival3[i] - this.now) > 0 && (this.arrival3[i] - this.now) < (86400000 * this.warningValue)) {
|
||||
// this.judge3[i] = 1 // 即将拖期
|
||||
// } else if ((this.arrival3[i] - this.now) < 0) {
|
||||
// this.judge3[i] = 2 // 已拖期
|
||||
// } else if ((this.arrival3[i] - this.now) > (86400000 * this.warningValue)) {
|
||||
// this.judge3[i] = 3 // 进度正常
|
||||
// }
|
||||
if (response.data[i].任务开始时间 !== '' && response.data[i].任务开始时间 !== null) {
|
||||
response.data[i].任务开始时间 = response.data[i].任务开始时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].实际完成时间 !== '' && response.data[i].实际完成时间 !== null) {
|
||||
response.data[i].实际完成时间 = response.data[i].实际完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].计划完成时间 !== '' && response.data[i].计划完成时间 !== null) {
|
||||
response.data[i].计划完成时间 = response.data[i].计划完成时间.split(' ')[0]
|
||||
}
|
||||
}
|
||||
this.loading1 = false
|
||||
console.log(response.data, 5)
|
||||
@@ -386,12 +470,23 @@ export default {
|
||||
})
|
||||
searchtable2(this.machineValue, 5).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
// this.arrival4.push(new Date(response.data[i].计划完成时间))
|
||||
// if ((this.arrival4[i] - this.now) > 0 && (this.arrival4[i] - this.now) < (86400000 * this.warningValue)) {
|
||||
// this.judge4[i] = 1 // 即将拖期
|
||||
// } else if ((this.arrival3[i] - this.now) < 0) {
|
||||
// this.judge4[i] = 2 // 已拖期
|
||||
// } else if ((this.arrival3[i] - this.now) > (86400000 * this.warningValue)) {
|
||||
// this.judge4[i] = 3 // 进度正常
|
||||
// }
|
||||
if (response.data[i].任务开始时间 !== '' && response.data[i].任务开始时间 !== null) {
|
||||
response.data[i].任务开始时间 = response.data[i].任务开始时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].实际完成时间 !== '' && response.data[i].实际完成时间 !== null) {
|
||||
response.data[i].实际完成时间 = response.data[i].实际完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].计划完成时间 !== '' && response.data[i].计划完成时间 !== null) {
|
||||
response.data[i].计划完成时间 = response.data[i].计划完成时间.split(' ')[0]
|
||||
}
|
||||
}
|
||||
this.loading1 = false
|
||||
console.log(response.data, 6)
|
||||
|
||||
Reference in New Issue
Block a user