Commit 6b049f3c by 张立顺

feat 版本功能开发

1 parent f771fd8e
......@@ -14,7 +14,7 @@
</view>
<view class="wx-popup-con">
<view class="label">
<view class="num">支付订单号</view>
<view class="num">交易参考号</view>
<view class="time">支付时间</view>
<view class="payNum">支付金额</view>
</view>
......
......@@ -191,7 +191,7 @@ Page({
});
},
async checkDailyRecport() {
let { tabIndex } = this.data;
let { tabIndex, userInfo } = this.data;
const isStaff = app.globalData.isStaff;
let eventRequest = [];
isStaff &&
......
......@@ -49,7 +49,7 @@
wx:if="{{ showOrderpop }}"
flag="{{ showOrderpop }}"
/> -->
<order-no-popup wx:if="{{ tipsProps }}" show="{{ tipsProps }}" title="请选择支付订单号" bind:success="navigator" orderNoList="{{ orderNoList }}" />
<order-no-popup wx:if="{{ tipsProps }}" show="{{ tipsProps }}" title="请选择交易参考号" bind:success="navigator" orderNoList="{{ orderNoList }}" />
<page-container show="{{ show_order_confirm || show_reception_confirm }}" duration="{{ 0 }}" overlay="{{ false }}" bind:afterleave="containerBack">
<view wx:if="{{ showReceptionRendering }}">
<reception-screen show="{{ show_reception_confirm }}" userInfo="{{ userInfo }}" dateTime="{{dateTime}}" isFilterUpgrade="{{isFilterUpgrade}}" isFilterDefeat="{{isFilterDefeat}}" maxDayRange="{{7}}" maxDayRangeType="day" navBarHeight="{{ navBarHeight }}" bindconfirm="searchScreen" />
......
......@@ -15,7 +15,7 @@
<view class="tips">
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
<view>支付订单号:{{outTradeNo}}</view>
<view>交易参考号:{{outTradeNo}}</view>
<view>支付时间:{{accountDate}}</view>
</view>
<image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" />
......
......@@ -21,61 +21,61 @@ Page({
selectPayType: 2
},
customerObj: [{
label: '客户姓名',
key: 'customerName'
},
{
label: '手机号',
key: 'customerPhone',
color: '#347BFF',
callBack: 'makePhoneCall',
copy: true
},
{
label: '客户车型',
key: 'carName'
},
{
label: '礼券名称',
key: 'couponName',
e_key: 'employeeName'
},
{
label: '领券时间',
key: 'time'
},
{
label: '销售顾问',
key: 'employeeName'
},
{
label: '客户画像',
key: 'userPortrait',
portrait: true
}
label: '客户姓名',
key: 'customerName'
},
{
label: '手机号',
key: 'customerPhone',
color: '#347BFF',
callBack: 'makePhoneCall',
copy: true
},
{
label: '客户车型',
key: 'carName'
},
{
label: '礼券名称',
key: 'couponName',
e_key: 'employeeName'
},
{
label: '领券时间',
key: 'time'
},
{
label: '销售顾问',
key: 'employeeName'
},
{
label: '客户画像',
key: 'userPortrait',
portrait: true
}
],
recordObj: [{
label: '跟进人',
key: 'userName'
},
{
label: ['事', '件'],
key: 'eventType',
enum: {
1: '车主领券',
2: '车主预约',
3: '预约时间',
4: '修改时间',
5: '取消预约'
}
},
{
label: ['备', '注'],
key: 'remark'
label: '跟进人',
key: 'userName'
},
{
label: ['事', '件'],
key: 'eventType',
enum: {
1: '车主领券',
2: '车主预约',
3: '预约时间',
4: '修改时间',
5: '取消预约'
}
},
{
label: ['备', '注'],
key: 'remark'
}
],
remark: '',
isOrder:true
isOrder: true
},
showPopup(e) {
let _this = this
......@@ -133,7 +133,7 @@ Page({
}
let userInfo = wx.$util.getUserInfo();
this.setData({
isOrder:!(userInfo?.isSuper || userInfo?.loginRole == 3)
isOrder: !(userInfo?.isSuper || userInfo?.loginRole == 3)
})
this.checkPhoneShow(app.globalData.YQorderSetting?.yqPhoneConfig)
},
......@@ -150,7 +150,7 @@ Page({
})
}
},
async dealPortrait(id) {
async dealPortrait(id) {
let _userPortrait = []
let {
code,
......@@ -214,7 +214,8 @@ Page({
...detail.customer,
...detail,
employeeName: detail?.customerCoupon.employeeName, //解决详情的userId 不是对应的销售方的useid
userId: detail?.customerCoupon.userId
userId: detail?.customerCoupon.userId,
customerName: `${detail.customer.customerName} - ${detail.customer.merchantName} `
}
if (detail.remarks && detail.remarks.length > 0) {
detail.remarks.map(e => {
......@@ -362,7 +363,7 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
onReady: function () { },
/**
* 生命周期函数--监听页面显示
......@@ -379,25 +380,25 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
onHide: function () { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
onUnload: function () { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
onPullDownRefresh: function () { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {},
onReachBottom: function () { },
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {}
onShareAppMessage: function () { }
})
\ No newline at end of file
......@@ -18,10 +18,7 @@
</block>
</block>
<block wx:elif="{{item.key == 'couponName'}}">
<text>{{item.enum? item.enum[detail[item.key]] : detail[item.key] || ''}}</text>
<text>
({{item.enum? item.enum[detail[item.e_key]] : detail[item.e_key] || ''}})
</text>
<text>{{item.enum? item.enum[detail[item.key]] : detail[item.key] || ''}}</text><text>({{item.enum? item.enum[detail[item.e_key]] : detail[item.e_key] || ''}})</text>
</block>
<view wx:elif="{{item.key == 'userPortrait'}}" class="portrait">
<view wx:for="{{detail[item.key]}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="portrait-item">
......
......@@ -24,7 +24,7 @@ Component({
IMG_URL,
itemFormObj: [
{
label: '支付订单号',
label: '交易参考号',
prop: 'outTradeNo',
type: 'copy'
}, {
......
......@@ -339,7 +339,7 @@ Page({
merchantRange,
});
})
.catch((err) => {});
.catch((err) => { });
},
changePicker(e, value) {
let {
......@@ -625,20 +625,20 @@ Page({
} = this.data;
isStaff &&
api
.waitinputorder()
.then((result) => {
let {
code,
data
} = result;
this.setTime();
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount,
});
}
})
.catch((err) => {});
.waitinputorder()
.then((result) => {
let {
code,
data
} = result;
this.setTime();
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount,
});
}
})
.catch((err) => { });
},
getMerchantCouponList() {
......@@ -776,7 +776,7 @@ Page({
});
}
})
.catch((err) => {});
.catch((err) => { });
},
getUserStat(userInfo) {
api
......@@ -806,7 +806,7 @@ Page({
});
}
})
.catch((err) => {});
.catch((err) => { });
},
totalListSet() {
let {
......@@ -815,24 +815,24 @@ Page({
if (userInfo.subLoginUser?.loginRole == 3 || userInfo.isSuper) {
this.setData({
totalList: [{
name: "转化订单",
itemName: "totalUpgrade",
index: 4,
icon: "icon_17",
},
{
name: "战败订单",
itemName: "totalNotUpgrade",
index: 5,
icon: "icon_16",
},
{
name: "客单价",
itemName: "customerUnitPrice",
unit: "¥",
index: 6,
icon: "icon_7",
},
name: "转化订单",
itemName: "totalUpgrade",
index: 4,
icon: "icon_17",
},
{
name: "战败订单",
itemName: "totalNotUpgrade",
index: 5,
icon: "icon_16",
},
{
name: "客单价",
itemName: "customerUnitPrice",
unit: "¥",
index: 6,
icon: "icon_7",
},
],
});
}
......@@ -922,7 +922,7 @@ Page({
// if (wx.__HAS_NOREPORT_MODAL || wx.__HAS_NOTLOGIN_MODAL) return false;
// wx.__HAS_NOREPORT_MODAL = true;
if (wx.__HAS_NOTLOGIN_MODAL || userInfo?.isSuper || userInfo?.loginRole == 3) return false
this.addModalToQueue('开单预警', '您已超过三天未开单', '确定', false, 1, () => {})
this.addModalToQueue('开单预警', '您已超过三天未开单', '确定', false, 1, () => { })
// this.showNextModal()
// wx.showModal({
// title: "开单预警",
......@@ -1061,7 +1061,7 @@ Page({
});
},
async checkDailyRecport() {
// let { tabIndex } = this.data
let { userInfo } = this.data
const isStaff = app.globalData.isStaff;
let eventRequest = [this.checkStaffOrderStatus()]
if (!userInfo?.isSuper && userInfo?.loginRole != 3) eventRequest.push(this.checkAgreeClient(wx.$util.getUserInfo()))
......@@ -1115,17 +1115,17 @@ Page({
// status 1待跟进(有inviteRecordId跳转预约详情无跳转待跟进工单页面 微信支付跳转工单确认页面)3待支付(跳转工单确认页面)constructionFlag(已施工页面)
let pageName =
options?.status == 1 && options?.pageParams?.id ?
"tabDate.detail" :
options.status == 3 ||
(options.status == 1 && options.selectPayType == 1) ?
"tabWorkOrder.confirmOrder" :
options.constructionFlag == "Y" && options.status != 10 ?
"tabWorkOrder.constructionOrderDetail" :
"tabWorkOrder.orderDetail";
"tabDate.detail" :
options.status == 3 ||
(options.status == 1 && options.selectPayType == 1) ?
"tabWorkOrder.confirmOrder" :
options.constructionFlag == "Y" && options.status != 10 ?
"tabWorkOrder.constructionOrderDetail" :
"tabWorkOrder.orderDetail";
wx.$router.go(
`${pageName}?id=${options?.pageParams?.id}&orderCode=${options?.pageParams?.orderCode}`, {
...options?.pageParams,
}
...options?.pageParams,
}
);
}
// 产品需求:强制填写(04-17版本)
......@@ -1176,49 +1176,49 @@ Page({
if (userInfo?.isSuper || userInfo?.loginRole == 3) return
userInfo?.default4SStoreInfo?.merchantId &&
commonApi
.getStaffTargetTaskApi({
sceneType: 1,
merchantId: userInfo?.default4SStoreInfo?.merchantId,
})
.then((res) => {
let {
code,
data,
message
} = res;
if (code == 0) {
// 切换门店 需删除入口 重新请求判断显示入口
let index = menu.findIndex((v) => v.name == "驻店目标");
if (index > -1) menu.splice(index, 1);
if (data?.length && menu.every((item) => item.name != "驻店目标")) {
menu.push({
name: "驻店目标",
url: "packageEquity.residentTarget",
icon: "resident_target",
noRead: data[0]?.readFlag == "N",
});
}
this.setData({
taskId: data[0]?.id,
menu,
});
// 当前周期未弹起过查看任务明细提示弹窗
if (data[0]?.promptFlag == "N") {
.getStaffTargetTaskApi({
sceneType: 1,
merchantId: userInfo?.default4SStoreInfo?.merchantId,
})
.then((res) => {
let {
code,
data,
message
} = res;
if (code == 0) {
// 切换门店 需删除入口 重新请求判断显示入口
let index = menu.findIndex((v) => v.name == "驻店目标");
if (index > -1) menu.splice(index, 1);
if (data?.length && menu.every((item) => item.name != "驻店目标")) {
menu.push({
name: "驻店目标",
url: "packageEquity.residentTarget",
icon: "resident_target",
noRead: data[0]?.readFlag == "N",
});
}
this.setData({
showTaskDialog: true,
taskInfo: data[0],
taskId: data[0]?.id,
menu,
});
// 将当前周期的员工目标任务弹窗标记为已弹起
commonApi
.setTaskDialog({
id: data[0]?.id,
})
.then(() => {});
// 当前周期未弹起过查看任务明细提示弹窗
if (data[0]?.promptFlag == "N") {
this.setData({
showTaskDialog: true,
taskInfo: data[0],
});
// 将当前周期的员工目标任务弹窗标记为已弹起
commonApi
.setTaskDialog({
id: data[0]?.id,
})
.then(() => { });
}
} else {
wx.$util.showToast(message);
}
} else {
wx.$util.showToast(message);
}
});
});
},
getIsBusinessSchoolEnableCurrentUser() {
getBusinessSchoolScene({}).then((res) => {
......@@ -1279,7 +1279,7 @@ Page({
url: "pages.tabDateIndex",
recordId: 8,
icon: "booking_management",
}, ];
},];
// 判断是超管再加 这个菜单
// if (userInfo.isSuper) {
// menu.push({
......@@ -1466,14 +1466,14 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
onPullDownRefresh: function () { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {},
onReachBottom: function () { },
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {},
onShareAppMessage: function () { },
});
\ No newline at end of file
......@@ -77,7 +77,7 @@
</block>
</swiper>
<view class="dots">
<view wx:for="{{3}}" wx:for-index="idx" class="dot {{changeSelectIndex==idx?'active':''}}"></view>
<view wx:for="{{3}}" wx:key="item" wx:for-index="idx" class="dot {{changeSelectIndex==idx?'active':''}}"></view>
</view>
</view>
......@@ -402,14 +402,8 @@
</view>
<remark-popup wx:if="{{ showRemark }}" show="{{ showRemark }}" isLimitNum="{{ false }}" title="{{ '修改贴膜台次' }}" btnName="{{ '确认' }}" bind:confirm="remarkConfirm" placeholder="{{ '请输入整数' }}" maxlength="4" value="{{ methodUpdateInfo.filmTimes }}" isInt="{{ true }}" />
<!-- <order-switchPopup
bind:close="closeSwitchPopup"
bind:success="navigator"
title="{{ '请选择支付订单号' }}"
wx:if="{{ showOrderpop }}"
flag="{{ showOrderpop }}"
/> -->
<recording-order-popup wx:if="{{showOrderpop}}" show="{{showOrderpop}}" bind:success="navigator" title="请选择支付订单号" />
<recording-order-popup wx:if="{{showOrderpop}}" show="{{showOrderpop}}" bind:success="navigator" title="请选择交易参考号" />
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{ storeRange}}" bindconfirm="storeSearchEvent" subIndex="{{subIndex}}" hasTabBar="true" />
<!-- <store-picker
subIndex="{{ subIndex }}"
......
......@@ -487,7 +487,7 @@
<view class="tips" wx:if="{{showTips}}">
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
<view>支付订单号:{{outTradeNo}}</view>
<view>交易参考号:{{outTradeNo}}</view>
<view>支付时间:{{accountDate}}</view>
</view>
<image class="closeIcon" bindtap="closeTips" src="../../images/closeIcon.png" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!