|
@@ -85,8 +85,8 @@
|
|
|
<span class="history-title flex between">
|
|
<span class="history-title flex between">
|
|
|
<div>拍摄记录</div>
|
|
<div>拍摄记录</div>
|
|
|
<div class="c-666 fs-12" v-if="goodsList.length" >
|
|
<div class="c-666 fs-12" v-if="goodsList.length" >
|
|
|
- <el-button :disabled="!(runLoading || takePictureLoading)" @click="oneClickStop" v-if="configInfoStore.appModel === 1" class="input-button" type="primary" size="mini">一键停止</el-button>
|
|
|
|
|
- <el-button :disabled="runLoading || takePictureLoading" @click="delAll" class="input-button" type="danger" size="mini">一键删除</el-button>
|
|
|
|
|
|
|
+ <el-button :disabled="!(runLoading || takePictureLoading)" @click="oneClickStop" v-if="configInfoStore.appModel === 1" class="input-button" type="primary" size="mini" v-log="{ describe: { action: '一键停止拍摄' } }">一键停止</el-button>
|
|
|
|
|
+ <el-button :disabled="runLoading || takePictureLoading" @click="delAll" class="input-button" type="danger" size="mini" v-log="{ describe: { action: '一键删除所有记录' } }">一键删除</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</span>
|
|
</span>
|
|
|
<img class="divider-line" referrerpolicy="no-referrer" src="@/assets/images/Photography/divider-line.png" />
|
|
<img class="divider-line" referrerpolicy="no-referrer" src="@/assets/images/Photography/divider-line.png" />
|
|
@@ -116,12 +116,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
- <el-button size="small" :disabled="runLoading || takePictureLoading" @click="delGoods({goods_art_nos:[item.goods_art_no]})">删除</el-button>
|
|
|
|
|
|
|
+ <el-button size="small" :disabled="runLoading || takePictureLoading" @click="delGoods({goods_art_nos:[item.goods_art_no]})" v-log="{ describe: { action: '删除货号', goods_art_no: item.goods_art_no } }">删除</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="flex between flex-item c-333" style="margin-top: 5px">
|
|
<div class="flex between flex-item c-333" style="margin-top: 5px">
|
|
|
<div class="c-999 fs-12">{{ getTime(item.action_time) }}</div>
|
|
<div class="c-999 fs-12">{{ getTime(item.action_time) }}</div>
|
|
|
- <el-button size="small" :disabled="runLoading || takePictureLoading" type="primary" @click="reTakePictureNos(item.goods_art_no,item)" plain v-if="configInfoStore.appModel === 1">重拍</el-button>
|
|
|
|
|
|
|
+ <el-button size="small" :disabled="runLoading || takePictureLoading" type="primary" @click="reTakePictureNos(item.goods_art_no,item)" plain v-if="configInfoStore.appModel === 1" v-log="{ describe: { action: '重拍货号', goods_art_no: item.goods_art_no } }">重拍</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<div class="mar-top-10 clearfix history-item_image_wrap" style="width: 100%" >
|
|
<div class="mar-top-10 clearfix history-item_image_wrap" style="width: 100%" >
|
|
@@ -147,7 +147,7 @@
|
|
|
<div class="image-slot"></div>
|
|
<div class="image-slot"></div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-image>
|
|
</el-image>
|
|
|
- <el-button :disabled="runLoading || takePictureLoading" class="reset-button" @click="reTakePicture(image.PhotoRecord)">重拍</el-button>
|
|
|
|
|
|
|
+ <el-button :disabled="runLoading || takePictureLoading" class="reset-button" @click="reTakePicture(image.PhotoRecord)" v-log="{ describe: { action: '重拍单张图片', goods_art_no: image.PhotoRecord.goods_art_no, action_name: image.action_name } }">重拍</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -164,7 +164,7 @@
|
|
|
<el-image :src="getFilePath(image.PhotoRecord.image_path)" fit="contain">
|
|
<el-image :src="getFilePath(image.PhotoRecord.image_path)" fit="contain">
|
|
|
<template #error>
|
|
<template #error>
|
|
|
<div class="image-slot"></div>
|
|
<div class="image-slot"></div>
|
|
|
- <el-button :disabled="runLoading || takePictureLoading" class="reset-button" @click="reTakePicture(image.PhotoRecord)">重拍</el-button>
|
|
|
|
|
|
|
+ <el-button :disabled="runLoading || takePictureLoading" class="reset-button" @click="reTakePicture(image.PhotoRecord)" v-log="{ describe: { action: '重拍单张图片', goods_art_no: image.PhotoRecord.goods_art_no, action_name: image.action_name } }">重拍</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-image>
|
|
</el-image>
|
|
|
</div>
|
|
</div>
|
|
@@ -214,10 +214,12 @@ const loading = ref(false)
|
|
|
const runLoading = ref(false)
|
|
const runLoading = ref(false)
|
|
|
const takePictureLoading = ref(false)
|
|
const takePictureLoading = ref(false)
|
|
|
import { Close } from '@element-plus/icons-vue'
|
|
import { Close } from '@element-plus/icons-vue'
|
|
|
-
|
|
|
|
|
|
|
+import { clickLog, setLogInfo } from '@/utils/log'
|
|
|
|
|
+import { useRoute } from 'vue-router'
|
|
|
|
|
|
|
|
import useUserInfo from "@/stores/modules/user";
|
|
import useUserInfo from "@/stores/modules/user";
|
|
|
const useUserInfoStore = useUserInfo();
|
|
const useUserInfoStore = useUserInfo();
|
|
|
|
|
+const route = useRoute();
|
|
|
|
|
|
|
|
import configInfo from '@/stores/modules/config';
|
|
import configInfo from '@/stores/modules/config';
|
|
|
const configInfoStore = configInfo();
|
|
const configInfoStore = configInfo();
|
|
@@ -722,6 +724,7 @@ onMounted(async () => {
|
|
|
console.log('_photo_take_finish')
|
|
console.log('_photo_take_finish')
|
|
|
console.log(result)
|
|
console.log(result)
|
|
|
if(result.code === 0) {
|
|
if(result.code === 0) {
|
|
|
|
|
+ setLogInfo(route, { action: '拍摄完成', goods_art_no: runAction.value.goods_art_no });
|
|
|
runLoading.value = false;
|
|
runLoading.value = false;
|
|
|
runAction.value.goods_art_no = '';
|
|
runAction.value.goods_art_no = '';
|
|
|
runAction.value.action = '';
|
|
runAction.value.action = '';
|
|
@@ -766,6 +769,8 @@ onMounted(async () => {
|
|
|
|
|
|
|
|
const onRemoteControl = (type)=>{
|
|
const onRemoteControl = (type)=>{
|
|
|
if(type == 'take_picture'){
|
|
if(type == 'take_picture'){
|
|
|
|
|
+ // 埋点:手动拍照
|
|
|
|
|
+ clickLog({ describe: { action: '手动拍照' } }, route);
|
|
|
|
|
|
|
|
if(runLoading.value || takePictureLoading.value){
|
|
if(runLoading.value || takePictureLoading.value){
|
|
|
ElMessage.error('拍摄程序正在运行,请稍候')
|
|
ElMessage.error('拍摄程序正在运行,请稍候')
|
|
@@ -787,6 +792,10 @@ const onRemoteControl = (type)=>{
|
|
|
}
|
|
}
|
|
|
let action = '执行左脚程序'
|
|
let action = '执行左脚程序'
|
|
|
if(type === 'right') action = '执行右脚程序'
|
|
if(type === 'right') action = '执行右脚程序'
|
|
|
|
|
+
|
|
|
|
|
+ // 埋点:遥控器启动拍摄
|
|
|
|
|
+ clickLog({ describe: { action: `遥控器${type === 'left' ? '左脚' : '右脚'}启动拍摄`, goods_art_no: goods_art_no.value } }, route);
|
|
|
|
|
+
|
|
|
runGoods({
|
|
runGoods({
|
|
|
"action": action,
|
|
"action": action,
|
|
|
"goods_art_no": goods_art_no.value,
|
|
"goods_art_no": goods_art_no.value,
|
|
@@ -956,6 +965,8 @@ clientStore.ipc.on(icpList.socket.message + '_run_mcu_update', (event, result) =
|
|
|
* 打开主图详情页面。
|
|
* 打开主图详情页面。
|
|
|
*/
|
|
*/
|
|
|
function openPhotographyDetail() {
|
|
function openPhotographyDetail() {
|
|
|
|
|
+ // 埋点:开始生成
|
|
|
|
|
+ clickLog({ describe: { action: '开始生成', goods_count: goodsList.value.length, goods_art_nos: goodsList.value.map(item=>item.goods_art_no) } }, route);
|
|
|
|
|
|
|
|
if(runLoading.value || takePictureLoading.value){
|
|
if(runLoading.value || takePictureLoading.value){
|
|
|
ElMessage.error('正在拍摄中,请稍候')
|
|
ElMessage.error('正在拍摄中,请稍候')
|