领料出库

This commit is contained in:
bb_pan 2025-08-28 18:12:05 +08:00
parent 3fe2c446a3
commit a89a400c45
2 changed files with 5 additions and 2 deletions

View File

@ -263,7 +263,6 @@
v-model="scope.row.preNum"
type="text"
style="width: 100%"
:disabled="scope.row.alNum && scope.row.alNum != 0 ? true : false"
@input="handlePreNum(scope.row, $event, 'input')"
@blur="handlePreNum(scope.row, $event, 'blur')"
/>
@ -551,6 +550,10 @@ export default {
} else if (type === 'blur') {
if (row.preNum !== '') {
row.preNum = Number(row.preNum)
if (row.preNum < row.alNum) {
this.$message.warning('预领数量不能小于出库数量')
row.preNum = row.alNum
}
}
}
},

View File

@ -120,7 +120,7 @@
size="mini"
type="danger"
@click="handleDeletePurchase(scope.row)"
v-if="scope.row.taskStatus == 1"
v-if="scope.row.alNum == 0"
v-hasPermi="['purchase:info:remove']"
>
删除