diff --git a/src/views/bxg/shop/goods/form.vue b/src/views/bxg/shop/goods/form.vue
index 36e7a8c..bdbcb3d 100644
--- a/src/views/bxg/shop/goods/form.vue
+++ b/src/views/bxg/shop/goods/form.vue
@@ -209,6 +209,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -491,6 +516,12 @@ export default {
id: 0,
spec_type: 0,
temp_id: '',
+ config:{
+ withoutReason:null,
+ withoutReasonPic:'',
+ confirmed:null,
+ confirmedPic:'',
+ },
attrs: [],
items: [
{
@@ -738,18 +769,26 @@ export default {
size: 999,
sort: 'id,desc'
}).then(data => {
- console.log('dara', data);
+ // console.log('dara', data);
that.brandList=data.content
//若为编辑,应初始化一下品牌
}),
//查询商品规格和分类
getInfo(id).then(async res => {
let data = res.productInfo;
- console.log('data:'+data,res)
if(data){
+ console.log('data11111',data)
let cate_id = parseInt(data.cate_id) || 0;
let brand_id = parseInt(data.brand_id) || 0;
this.attrs = data.items || [];
+ if (data.config==undefined){
+ data['config']={
+ withoutReason:null,
+ withoutReasonPic:'',
+ confirmed:null,
+ confirmedPic:'',
+ }
+ }
that.formValidate = data;
that.formValidate.cate_id = cate_id;
that.formValidate.brand_id = brand_id;
diff --git a/src/views/bxg/shop/goods/index.vue b/src/views/bxg/shop/goods/index.vue
index a9cae69..98b2d7b 100644
--- a/src/views/bxg/shop/goods/index.vue
+++ b/src/views/bxg/shop/goods/index.vue
@@ -219,6 +219,7 @@ export default {
this.$refs.form.getCates()
},
edit(data) {
+ console.log('data.config',data.config)
this.isAdd = false
const _this = this.$refs.form
_this.getCates()
@@ -234,6 +235,12 @@ export default {
parameter:data.parameter,
keyword: data.keyword,
barCode: data.barCode,
+ // config:data.config==null?{
+ // withoutReason:null,
+ // withoutReasonPic:'',
+ // confirmed:null,
+ // confirmedPic:'',
+ // }:data.config,
storeCategory: data.storeCategory || {id:null},
storeBrand:data.brandName || {id:null},
price: data.price,
diff --git a/src/views/bxg/shop/set/seckill.vue b/src/views/bxg/shop/set/seckill.vue
index 5665c09..a701dc5 100644
--- a/src/views/bxg/shop/set/seckill.vue
+++ b/src/views/bxg/shop/set/seckill.vue
@@ -119,7 +119,8 @@ export default {
groupName: data.groupName,
time: data.map.time>9?data.map.time+':00':'0'+data.map.time+':00',
continued: data.map.continued,
- status:data.map.status
+ status:data.map.status,
+ rule:data.map.rule
}
_this.dialog = true
}
diff --git a/src/views/bxg/shop/set/seckillform.vue b/src/views/bxg/shop/set/seckillform.vue
index 9b28ee0..3f69725 100644
--- a/src/views/bxg/shop/set/seckillform.vue
+++ b/src/views/bxg/shop/set/seckillform.vue
@@ -1,6 +1,6 @@
+ :title="isAdd ? '新增' : '编辑'" width="900px">
@@ -23,6 +23,9 @@
关闭
+
+
+