Commit 3db26cec by 张立顺

Merge branch 'SAAS+V4.43-0807' into 'SAAS+V4.43.1-0819'

Saas+v4.43 0807

See merge request !312
2 parents f771fd8e 0aaeb43c
...@@ -192,6 +192,7 @@ Page({ ...@@ -192,6 +192,7 @@ Page({
}, },
async checkDailyRecport() { async checkDailyRecport() {
let { tabIndex } = this.data; let { tabIndex } = this.data;
let userInfo = wx.$util.getUserInfo()
const isStaff = app.globalData.isStaff; const isStaff = app.globalData.isStaff;
let eventRequest = []; let eventRequest = [];
isStaff && isStaff &&
......
// packageEquity/pages/aiCheck/chat/chat.js // packageEquity/pages/aiCheck/chat/chat.js
import carLifeApi from "../../../carEquityApi"; import carLifeApi from "../../../carEquityApi";
import api from '~/api/api.js'
const VOICE = { const VOICE = {
1: "zhifeng_emo", 1: "zhifeng_emo",
2: "stanley", 2: "stanley",
...@@ -264,7 +265,27 @@ Page({ ...@@ -264,7 +265,27 @@ Page({
content, content,
}; };
}, },
handleSave(list, sparringDuration, triggerSensitive) { getOpenId() {
return new Promise((resolve)=>{
wx.login({
success({
code
}) {
if (code) {
api
.ssoLogin({
code,
appId: wx.getAccountInfoSync().miniProgram.appId
}).then(res => {
resolve(res.data.openId)
})
}
},
})
})
},
async handleSave(list, sparringDuration, triggerSensitive) {
let totalTime = 0; let totalTime = 0;
let Sentences = []; let Sentences = [];
let content = ""; let content = "";
...@@ -329,8 +350,10 @@ Page({ ...@@ -329,8 +350,10 @@ Page({
redundant, redundant,
}; };
}); });
const openId = wx.$util.getOpenId(); let openId = wx.$util.getOpenId();
console.log(openId,'openId') if(!openId) {
openId = await this.getOpenId()
}
carLifeApi carLifeApi
.sparringCommit({ .sparringCommit({
openId, openId,
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<view class="wrapper-content"> <view class="wrapper-content">
<gl-image class="icon-tips" webp src="/aiCheck/icon-tips.webp"></gl-image> <gl-image class="icon-tips" webp src="/aiCheck/icon-tips.webp"></gl-image>
<view class="title">温馨提示</view> <view class="title">温馨提示</view>
<view class="content">点击确定按钮,您将结束此次对练并订阅生成报告提醒</view> <view class="content">点击确定按钮,您将结束此次对练并订阅生成报告提醒!</view>
<view class="footer"> <view class="footer">
<view class="btn cancel" bind:tap="handleCancel">取消</view> <view class="btn cancel" bind:tap="handleCancel">取消</view>
<view class="btn sure" bind:tap="handleSure">确定</view> <view class="btn sure" bind:tap="handleSure">确定</view>
......
...@@ -265,6 +265,10 @@ Page({ ...@@ -265,6 +265,10 @@ Page({
id, id,
}) })
.then((res) => { .then((res) => {
if(!res.data) {
wx.$router.reLaunch('packageEquity.equityPage')
return
}
const { descriptionList, reportItem, sparringDuration, score } = const { descriptionList, reportItem, sparringDuration, score } =
res.data || {}; res.data || {};
let { minutes, seconds } = this.formatTime(sparringDuration || 0); let { minutes, seconds } = this.formatTime(sparringDuration || 0);
......
...@@ -50,46 +50,46 @@ Component({ ...@@ -50,46 +50,46 @@ Component({
IMG_URL, IMG_URL,
// 订单状态 (0待报价、1待确认、2待支付、3已支付、5已完成、6已退款、9已撤销、11错误订单、-1战败) // 订单状态 (0待报价、1待确认、2待支付、3已支付、5已完成、6已退款、9已撤销、11错误订单、-1战败)
orderStatus: [{ orderStatus: [{
name: '全部', name: '全部',
active: true, active: true,
value: '' value: ''
}, },
{ {
name: '待报价', name: '待报价',
value: '0' value: '0'
}, },
// { // {
// name: '待确认', // name: '待确认',
// value: '1' // value: '1'
// }, // },
{ {
name: '待支付', name: '待支付',
value: '2' value: '2'
}, },
{ {
name: '已支付', name: '已支付',
value: '3' value: '3'
}, },
{ {
name: '已完成', name: '已完成',
value: '5' value: '5'
}, },
{ {
name: '已退款', name: '已退款',
value: '6' value: '6'
}, },
{ {
name: '已撤销', name: '已撤销',
value: '9' value: '9'
}, },
{ {
name: '错误订单', name: '错误订单',
value: '11' value: '11'
}, },
{ {
name: '战败', name: '战败',
value: '-1' value: '-1'
}, },
], ],
maxDate: new Date().format('yyyy-MM-dd'), maxDate: new Date().format('yyyy-MM-dd'),
orderTimeList: [{ orderTimeList: [{
...@@ -127,13 +127,13 @@ Component({ ...@@ -127,13 +127,13 @@ Component({
employShowMore: false, employShowMore: false,
salesmanShowMore: false, salesmanShowMore: false,
payTypeList: [{ payTypeList: [{
name: '门店收款', name: '门店收款',
value: 2 value: 2
}, },
{ {
name: '微信支付', name: '微信支付',
value: 1 value: 1
}, },
], ],
storeType: 1, // 门店数据类型 默认园区店 storeType: 1, // 门店数据类型 默认园区店
showStoreSelectPopup: false showStoreSelectPopup: false
...@@ -253,11 +253,11 @@ Component({ ...@@ -253,11 +253,11 @@ Component({
orderEndDate: end, orderEndDate: end,
type: 'custom' type: 'custom'
} : { } : {
active: true, active: true,
payStartDate: start, payStartDate: start,
payEndDate: end, payEndDate: end,
type: 'custom' type: 'custom'
} }
data[index] = obj data[index] = obj
this.setData({ this.setData({
[`form.${name}`]: data, [`form.${name}`]: data,
...@@ -343,12 +343,12 @@ Component({ ...@@ -343,12 +343,12 @@ Component({
e.value = [e.uuid] e.value = [e.uuid]
arr.push(e) arr.push(e)
}) })
if (!(userInfo?.isSuper || userInfo.loginRole == 3)) arr.map(e => { // if (!(userInfo?.isSuper || userInfo.loginRole == 3)) arr.map(e => {
if (type == 0) { // if (type == 0) {
e.active = false // e.active = false
if (e.uuid == userInfo.uuid) e.active = true // if (e.uuid == userInfo.uuid) e.active = true
} // }
}) // })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
...@@ -446,7 +446,7 @@ Component({ ...@@ -446,7 +446,7 @@ Component({
} }
}) })
}) })
if ((userInfo?.isSuper || userInfo.loginRole == 3))['selectedYqMerchantList', 'selectedMerchantList'].map(e => { if ((userInfo?.isSuper || userInfo.loginRole == 3)) ['selectedYqMerchantList', 'selectedMerchantList'].map(e => {
delete obj[e] delete obj[e]
}) })
if (isReset) obj = {} if (isReset) obj = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!