@@ -85,10 +85,10 @@
添加商品
- 设置规格
删除
+ @click="ruleForm.proGroupVo[index].goods.splice(scope.$index, 1)">删除
@@ -97,10 +97,10 @@
-
+
-
+
删除
@@ -113,7 +113,7 @@
-
+
@@ -121,10 +121,10 @@
添加商品
- 设置规格
- 删除
+ 删除
@@ -135,7 +135,8 @@
-
+
@@ -189,8 +190,7 @@
+ end-placeholder="结束时间" value-format="HH:mm:ss" format="HH:mm:ss" />
@@ -198,7 +198,7 @@
@@ -211,7 +211,8 @@
-
+
单份商品打包费。注:店铺开启外卖模式下该数据才生效
@@ -493,7 +494,7 @@ function selectSkuHandle(item: any, index: number) {
// }
}
function addimgEvent() {
- if( isSyncStatus() ){
+ if (isSyncStatus()) {
ElMessage.error('当前同步启用状态下不可修改')
return
}
@@ -526,7 +527,7 @@ function addgoods(index: number = -1) {
(shopListRef.value as any)?.opens()
}
function deleteEvent(d: any) {
- if( isSyncStatus() ){
+ if (isSyncStatus()) {
ElMessage.error('当前同步启用状态下不可修改')
return
}
@@ -737,7 +738,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate(async (valid, fields) => {
if (valid) {
-
+
// 第一张图片作为封面图
ruleForm.coverImg = ruleForm.images[0]
// 规格id修改
@@ -751,7 +752,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
}
// 修改时间
console.log(ruleForm.useTime)
- if( !ruleForm.useTime ){
+ if (!ruleForm.useTime) {
ElMessage.error('请选择定时上下架时间')
return
}
@@ -769,7 +770,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
} else if (ruleForm.type == 'package') {
// console.log(ruleForm, '套餐')
}
-
+
// 标题和几选几是否填写
if (ruleForm.type == "package") {
if (ruleForm.groupType == '1') {
@@ -789,6 +790,10 @@ const submitForm = async (formEl: FormInstance | undefined) => {
setTimeout(() => {
ruleForm.days = ruleForm.days.split(',')
}, 200);
+
+ if (ruleForm.type == 'weight') {
+ ruleForm.specId = ''
+ }
if (ruleForm.id) {
let res = await UserAPI3.update(ruleForm)
if (res.code == 200) {