|
|
@@ -3,7 +3,7 @@
|
|
|
title="拍摄商品"
|
|
|
showUser
|
|
|
showDeviceStatus
|
|
|
- :menu="menu"
|
|
|
+ :menu="headerMenu"
|
|
|
/>
|
|
|
|
|
|
<hardware-check @confirm="onHardwareCheckConfirm"/>
|
|
|
@@ -92,13 +92,6 @@
|
|
|
|
|
|
</div>
|
|
|
|
|
|
- <!-- 演示模式按钮(仅惠利玛用户可见) -->
|
|
|
- <div class="demo-mode-btn-wrap" v-if="isHLM">
|
|
|
- <el-button type="warning" size="large" @click="openDemoMode" :disabled="isDemoMode">
|
|
|
- 演示模式
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
-
|
|
|
<div class="step-section">
|
|
|
<div class="step-number flex-col"><span class="text_22">2</span></div>
|
|
|
<div class="step-two flex-col justify-between">
|
|
|
@@ -215,7 +208,20 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-image>
|
|
|
- <el-button v-if="image.action_name && !runLoading && !takePictureLoading" :disabled="runLoading || takePictureLoading" class="reset-button" @click.stop="reTakePicture(image.PhotoRecord)" v-log="{ describe: { action: '重拍单张图片', goods_art_no: image.PhotoRecord.goods_art_no, action_name: image.action_name } }">重拍</el-button>
|
|
|
+ <div v-if="image.action_name && !runLoading && !takePictureLoading" class="image-actions">
|
|
|
+ <el-button
|
|
|
+ :disabled="runLoading || takePictureLoading"
|
|
|
+ class="reset-button"
|
|
|
+ @click.stop="reTakePicture(image.PhotoRecord)"
|
|
|
+ v-log="{ describe: { action: '重拍单张图片', goods_art_no: image.PhotoRecord.goods_art_no, action_name: image.action_name } }"
|
|
|
+ >重拍</el-button>
|
|
|
+ <el-button
|
|
|
+ :disabled="runLoading || takePictureLoading"
|
|
|
+ class="reset-button delete-button"
|
|
|
+ @click.stop="deletePhotoRecord(image.PhotoRecord)"
|
|
|
+ v-log="{ describe: { action: '删除单张图片', goods_art_no: image.PhotoRecord.goods_art_no, record_id: image.PhotoRecord.id, action_name: image.action_name } }"
|
|
|
+ >删除</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -352,6 +358,7 @@ const {
|
|
|
deleteAllGoods,
|
|
|
reTakePicture,
|
|
|
reTakePictureNos,
|
|
|
+ deletePhotoRecord,
|
|
|
onRemoteControl,
|
|
|
openPhotographyDetail,
|
|
|
onGenerateCLick,
|
|
|
@@ -374,6 +381,30 @@ const {
|
|
|
onDemoProgramTypeChange,
|
|
|
} = usePhotography()
|
|
|
|
|
|
+const headerMenu = computed(() => {
|
|
|
+ const items: any[] = []
|
|
|
+ for (const item of menu.value || []) {
|
|
|
+ if (item.name === '快捷操作') {
|
|
|
+ const extra = (item.children || []).filter(
|
|
|
+ (child: any) => child.type !== 'OneClickRelease' && child.type !== 'OneKeyDown'
|
|
|
+ )
|
|
|
+ items.push(...extra)
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ items.push(item)
|
|
|
+ }
|
|
|
+ if (isHLM.value) {
|
|
|
+ const insertAt = items.findIndex((item) => item.type === 'setting')
|
|
|
+ items.splice(insertAt >= 0 ? insertAt + 1 : 0, 0, {
|
|
|
+ name: '演示模式',
|
|
|
+ click() {
|
|
|
+ if (!isDemoMode.value) openDemoMode()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ return items
|
|
|
+})
|
|
|
+
|
|
|
const fabOpen = ref(false)
|
|
|
|
|
|
async function handleOneClickRelease() {
|
|
|
@@ -724,19 +755,6 @@ watch(goodsList, () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 演示模式按钮样式
|
|
|
-.demo-mode-btn-wrap {
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- margin: 20px 0 30px 50px;
|
|
|
-
|
|
|
- .el-button {
|
|
|
- width: 200px;
|
|
|
- height: 44px;
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
.photography-page {
|
|
|
background-color: rgba(255, 255, 255, 1);
|
|
|
position: relative;
|
|
|
@@ -1122,27 +1140,41 @@ watch(goodsList, () => {
|
|
|
display: flex;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ .image-actions {
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ top: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ display: none;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ gap: 6px;
|
|
|
+ z-index: 2;
|
|
|
+ }
|
|
|
|
|
|
.reset-button {
|
|
|
- width: 40px;
|
|
|
+ width: 48px;
|
|
|
text-align: center;
|
|
|
- height: 20px;
|
|
|
- position: absolute;
|
|
|
- left:50%;
|
|
|
- top:50%;
|
|
|
- padding: 0px;
|
|
|
- margin-left:-20px;
|
|
|
- margin-top:-10px;
|
|
|
+ height: 22px;
|
|
|
+ padding: 0;
|
|
|
+ margin: 0;
|
|
|
color: #ffffff;
|
|
|
- font-size: 14px;
|
|
|
+ font-size: 13px;
|
|
|
background: rgba(0,0,0,0.6);
|
|
|
border-radius: 12px;
|
|
|
- display: none;
|
|
|
+ border: none;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+
|
|
|
+ .delete-button {
|
|
|
+ background: rgba(255, 76, 0, 0.85);
|
|
|
+ }
|
|
|
+
|
|
|
&:hover {
|
|
|
- .reset-button {
|
|
|
- display: block;
|
|
|
+ .image-actions {
|
|
|
+ display: flex;
|
|
|
}
|
|
|
}
|
|
|
}
|