Просмотр исходного кода

杭州斗南关闭免费配送

shish 3 лет назад
Родитель
Сommit
ffc9538598
1 измененных файлов с 10 добавлено и 4 удалено
  1. 10 4
      hdApp/src/admin/billing/affirmGhs.vue

+ 10 - 4
hdApp/src/admin/billing/affirmGhs.vue

@@ -55,7 +55,7 @@
 				<view class="module-com input-line-wrap">
 
 					<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
-						<button class="admin-button-com middle" :class="[form.sendType == 0 ? 'blue' : 'default']" style="width:190upx;"  @click="changeSendType(0)">免费送货</button>
+						<button v-if="ghsInfo.shopId != 4608" class="admin-button-com middle" :class="[form.sendType == 0 ? 'blue' : 'default']" style="width:190upx;"  @click="changeSendType(0)">免费送货</button>
 						<button class="admin-button-com middle" :class="[form.sendType == 1 ? 'blue' : 'default']" style="width:190upx;"  @click="changeSendType(1)">到店自取</button>
 						<button class="admin-button-com middle" :class="[form.sendType == 2 ? 'blue' : 'default']" style="width:150upx;" @click="changeSendType(2)">跑腿</button>
 						<button class="admin-button-com middle" :class="[form.sendType == 3 ? 'blue' : 'default']" style="width:150upx;" @click="changeSendType(3)">物流</button>
@@ -444,9 +444,15 @@ export default {
 		getGhsData(id) {
 			let that = this
 			getGhsDataApi({id:id}).then(res => {
-				this.ghsInfo = res.data
-				this.form.packCost = res.data.packCost?parseFloat(res.data.packCost):0
-				this.form.wlName = res.data.customWlName ? res.data.customWlName : ''
+				that.ghsInfo = res.data
+				that.form.packCost = res.data.packCost?parseFloat(res.data.packCost):0
+				that.form.wlName = res.data.customWlName ? res.data.customWlName : ''
+
+				//杭州斗南鲜花批发部不需要显示免费配送
+				if(that.ghsInfo.shopId && Number(that.ghsInfo.shopId) == 4608){
+					that.form.sendType = 1
+				}
+
 			});
 		},
 		countAllPrices(e){