外协
This commit is contained in:
@@ -89,6 +89,16 @@
|
||||
<span :class="colorJudge(scope.row.发货节点)">{{ scope.row.发货节点 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="设备预验节点" align="center" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.设备预验收节点 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="安装调试节点" align="center" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.安装调试节点 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审图(计划开始)" align="center" min-width="170px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.审图计划开始时间 }}
|
||||
@@ -106,7 +116,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="发图" align="center" min-width="140px">
|
||||
<template slot-scope="scope">
|
||||
<span :class="colorJudge(scope.row.机床设计完成时间, scope.row.机床设计实际完成时间)">{{ scope.row.机床设计完成时间.split(' ')[0] }}</span>
|
||||
<span :class="colorJudge(scope.row.机床设计完成时间, scope.row.机床设计实际完成时间)">{{ scope.row.机床设计完成时间 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="发图(实际)" align="center" width="140px">
|
||||
@@ -116,7 +126,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="采购" align="center" min-width="140px">
|
||||
<template slot-scope="scope">
|
||||
<span :class="colorJudge(scope.row.采购完成时间, scope.row.采购实际完成时间)">{{ scope.row.采购完成时间.split(' ')[0] }}</span>
|
||||
<span :class="colorJudge(scope.row.采购完成时间, scope.row.采购实际完成时间)">{{ scope.row.采购完成时间 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购(实际)" align="center" width="140px">
|
||||
@@ -126,7 +136,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="备料" align="center" min-width="140px">
|
||||
<template slot-scope="scope">
|
||||
<span :class="colorJudge(scope.row.备料完成时间, scope.row.备料实际完成时间)">{{ scope.row.备料完成时间.split(' ')[0] }}</span>
|
||||
<span :class="colorJudge(scope.row.备料完成时间, scope.row.备料实际完成时间)">{{ scope.row.备料完成时间 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备料(实际)" align="center" width="140px">
|
||||
@@ -136,7 +146,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="制造" align="center" min-width="140px">
|
||||
<template slot-scope="scope">
|
||||
<span :class="colorJudge(scope.row.机床生产完成时间, scope.row.机床生产实际完成时间)">{{ scope.row.机床生产完成时间.split(' ')[0] }}</span>
|
||||
<span :class="colorJudge(scope.row.机床生产完成时间, scope.row.机床生产实际完成时间)">{{ scope.row.机床生产完成时间 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="制造(实际)" align="center" width="140px">
|
||||
@@ -146,7 +156,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="装配" align="center" min-width="140px">
|
||||
<template slot-scope="scope">
|
||||
<span :class="colorJudge(scope.row.机床装配完成时间, scope.row.机床装配实际完成时间)">{{ scope.row.机床装配完成时间.split(' ')[0] }}</span>
|
||||
<span :class="colorJudge(scope.row.机床装配完成时间, scope.row.机床装配实际完成时间)">{{ scope.row.机床装配完成时间 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="装配(实际)" align="center" width="140px">
|
||||
@@ -455,9 +465,54 @@ export default {
|
||||
if (response.data[i].发货节点 !== '' && response.data[i].发货节点 !== null) {
|
||||
response.data[i].发货节点 = response.data[i].发货节点.split(' ')[0]
|
||||
}
|
||||
if (response.data.rows[i].设备预验收节点 !== '' && response.data.rows[i].设备预验收节点 !== null) {
|
||||
response.data.rows[i].设备预验收节点 = response.data.rows[i].设备预验收节点.split(' ')[0]
|
||||
}
|
||||
if (response.data.rows[i].安装调试节点 !== '' && response.data.rows[i].安装调试节点 !== null) {
|
||||
response.data.rows[i].安装调试节点 = response.data.rows[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]
|
||||
}
|
||||
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]
|
||||
}
|
||||
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]
|
||||
}
|
||||
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]
|
||||
}
|
||||
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.loading = false
|
||||
console.log(response.data)
|
||||
console.log(response.data, 222222)
|
||||
this.tableData = response.data
|
||||
}).then(() => {
|
||||
searchtable2(this.machineValue, 1).then(response => {
|
||||
|
||||
Reference in New Issue
Block a user