This commit is contained in:
ChenQiuYu 2025-05-23 13:56:40 +08:00
parent 6416d2f629
commit 39d501cd4e
2 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@
<el-table-column prop="number" label="数量" width="250">
<template #default="scope">
<div v-if="props.status">
<el-input-number v-model="scope.row.selectedNum" :min="0" @change="handleNumChange(scope.row)"
<el-input-number v-model="scope.row.selectedNum" ref="inputRef" :min="0" @change="handleNumChange(scope.row)"
style="margin-right: 5px"></el-input-number>
<el-dropdown v-if="scope.row.trdnFlag == 1">
<span style="line-height: 30px;margin-left: 10px;cursor: pointer">{{ scope.row.selectedUnit }}</span>
@ -111,7 +111,7 @@
<script setup lang="ts">
import SearchInput from "@/components/SearchInput.vue";
import Panel from "@/components/common/Panel.vue";
import {onMounted, ref} from "vue";
import {nextTick, onMounted, ref} from "vue";
import {post} from "@/utils/request.ts";
import {ElMessage} from "element-plus";
import {Delete} from "@element-plus/icons-vue";
@ -168,6 +168,7 @@ const goodsShowConfig = [
prop: "limit",
}
]
const inputRef=ref<any>()
const goodsSelect = (row: any) => {
row.selectedNum = 1
row.selectedUnit = row.packagingUnit
@ -175,7 +176,6 @@ const goodsSelect = (row: any) => {
row.shouldNumber = 1;
row.idCode = row.idCode ? row.idCode == "" ? null : row.idCode.split(",") : null
if (goodsDetail.value.find((i: any) => i.id == row.id)) {
ElMessage.warning("数据已存在,只能加数量")
goodsDetail.value.find((i: any) => i.id == row.id).selectedNum += 1

View File

@ -135,9 +135,9 @@
/>
<el-time-select
v-model="time"
start="00:00"
start="08:00"
step="00:15"
end="23:45"
end="22:00"
:min-time="getCurrentTime(edit_data.date)"
placeholder="选择时间"
style="width: 50%"