Commit 1dfa634e by zhangxw

走流程自测修改

1 parent 68ecc4af
...@@ -263,7 +263,7 @@ Page({ ...@@ -263,7 +263,7 @@ Page({
wx.$util.hideLoading() wx.$util.hideLoading()
let { code, message } = res let { code, message } = res
if (code == 0) { if (code == 0) {
console.log('222') wx.$util.showToast('操作成功')
this.back() this.back()
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
......
...@@ -171,6 +171,7 @@ Component({ ...@@ -171,6 +171,7 @@ Component({
selectOptions: merchantList, selectOptions: merchantList,
selectValue: selectedMerchantObj.merchantId ? [selectedMerchantObj.merchantId] : [] selectValue: selectedMerchantObj.merchantId ? [selectedMerchantObj.merchantId] : []
}) })
this.triggerEvent('changeMerchant', true)
}, },
handlePopupConfirm(e) { handlePopupConfirm(e) {
let { items } = e.detail let { items } = e.detail
...@@ -191,6 +192,7 @@ Component({ ...@@ -191,6 +192,7 @@ Component({
this.setData({ this.setData({
showSelectPopup: false showSelectPopup: false
}) })
this.triggerEvent('changeMerchant', false)
}, },
}, },
}) })
...@@ -469,6 +469,7 @@ Component({ ...@@ -469,6 +469,7 @@ Component({
selectOptions: merchantList, selectOptions: merchantList,
selectValue: selectedMerchantObj.merchantId ? [selectedMerchantObj.merchantId] : [] selectValue: selectedMerchantObj.merchantId ? [selectedMerchantObj.merchantId] : []
}) })
this.triggerEvent('changeMerchant', true)
}, },
handlePopupConfirm(e) { handlePopupConfirm(e) {
let { items } = e.detail let { items } = e.detail
...@@ -489,6 +490,7 @@ Component({ ...@@ -489,6 +490,7 @@ Component({
this.setData({ this.setData({
showSelectPopup: false showSelectPopup: false
}) })
this.triggerEvent('changeMerchant', false)
}, },
}, },
}) })
...@@ -58,6 +58,11 @@ Page({ ...@@ -58,6 +58,11 @@ Page({
isFooterHidden: !!e?.detail?.visible isFooterHidden: !!e?.detail?.visible
}) })
}, },
onChangeMerchant(e) {
this.setData({
isFooterHidden: !!e?.detail
})
},
onDateSave(e) { onDateSave(e) {
const { scope, timeDimension, startDate, endDate } = e?.detail || {} const { scope, timeDimension, startDate, endDate } = e?.detail || {}
if (!scope) return if (!scope) return
......
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
</view> </view>
<view class="tab-content"> <view class="tab-content">
<basic-info wx:if="{{tabIndex === 0}}" baseInfo="{{baseInfo}}" /> <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}}" /> <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}}" merchantList="{{merchantList}}" selectedMerchantObj="{{selectedMerchantObj}}" bindpopupvisible="onDatePopupVisible" binddatesave="onDateSave" initTimeDimension="{{behaviorAnalysisDate.timeDimension}}" initStartDate="{{behaviorAnalysisDate.startDate}}" initEndDate="{{behaviorAnalysisDate.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}}" /> <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 style="width: 100%;height: 200rpx;"></view>
</view> </view>
......
...@@ -7,6 +7,9 @@ Component({ ...@@ -7,6 +7,9 @@ Component({
record: { record: {
type: Object, type: Object,
}, },
detailInfo: {
type: Object
},
hideBtn: Boolean hideBtn: Boolean
}, },
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view class="phone">{{record.phoneNumber}}</view> <view class="phone">{{record.phoneNumber}}</view>
</view> </view>
<view class="right"> <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 class="status" style="color: {{statusMap[record.receptionResult].color}};background: {{statusMap[record.receptionResult].background}}">{{record.receptionResult}}</view>
</view> </view>
</view> </view>
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<view class="card-line"></view> <view class="card-line"></view>
</view> </view>
<view class="card-item" wx:key="subIndex"> <view class="card-item" wx:key="subIndex">
<record-item record="{{record}}"></record-item> <record-item record="{{record}}" detailInfo="{{detailInfo}}"></record-item>
</view> </view>
</view> </view>
</block> </block>
......
...@@ -281,6 +281,7 @@ Page({ ...@@ -281,6 +281,7 @@ Page({
wx.$util.hideLoading() wx.$util.hideLoading()
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
wx.$util.showToast('操作成功')
wx.navigateBack() wx.navigateBack()
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
......
...@@ -212,6 +212,7 @@ Page({ ...@@ -212,6 +212,7 @@ Page({
wx.$util.hideLoading() wx.$util.hideLoading()
let { code, message } = res let { code, message } = res
if (code == 0) { if (code == 0) {
wx.$util.showToast('操作成功')
this.back() this.back()
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
......
...@@ -87,6 +87,7 @@ Page({ ...@@ -87,6 +87,7 @@ Page({
wx.$util.hideLoading() wx.$util.hideLoading()
let { code, message } = res let { code, message } = res
if (code == 0) { if (code == 0) {
wx.$util.showToast('操作成功')
this.back() this.back()
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
......
...@@ -95,6 +95,7 @@ Page({ ...@@ -95,6 +95,7 @@ Page({
wx.$util.hideLoading() wx.$util.hideLoading()
let { code, message } = res let { code, message } = res
if (code == 0) { if (code == 0) {
wx.$util.showToast('操作成功')
this.back() this.back()
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
......
...@@ -202,6 +202,7 @@ Page({ ...@@ -202,6 +202,7 @@ Page({
wx.$util.hideLoading() wx.$util.hideLoading()
let { code, message } = res let { code, message } = res
if (code == 0) { if (code == 0) {
wx.$util.showToast('操作成功')
this.back() this.back()
} else { } else {
wx.$util.showToast(message) 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!