dev
This commit is contained in:
parent
6416d2f629
commit
39d501cd4e
|
|
@ -51,7 +51,7 @@
|
||||||
<el-table-column prop="number" label="数量" width="250">
|
<el-table-column prop="number" label="数量" width="250">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div v-if="props.status">
|
<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>
|
style="margin-right: 5px"></el-input-number>
|
||||||
<el-dropdown v-if="scope.row.trdnFlag == 1">
|
<el-dropdown v-if="scope.row.trdnFlag == 1">
|
||||||
<span style="line-height: 30px;margin-left: 10px;cursor: pointer">{{ scope.row.selectedUnit }}</span>
|
<span style="line-height: 30px;margin-left: 10px;cursor: pointer">{{ scope.row.selectedUnit }}</span>
|
||||||
|
|
@ -111,7 +111,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import SearchInput from "@/components/SearchInput.vue";
|
import SearchInput from "@/components/SearchInput.vue";
|
||||||
import Panel from "@/components/common/Panel.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 {post} from "@/utils/request.ts";
|
||||||
import {ElMessage} from "element-plus";
|
import {ElMessage} from "element-plus";
|
||||||
import {Delete} from "@element-plus/icons-vue";
|
import {Delete} from "@element-plus/icons-vue";
|
||||||
|
|
@ -168,6 +168,7 @@ const goodsShowConfig = [
|
||||||
prop: "limit",
|
prop: "limit",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
const inputRef=ref<any>()
|
||||||
const goodsSelect = (row: any) => {
|
const goodsSelect = (row: any) => {
|
||||||
row.selectedNum = 1
|
row.selectedNum = 1
|
||||||
row.selectedUnit = row.packagingUnit
|
row.selectedUnit = row.packagingUnit
|
||||||
|
|
@ -175,7 +176,6 @@ const goodsSelect = (row: any) => {
|
||||||
row.shouldNumber = 1;
|
row.shouldNumber = 1;
|
||||||
row.idCode = row.idCode ? row.idCode == "" ? null : row.idCode.split(",") : null
|
row.idCode = row.idCode ? row.idCode == "" ? null : row.idCode.split(",") : null
|
||||||
|
|
||||||
|
|
||||||
if (goodsDetail.value.find((i: any) => i.id == row.id)) {
|
if (goodsDetail.value.find((i: any) => i.id == row.id)) {
|
||||||
ElMessage.warning("数据已存在,只能加数量")
|
ElMessage.warning("数据已存在,只能加数量")
|
||||||
goodsDetail.value.find((i: any) => i.id == row.id).selectedNum += 1
|
goodsDetail.value.find((i: any) => i.id == row.id).selectedNum += 1
|
||||||
|
|
|
||||||
|
|
@ -135,9 +135,9 @@
|
||||||
/>
|
/>
|
||||||
<el-time-select
|
<el-time-select
|
||||||
v-model="time"
|
v-model="time"
|
||||||
start="00:00"
|
start="08:00"
|
||||||
step="00:15"
|
step="00:15"
|
||||||
end="23:45"
|
end="22:00"
|
||||||
:min-time="getCurrentTime(edit_data.date)"
|
:min-time="getCurrentTime(edit_data.date)"
|
||||||
placeholder="选择时间"
|
placeholder="选择时间"
|
||||||
style="width: 50%"
|
style="width: 50%"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue