Commit 64eee306 by 张立顺

bug修复

1 parent ef97d19e
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* 2测试 * 2测试
* 3生产环境 * 3生产环境
*/ */
let index = 1 let index = 2
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -29,8 +29,8 @@ Page({ ...@@ -29,8 +29,8 @@ Page({
}, },
// 页面存放表单对象的对象名 // 页面存放表单对象的对象名
dataAttrName: 'serviceInfo', dataAttrName: 'serviceInfo',
step: 'first', // step: 'first',
// step: 'second', step: 'second',
routeInfo: {}, routeInfo: {},
contractNo: '', contractNo: '',
url: '', url: '',
......
...@@ -182,7 +182,7 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险') ...@@ -182,7 +182,7 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险')
this.setData({ this.setData({
confirmStatus: true confirmStatus: true
}) })
let result = await this.handleSecondConfirmCheck() let result = await this.handleSecondConfirmCheck(true)
let { let {
code, code,
data: id, data: id,
...@@ -199,7 +199,7 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险') ...@@ -199,7 +199,7 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险')
}) })
console.log('id', id) console.log('id', id)
// { orderId:data.orderId, id } // { orderId:data.orderId, id }
return // return
status.code == 0 ? this.navigatorNext({ status.code == 0 ? this.navigatorNext({
id, id,
orderId: status.data.orderId orderId: status.data.orderId
...@@ -261,11 +261,12 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险') ...@@ -261,11 +261,12 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险')
} }
return owner return owner
}, },
handleSecondConfirmCheck() { handleSecondConfirmCheck(check) {
// 获取保险信息 // 获取保险信息
let orderInfo = this.getInsurance() let orderInfo = this.getInsurance()
let owner = this.getOwnerInfo() let owner = this.getOwnerInfo()
orderInfo.owner = owner orderInfo.owner = owner
orderInfo.check = check
console.log('orderInfo', orderInfo) console.log('orderInfo', orderInfo)
// debugger // debugger
...@@ -423,14 +424,20 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险') ...@@ -423,14 +424,20 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险')
this.setData({ this.setData({
orderInfo orderInfo
}) })
let id = await this.handleSecondConfirmCheck() let res = await this.handleSecondConfirmCheck(false)
this.setData({ this.setData({
saveStatus: false saveStatus: false
}) })
console.log('id', id) console.log('id', res)
let {code ,data,message} = res
if (code == 1) {
wx.$router.redirectTo('packageEquity.equityPage')
}else{
return wx.$util.showToast(res.message||'保存错误')
}
// this.navigatorNext() // this.navigatorNext()
// wx.$router.go('packageEquity.index') // wx.$router.go('packageEquity.index')
wx.$router.redirectTo('packageEquity.equityPage')
}, },
getQuotationInfo() { getQuotationInfo() {
let { let {
......
...@@ -207,7 +207,10 @@ Component({ ...@@ -207,7 +207,10 @@ Component({
} = res.data } = res.data
let tempList = isReset ? this.dealListData(list || []) || [] : this.data.list.concat(this.dealListData(list || []) || []) let tempList = isReset ? this.dealListData(list || []) || [] : this.data.list.concat(this.dealListData(list || []) || [])
tempList = tempList.map((item) => { tempList = tempList.map((item) => {
item.createdTime = wx.$util.tsFormatTime(item.createdTime, 'Y.M.D h:m:s') item.createdTime = wx.$util.tsFormatTime(item.createdTime, 'Y/M/D h:m:s')
if (item.payTime) {
item.payTime = wx.$util.tsFormatTime(item.payTime, 'Y/M/D h:m:s')
}
return item return item
}) })
this.setData({ this.setData({
......
...@@ -71,7 +71,7 @@ Component({ ...@@ -71,7 +71,7 @@ Component({
let { code, data } = result let { code, data } = result
if (code == '0') { if (code == '0') {
let staffList = data.map(item => { let staffList = data.map(item => {
item.createdTime = wx.$util.tsFormatTime(item.createdTime, 'Y-M-D') item.createdTime = wx.$util.tsFormatTime(item.createdTime, 'Y/M/D')
return item return item
}) })
this.setData({ this.setData({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!