还原测试

This commit is contained in:
zc
2026-04-03 16:06:04 +08:00
parent 63013bbd67
commit 3eb98be172

View File

@@ -476,7 +476,7 @@ const workOrderResp = ref<WorkOrderResp>({
// 称重登记页面数据
const inputQuantity = ref()
// todo
const ahDeviceWeight = ref('100')
const ahDeviceWeight = ref('')
const calculatedWeight = ref('')
const weighingCount = ref(1)
@@ -644,11 +644,8 @@ const handleNext = async () => {
// 调用后端接口获取比对结果 // todo
const res = await vmSend(materialCode);
// compareMatchResult.value = res.data || '';
compareMatchResult.value = 'success'
if (compareMatchResult.value === 'success') {
// 比对成功,按钮变为下一步
if (res.data && res.data == materialCode) {
compareMatchResult.value === 'success';
Message.success('比对成功')
} else {
// 比对失败,提示错误
@@ -711,7 +708,7 @@ const handleBackToFirst = () => {
// 重置称重登记页面数据
inputQuantity.value = ''
// todo
ahDeviceWeight.value = '100'
ahDeviceWeight.value = ''
calculatedWeight.value = ''
weighingCount.value = 1
// 清空称重列表
@@ -798,7 +795,7 @@ const handleConfirm = async () => {
// 重置输入(让用户能继续输入)
inputQuantity.value = ''
// todo
ahDeviceWeight.value = '100'
ahDeviceWeight.value = ''
calculatedWeight.value = ''
weighingCount.value = weighingList.value.length + 1