| | |
| | | prop="inboundNum0" |
| | | width="90" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="状态" |
| | | align="center" |
| | | prop="isFrozen" |
| | | width="100"> |
| | | <template #default="scope"> |
| | | <el-tag :type="scope.row.isFrozen ? 'danger' : 'success'"> |
| | | {{ scope.row.isFrozen ? '已冻结' : '正常' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" |
| | | label="操作" |
| | | min-width="60" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-button :disabled="scope.row.inboundNum0 <= 0" |
| | | <el-button :disabled="scope.row.inboundNum0 <= 0 || scope.row.isFrozen" |
| | | link |
| | | type="primary" |
| | | size="small" |
| | |
| | | <el-table-column label="含税总价(元)" |
| | | prop="taxInclusiveTotalPrice" |
| | | width="150"></el-table-column> |
| | | <el-table-column label="状态" |
| | | align="center" |
| | | prop="isFrozen" |
| | | width="100"> |
| | | <template #default="scope"> |
| | | <el-tag :type="scope.row.isFrozen ? 'danger' : 'success'"> |
| | | {{ scope.row.isFrozen ? '已冻结' : '正常' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" |
| | | label="操作" |
| | | min-width="60" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-button link |
| | | :disabled="scope.row.inboundNum0 <= 0" |
| | | :disabled="scope.row.inboundNum0 <= 0 || scope.row.isFrozen" |
| | | type="primary" |
| | | size="small" |
| | | @click="openForm(scope.row);">领用</el-button> |
| | |
| | | prop="inboundNum0" |
| | | width="90" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="状态" |
| | | align="center" |
| | | prop="isFrozen" |
| | | width="100"> |
| | | <template #default="scope"> |
| | | <el-tag :type="scope.row.isFrozen ? 'danger' : 'success'"> |
| | | {{ scope.row.isFrozen ? '已冻结' : '正常' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" |
| | | label="操作" |
| | | min-width="60" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-button link |
| | | :disabled="scope.row.inboundNum0 <= 0" |
| | | :disabled="scope.row.inboundNum0 <= 0 || scope.row.isFrozen" |
| | | type="primary" |
| | | size="small" |
| | | @click="openForm(scope.row);">领用</el-button> |
| | |
| | | const productModelId = ref(null); |
| | | // 打开弹框 |
| | | const openForm = async row => { |
| | | if (row.isFrozen) { |
| | | return proxy.$modal.msgError("该产品已冻结,无法领用"); |
| | | } |
| | | dialogFormVisible.value = true; |
| | | currentRowId.value = row.id; |
| | | currentRowNum.value = row.inboundNum0; |