|
|
@@ -271,8 +271,9 @@ async function getPhotoRecords(params?:{}) {
|
|
|
clientStore.ipc.removeAllListeners(icpList.takePhoto.getPhotoRecords);
|
|
|
if(result.code === 0){
|
|
|
|
|
|
- console.log('======================');
|
|
|
- console.log(runAction.value);
|
|
|
+
|
|
|
+ console.log('getPhotoRecords print_time:'+new Date().toLocaleString()) // 打印当前时间
|
|
|
+ console.log('getPhotoRecords print_time:'+JSON.stringify(result.data.list)) // 打印当前时间
|
|
|
goodsList.value = result.data.list
|
|
|
if(isDelGoodsGetList.value){
|
|
|
isDelGoodsGetList.value = false;
|
|
|
@@ -662,12 +663,11 @@ const getLastPhotoRecord = async ()=>{
|
|
|
|
|
|
// 监听拍照完成后的最终状态事件
|
|
|
clientStore.ipc.on(icpList.socket.message + '_run_mcu_update', (event, result) => {
|
|
|
- console.log('_run_mcu_update')
|
|
|
- console.log(result)
|
|
|
- console.log('run_mcu_update:'+new Date().toLocaleString()) // 打印当前时间
|
|
|
+ console.log('run_mcu_updat print_time:'+new Date().toLocaleString()) // 打印当前时间
|
|
|
+ console.log('run_mcu_update print_time:'+JSON.stringify(result))
|
|
|
|
|
|
if(result.code === 0){
|
|
|
- if(lastPhoto.value?.file_path){
|
|
|
+ if(result.data?.file_path){
|
|
|
if( lastPhoto.value?.file_path == result.data?.file_path) return;
|
|
|
|
|
|
if(runAction.value.goods_art_no === result.data?.goods_art_no){
|
|
|
@@ -677,8 +677,8 @@ clientStore.ipc.on(icpList.socket.message + '_run_mcu_update', (event, result) =
|
|
|
getPhotoRecords()
|
|
|
},2000)
|
|
|
}
|
|
|
+ lastPhoto.value = result.data
|
|
|
}
|
|
|
- lastPhoto.value = result.data
|
|
|
}else if(result.msg) {
|
|
|
ElMessage.error(result.msg)
|
|
|
}
|