|
|
@@ -4,6 +4,26 @@
|
|
|
|
|
|
<div class="detail-container">
|
|
|
<div>
|
|
|
+ <!-- 处理模式 -->
|
|
|
+ <div class="logo-section flex left top" >
|
|
|
+ <div class="section-title" style="margin-bottom: 0px;">
|
|
|
+ <img src="@/assets/images/Photography/zhuangshi.png" style="width: 32px; height: 32px;" />
|
|
|
+ 处理模式:
|
|
|
+
|
|
|
+ <el-checkbox v-model="form.is_only_cutout"
|
|
|
+ true-value="1"
|
|
|
+ false-value="0"
|
|
|
+ true-label="1"
|
|
|
+ false-label="0"
|
|
|
+ label="仅抠图模式"/>
|
|
|
+ <span class="flex left" style="font-weight: normal; font-size: 12px; color: #666">
|
|
|
+ <el-icon><QuestionFilled /></el-icon>
|
|
|
+ 如您勾选仅抠图模式,将只做抠图处理,不再自动生成详情页。
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <template v-if="form.is_only_cutout == 0">
|
|
|
<!-- 主图LOGO部分 -->
|
|
|
<div class="logo-section flex left top" >
|
|
|
<div class="section-title" style="margin-bottom: 0px;">
|
|
|
@@ -173,6 +193,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
<!-- 底部按钮 -->
|
|
|
<div class="footer">
|
|
|
@@ -278,6 +299,7 @@ const form = reactive({
|
|
|
dataType: '1', // 1: 选择excel文件 2: 系统对接
|
|
|
logo_path: '', // 主图LOGO
|
|
|
excel_path: '', // 商品基础资料EXCEL文件选择
|
|
|
+ is_only_cutout:0, //是否仅抠图模式
|
|
|
})
|
|
|
onMounted(() => {
|
|
|
const goods_art_data = route.query.goods_art_nos
|
|
|
@@ -337,9 +359,12 @@ const onSizeChange = (data) => {
|
|
|
|
|
|
// 开始生成操作
|
|
|
const generate = async function () {
|
|
|
- if ( form.dataType == '1' && !form.excel_path) {
|
|
|
- ElMessage.error('请上传商品基础资料')
|
|
|
- return
|
|
|
+ if(form.is_only_cutout == 0 ){
|
|
|
+
|
|
|
+ if ( form.dataType == '1' && !form.excel_path) {
|
|
|
+ ElMessage.error('请上传商品基础资料')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
const tokenInfoStore = tokenInfo();
|
|
|
const token = tokenInfoStore.getToken; // 使用 getToken() 获取 token
|
|
|
@@ -352,6 +377,7 @@ const generate = async function () {
|
|
|
})
|
|
|
const params = {
|
|
|
goods_art_no: JSON.parse(JSON.stringify(goods_art_nos.value)),
|
|
|
+ is_only_cutout: form.is_only_cutout || '0',
|
|
|
logo_path: form.logo_path || '',
|
|
|
temp_name: form.selectTemplate.template_id || '',
|
|
|
excel_path: form.dataType == '1' ? form.excel_path : '',
|
|
|
@@ -574,6 +600,7 @@ const selectFolder = () => {
|
|
|
min-width: 600px;
|
|
|
padding: 20px;
|
|
|
overflow: hidden;
|
|
|
+ min-height: calc(100vh - 30px);
|
|
|
|
|
|
}
|
|
|
|