diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductPlanMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductPlanMapper.xml index 914b5908..5124d70a 100644 --- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductPlanMapper.xml +++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductPlanMapper.xml @@ -364,7 +364,7 @@ and mpp.plan_status = #{planStatus} and mpp.plan_status in ('1','2') - order by mpp.plan_id desc + order by mpp.plan_status, mpp.plan_id desc diff --git a/hw-ui/src/views/board/fifthFloor/index.vue b/hw-ui/src/views/board/fifthFloor/index.vue index 6fe57b2c..e6dbf4f7 100644 --- a/hw-ui/src/views/board/fifthFloor/index.vue +++ b/hw-ui/src/views/board/fifthFloor/index.vue @@ -96,7 +96,7 @@ 继续 - + {{ showTitle }}完工 { + getProductPlans({pageNum: this.nowNum1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(e => { this.tableData = e.rows this.totalNum1 = Math.ceil(e.total / 5) this.tableClick(e.rows[0]) @@ -1081,14 +1083,14 @@ export default { }, next1() { this.nowNum1 += 1 - getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => { + getProductPlans({pageNum: this.nowNum1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(e => { this.tableData = e.rows this.totalNum1 = Math.ceil(e.total / 5) }) }, pre1() { this.nowNum1 -= 1 - getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => { + getProductPlans({pageNum: this.nowNum1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(e => { this.tableData = e.rows this.totalNum1 = Math.ceil(e.total / 5) }) @@ -2045,7 +2047,21 @@ export default { }); } - } + }, + + showFinish() { + if (this.IS_SHOW_FINISH === "1"){ + this.showTitle = "隐藏"; + this.IS_SHOW_FINISH = ""; + } else { + this.showTitle = "显示"; + this.IS_SHOW_FINISH = "1"; + } + getProductPlans({pageNum: this.nowNum1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(e => { + this.tableData = e.rows + this.totalNum1 = Math.ceil(e.total / 5) + }) + }, } }