change - 4楼工序生产派工完工隐藏显示按钮

master
yinq 2 days ago
parent ebf1357e89
commit d24fa22df2

@ -348,6 +348,7 @@
<el-button type="primary">首页</el-button>
<el-button type="success" @click="handleProductInstock"></el-button>
<el-button type="warning" @click="handleProductOutstock"></el-button>
<el-button type="success" @click="showFinish">{{ showTitle }}</el-button>
<!--el-button type="info">最小化</el-button-->
<el-button type="danger" @click="logout">退</el-button>
</el-row>
@ -612,7 +613,9 @@ export default {
//
fileListData: [],
rawOutstockData:[],
purchaseOrderData:[]
purchaseOrderData:[],
IS_SHOW_FINISH: "1",
showTitle: "显示"
}
},
created() {
@ -628,7 +631,7 @@ export default {
// duration: 0
// });
// }, 60 * 1000)
getProductPlans({pageNum: 1, pageSize: 5}).then(async e => {
getProductPlans({pageNum: 1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(async e => {
this.tableData = e.rows
this.totalNum1 = Math.ceil(e.total / 5)
this.$refs.planTable.setCurrentRow(e.rows?.[0]);
@ -896,14 +899,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)
})
@ -1388,7 +1391,22 @@ export default {
// this.loading = false;
});
}
}
},
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)
})
},
}
}
</script>

@ -305,6 +305,7 @@
<el-row>
<el-button type="primary">首页</el-button>
<el-button type="success" @click="handleRawInstock"></el-button>
<el-button type="success" @click="showFinish">{{ showTitle }}</el-button>
<el-button type="info" @click="handleViewSOP">SOP</el-button>
<el-button type="danger" @click="logout">退</el-button>
</el-row>
@ -472,7 +473,9 @@ export default {
//
fileListData: [],
rawOutstockData:[],
purchaseOrderData:[]
purchaseOrderData:[],
IS_SHOW_FINISH: "1",
showTitle: "显示"
}
},
async mounted() {
@ -486,7 +489,7 @@ export default {
// duration: 0
// });
// }, 60 * 1000)
const data = await getProductPlans({pageNum: 1, pageSize: 5}).then(e => {
const data = await getProductPlans({pageNum: 1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(e => {
this.tableData = e.rows
this.totalNum1 = Math.ceil(e.total / 5)
this.$refs.table1.setCurrentRow(e.rows[0]);
@ -683,14 +686,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)
})
@ -1092,7 +1095,7 @@ export default {
message: '已完成'
});
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)
let data = e.rows.find(v => v.planCode === this.form.planCode) || null
@ -1410,7 +1413,21 @@ export default {
// this.loading = false;
});
}
}
},
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)
})
},
},

@ -281,6 +281,7 @@
<div class="bottom">
<el-row>
<el-button type="primary">首页</el-button>
<el-button type="success" @click="showFinish">{{ showTitle }}</el-button>
<el-button type="danger" @click="logout">退</el-button>
</el-row>
</div>
@ -451,6 +452,8 @@ export default {
NOT_SINGLE: "0",//
INTERNAL: '2'//
},
IS_SHOW_FINISH: "1",
showTitle: "显示"
}
},
mounted() {
@ -624,7 +627,7 @@ export default {
// }
// ]
// })
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)
this.tableClick(e.rows[0])
@ -646,14 +649,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)
})
@ -1026,7 +1029,7 @@ export default {
type: 'success'
});
}
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)
this.tableClick(e.rows.find(v => v.planCode === this.form.planCode))
@ -1169,6 +1172,20 @@ export default {
this.printModel = true
},
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)
})
},
}
}
</script>

Loading…
Cancel
Save