Commit e653ca5b by 张立顺

功能开发

1 parent 7409ef0e
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* 2测试 * 2测试
* 3生产环境 * 3生产环境
*/ */
let index = 1 let index = 0
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -74,5 +74,9 @@ module.exports = { ...@@ -74,5 +74,9 @@ module.exports = {
/**改变支付订单状态 */ /**改变支付订单状态 */
createPayOrder(data) { createPayOrder(data) {
return api.post('dj.api.smartcarlife.payOrder.create', data) return api.post('dj.api.smartcarlife.payOrder.create', data)
},
/** 门店模式查询 */
merchantMode(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.merchant.mode', data)
} }
} }
...@@ -119,17 +119,9 @@ Page({ ...@@ -119,17 +119,9 @@ Page({
async handleSecondConfirm() { async handleSecondConfirm() {
// 先校验 // 先校验
this.selectComponent(`#FirstStep`).handleConfirm() this.selectComponent(`#FirstStep`).handleConfirm()
return
// owner, orderInfo,
// 修改权益报价逻辑 // 修改权益报价逻辑
let { modifyEquityQuotation, confirmStatus } = this.data let { modifyEquityQuotation, confirmStatus } = this.data
if (confirmStatus) return false
if (modifyEquityQuotation) {
return this.updateEquityPrice()
}
// orderInfo.check = false
// orderInfo.owner = owner
// this.setData({ orderInfo })
wx.showLoading('报价中...') wx.showLoading('报价中...')
this.setData({ this.setData({
confirmStatus: true confirmStatus: true
...@@ -166,21 +158,21 @@ Page({ ...@@ -166,21 +158,21 @@ Page({
let { default4SStoreInfo } = wx.$util.getUserInfo() let { default4SStoreInfo } = wx.$util.getUserInfo()
orderInfo.merchantId4s = default4SStoreInfo?.merchantId orderInfo.merchantId4s = default4SStoreInfo?.merchantId
orderInfo.merchantName4s = default4SStoreInfo?.merchantName orderInfo.merchantName4s = default4SStoreInfo?.merchantName
orderInfo.insurancePrice = this.multipliedByHundredObj(orderInfo.insurancePrice)
// const insurance = ['business', 'mutualStrength', 'vehiclesAndVessels', 'valueAddedVehicleLoss', 'otherInsuranceList']
// orderInfo.insureList = []
// const business = this.multipliedByHundredObj(orderInfo.business)
// const mutualStrength = this.multipliedByHundredObj(orderInfo.mutualStrength)
// const vehiclesAndVessels = this.multipliedByHundredObj(orderInfo.vehiclesAndVessels)
// const valueAddedVehicleLoss = this.multipliedByHundredObj(orderInfo.valueAddedVehicleLoss)
const insurance = ['business', 'mutualStrength', 'vehiclesAndVessels', 'valueAddedVehicleLoss', 'otherInsuranceList'] // orderInfo.insureList = [business, mutualStrength, vehiclesAndVessels, valueAddedVehicleLoss]
orderInfo.insureList = [] // orderInfo.otherInsuranceList.forEach(item => {
const business = this.multipliedByHundredObj(orderInfo.business) // orderInfo.insureList.push(this.multipliedByHundredObj(item))
const mutualStrength = this.multipliedByHundredObj(orderInfo.mutualStrength) // })
const vehiclesAndVessels = this.multipliedByHundredObj(orderInfo.vehiclesAndVessels) // insurance.forEach(item => {
const valueAddedVehicleLoss = this.multipliedByHundredObj(orderInfo.valueAddedVehicleLoss) // delete orderInfo[item]
// })
orderInfo.insureList = [business, mutualStrength, vehiclesAndVessels, valueAddedVehicleLoss]
orderInfo.otherInsuranceList.forEach(item => {
orderInfo.insureList.push(this.multipliedByHundredObj(item))
})
insurance.forEach(item => {
delete orderInfo[item]
})
// delete orderInfo.quotedPriceUpdate // delete orderInfo.quotedPriceUpdate
return orderInfo return orderInfo
}, },
......
// packageEquity/pages/carQuotation/index/index.js // packageEquity/pages/carQuotation/index/index.js
import { quotationPage, getQuotationStatistics, updateOrderStatus } from '../../../api' import { quotationPage, getQuotationStatistics, updateOrderStatus, merchantMode } from '../../../api'
import data from '../constant/data' import data from '../constant/data'
import constantData from '../constant/data' import constantData from '../constant/data'
Component({ Component({
...@@ -73,8 +73,9 @@ Component({ ...@@ -73,8 +73,9 @@ Component({
storeInfo: wx.$util.getUserInfo()?.default4SStoreInfo || {}, storeInfo: wx.$util.getUserInfo()?.default4SStoreInfo || {},
userInfo: wx.$util.getUserInfo() || {} userInfo: wx.$util.getUserInfo() || {}
}) })
console.log(this.data.userInfo) // console.log(this.data.userInfo)
this.onLoad(true) this.onLoad(true)
this.getMerchant4SMode()
} }
}, },
...@@ -92,6 +93,18 @@ Component({ ...@@ -92,6 +93,18 @@ Component({
this.getTotal() this.getTotal()
if (!noGetList) this.getList(true) if (!noGetList) this.getList(true)
}, },
getMerchant4SMode() {
let { storeInfo } = this.data
// 场景
merchantMode({ merchantId4s: storeInfo?.merchantId, Source: 2 })
.then(result => {
console.log(result, 'mode')
this.setData({
mode: result.data
})
})
.catch(err => {})
},
handleClickOrderBtn(e) { handleClickOrderBtn(e) {
// console.log(e) // console.log(e)
// let { target } = e.target.dataset // let { target } = e.target.dataset
...@@ -105,13 +118,15 @@ Component({ ...@@ -105,13 +118,15 @@ Component({
getQuotationStatistics({ merchantId: storeInfo?.merchantId }).then(res => { getQuotationStatistics({ merchantId: storeInfo?.merchantId }).then(res => {
// console.log(res, '统计---') // console.log(res, '统计---')
let { code, message } = res let { code, message } = res
let data = res.data ? { let data = res.data
...res.data, ? {
todayTurnover: res.data.todayTurnover ? ((res.data.todayTurnover / 100).toFixed(2) + '').split('.')[0] : '0', ...res.data,
todayTurDecimal: res.data.todayTurnover ? ((res.data.todayTurnover / 100).toFixed(2) + '').split('.')[1] : '00', todayTurnover: res.data.todayTurnover ? ((res.data.todayTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
totalTurnover: res.data.totalTurnover ? ((res.data.totalTurnover / 100).toFixed(2) + '').split('.')[0] : '0', todayTurDecimal: res.data.todayTurnover ? ((res.data.todayTurnover / 100).toFixed(2) + '').split('.')[1] : '00',
totalTurDecimal: res.data.totalTurnover ? ((res.data.totalTurnover / 100).toFixed(2) + '').split('.')[1] : '00' totalTurnover: res.data.totalTurnover ? ((res.data.totalTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
} : {} totalTurDecimal: res.data.totalTurnover ? ((res.data.totalTurnover / 100).toFixed(2) + '').split('.')[1] : '00'
}
: {}
if (code == '0') { if (code == '0') {
this.setData({ this.setData({
statisticsObj: data statisticsObj: data
...@@ -234,7 +249,7 @@ Component({ ...@@ -234,7 +249,7 @@ Component({
} else { } else {
// 战败 // 战败
this.setData({ this.setData({
showRemark: true, showRemark: true
// sufferReason: '' // sufferReason: ''
}) })
console.log('战败') console.log('战败')
...@@ -245,7 +260,8 @@ Component({ ...@@ -245,7 +260,8 @@ Component({
// orderId: target.orderId, // orderId: target.orderId,
// apiName: 'handler' // apiName: 'handler'
// }) // })
if (type == 'handle') { // 去处理 if (type == 'handle') {
// 去处理
wx.$router.go('serviceInfo', { wx.$router.go('serviceInfo', {
orderId: target.orderId, orderId: target.orderId,
apiName: 'handler' apiName: 'handler'
...@@ -259,7 +275,7 @@ Component({ ...@@ -259,7 +275,7 @@ Component({
id: target.id id: target.id
}) })
break break
case '5': case '5':
wx.$router.go('serviceInfo', { wx.$router.go('serviceInfo', {
orderId: target.orderId, orderId: target.orderId,
apiName: 'handler' apiName: 'handler'
...@@ -293,6 +309,6 @@ Component({ ...@@ -293,6 +309,6 @@ Component({
} }
}) })
} }
}, }
} }
}) })
...@@ -298,6 +298,13 @@ ...@@ -298,6 +298,13 @@
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "权益报价列表",
"pathName": "packageEquity/pages/TabBar/equityPage",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }
......
...@@ -48,12 +48,13 @@ const scrmSecretKey_items = { ...@@ -48,12 +48,13 @@ const scrmSecretKey_items = {
} }
const domain_items = { const domain_items = {
ip: { ip: {
dj: 'http://192.168.1.165:8292', // dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.170:8292', dj: 'http://192.168.1.170:8292', //叶立庆
// dj: 'http://192.168.1.169:8292',//蔡远明 // dj: 'http://192.168.1.169:8292',//蔡远明
// dj: 'http://192.168.1.129:8292',//周杭 // dj: 'http://192.168.1.129:8292',//周杭
// dj:'http://192.168.2.59:8292/',//周立明 // dj:'http://192.168.2.59:8292/',//周立明
scrm: 'http://192.168.1.165:8292' // scrm: 'http://192.168.1.165:8292'
scrm: 'http://192.168.1.170:8292'
}, },
dev: { dev: {
dj: 'https://dj.dev.glsx.com.cn', dj: 'https://dj.dev.glsx.com.cn',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!