Commit 92bdbff7 by cen

Merge branch 'SAAS+V5.3.0-1117' of http://192.168.3.233:8090/saas_plus/dj-car-li…

…fe-system into SAAS+V5.3.0-1117
2 parents eb7d25f6 5fffa238
...@@ -193,5 +193,7 @@ export const sendSmsCode = (data = {}) => { ...@@ -193,5 +193,7 @@ export const sendSmsCode = (data = {}) => {
*/ */
export const verifySmsCode = (data = {}) => { export const verifySmsCode = (data = {}) => {
data.method = 'dj.api.smartcarlife.sms.common.verifySmsCode' data.method = 'dj.api.smartcarlife.sms.common.verifySmsCode'
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST, [], {
returnAll: true
})
} }
\ No newline at end of file \ No newline at end of file
...@@ -121,6 +121,7 @@ service.interceptors.response.use( ...@@ -121,6 +121,7 @@ service.interceptors.response.use(
const ruleResult = baseConfig.axios.result const ruleResult = baseConfig.axios.result
const errCodeMsg = baseConfig.errCode const errCodeMsg = baseConfig.errCode
const errCodes = Object.keys(errCodeMsg) const errCodes = Object.keys(errCodeMsg)
const returnAll = response.config.returnAll
// console.log("baseConfig", baseConfig) // console.log("baseConfig", baseConfig)
// console.log("response", response) // console.log("response", response)
// console.log("errCodes", errCodes) // console.log("errCodes", errCodes)
...@@ -137,6 +138,7 @@ service.interceptors.response.use( ...@@ -137,6 +138,7 @@ service.interceptors.response.use(
return errorCreate("登录超时,请重新登录") return errorCreate("登录超时,请重新登录")
// return Promise.reject(new Error(response.message || 'Error')) // return Promise.reject(new Error(response.message || 'Error'))
} }
if(returnAll) return dataAxios
const codeValue = dataAxios[ruleResult.code_key] || dataAxios.returnCode const codeValue = dataAxios[ruleResult.code_key] || dataAxios.returnCode
switch (+codeValue) { switch (+codeValue) {
case ruleResult.code_success_value: case ruleResult.code_success_value:
......
...@@ -135,11 +135,11 @@ export default { ...@@ -135,11 +135,11 @@ export default {
if (!/^1[3456789]\d{9}$/.test(phone)) return this.phoneError = '手机号格式错误' if (!/^1[3456789]\d{9}$/.test(phone)) return this.phoneError = '手机号格式错误'
if (!smsCode) return this.smsError = '验证码不能为空' if (!smsCode) return this.smsError = '验证码不能为空'
if (smsCode.length < 6) return this.smsError = '验证码错误,请重试!' if (smsCode.length < 6) return this.smsError = '验证码错误,请重试!'
let data = await verifySmsCode({ let { code} = await verifySmsCode({
phone, phone,
smsCode smsCode
}) })
if (data) { if (code == 0) {
this.$emit('loginSuccess') this.$emit('loginSuccess')
this.count = 60 this.count = 60
this.countDownStatus = false this.countDownStatus = false
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<div <div
v-loading="loading" v-loading="loading"
class="form_div" class="form_div"
ref="form"
> >
<div class="tipsDiv"> <div class="tipsDiv">
<div class="labelCla">付款单推送状态:</div> <div class="labelCla">付款单推送状态:</div>
...@@ -262,6 +263,7 @@ export default { ...@@ -262,6 +263,7 @@ export default {
info.nbTransferStatusText = NB_TRANSFER_STATUS[info.nbTransferStatus] info.nbTransferStatusText = NB_TRANSFER_STATUS[info.nbTransferStatus]
info.receiptStatusText = RECEIPT_STATUS[info.receiptStatus] info.receiptStatusText = RECEIPT_STATUS[info.receiptStatus]
info.amtText = info.amt != null ? `${info.amt.toLocaleString()}元` : '-' info.amtText = info.amt != null ? `${info.amt.toLocaleString()}元` : '-'
if (this.$refs.form) this.$refs.form.parentNode.scrollTop = 0
} }
}, },
dataPush () { dataPush () {
...@@ -357,7 +359,7 @@ export default { ...@@ -357,7 +359,7 @@ export default {
line-height: 24px; line-height: 24px;
} }
::v-deep .el-form-item__label { ::v-deep .el-form-item__label {
padding: 0; padding: 0;
} }
.el-form-item { .el-form-item {
...@@ -408,7 +410,7 @@ export default { ...@@ -408,7 +410,7 @@ export default {
.receiptBtn { .receiptBtn {
margin-left: 8px; margin-left: 8px;
} }
.block{ .block {
height: 24px; height: 24px;
} }
} }
......
...@@ -151,6 +151,9 @@ import { ...@@ -151,6 +151,9 @@ import {
NB_TRANSFER_STATUS_OPTIONS NB_TRANSFER_STATUS_OPTIONS
} from "./contant" } from "./contant"
import detailDialog from './components/detailDialog.vue' import detailDialog from './components/detailDialog.vue'
import {
todayEndPickerOptions
} from "@/common/format"
export default { export default {
name: "usedCarPaymentManage", name: "usedCarPaymentManage",
mixins: [reportTrackPageMixin], mixins: [reportTrackPageMixin],
...@@ -171,14 +174,7 @@ export default { ...@@ -171,14 +174,7 @@ export default {
value: 'push' value: 'push'
} }
], ],
rangePickerOptions: { rangePickerOptions: todayEndPickerOptions,
disabledDate (date) {
if (date > new Date()) {
return true
}
return false
}
},
searchForm: { searchForm: {
licensePlate: "", licensePlate: "",
vin: "", vin: "",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!