|
|
@@ -93,7 +93,21 @@
|
|
|
<div class="flex between flex-item c-333">
|
|
|
<div class="chaochu flex-item flex left">货号:{{ item.goods_art_no }}</div>
|
|
|
<div >
|
|
|
+<!--
|
|
|
<el-button :disabled="runLoading || takePictureLoading" size="small" plain >高级生成</el-button>
|
|
|
+-->
|
|
|
+
|
|
|
+ <el-dropdown @command="handleGenerateCommand" :disabled="runLoading || takePictureLoading" >
|
|
|
+ <el-button :disabled="runLoading || takePictureLoading" size="small" plain >高级生成</el-button>
|
|
|
+ <template #dropdown>
|
|
|
+ <el-dropdown-menu>
|
|
|
+ <el-dropdown-item
|
|
|
+ v-for="menu in generate.children"
|
|
|
+ @click.native="onGenerateCLick(menu,item)">{{ menu.name }}</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </template>
|
|
|
+ </el-dropdown>
|
|
|
+
|
|
|
<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" @click="delGoods({goods_art_nos:[item.goods_art_no]})">删除</el-button>
|
|
|
</div>
|
|
|
@@ -186,7 +200,7 @@ import {useRouter} from "vue-router";
|
|
|
import HardwareCheck from '@/components/check/index.vue'
|
|
|
import checkInfo from "@/stores/modules/check";
|
|
|
import RemoteControl from '@/views/RemoteControl/index'
|
|
|
-import generate from '@/utils/menus/generate'
|
|
|
+import generate,{openGaenrate} from '@/utils/menus/generate'
|
|
|
|
|
|
|
|
|
const loading = ref(false)
|
|
|
@@ -802,6 +816,27 @@ function openPhotographyDetail() {
|
|
|
clientStore.ipc.send(icpList.utils.openMain, params);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+/*高级生成*/
|
|
|
+const onGenerateCLick = (menu,item)=>{
|
|
|
+ const firstWithImagePath = item.items.find(
|
|
|
+ (image) => image.PhotoRecord.image_path
|
|
|
+ );
|
|
|
+
|
|
|
+ console.log(firstWithImagePath.PhotoRecord.image_path);
|
|
|
+ if (firstWithImagePath) {
|
|
|
+ menu.click({
|
|
|
+ query:{
|
|
|
+ image_path:firstWithImagePath.PhotoRecord.image_path
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ menu.click()
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
|