fix: 修复善品测试发现的问题

(cherry picked from commit 7fb6258bed)
This commit is contained in:
puhui999 2023-06-01 11:54:39 +08:00 committed by shizhong
parent c2168466f3
commit b28bfc4081
2 changed files with 6 additions and 5 deletions

View File

@ -63,7 +63,7 @@ const formData = ref<ProductSpuApi.Spu>({
keyword: '', // keyword: '', //
unit: null, // unit: null, //
picUrl: '', // picUrl: '', //
sliderPicUrls: [''], // sliderPicUrls: [], //
introduction: '', // introduction: '', //
deliveryTemplateId: null, // deliveryTemplateId: null, //
brandId: null, // brandId: null, //

View File

@ -74,7 +74,8 @@
:value="item.id" :value="item.id"
/> />
</el-select> </el-select>
<el-button class="ml-20px">运费模板</el-button> <!-- TODO 可能情况善品录入后选择运费发现下拉选择中没有对应的模版 这里需不需要做添加运费模版后选择的功能 -->
<!-- <el-button class="ml-20px">运费模板</el-button>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -107,6 +108,9 @@
</el-col> </el-col>
<!-- 多规格添加--> <!-- 多规格添加-->
<el-col :span="24"> <el-col :span="24">
<el-form-item v-if="!formData.specType">
<SkuList ref="skuListRef" :prop-form-data="formData" :propertyList="propertyList" />
</el-form-item>
<el-form-item v-if="formData.specType" label="商品属性"> <el-form-item v-if="formData.specType" label="商品属性">
<el-button class="mr-15px mb-10px" @click="attributesAddFormRef.open">添加规格</el-button> <el-button class="mr-15px mb-10px" @click="attributesAddFormRef.open">添加规格</el-button>
<ProductAttributes :propertyList="propertyList" @success="generateSkus" /> <ProductAttributes :propertyList="propertyList" @success="generateSkus" />
@ -119,9 +123,6 @@
<SkuList ref="skuListRef" :prop-form-data="formData" :propertyList="propertyList" /> <SkuList ref="skuListRef" :prop-form-data="formData" :propertyList="propertyList" />
</el-form-item> </el-form-item>
</template> </template>
<el-form-item v-if="!formData.specType">
<SkuList :prop-form-data="formData" :propertyList="propertyList" />
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>