代码修改

This commit is contained in:
ludj
2023-05-06 13:46:46 +08:00
parent 9f74e5a274
commit ea716b6bf2
5 changed files with 11 additions and 2 deletions

View File

@@ -144,6 +144,7 @@ export default {
})
},
finish() {
debugger
if (this.$refs.table.selection.length === 0) {
this.notify('请选中一条记录!', 'info')
return
@@ -151,7 +152,7 @@ export default {
// 判断是否有完工<加工,弹出提示
for (const i in this.$refs.table.selection) {
console.log(this.$refs.table.selection[i])
if (this.$refs.table.selection[i].finishproduce_qty < this.$refs.table.selection[i].produce_qty) {
if (this.$refs.table.selection[i].finishproduce_qty <= this.$refs.table.selection[i].produce_qty) {
this.$confirm('完工数量小于加工数量,是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',