代码更新

This commit is contained in:
2022-11-21 16:30:27 +08:00
parent ba3d7a4f99
commit 83f43e1018
3 changed files with 13 additions and 7 deletions

View File

@@ -179,16 +179,15 @@ export default {
}
},
handleEdit(index, row) {
debugger
// 判断是否可以关闭编辑状态
if (row.edit === undefined) {
this.$set(row, 'edit', false)
}
if (!row.edit) {
if (row.plan_qty > this.queryrow.unassign_qty) {
/* if (row.plan_qty > this.queryrow.unassign_qty) {
this.crud.notify('出库重量不能超过未分配数', CRUD.NOTIFICATION_TYPE.INFO)
return false
}
}*/
if (row.plan_qty > row.canuse_qty) {
this.crud.notify('出库重量不能超过库存可出重量', CRUD.NOTIFICATION_TYPE.INFO)
return false

View File

@@ -158,13 +158,14 @@
<el-table-column
v-permission="['admin','checkoutbill:del','checkoutbill:edit']"
label="操作"
width="200"
width="250"
align="center"
fixed="right"
>
<template slot-scope="scope">
<udOperation
:data="scope.row"
style="display: inline"
:permission="permission"
:disabled-edit="canUd(scope.row)"
:disabled-dle="canUd(scope.row)"
@@ -178,7 +179,7 @@
</el-button>
<el-button
type="text"
icon="el-icon-upload"
icon="el-icon-printer"
@click="print(scope.row)"
>
打印