Commit 1dfa634e by zhangxw

走流程自测修改

1 parent 68ecc4af
......@@ -263,7 +263,7 @@ Page({
wx.$util.hideLoading()
let { code, message } = res
if (code == 0) {
console.log('222')
wx.$util.showToast('操作成功')
this.back()
} else {
wx.$util.showToast(message)
......
......@@ -171,6 +171,7 @@ Component({
selectOptions: merchantList,
selectValue: selectedMerchantObj.merchantId ? [selectedMerchantObj.merchantId] : []
})
this.triggerEvent('changeMerchant', true)
},
handlePopupConfirm(e) {
let { items } = e.detail
......@@ -191,6 +192,7 @@ Component({
this.setData({
showSelectPopup: false
})
this.triggerEvent('changeMerchant', false)
},
},
})
......@@ -469,6 +469,7 @@ Component({
selectOptions: merchantList,
selectValue: selectedMerchantObj.merchantId ? [selectedMerchantObj.merchantId] : []
})
this.triggerEvent('changeMerchant', true)
},
handlePopupConfirm(e) {
let { items } = e.detail
......@@ -489,6 +490,7 @@ Component({
this.setData({
showSelectPopup: false
})
this.triggerEvent('changeMerchant', false)
},
},
})
......@@ -58,6 +58,11 @@ Page({
isFooterHidden: !!e?.detail?.visible
})
},
onChangeMerchant(e) {
this.setData({
isFooterHidden: !!e?.detail
})
},
onDateSave(e) {
const { scope, timeDimension, startDate, endDate } = e?.detail || {}
if (!scope) return
......
......@@ -36,8 +36,8 @@
</view>
<view class="tab-content">
<basic-info wx:if="{{tabIndex === 0}}" baseInfo="{{baseInfo}}" />
<personal-performance wx:if="{{tabIndex === 1}}" detailInfo="{{detailInfo}}" merchantList="{{merchantList}}" selectedMerchantObj="{{selectedMerchantObj}}" bindpopupvisible="onDatePopupVisible" binddatesave="onDateSave" initTimeDimension="{{personalPerformanceDate.timeDimension}}" initStartDate="{{personalPerformanceDate.startDate}}" initEndDate="{{personalPerformanceDate.endDate}}" />
<behavior-analysis wx:if="{{tabIndex === 2}}" detailInfo="{{detailInfo}}" merchantList="{{merchantList}}" selectedMerchantObj="{{selectedMerchantObj}}" bindpopupvisible="onDatePopupVisible" binddatesave="onDateSave" initTimeDimension="{{behaviorAnalysisDate.timeDimension}}" initStartDate="{{behaviorAnalysisDate.startDate}}" initEndDate="{{behaviorAnalysisDate.endDate}}" />
<personal-performance wx:if="{{tabIndex === 1}}" detailInfo="{{detailInfo}}" bindchangeMerchant="onChangeMerchant" merchantList="{{merchantList}}" selectedMerchantObj="{{selectedMerchantObj}}" bindpopupvisible="onDatePopupVisible" binddatesave="onDateSave" initTimeDimension="{{personalPerformanceDate.timeDimension}}" initStartDate="{{personalPerformanceDate.startDate}}" initEndDate="{{personalPerformanceDate.endDate}}" />
<behavior-analysis wx:if="{{tabIndex === 2}}" detailInfo="{{detailInfo}}" bindchangeMerchant="onChangeMerchant" merchantList="{{merchantList}}" selectedMerchantObj="{{selectedMerchantObj}}" bindpopupvisible="onDatePopupVisible" binddatesave="onDateSave" initTimeDimension="{{behaviorAnalysisDate.timeDimension}}" initStartDate="{{behaviorAnalysisDate.startDate}}" initEndDate="{{behaviorAnalysisDate.endDate}}" />
<training-experience id="training" wx:if="{{tabIndex === 3}}" detailInfo="{{detailInfo}}" bindpopupvisible="onDatePopupVisible" binddatesave="onDateSave" initTimeDimension="{{trainingExperienceDate.timeDimension}}" initStartDate="{{trainingExperienceDate.startDate}}" initEndDate="{{trainingExperienceDate.endDate}}" />
<view style="width: 100%;height: 200rpx;"></view>
</view>
......
......@@ -7,6 +7,9 @@ Component({
record: {
type: Object,
},
detailInfo: {
type: Object
},
hideBtn: Boolean
},
......
......@@ -5,7 +5,7 @@
<view class="phone">{{record.phoneNumber}}</view>
</view>
<view class="right">
<view class="staff">{{record.salesName || '-'}}</view>
<view class="staff">{{detailInfo.storeManagerName || '-'}}</view>
<view class="status" style="color: {{statusMap[record.receptionResult].color}};background: {{statusMap[record.receptionResult].background}}">{{record.receptionResult}}</view>
</view>
</view>
......
......@@ -81,7 +81,7 @@
<view class="card-line"></view>
</view>
<view class="card-item" wx:key="subIndex">
<record-item record="{{record}}"></record-item>
<record-item record="{{record}}" detailInfo="{{detailInfo}}"></record-item>
</view>
</view>
</block>
......
......@@ -281,6 +281,7 @@ Page({
wx.$util.hideLoading()
let { code, data, message } = res
if (code == 0) {
wx.$util.showToast('操作成功')
wx.navigateBack()
} else {
wx.$util.showToast(message)
......
......@@ -212,6 +212,7 @@ Page({
wx.$util.hideLoading()
let { code, message } = res
if (code == 0) {
wx.$util.showToast('操作成功')
this.back()
} else {
wx.$util.showToast(message)
......
......@@ -87,6 +87,7 @@ Page({
wx.$util.hideLoading()
let { code, message } = res
if (code == 0) {
wx.$util.showToast('操作成功')
this.back()
} else {
wx.$util.showToast(message)
......
......@@ -95,6 +95,7 @@ Page({
wx.$util.hideLoading()
let { code, message } = res
if (code == 0) {
wx.$util.showToast('操作成功')
this.back()
} else {
wx.$util.showToast(message)
......
......@@ -202,6 +202,7 @@ Page({
wx.$util.hideLoading()
let { code, message } = res
if (code == 0) {
wx.$util.showToast('操作成功')
this.back()
} else {
wx.$util.showToast(message)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!