更新
This commit is contained in:
@@ -320,30 +320,78 @@ export default {
|
||||
if (this.projectValue !== '') {
|
||||
if (this.machineValue !== '') {
|
||||
searchtable(this.projectValue, this.machineValue).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
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
|
||||
this.tableData = response.data
|
||||
}).then(() => {
|
||||
searchtable2(this.machineValue, 1).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
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)
|
||||
this.tableData1 = response.data
|
||||
})
|
||||
searchtable2(this.machineValue, 2).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
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)
|
||||
this.tableData2 = response.data
|
||||
})
|
||||
searchtable2(this.machineValue, 3).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
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)
|
||||
this.tableData3 = response.data
|
||||
})
|
||||
searchtable2(this.machineValue, 4).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
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)
|
||||
this.tableData4 = response.data
|
||||
})
|
||||
searchtable2(this.machineValue, 5).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
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)
|
||||
this.tableData5 = response.data
|
||||
|
||||
Reference in New Issue
Block a user