|
@@ -82,14 +82,13 @@
|
|
|
import { downloadDataFromAPI, uploadDataToAPI } from '@/utils/qcDataProcessor.uts';
|
|
|
|
|
|
// 产品号输入框数据
|
|
|
- const productNo = ref('');
|
|
|
+ const productNo = ref('PI02297172');
|
|
|
|
|
|
const backPressOptions = reactive({
|
|
|
from: 'backbutton'
|
|
|
} as OnBackPressOptions)
|
|
|
|
|
|
onBackPress((options : OnBackPressOptions) : boolean | null => {
|
|
|
- console.log('onBackPress', options)
|
|
|
// 使用reLaunch代替switchTab,避免多层跳转时的闪回问题
|
|
|
// reLaunch会关闭所有页面并打开到目标页面,适合需要完全重置导航栈的场景
|
|
|
uni.reLaunch({
|
|
@@ -135,7 +134,6 @@
|
|
|
});
|
|
|
}
|
|
|
downloads.value = initDownloads
|
|
|
- console.log(initDownloads)
|
|
|
})
|
|
|
// #endif
|
|
|
|
|
@@ -195,7 +193,7 @@
|
|
|
// 调用数据处理工具中的方法下载数据
|
|
|
if(productNo.value == null || productNo.value == '') {
|
|
|
uni.showToast({
|
|
|
- title: '请先扫描或者输入产品号',
|
|
|
+ title: '请先扫描或者输入工序编号',
|
|
|
icon: 'error'
|
|
|
});
|
|
|
return
|