|
@@ -44,7 +44,7 @@
|
|
|
<view class='item acea-row row-between-wrapper'>
|
|
|
<view class='name'>自提点</view>
|
|
|
<view @click="openSelfTakeTable()">
|
|
|
- <input type='text' placeholder='请选择提自提点' name='mainTitle' disabled v-model="ztd"
|
|
|
+ <input type='text' placeholder='请选择提自提点' disabled v-model="ztd"
|
|
|
placeholder-class='placeholder'></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -85,13 +85,9 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <button class="button_1 flex-col" @click="addGood">
|
|
|
+ <button class="button_1 flex-col justify-center" @click="addGood">
|
|
|
<text class="text_15">添加商品</text>
|
|
|
</button>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<button class='keepBnt' form-type="submit">保存并提交</button>
|
|
|
|
|
|
</view>
|
|
@@ -103,9 +99,9 @@
|
|
|
<home></home>
|
|
|
<!-- #endif -->
|
|
|
|
|
|
- <u-popup :show="addGoodPopupShow" @close="close" @open=" ">
|
|
|
+ <u-popup :show="addGoodPopupShow" @close="close" @open="">
|
|
|
<view>
|
|
|
- <publish_good_list @getSelectData="getSelectData" v-if="addGoodPopupShow"></publish_good_list>
|
|
|
+ <publish_good_list ref="publish_good_list" @getSelectData="getSelectData" v-if="addGoodPopupShow"></publish_good_list>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
|
|
@@ -258,19 +254,20 @@ export default {
|
|
|
},
|
|
|
closeTrue(){
|
|
|
this.selfTakeShow = false;
|
|
|
+ let _ztd=''
|
|
|
console.log(this.grouponReqData.selfTakeIds)
|
|
|
this.selfTakeList.forEach(e =>{
|
|
|
this.grouponReqData.selfTakeIds.forEach(ee =>{
|
|
|
if (e.id === ee){
|
|
|
- if (this.ztd){
|
|
|
- this.ztd=this.ztd +','+e.name
|
|
|
+ if (_ztd){
|
|
|
+ _ztd=_ztd +','+e.name
|
|
|
}else {
|
|
|
- this.ztd=e.name
|
|
|
+ _ztd=e.name
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
-
|
|
|
+ this.ztd = _ztd
|
|
|
console.log(this.ztd)
|
|
|
|
|
|
},
|
|
@@ -306,6 +303,7 @@ export default {
|
|
|
this.$refs.mySon.show();
|
|
|
},
|
|
|
openSelfTakeTable () {
|
|
|
+ this.grouponReqData.selfTakeIds = []
|
|
|
getAllSelfTake({
|
|
|
current: 1,
|
|
|
size: 50
|
|
@@ -329,7 +327,8 @@ export default {
|
|
|
},
|
|
|
close () {
|
|
|
this.addGoodPopupShow = false
|
|
|
- // console.log('close');
|
|
|
+ this.grouponReqData.goodsIds =this.$refs.publish_good_list.returnVGoodIds();
|
|
|
+ console.log('close',this.grouponReqData.goodsIds);
|
|
|
},
|
|
|
addGood () {
|
|
|
this.addGoodPopupShow = true
|
|
@@ -403,16 +402,16 @@ export default {
|
|
|
title: that.$t(`请选择自提点`)
|
|
|
});
|
|
|
}
|
|
|
- if (this.selectGoodList.length < 1) {
|
|
|
+ if (this.grouponReqData.goodsIds.length < 1) {
|
|
|
return that.$util.Tips({
|
|
|
title: that.$t(`请添加商品`)
|
|
|
});
|
|
|
}
|
|
|
- let goodsIds = [];
|
|
|
- this.selectGoodList.forEach(e => {
|
|
|
- goodsIds.push(e.id);
|
|
|
- that.grouponReqData.goodsIds = goodsIds;
|
|
|
- })
|
|
|
+ // let goodsIds = [];
|
|
|
+ // this.selectGoodList.forEach(e => {
|
|
|
+ // goodsIds.push(e.id);
|
|
|
+ // that.grouponReqData.goodsIds = goodsIds;
|
|
|
+ // })
|
|
|
uni.showLoading({
|
|
|
title: that.$t(`发布中`),
|
|
|
mask: true
|