|
|
@@ -9,7 +9,7 @@
|
|
|
<view class="shop_title">{{pageInfo.name}}</view>
|
|
|
<view class="shop_intro"><text style="margin-right: 20upx;">已采购:{{pageInfo.expendAmount}}</text> <text>欠款:{{pageInfo.debtAmount}}</text></view>
|
|
|
</view>
|
|
|
- <i class="iconfont icondianhua1" @tap="toPhone(pageInfo.mobile)"></i>
|
|
|
+ <i class="iconfont icondianhua1" v-if="pageInfo.mobile !=''" @tap="toPhone(pageInfo.mobile)"></i>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="input-wrap" >
|
|
|
@@ -158,7 +158,13 @@ export default {
|
|
|
showSubmitModel: false,
|
|
|
notOpenShop:false,
|
|
|
hdShopAdminId:0,
|
|
|
- pageInfo: {},
|
|
|
+ pageInfo: {
|
|
|
+ avatar:'',
|
|
|
+ name:' ',
|
|
|
+ mobile:'',
|
|
|
+ expendAmount:'0.00',
|
|
|
+ debtAmount:'0.00'
|
|
|
+ },
|
|
|
myClass: 'fadeIn'
|
|
|
};
|
|
|
},
|
|
|
@@ -193,12 +199,13 @@ export default {
|
|
|
methods: {
|
|
|
init(){
|
|
|
const { shopId,id} = this.options;
|
|
|
+ //花材列表
|
|
|
+ this.initGhsData(id,shopId);
|
|
|
if(this.option.id == 0) {
|
|
|
ghsInfo({shopId: this.option.shopId}).then(res => {
|
|
|
this.pageInfo = res.data
|
|
|
uni.setNavigationBarTitle({title: this.pageInfo.name})
|
|
|
this.option.id = res.data.id;
|
|
|
- this.initGhsData(res.data.id,shopId);//采购-进店下单
|
|
|
}).catch(err => {})
|
|
|
} else {
|
|
|
getGhsDataApi({id: this.option.id}).then(res => {
|
|
|
@@ -206,17 +213,16 @@ export default {
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: this.pageInfo.name
|
|
|
})
|
|
|
- this.initGhsData(id,shopId);//采购-进店下单
|
|
|
}).catch(err => {})
|
|
|
}
|
|
|
},
|
|
|
- rightScroll(e) {
|
|
|
- if(e.detail.scrollTop > 20) {
|
|
|
- this.myClass = 'fadeOut'
|
|
|
- } else {
|
|
|
- this.myClass = 'fadeIn'
|
|
|
- }
|
|
|
- },
|
|
|
+ rightScroll(e) {
|
|
|
+ if(e.detail.scrollTop > 20) {
|
|
|
+ this.myClass = 'fadeOut'
|
|
|
+ } else {
|
|
|
+ this.myClass = 'fadeIn'
|
|
|
+ }
|
|
|
+ },
|
|
|
//自定义数量
|
|
|
customNum(info) {
|
|
|
this.isModel = true;
|