Commit 0016bf6c authored by W_Y's avatar W_Y

工序库盘点记录

parent 7ba174a2
...@@ -185,6 +185,8 @@ export default { ...@@ -185,6 +185,8 @@ export default {
name: 'Control', name: 'Control',
data() { data() {
return { return {
// 接口状态
statusCode: true,
// 图表 // 图表
// 折线图 // 折线图
myChartRegistrationTime: undefined, myChartRegistrationTime: undefined,
...@@ -471,7 +473,10 @@ export default { ...@@ -471,7 +473,10 @@ export default {
}, },
// 总图 // 总图
getAll() { getAll() {
if (this.statusCode === true) {
findControl().then(res => { findControl().then(res => {
this.statusCode = false
// console.log('---res---', res)
// 折线图 // 折线图
this.sumUpdateList = res.data.findCountIdByUpdateDate this.sumUpdateList = res.data.findCountIdByUpdateDate
this.numList = [] this.numList = []
...@@ -528,6 +533,8 @@ export default { ...@@ -528,6 +533,8 @@ export default {
// 实时数量 // 实时数量
this.realTime = res.data.findMoM.num3All this.realTime = res.data.findMoM.num3All
}) })
}
this.statusCode = true
}, },
handleClick(row) { handleClick(row) {
this.$router.push({ this.$router.push({
......
...@@ -140,10 +140,10 @@ export default { ...@@ -140,10 +140,10 @@ export default {
options: [{ options: [{
value: 1, value: 1,
label: '已盘点' label: '已盘点'
},{ }, {
value: 0, value: 0,
label: '未盘点' label: '未盘点'
}, }
], ],
// 日期范围 // 日期范围
dateRange: [], dateRange: [],
...@@ -195,9 +195,7 @@ export default { ...@@ -195,9 +195,7 @@ export default {
} }
}, },
// 表单参数 // 表单参数
form: { form: {}
},
} }
}, },
/** 路由离开前存储筛选条件*/ /** 路由离开前存储筛选条件*/
...@@ -237,10 +235,10 @@ export default { ...@@ -237,10 +235,10 @@ export default {
/** 查询角色列表 */ /** 查询角色列表 */
getList() { getList() {
// 去除字段默认为0导致0对应的未盘点无法使用问题 // 去除字段默认为0导致0对应的未盘点无法使用问题
let flag = 0; let flag = 0
this.loading = true; this.loading = true
if (this.queryEntity.entity.status === undefined || this.queryEntity.entity.status === '') { if (this.queryEntity.entity.status === undefined || this.queryEntity.entity.status === '') {
flag = 1; flag = 1
} }
if (flag === 1) { if (flag === 1) {
this.queryEntity.entity.status = -1 this.queryEntity.entity.status = -1
...@@ -249,14 +247,14 @@ export default { ...@@ -249,14 +247,14 @@ export default {
this.dateRange = [] this.dateRange = []
} }
listdevice(this.queryParams, this.addDateRange(this.queryEntity, this.dateRange)).then(response => { listdevice(this.queryParams, this.addDateRange(this.queryEntity, this.dateRange)).then(response => {
console.log('list',response) // console.log('list', response)
this.equipmentList = response.rows this.equipmentList = response.rows
this.total = response.total this.total = response.total
this.loading = false this.loading = false
}) })
if (flag == 1) { if (flag === 1) {
this.queryEntity.entity.status = undefined this.queryEntity.entity.status = undefined
flag = 0; flag = 0
} }
}, },
// 取消按钮 // 取消按钮
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment