还原测试

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