|
@@ -3,23 +3,23 @@
|
|
|
<view class="billing_box_bg">
|
|
<view class="billing_box_bg">
|
|
|
<view class="c_header" :class="myClass">
|
|
<view class="c_header" :class="myClass">
|
|
|
<view class="header_inside">
|
|
<view class="header_inside">
|
|
|
- <image :src="pageInfo.avatar"></image>
|
|
|
|
|
|
|
+ <image :src="ghsInfo.avatar"></image>
|
|
|
<view class="shop_info">
|
|
<view class="shop_info">
|
|
|
- <view class="shop_title">{{pageInfo.name||''}}<text :class="[pageInfo.giveLevel==0?'level-common':'level']" >{{pageInfo.giveLevelName||''}}会员</text></view>
|
|
|
|
|
|
|
+ <view class="shop_title">{{ghsInfo.name||''}}<text :class="[ghsInfo.giveLevel==0?'level-common':'level']" >{{ghsInfo.giveLevelName||''}}会员</text></view>
|
|
|
|
|
|
|
|
- <view v-if="pageInfo.hasRechargeHb && pageInfo.hasRechargeHb ==1" class="shop_intro" @tap="recharge(pageInfo)">
|
|
|
|
|
- <text>充值送红包<text style="color:red;font-weight:700;">{{parseFloat(pageInfo.hasRechargeHbAmount)}}</text>元
|
|
|
|
|
|
|
+ <view v-if="ghsInfo.hasRechargeHb && ghsInfo.hasRechargeHb ==1" class="shop_intro" @tap="recharge(ghsInfo)">
|
|
|
|
|
+ <text>充值送红包<text style="color:red;font-weight:700;">{{parseFloat(ghsInfo.hasRechargeHbAmount)}}</text>元
|
|
|
<text style="z-index:999999;margin-left:15rpx;color:red;border:1px solid red;padding:3rpx 12rpx 3rpx 12rpx;border-radius:10rpx;">去充值</text>
|
|
<text style="z-index:999999;margin-left:15rpx;color:red;border:1px solid red;padding:3rpx 12rpx 3rpx 12rpx;border-radius:10rpx;">去充值</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view v-else class="shop_intro">
|
|
<view v-else class="shop_intro">
|
|
|
- <text style="margin-right: 20upx;">已采购:{{pageInfo.expendAmount || '0.00'}}</text>
|
|
|
|
|
- <text>欠款:{{pageInfo.debtAmount || '0.00'}}</text>
|
|
|
|
|
|
|
+ <text style="margin-right: 20upx;">已采购:{{ghsInfo.expendAmount || '0.00'}}</text>
|
|
|
|
|
+ <text>欠款:{{ghsInfo.debtAmount || '0.00'}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- <i class="iconfont icondianhua1" v-if="pageInfo.mobile !=''" @tap="toPhone(pageInfo.mobile)"></i>
|
|
|
|
|
|
|
+ <i class="iconfont icondianhua1" v-if="ghsInfo.mobile !=''" @tap="toPhone(ghsInfo.mobile)"></i>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="input-wrap" >
|
|
<view class="input-wrap" >
|
|
@@ -61,7 +61,7 @@
|
|
|
:offVerifyRepertory="true"
|
|
:offVerifyRepertory="true"
|
|
|
:bigCount="getSelectItemById(productItem.id, classItem.classId).bigCount"
|
|
:bigCount="getSelectItemById(productItem.id, classItem.classId).bigCount"
|
|
|
:smallCount="getSelectItemById(productItem.id, classItem.classId).smallCount"
|
|
:smallCount="getSelectItemById(productItem.id, classItem.classId).smallCount"
|
|
|
- :discount.sync="pageInfo.giveDiscount"
|
|
|
|
|
|
|
+ :discount.sync="ghsInfo.giveDiscount"
|
|
|
@customNum="customNum"
|
|
@customNum="customNum"
|
|
|
@add="addEvent"
|
|
@add="addEvent"
|
|
|
@addOneEvent="addCustomNumEvent"
|
|
@addOneEvent="addCustomNumEvent"
|
|
@@ -158,7 +158,7 @@ export default {
|
|
|
showSubmitModel: false,
|
|
showSubmitModel: false,
|
|
|
notOpenShop:false,
|
|
notOpenShop:false,
|
|
|
hdShopAdminId:0,
|
|
hdShopAdminId:0,
|
|
|
- pageInfo: {
|
|
|
|
|
|
|
+ ghsInfo: {
|
|
|
avatar:'',
|
|
avatar:'',
|
|
|
name:' ',
|
|
name:' ',
|
|
|
mobile:'',
|
|
mobile:'',
|
|
@@ -263,7 +263,7 @@ export default {
|
|
|
console.log('share',`pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0`)
|
|
console.log('share',`pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0`)
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
- title: this.pageInfo.name,
|
|
|
|
|
|
|
+ title: this.ghsInfo.name,
|
|
|
desc: "",
|
|
desc: "",
|
|
|
path: `pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0`
|
|
path: `pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0`
|
|
|
}
|
|
}
|
|
@@ -320,31 +320,34 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- //只要拿到供应商的门店ID即可先取花材,不需要生成供应商id
|
|
|
|
|
const { shopId,id} = this.option;
|
|
const { shopId,id} = this.option;
|
|
|
- this.initGhsData(id,shopId);
|
|
|
|
|
|
|
|
|
|
if(this.option.id == 0) {
|
|
if(this.option.id == 0) {
|
|
|
ghsInfo({shopId: this.option.shopId}).then(res => {
|
|
ghsInfo({shopId: this.option.shopId}).then(res => {
|
|
|
- this.pageInfo = res.data
|
|
|
|
|
|
|
+ this.ghsInfo = res.data
|
|
|
|
|
+ let id = res.data.id
|
|
|
|
|
+ //获取供货商花材
|
|
|
|
|
+ this.initGhsData(id,shopId);
|
|
|
this.createShareDiscount()
|
|
this.createShareDiscount()
|
|
|
- uni.setNavigationBarTitle({title: this.pageInfo.name})
|
|
|
|
|
|
|
+ uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
|
this.option.id = res.data.id;
|
|
this.option.id = res.data.id;
|
|
|
}).catch(err => {})
|
|
}).catch(err => {})
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ //获取供货商花材
|
|
|
|
|
+ this.initGhsData(id,shopId);
|
|
|
getGhsDataApi({id: this.option.id}).then(res => {
|
|
getGhsDataApi({id: this.option.id}).then(res => {
|
|
|
- this.pageInfo = res.data
|
|
|
|
|
|
|
+ this.ghsInfo = res.data
|
|
|
this.shopId = res.data.shopId
|
|
this.shopId = res.data.shopId
|
|
|
this.createShareDiscount()
|
|
this.createShareDiscount()
|
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
|
- title: this.pageInfo.name
|
|
|
|
|
|
|
+ title: this.ghsInfo.name
|
|
|
})
|
|
})
|
|
|
}).catch(err => {})
|
|
}).catch(err => {})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
createShareDiscount(){
|
|
createShareDiscount(){
|
|
|
- let shareDiscount = this.pageInfo.giveDiscount*100
|
|
|
|
|
|
|
+ let shareDiscount = this.ghsInfo.giveDiscount*100
|
|
|
this.shareDiscount = shareDiscount
|
|
this.shareDiscount = shareDiscount
|
|
|
},
|
|
},
|
|
|
scroll_detail(options){
|
|
scroll_detail(options){
|