diff --git a/pages/my/new-serv.vue b/pages/my/new-serv.vue index 08f82da..66113db 100644 --- a/pages/my/new-serv.vue +++ b/pages/my/new-serv.vue @@ -8,7 +8,7 @@
- 服务名称* + 服务名称* @@ -17,7 +17,7 @@ - 选择类目* + 选择类目* --> - + + 商品单位* + + + 附加服务 @@ -108,7 +112,7 @@ - 上架区域* + 上架区域* --> - 商品封面图上传* + 商品封面图上传* @@ -161,7 +165,7 @@ - 详情图上传* + 详情图上传* @@ -182,7 +186,7 @@ - 轮播图上传* + 轮播图上传* @@ -540,6 +544,8 @@ errMsg = '至少选择一个规格'; } else if (!this.validSpecData(data.goodsStandardList)) { return false; + } else if (!data.goodsUnit) { + errMsg = '商品单位不能为空'; } else if (!data.goodsAreaList || !data.goodsAreaList.length) { errMsg = '至少选择一个上架区域'; } else if (!data.coverImgList || !data.coverImgList.length) { @@ -568,8 +574,6 @@ errMsg = '勾选规格的价格不能为空'; } else if (!spec.groupPrice) { errMsg = '勾选规格的团购价不能为空'; - } else if (!spec.goodsUnit) { - errMsg = '勾选规格的规格单位不能为空'; } else if (!spec.goodsNum) { errMsg = '勾选规格的库存不能为空'; } @@ -632,7 +636,8 @@ let params = { goodsName: this.formData.servName, - goodsDesc: this.formData.servDesc, + goodsDesc: this.formData.servDesc, + goodsUnit: this.formData.goodsUnit, deptGoodsCategoryId: this.formData.category[2].goodsCategoryId, goodsStandardList: goodsStandardList, goodsAreaList: goodsAreaList,