Commit 3eddcc0c by 张立顺

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

…outique-work-wechat into SAAS+V4.51.1-0415
2 parents 67df8997 ace508b7
...@@ -59,12 +59,19 @@ Page({ ...@@ -59,12 +59,19 @@ Page({
}, },
// 合同协议上传确定 // 合同协议上传确定
zyPayConfirm(e) { zyPayConfirm(e) {
wx.$util.showLoading() wx.showLoading({title: '加载中'})
let { zyPayOrderInfo } = this.data let { zyPayOrderInfo, zyConfirmFlag } = this.data
if (zyConfirmFlag) return false
this.setData({
zyConfirmFlag: true
});
// 更新客户信息 // 更新客户信息
updateCustomerInfo({ ...zyPayOrderInfo, zyPayUrl: e.detail?.zyPayUrl?.join(',') }).then(result => { updateCustomerInfo({ ...zyPayOrderInfo, zyPayUrl: e.detail?.zyPayUrl?.join(',') }).then(result => {
wx.$util.hideLoading() wx.hideLoading()
let { code, message } = result let { code, message } = result
this.setData({
showZyPopup: false
})
if (code == 0) { if (code == 0) {
// 返回到报价单列表 // 返回到报价单列表
wx.$router.reLaunch("packageEquity.equityPage", { wx.$router.reLaunch("packageEquity.equityPage", {
...@@ -73,6 +80,11 @@ Page({ ...@@ -73,6 +80,11 @@ Page({
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
setTimeout(() => {
this.setData({
zyConfirmFlag: false,
})
})
}) })
}, },
getInsurance(res) { getInsurance(res) {
......
<!-- packageEquity/pages/carQuotation/CarQuotationDetail/CarQuotationDetail.wxml --> <!-- packageEquity/pages/carQuotation/CarQuotationDetail/CarQuotationDetail.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="payInfo"> <view class="payInfo">
<view class="payCom"> <view class="payCom">
<view class="title">支付成功</view> <view class="title">支付成功</view>
......
...@@ -264,7 +264,12 @@ Page({ ...@@ -264,7 +264,12 @@ Page({
}, },
// 补录订单上传合同协议点击确定 // 补录订单上传合同协议点击确定
zyPayConfirm(e) { zyPayConfirm(e) {
let { supplementaryOrderId } = this.data // 补录订单id let { supplementaryOrderId, zyConfirmFlag } = this.data // 补录订单id
wx.showLoading({title: '加载中'})
if (zyConfirmFlag) return false
this.setData({
zyConfirmFlag: true
});
getQuotationInfoById({ getQuotationInfoById({
id: supplementaryOrderId id: supplementaryOrderId
}).then(res => { }).then(res => {
...@@ -280,9 +285,8 @@ Page({ ...@@ -280,9 +285,8 @@ Page({
orderInfo.referrer = obj.referrer orderInfo.referrer = obj.referrer
orderInfo.referrerId = obj.referrerId orderInfo.referrerId = obj.referrerId
// 更新客户信息 // 更新客户信息
wx.$util.showLoading()
updateCustomerInfo({ ...orderInfo, zyPayUrl: e.detail?.zyPayUrl?.join(',') }).then(result => { updateCustomerInfo({ ...orderInfo, zyPayUrl: e.detail?.zyPayUrl?.join(',') }).then(result => {
wx.$util.hideLoading() wx.hideLoading()
this.setData({ this.setData({
showZyPopup: false showZyPopup: false
}, () => { }, () => {
...@@ -295,11 +299,25 @@ Page({ ...@@ -295,11 +299,25 @@ Page({
tabIndex: 1, tabIndex: 1,
}); });
}, 1000); }, 1000);
setTimeout(() => {
this.setData({
zyConfirmFlag: false,
});
});
}) })
}) })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
wx.hideLoading()
this.setData({
zyConfirmFlag: false
})
} }
}).catch(() => {
wx.hideLoading()
this.setData({
zyConfirmFlag: false
})
}) })
}, },
staffDailyReportMerchantValid(userInfo) { staffDailyReportMerchantValid(userInfo) {
......
...@@ -589,7 +589,12 @@ Component({ ...@@ -589,7 +589,12 @@ Component({
}, },
// 合同协议上传确定 // 合同协议上传确定
zyPayConfirm(e) { zyPayConfirm(e) {
let { showZyTarget } = this.data let { showZyTarget, zyConfirmFlag } = this.data
wx.showLoading({title: '加载中'})
if (zyConfirmFlag) return false
this.setData({
zyConfirmFlag: true
});
getQuotationInfoById({ getQuotationInfoById({
id: showZyTarget?.id id: showZyTarget?.id
}).then(res => { }).then(res => {
...@@ -597,18 +602,29 @@ Component({ ...@@ -597,18 +602,29 @@ Component({
if (code == 0) { if (code == 0) {
let orderInfo = this.getInsurance(data) let orderInfo = this.getInsurance(data)
// 更新客户信息 // 更新客户信息
wx.$util.showLoading()
updateCustomerInfo({ ...orderInfo, zyPayUrl: e.detail?.zyPayUrl?.join(',') }).then(result => { updateCustomerInfo({ ...orderInfo, zyPayUrl: e.detail?.zyPayUrl?.join(',') }).then(result => {
wx.$util.hideLoading() wx.hideLoading()
this.setData({ this.setData({
showZyPayPopup: false showZyPayPopup: false
}, () => { }, () => {
this.setData({
zyConfirmFlag: false
});
this.search() this.search()
}) })
}) })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
wx.hideLoading()
this.setData({
zyConfirmFlag: false
})
} }
}).catch(() => {
this.setData({
zyConfirmFlag: false
})
wx.hideLoading()
}) })
}, },
remarkCancel() { remarkCancel() {
......
...@@ -16,12 +16,14 @@ Page({ ...@@ -16,12 +16,14 @@ Page({
{ {
label: "提交人", label: "提交人",
value: "updatedBy", value: "updatedBy",
type: 'UpdatedBy' type: 'UpdatedBy',
hidden:true
}, },
{ {
label: "提交时间", label: "提交时间",
value: "updatedTime", value: "updatedTime",
type: 'UpdatedTime' type: 'UpdatedTime',
hidden:true
},{ },{
label:'原文', label:'原文',
value: 'sourceContent' value: 'sourceContent'
...@@ -49,8 +51,11 @@ Page({ ...@@ -49,8 +51,11 @@ Page({
}, },
onLoad() { onLoad() {
wx.$router.getData(({item})=>{ wx.$router.getData(({item})=>{
console.log(item) let {list} = this.data
this.setData({detail:item}) if(item.checkStatus == 0) {
list = list.filter(i=>!i.hidden)
}
this.setData({detail:item,list})
this.extractLabel(item.classCode) this.extractLabel(item.classCode)
}) })
this.extractClass() this.extractClass()
......
...@@ -93,6 +93,9 @@ ...@@ -93,6 +93,9 @@
.value { .value {
flex: 1; flex: 1;
color: #292d33; color: #292d33;
text {
color:#347BFF;
}
} }
/* 内容区块 */ /* 内容区块 */
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
<view class="card-title">话术信息</view> <view class="card-title">话术信息</view>
<view class="info-row" wx:for="{{list}}" :wx:key="index"> <view class="info-row" wx:for="{{list}}" :wx:key="index">
<text class="label">{{item.label}}</text> <text class="label">{{item.label}}</text>
<text class="value">{{detail[item.value]}} <view class="value">{{detail[item.value]}}
<text wx:if="{{item.value == 'polishContent'}}" bindtap="handleEdit">编辑</text> <text wx:if="{{item.value == 'polishContent'}}" bindtap="handleEdit">编辑</text>
</text> </view>
</view> </view>
</view> </view>
<view class="info-card"> <view class="info-card">
......
...@@ -48,7 +48,7 @@ Page({ ...@@ -48,7 +48,7 @@ Page({
metaList: [ metaList: [
{ {
label: "话术来源", label: "话术来源",
value: "staffName", value: "staffName"
}, },
{ {
label: '萃取时间', label: '萃取时间',
......
/* packageEquity/pages/extract/extract/extract.wxss */
\ No newline at end of file \ No newline at end of file
// filter.wxs // filter.wxs
var showFunctions = { var showFunctions = {
showLabelName: function(item) { showLabelName: function(item) {
return item.checkStatus != 3 return item.checkStatus != 3 && item.checkStatus != 0
}, },
showUpdatedBy: function(item) { showUpdatedBy: function(item) {
return item.checkStatus == 3 ||item.checkStatus == 2 return item.checkStatus == 3 &&item.checkStatus == 2
}, },
showUpdatedTime: function(item) { showUpdatedTime: function(item) {
return item.checkStatus == 3 ||item.checkStatus == 2 return item.checkStatus == 3 &&item.checkStatus == 2
}, },
showClassName: function(item) { showClassName: function(item) {
return item.checkStatus != 3 return item.checkStatus != 3 && item.checkStatus != 0
} }
// 其他判断函数... // 其他判断函数...
} }
......
...@@ -15,7 +15,7 @@ Page({ ...@@ -15,7 +15,7 @@ Page({
}, },
toList() { toList() {
wx.$router.back((page)=>{ wx.$router.back((page)=>{
page.init() page.initMethod()
},2) },2)
}, },
/** /**
......
...@@ -496,15 +496,14 @@ Component({ ...@@ -496,15 +496,14 @@ Component({
sortVal: 11 sortVal: 11
}) })
} }
// 区域运营/广联销售 // if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menuList.every((item) => item.menuText != '积分审批')) {
if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menuList.every((item) => item.menuText != '积分审批')) { // menuList.unshift({
menuList.unshift({ // menuText: "积分审批",
menuText: "积分审批", // path: "pages.pointsReview",
path: "pages.pointsReview", // icon: "points_review",
icon: "points_review", // sortVal: 12
sortVal: 12 // })
}) // }
}
// if ( // if (
// userInfo.isSuper && // userInfo.isSuper &&
// menuList.every((item) => item.menuText != "质检管理") // menuList.every((item) => item.menuText != "质检管理")
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
box-sizing: border-box; box-sizing: border-box;
padding: 0 14rpx; padding: 0 14rpx;
transition: all .5s; transition: all .5s;
background-color: #EFF0F2; background-color: #f7f8fa;
position: relative; position: relative;
} }
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
left: 0; left: 0;
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
gap: 0 12rpx;
z-index: 2; z-index: 2;
padding-left: 24rpx; padding-left: 24rpx;
box-sizing: border-box; box-sizing: border-box;
...@@ -18,6 +17,7 @@ ...@@ -18,6 +17,7 @@
z-index: 3; z-index: 3;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0 12rpx;
} }
.blcok { .blcok {
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
left: 0; left: 0;
top: 0; top: 0;
z-index: 2; z-index: 2;
.filtrate-bg { .filtrate-bg {
position: absolute; position: absolute;
top: 88rpx; top: 88rpx;
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
.required{ .required{
color: #F24724; color: #F24724;
} }
.readonly{
color: #33333380;
}
.value { .value {
display: flex; display: flex;
......
<view class="item"> <view class="item">
<view class="label"> <view class="label {{readonly?'readonly':''}}">
{{item.label}} {{item.label}}
<block wx:if="{{item.required && !readonly}}"> <block wx:if="{{item.required && !readonly}}">
<text class="required">*</text> <text class="required">*</text>
......
...@@ -15,7 +15,7 @@ Page({ ...@@ -15,7 +15,7 @@ Page({
tagIndex: 0, tagIndex: 0,
requestParams: {}, requestParams: {},
materialList: [], materialList: [],
showBtn:true showBtn: true
}, },
/** /**
...@@ -39,12 +39,14 @@ Page({ ...@@ -39,12 +39,14 @@ Page({
onShow() { onShow() {
if (this.trackId) leavePageTrack({ if (this.trackId) leavePageTrack({
id: this.trackId id: this.trackId
}).then(res =>{ }).then(res => {
this.trackId = null this.trackId = null
}) })
if(this.refreshPageStatus) { if (this.refreshPageStatus) {
this.getSceneMarketMaterialList() setTimeout(() => {
this.refreshPageStatus = false this.getSceneMarketMaterialList()
this.refreshPageStatus = false
}, 200)
} }
}, },
......
...@@ -469,7 +469,7 @@ Page({ ...@@ -469,7 +469,7 @@ Page({
}) })
} }
if (item.url == 'packageEquity.clueList') { if (item.url == 'packageEquity.clueList') {
wx.$track.setTrackData(0, 'leads_page', { }, '', 1) wx.$track.setTrackData(0, 'leads_page', {}, '', 1)
} }
// 飞行督导点击带教管理入口埋点 // 飞行督导点击带教管理入口埋点
if (item.url == 'tabWorkOrder.mentorshipManage' && userInfo?.loginRole == 6) { if (item.url == 'tabWorkOrder.mentorshipManage' && userInfo?.loginRole == 6) {
...@@ -1304,15 +1304,15 @@ Page({ ...@@ -1304,15 +1304,15 @@ Page({
icon: 'boutique-syzs' icon: 'boutique-syzs'
}) })
} }
if ((userInfo?.loginRole == 3 || userInfo?.loginRole == 5) && menu.every((item) => item.name != '积分审批')) { // if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menu.every((item) => item.name != '积分审批')) {
menu.push({ // menu.push({
name: '积分审批', // name: '积分审批',
url: 'pages.pointsReview', // url: 'pages.pointsReview',
icon: 'points_review' // icon: 'points_review'
}) // })
} // }
// 区域运营/广联销售/飞行督导 // 督导和销售
if ((userInfo?.loginRole == 3 || userInfo?.loginRole == 5 || userInfo?.loginRole == 6) && menu.every((item) => item.name != '工作日报')) { if ((userInfo?.loginRole == 3 || userInfo?.loginRole == 5) && menu.every((item) => item.name != '工作日报')) {
menu.push({ menu.push({
name: "工作日报", name: "工作日报",
url: "tabWorkOrder.supervisorDaily", url: "tabWorkOrder.supervisorDaily",
......
...@@ -113,7 +113,7 @@ export const mentorshipFormData = [ ...@@ -113,7 +113,7 @@ export const mentorshipFormData = [
type: 'dateTime' type: 'dateTime'
}, },
{ {
label: '预计结束时间', label: '实际结束时间',
name: 'teachEndTime', name: 'teachEndTime',
labelName: 'teachEndTime', labelName: 'teachEndTime',
type: 'dateTime' type: 'dateTime'
......
...@@ -167,7 +167,9 @@ convertNumbersToChinese(num) { ...@@ -167,7 +167,9 @@ convertNumbersToChinese(num) {
// 修改带教任务信息或接受指派 // 修改带教任务信息或接受指派
updateMentorShip(e) { updateMentorShip(e) {
let data = e.detail let data = e.detail
const { teachTaskRecordId, supportWay, storeType, businessType, saleType, teachStartTime, teachEndTime, problemDescription, solutionDescription } = data || {} const { teachTaskRecordId, supportWay, storeType, businessType, saleType, teachStartTime, teachEndTime, problemDescription, solutionDescription, confirmFlag } = data || {}
if (confirmFlag) return
this.setData({confirmFlag: true})
const params = { const params = {
teachTaskRecordId, teachTaskRecordId,
supportWay, supportWay,
...@@ -180,13 +182,33 @@ convertNumbersToChinese(num) { ...@@ -180,13 +182,33 @@ convertNumbersToChinese(num) {
solutionDescription solutionDescription
} }
if (new Date(teachEndTime.replace(/-/g, '/')) < new Date(teachStartTime.replace(/-/g, '/'))) return wx.$util.showToast('结束时间不能在开始时间之前') if (new Date(teachEndTime.replace(/-/g, '/')) < new Date(teachStartTime.replace(/-/g, '/'))) return wx.$util.showToast('结束时间不能在开始时间之前')
wx.showLoading({
title: '加载中',
})
updateMentorShipInfo(params).then(res => { updateMentorShipInfo(params).then(res => {
// 当是待接受任务更新之后,跳转到进行中tab
if (data.taskStatus == 0) this.setData({tabIndex: 0})
this.setData({ this.setData({
handleShowMessagePop: false confirmFlag: false
})
wx.hideLoading()
let { code, message } = res
if (code == 0) {
// 当是待接受任务更新之后,跳转到进行中tab
if (data.taskStatus == 0) this.setData({tabIndex: 0})
this.setData({
handleShowMessagePop: false
})
wx.showToast({
title: "操作成功",
icon: "success",
})
this.search()
} else {
wx.$util.showToast(message)
}
}).catch(() => {
this.setData({
confirmFlag: false
}) })
this.search()
}) })
}, },
......
...@@ -308,6 +308,8 @@ Page({ ...@@ -308,6 +308,8 @@ Page({
tmlpFormData['staffIds' + trainTmlpSuffix] = ""; tmlpFormData['staffIds' + trainTmlpSuffix] = "";
var list = []; var list = [];
var ids = [] var ids = []
console.log(trainTmlpSuffix, 'trainTmlpSuffix---')
console.log( this.data['staffCheckList' + trainTmlpSuffix], 'trainTmlpSuffix---')
this.data['staffCheckList' + trainTmlpSuffix].forEach((item) => { this.data['staffCheckList' + trainTmlpSuffix].forEach((item) => {
list.push(item.staffName); list.push(item.staffName);
ids.push(item.id) ids.push(item.id)
...@@ -423,9 +425,6 @@ Page({ ...@@ -423,9 +425,6 @@ Page({
imgObj.trainingPhotos = [] imgObj.trainingPhotos = []
imgObj.trainingPhotos_1 = [] imgObj.trainingPhotos_1 = []
imgObj.trainingPhotos_2 = [] imgObj.trainingPhotos_2 = []
staffCheckList = []
staffCheckList_1 = []
staffCheckList_2 = []
selectedStr = '' selectedStr = ''
selectTxt = '' selectTxt = ''
// var ruleObj = {} // var ruleObj = {}
...@@ -446,7 +445,7 @@ Page({ ...@@ -446,7 +445,7 @@ Page({
// console.log(frontConfig, 'frontConfig--') // console.log(frontConfig, 'frontConfig--')
// if (k.key == 'attendingStaff' && k.value) { // if (k.key == 'attendingStaff' && k.value) {
if (k.key.includes('attendingStaff') && k.value) { if (k.key.includes('attendingStaff') && k.value) {
['staffCheckList' + trainSuffix] = k.value this.data['staffCheckList' + trainSuffix] = k.value.split(',').map(item => { return { staffName: item}})
// let staffList = k.value.split(',') // let staffList = k.value.split(',')
// selectedStr = staffList.slice(0, 2).join(';') // selectedStr = staffList.slice(0, 2).join(';')
// selectTxt = (staffList.length > 2 ? ';等' + staffList.length + '人' : '') // selectTxt = (staffList.length > 2 ? ';等' + staffList.length + '人' : '')
...@@ -483,7 +482,8 @@ Page({ ...@@ -483,7 +482,8 @@ Page({
slotName: frontConfig.slotName || k.key, slotName: frontConfig.slotName || k.key,
// select的选项合集 // select的选项合集
labelName: frontConfig.labelName, labelName: frontConfig.labelName,
inputLimit: frontConfig.inputLimit || {} inputLimit: frontConfig.inputLimit || {},
isOnlyPc: frontConfig.isOnlyPc || false
}) })
tmlpFormData[k.key] = k.value tmlpFormData[k.key] = k.value
if (frontConfig.type == 'select') { if (frontConfig.type == 'select') {
...@@ -506,6 +506,7 @@ Page({ ...@@ -506,6 +506,7 @@ Page({
} }
} }
}) })
list = list.filter(m => !m.isOnlyPc)
// console.log(allRuleObj[val.key], 'itemRuleObj---') // console.log(allRuleObj[val.key], 'itemRuleObj---')
obj[val.key] = JSON.parse(JSON.stringify(list)) obj[val.key] = JSON.parse(JSON.stringify(list))
// ruleObj[val.key] = itemRuleObj // ruleObj[val.key] = itemRuleObj
...@@ -526,9 +527,9 @@ Page({ ...@@ -526,9 +527,9 @@ Page({
selectedStr, selectedStr,
selectTxt, selectTxt,
isChangeTab: false, isChangeTab: false,
staffCheckList, staffCheckList: this.data.staffCheckList,
staffCheckList_1, staffCheckList_1: this.data.staffCheckList_1,
staffCheckList_2 staffCheckList_2: this.data.staffCheckList_2
}, () => { }, () => {
this.getStaffList() this.getStaffList()
// const staffIdx = obj?.organizeTraining?.findIndex(k => k.name == 'attendingStaff') || -1 // const staffIdx = obj?.organizeTraining?.findIndex(k => k.name == 'attendingStaff') || -1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!