Commit d3ba905e by 张立顺

Merge branch 'SAAS+V4.43.1-0819' of http://192.168.3.233:8090/saas_plus/dj-car-b…

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