优化
This commit is contained in:
@@ -497,6 +497,10 @@ const handleConfirm = () => {
|
|||||||
Message.error('请输入数量')
|
Message.error('请输入数量')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (!ahDeviceWeight.value || ahDeviceWeight.value.trim() === '') {
|
||||||
|
Message.error('电子秤称重结果为空!')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// 生成新的列表数据
|
// 生成新的列表数据
|
||||||
const newItem = {
|
const newItem = {
|
||||||
@@ -512,7 +516,7 @@ const handleConfirm = () => {
|
|||||||
weighingList.value.push(newItem)
|
weighingList.value.push(newItem)
|
||||||
// 重置输入
|
// 重置输入
|
||||||
inputQuantity.value = ''
|
inputQuantity.value = ''
|
||||||
ahDeviceWeight.value = ''
|
ahDeviceWeight.value = '10'
|
||||||
calculatedWeight.value = ''
|
calculatedWeight.value = ''
|
||||||
// 称重次数累加
|
// 称重次数累加
|
||||||
weighingCount.value = weighingList.value.length + 1
|
weighingCount.value = weighingList.value.length + 1
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<template #toolbar-left>
|
<template #toolbar-left>
|
||||||
<a-input-search v-model="queryForm.userName" placeholder="请输入姓名" allow-clear @search="search" />
|
<a-input-search v-model="queryForm.userName" placeholder="请输入姓名" allow-clear @search="search" />
|
||||||
<a-input-search v-model="queryForm.carNo" placeholder="请输入人员卡号" allow-clear @search="search" />
|
<a-input-search v-model="queryForm.carNo" placeholder="请输入人员卡号" allow-clear @search="search" />
|
||||||
<a-input-search v-model="queryForm.orderNo" placeholder="请输入订单号" allow-clear @search="search" />
|
<a-input-search v-model="queryForm.orderNo" placeholder="请输入任务工单号" allow-clear @search="search" />
|
||||||
<a-input-search v-model="queryForm.materialName" placeholder="请输入物料名称" allow-clear @search="search" />
|
<a-input-search v-model="queryForm.materialName" placeholder="请输入物料名称" allow-clear @search="search" />
|
||||||
<a-input-search v-model="queryForm.encoding" placeholder="请输入物料编码" allow-clear @search="search" />
|
<a-input-search v-model="queryForm.encoding" placeholder="请输入物料编码" allow-clear @search="search" />
|
||||||
<a-date-picker
|
<a-date-picker
|
||||||
@@ -160,9 +160,10 @@ const processColumns = (columns: TableInstanceColumns[]): TableInstanceColumns[]
|
|||||||
|
|
||||||
// 定义列配置,使用工具函数处理
|
// 定义列配置,使用工具函数处理
|
||||||
const columns = ref<TableInstanceColumns[]>(processColumns([
|
const columns = ref<TableInstanceColumns[]>(processColumns([
|
||||||
{ title: '创建人', dataIndex: 'createUserString' },
|
|
||||||
{ title: '卡号', dataIndex: 'cardNo' },
|
|
||||||
{ title: '标题', dataIndex: 'title', width: 180 },
|
{ title: '标题', dataIndex: 'title', width: 180 },
|
||||||
|
{ title: '创建人', dataIndex: 'createUserString' },
|
||||||
|
{ title: '人员卡号', dataIndex: 'cardNo' },
|
||||||
|
{ title: '任务工单号', dataIndex: 'orderNo' },
|
||||||
{ title: '物料图片', dataIndex: 'photoUrl', slotName: 'photoUrl', minWidth: 180, ellipsis: true, tooltip: true },
|
{ title: '物料图片', dataIndex: 'photoUrl', slotName: 'photoUrl', minWidth: 180, ellipsis: true, tooltip: true },
|
||||||
{ title: '物料名称', dataIndex: 'materialName' },
|
{ title: '物料名称', dataIndex: 'materialName' },
|
||||||
{ title: '物料编码', dataIndex: 'encoding' },
|
{ title: '物料编码', dataIndex: 'encoding' },
|
||||||
|
|||||||
Reference in New Issue
Block a user