更新
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<el-card>
|
<el-card>
|
||||||
<el-row>
|
<el-row>
|
||||||
<span>机床编号:</span>
|
<span>机床编号:</span>
|
||||||
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" clearable @change="searchTable1();searchTable2()">
|
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" clearable @change="searchTable1()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in machineNumber"
|
v-for="item in machineNumber"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -207,26 +207,30 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
searchTable1(this.machineNumberValue, this.check2).then(response => {
|
searchTable1(this.machineNumberValue, this.check2).then(response => {
|
||||||
this.tableData1 = response.data
|
this.tableData1 = response.data
|
||||||
|
}).then(() => {
|
||||||
|
this.searchTable2()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
searchTable2() {
|
searchTable2() {
|
||||||
this.tableData2 = []
|
this.tableData2 = []
|
||||||
if (this.machineNumberValue !== '' && this.machineNumberValue !== null) { this.check2 = 1 } else { this.check2 = 0 }
|
if (this.machineNumberValue !== '' && this.machineNumberValue !== null) {
|
||||||
if (this.groupNumberValue !== '' && this.groupNumberValue !== null) { this.check3 = 1 } else { this.check3 = 0 }
|
this.check2 = 1
|
||||||
searchTable2(this.machineNumberValue, this.check2).then(response => {
|
searchTable2(this.machineNumberValue, this.check2).then(response => {
|
||||||
this.tableData2 = response.data
|
console.log(response.data, 111)
|
||||||
this.tableData2.map(v => {
|
this.tableData2 = response.data
|
||||||
if (v.组件是否完成 === null || v.组件是否完成 === 0) {
|
this.tableData2.map(v => {
|
||||||
this.$set(v, 'buttonStatus', 1)
|
if (v.组件是否完成 === null || v.组件是否完成 === 0) {
|
||||||
} else if (v.组件是否完成 === 1) {
|
this.$set(v, 'buttonStatus', 1)
|
||||||
this.$set(v, 'buttonStatus', 2)
|
} else if (v.组件是否完成 === 1) {
|
||||||
} else {
|
this.$set(v, 'buttonStatus', 2)
|
||||||
this.$set(v, 'buttonStatus', 3)
|
} else {
|
||||||
}
|
this.$set(v, 'buttonStatus', 3)
|
||||||
return v
|
}
|
||||||
|
return v
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
} else { this.check2 = 0 }
|
||||||
},
|
},
|
||||||
// 总装开始装配
|
// 总装开始装配
|
||||||
handlestart_1(row) { // 弹出单据编辑
|
handlestart_1(row) { // 弹出单据编辑
|
||||||
|
|||||||
@@ -145,9 +145,11 @@ export default {
|
|||||||
time1: '',
|
time1: '',
|
||||||
time2: '',
|
time2: '',
|
||||||
time3: '',
|
time3: '',
|
||||||
|
time4: '',
|
||||||
time11: '',
|
time11: '',
|
||||||
time22: '',
|
time22: '',
|
||||||
time33: '',
|
time33: '',
|
||||||
|
time44: '',
|
||||||
pageCurrent: 1,
|
pageCurrent: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
@@ -181,6 +183,7 @@ export default {
|
|||||||
this.time1 = response.data.rows[0].运行持续时间
|
this.time1 = response.data.rows[0].运行持续时间
|
||||||
this.time2 = response.data.rows[0].等待持续时间
|
this.time2 = response.data.rows[0].等待持续时间
|
||||||
this.time3 = response.data.rows[0].停机持续时间
|
this.time3 = response.data.rows[0].停机持续时间
|
||||||
|
this.time4 = response.data.rows[0].报警持续时间
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.drawLine1()
|
this.drawLine1()
|
||||||
})
|
})
|
||||||
@@ -188,6 +191,7 @@ export default {
|
|||||||
this.time11 = response.data[0].运行持续时间
|
this.time11 = response.data[0].运行持续时间
|
||||||
this.time22 = response.data[0].等待持续时间
|
this.time22 = response.data[0].等待持续时间
|
||||||
this.time33 = response.data[0].停机持续时间
|
this.time33 = response.data[0].停机持续时间
|
||||||
|
this.time44 = response.data[0].报警持续时间
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.drawLine2()
|
this.drawLine2()
|
||||||
})
|
})
|
||||||
@@ -287,8 +291,8 @@ export default {
|
|||||||
},
|
},
|
||||||
drawLine1() {
|
drawLine1() {
|
||||||
const myChart = this.$echarts.init(document.getElementById('myChart1'))
|
const myChart = this.$echarts.init(document.getElementById('myChart1'))
|
||||||
const xData = ['运行', '等待', '停机']
|
const xData = ['运行', '等待', '停机', '报警']
|
||||||
const lineData = [{ name: '运行', value: this.time1 }, { name: '等待', value: this.time2 }, { name: '停机', value: this.time3 }]
|
const lineData = [{ name: '运行', value: this.time1 }, { name: '等待', value: this.time2 }, { name: '停机', value: this.time3 }, { name: '报警', value: this.time4 }]
|
||||||
myChart.clear()
|
myChart.clear()
|
||||||
myChart.setOption({
|
myChart.setOption({
|
||||||
title: {
|
title: {
|
||||||
@@ -327,8 +331,8 @@ export default {
|
|||||||
},
|
},
|
||||||
drawLine2() {
|
drawLine2() {
|
||||||
const myChart = this.$echarts.init(document.getElementById('myChart2'))
|
const myChart = this.$echarts.init(document.getElementById('myChart2'))
|
||||||
const xData = ['运行', '等待', '停机']
|
const xData = ['运行', '等待', '停机', '报警']
|
||||||
const lineData = [{ name: '运行', value: this.time11 }, { name: '等待', value: this.time22 }, { name: '停机', value: this.time33 }]
|
const lineData = [{ name: '运行', value: this.time11 }, { name: '等待', value: this.time22 }, { name: '停机', value: this.time33 }, { name: '报警', value: this.time44 }]
|
||||||
myChart.clear()
|
myChart.clear()
|
||||||
myChart.setOption({
|
myChart.setOption({
|
||||||
title: {
|
title: {
|
||||||
@@ -416,7 +420,7 @@ export default {
|
|||||||
legend: {
|
legend: {
|
||||||
orient: 'vertical',
|
orient: 'vertical',
|
||||||
x: 'left',
|
x: 'left',
|
||||||
data: ['运行', '停机', '等待']
|
data: ['运行', '停机', '等待', '报警']
|
||||||
},
|
},
|
||||||
dataZoom: [{
|
dataZoom: [{
|
||||||
type: 'inside',
|
type: 'inside',
|
||||||
|
|||||||
@@ -20,14 +20,12 @@
|
|||||||
style="margin-left: 10px"
|
style="margin-left: 10px"
|
||||||
@click="pageCurrent00=1;pageSize00=10;total00=0;searchTable00()">查询</el-button>
|
@click="pageCurrent00=1;pageSize00=10;total00=0;searchTable00()">查询</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="groupPartNumGroup.length===0"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
style="margin-left: 10px"
|
style="margin-left: 10px"
|
||||||
@click="changeInquiryStatus">变更询价状态</el-button>
|
@click="changeInquiryStatus">变更询价状态</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="tableData02.length===0"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
icon="el-icon-menu"
|
icon="el-icon-menu"
|
||||||
|
|||||||
Reference in New Issue
Block a user