Commit d9a23280 by 张立顺

Merge branch 'SAAS+V5.8.5' of http://192.168.3.233:8090/saas_plus/regional-assis…

…tant into SAAS+V5.8.5
2 parents ef1179f9 c2238831
......@@ -501,11 +501,15 @@ Page({
let { infoData } = this.data
if (type == 1) {
// 审核通过
if (this.data.auditFlag || infoData.beforeStatus != 6 || infoData.afterStatus != 7) return
this.setData({auditFlag: true})
wx.$util.showLoading()
auditRefundAllpyAPI({
applyCode: infoData.applyCode,
auditStatus: 1,
id: infoData.id
}).then(res => {
wx.$util.hideLoading()
let { code, message } = res
if (code == 0) {
wx.showToast({
......@@ -524,9 +528,12 @@ Page({
}
}, 300)
} else {
this.setData({auditFlag: false})
wx.$util.showToast(message)
}
})
}).ctach(() => {
wx.$util.hideLoading()
})
} else {
// 审核不通过
this.setData({
......@@ -549,15 +556,17 @@ Page({
confirmRepeal() {
let { disapprovalReason, repealStatus, infoData } = this.data
if (repealStatus) return
if (repealStatus || infoData.beforeStatus != 6 || infoData.afterStatus != 7) return
if (!disapprovalReason) return wx.$util.showToast('审核不通过原因不能为空')
this.setData({ repealStatus: true })
wx.$util.showLoading()
auditRefundAllpyAPI({
applyCode: infoData.applyCode,
auditStatus: 2,
remark: disapprovalReason,
id: infoData.id
}).then(res => {
wx.$util.hideLoading()
let { code, message } = res
if (code == 0) {
wx.showToast({
......@@ -580,7 +589,9 @@ Page({
this.setData({ repealStatus: false })
wx.$util.showToast(message)
}
})
}).catch(() => {
wx.$util.hideLoading()
})
},
cancelRepeal() {
......
......@@ -374,7 +374,7 @@ Page({
this.setData({
dateShow: false,
currentDate: selectedDate,
['orderObj.teachingTime']: dayjs(selectedDate).format('YYYY-MM-DD HH:mm')
['orderObj.teachingTime']: dayjs(selectedDate).format('YYYY-MM-DD')
});
},
onChange(event) {
......
......@@ -6,7 +6,7 @@
bindback="back"
navStyle="background-color: transparent;box-shadow:none;">
<view class="page-title">
督导带教
转化类-督导带教
</view>
</navigation-bar>
<scroll-view class="container" scroll-y show-scrollbar="{{false}}" enhanced style="padding-top: calc({{navBarHeight}}px + 8rpx);padding-bottom: {{!isCompleted ? (isFullSucreen ? 'calc(120rpx + 34px)' : '120rpx') : '0'}};">
......@@ -101,5 +101,5 @@
</view>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" multiple="{{selectMultiple}}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" labelKey="{{labelKey}}" valueKey="{{valueKey}}" height="{{selectPopupHeight}}" title="{{selectTitle}}" allowSearch="{{true}}" bindcancel="hideSelectPopup"></select-popup>
<popup bindcancel="cancel" bindconfirm="confirm" wx:if="{{dateShow}}" show="{{dateShow}}" title="时间选择" height="60vh">
<van-datetime-picker id="datePicker" show-toolbar="{{false}}" model:value="{{ currentDate }}" bind:change="onChange" bind:input="onInput" />
<van-datetime-picker id="datePicker" show-toolbar="{{false}}" type="date" model:value="{{ currentDate }}" bind:change="onChange" bind:input="onInput" />
</popup>
......@@ -27,13 +27,13 @@ Page({
},
taskTypeMap: {
"": "问题类型",
"staff-replace-access": "人员更换评估",
"staff-replace-access": "转化类-人员更换评估",
"policy-update-access": "商务政策更新评估",
"scene-expand": "多品类扩张",
"traffic-optimize": "提升触客率",
"multi-scene-expand": "多场景拓展",
"new-store-traffic": "拓新店流量",
"spec-coach": "督导带教",
"traffic-optimize": "流量类-提升触客率",
"multi-scene-expand": "流量类-多场景拓展",
"new-store-traffic": "流量类-拓新店流量",
"spec-coach": "转化类-督导带教",
},
statusesList: [
{
......@@ -55,7 +55,7 @@ Page({
],
taskTypeList: [
{
name: "人员更换评估",
name: "转化类-人员更换评估",
value: "staff-replace-access",
},
{
......@@ -67,19 +67,19 @@ Page({
value: "scene-expand",
},
{
name: "提升触客率",
name: "流量类-提升触客率",
value: "traffic-optimize",
},
{
name: "多场景拓展",
name: "流量类-多场景拓展",
value: "multi-scene-expand",
},
{
name: "拓新店流量",
name: "流量类-拓新店流量",
value: "new-store-traffic",
},
{
name: "督导带教",
name: "转化类-督导带教",
value: "spec-coach",
},
],
......@@ -118,6 +118,7 @@ Page({
labelKey: "name",
valueKey: "value",
});
wx.hideTabBar()
},
handletaskTypeFilter() {
......@@ -133,6 +134,7 @@ Page({
labelKey: "name",
valueKey: "value",
});
wx.hideTabBar()
},
// 重置筛选条件
......@@ -178,6 +180,7 @@ Page({
this.setData({
showSelectPopup: false,
});
wx.showTabBar()
},
/**
......@@ -242,7 +245,7 @@ Page({
// 添加问题类型筛选参数
const taskType = filterObj?.taskType;
if (taskType) {
params.taskType = taskType;
params.taskTypeList = taskType?.split(',');
}
return params;
......
......@@ -82,12 +82,13 @@ export const MATTER_LIST_COMPLETED_FIELDS = [
{ label: "归属门店", key: "merchantName" },
{ label: "归属业务", key: "businessName" },
{ label: "创建人", key: "creatorName" },
{ label: "创建时间", key: "createTimeText" },
{ label: "任务描述", key: "descriptionText", ellipsis: true },
{ label: "专项任务回复", key: "replyText", ellipsis: true },
];
const STAFF_NAMES_LIST_FIELD = { label: "问题驻店销售", key: "staffNames" };
const TARGET_TOUCH_RATE_FIELD = { label: "目标触客率", key: "targetTouchRate", isBlue: true };
const TARGET_TOUCH_RATE_FIELD = { label: "目标触客率", key: "targetCustomerContactRate", isBlue: true };
/** 督导带教:列表字段(带教目标、归属门店、带教方式、完成时间) */
const SUPERVISE_TEACH_LIST_FIELDS = [
......@@ -155,7 +156,7 @@ export function normalizeMatterItem(dto = {}, index = 0) {
const staffNames = formatStaffList(staffList);
// 格式化目标触客率,加上百分号
const targetTouchRateValue = dto.targetTouchRate != null && dto.targetTouchRate !== "" ? `${dto.targetTouchRate}%` : "-";
const targetCustomerContactRateValue = dto.targetCustomerContactRate != null && dto.targetCustomerContactRate !== "" ? `${dto.targetCustomerContactRate}%` : "-";
// 格式化督导带教的完成时间
const teachCompleteTimeValue = dto.teachCompleteTime || "-";
......@@ -174,7 +175,7 @@ export function normalizeMatterItem(dto = {}, index = 0) {
staffList,
sellerName: staffNames || "-",
staffNames,
targetTouchRate: targetTouchRateValue,
targetCustomerContactRate: targetCustomerContactRateValue,
/** 督导带教:带教目标、带教方式、完成时间 */
teachTarget: dto.teachTarget || "-",
teachMethod: dto.teachMethod || "-",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!