材料站领料

This commit is contained in:
bb_pan 2025-09-11 12:22:47 +08:00
parent 5c71891cfe
commit 2429a4355d
1 changed files with 7 additions and 7 deletions

View File

@ -143,20 +143,20 @@
<el-table-column align="center" label="预领数量" prop="preNum" />
<el-table-column label="出库数量" prop="outNum" align="center">
<template v-slot="scope">
<el-input
<el-input-number
v-if="scope.row.manageType == '1'"
v-model.number="scope.row.outNum"
controls-position="right"
type="number"
style="width: 100%"
:min="1"
@input="
:min="0"
:precision="3"
@change="
v =>
scope.row.unitValue == 1
? (scope.row.outNum = Number(v.replace(/[^\d.]/g, '')))
: (scope.row.outNum = Number(v.replace(/[^\d]/g, '')))
? (scope.row.outNum = Number(String(v).replace(/[^\d.]/g, '')))
: (scope.row.outNum = Number(String(v).replace(/[^\d]/g, '')))
"
></el-input>
></el-input-number>
<el-button v-else size="mini" type="text" @click="handleOutCode(scope.row)">
{{ scope.row.maCodeList ? scope.row.maCodeList.length : 0 }}
</el-button>