-
-
收银台
-
-
-
-
- 注:关闭则不计算出入库数据
-
-
-
- 开启后: 收银完成后会自动打印对应数量的标签数
-
-
-
- 单份商品打包费。注:店铺开启外卖模式下该数据才生效
-
-
-
-
+
+
+
+ 注:关闭则不计算出入库数据
+
+
+
+ 开启后: 收银完成后会自动打印对应数量的标签数
+
+
+
+ 单份商品打包费。注:店铺开启外卖模式下该数据才生效
+
+
+
+
+
@@ -263,6 +280,8 @@
确 定
+
+
form.groupCategoryId = res" />
@@ -271,6 +290,7 @@ import { tbShopUnit, tbShopCategoryGet, tbProductPost, tbProductSpecGet, tbProdu
import addUnit from './components/addUnit'
import addClassify from './components/addClassify'
import shopList from '@/components/shopList'
+import groupTypeList from '@/components/groupTypeList'
import uploadImg from '@/components/uploadImg'
import settings from '@/settings'
import dayjs from 'dayjs'
@@ -281,7 +301,8 @@ export default {
addUnit,
addClassify,
uploadImg,
- shopList
+ shopList,
+ groupTypeList
},
data() {
return {
@@ -328,7 +349,8 @@ export default {
specInfo: [],
selectSpec: [],
specTableHeaders: [],
- skuSnap: ''
+ skuSnap: '',
+ groupCategoryId: []
},
rules: {
typeEnum: [
@@ -349,6 +371,13 @@ export default {
trigger: 'change',
message: '请选择商品分类'
}
+ ],
+ groupCategoryId: [
+ {
+ required: true,
+ trigger: 'change',
+ message: '请选择团购券分类'
+ }
]
},
units: [],
@@ -464,16 +493,22 @@ export default {
},
// 分组选择商品
selectShopRes(res) {
+ let arr = res.map(item => {
+ item.groupNum = 1
+ return item
+ })
if (this.tableAddShopIndex != null) {
- this.form.groupSnap[this.tableAddShopIndex].goods = res;
+ this.form.groupSnap[this.tableAddShopIndex].goods = [...arr];
this.tableAddShopIndex = null
} else {
this.form.groupSnap.push({
title: '',
- goods: res,
+ goods: [...arr],
number: 1
})
}
+
+ console.log(this.form.groupSnap);
},
// 切换类型
changeTypeEnum(index) {
@@ -671,6 +706,10 @@ export default {
display: flex;
align-items: center;
+ &:not(:first-child) {
+ margin-top: 6px;
+ }
+
.dot {
$size: 6px;
width: $size;
@@ -681,15 +720,18 @@ export default {
.name {
flex: 1;
+ display: flex;
margin-left: 10px;
+ align-items: center;
.t {
color: #333;
font-size: 14px;
- max-width: 100px;
+ width: 100px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
+ margin-right: 10px;
}
}