diff --git a/src/views/product/indexconfig/addgoods.vue b/src/views/product/indexconfig/addgoods.vue index 197b815..87850a6 100644 --- a/src/views/product/indexconfig/addgoods.vue +++ b/src/views/product/indexconfig/addgoods.vue @@ -1,50 +1,25 @@ @@ -167,10 +105,7 @@ - + 删除 @@ -182,11 +117,7 @@ @@ -196,20 +127,10 @@ @@ -222,51 +143,26 @@ - - + + - + - + - - + + +
@@ -300,30 +196,24 @@ - - + + + + + - + + -
- -
注:关闭则不计算出入库数据
+
+ +
注:关闭则不计算出入库数据
@@ -334,13 +224,10 @@ -
- -
单份商品打包费。注:店铺开启外卖模式下该数据才生效
+
+ +
单份商品打包费。注:店铺开启外卖模式下该数据才生效
@@ -355,13 +242,8 @@
选项值
-
+
{{ item.specInfo }}
@@ -566,13 +448,11 @@ onMounted(() => { if (router.currentRoute.value.query.goods_id) { tbProductGetDetail(router.currentRoute.value.query.goods_id); } -}); -watch( - () => router.currentRoute.value.query.goods_id, - (val) => { - tbProductGetDetail(val); - } -); +}) +watch(() => router.currentRoute.value.query.goods_id, (val) => { + tbProductGetDetail(val); +}) + async function tbProductGetDetail(id: any) { // 获取商品详情 const res = await UserAPI3.getDetail(id); @@ -628,8 +508,8 @@ function selectSkuHandle(item: any, index: number) { } function addimgEvent() { if (isSyncStatus()) { - ElMessage.error("当前同步启用状态下不可修改"); - return; + ElMessage.error('当前同步启用状态下不可修改') + return } (addImg.value as any)?.show(); } @@ -667,8 +547,8 @@ function addgoods(index: number = -1) { } function deleteEvent(d: any) { if (isSyncStatus()) { - ElMessage.error("当前同步启用状态下不可修改"); - return; + ElMessage.error('当前同步启用状态下不可修改') + return } let index = ruleForm.images.findIndex((ele) => ele == d); ruleForm.images.splice(index, 1); @@ -883,19 +763,11 @@ const submitForm = async (formEl: FormInstance | undefined) => { // 规格id修改 // ruleForm.specId = specIdFunction(ruleForm.type) let selectTitle = false; - ruleForm.proGroupVo.forEach((item: any) => {}); + ruleForm.proGroupVo.forEach((item: any) => { }); if (selectTitle) { ElMessage.error("请填写组名和几选几"); return; } - // 修改时间 - console.log(ruleForm.useTime); - if (!ruleForm.useTime) { - ElMessage.error("请选择定时上下架时间"); - return; - } - ruleForm.startTime = ruleForm.useTime[0]; - ruleForm.endTime = ruleForm.useTime[1]; // 拿到sku数据 ruleForm.skuList = (specificationAttributeRef.value as any)?.getdata(); // 多规格 selectSpecInfo 添加 @@ -924,7 +796,7 @@ const submitForm = async (formEl: FormInstance | undefined) => { } } } - ruleForm.days = ruleForm.days.join(","); + ruleForm.days = ruleForm.days.join(',') setTimeout(() => { ruleForm.days = ruleForm.days.split(","); }, 200); @@ -1043,7 +915,7 @@ const resetForm = (formEl: FormInstance | undefined) => { margin-bottom: 20px; } -.showStyle:hover > .buttonstyle { +.showStyle:hover>.buttonstyle { display: block; }