Commit b58e5c7b by cen

fix: 类型处理

1 parent 76b266a5
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
popupTypeEnum, popupTypeEnum,
title: '新增评估单', title: '新增评估单',
selectedCarInfo: null, selectedCarInfo: null,
startDate: '', startDate: '1999-01-01',
endDate: dayjs().format('YYYY-MM-DD'), endDate: dayjs().format('YYYY-MM-DD'),
isExistSamePlate: false, isExistSamePlate: false,
formData: { formData: {
...@@ -907,6 +907,7 @@ export default { ...@@ -907,6 +907,7 @@ export default {
}, },
calendarChange(date) { calendarChange(date) {
this.selectDate = date.year + '-' + date.month + '-' + date.date this.selectDate = date.year + '-' + date.month + '-' + date.date
console.log('this.selectDate', this.selectDate)
}, },
blurChange(value, field) { blurChange(value, field) {
console.log('blurChange', value, field) console.log('blurChange', value, field)
...@@ -959,7 +960,7 @@ export default { ...@@ -959,7 +960,7 @@ export default {
this.$set(this.formData.carBaseReqDTO, 'vin', upperValue) this.$set(this.formData.carBaseReqDTO, 'vin', upperValue)
} }
} }
if (field.key === 'mileage' || field.key === 'guidePrice') { if (field.key === 'mileage') {
let numValue = Number(value) let numValue = Number(value)
if (isNaN(numValue)) { if (isNaN(numValue)) {
...@@ -981,6 +982,28 @@ export default { ...@@ -981,6 +982,28 @@ export default {
} }
} }
} }
if (field.key === 'guidePrice') {
let numValue = Number(value)
if (isNaN(numValue)) {
numValue = 0
}
if (numValue < 0) numValue = 0
if (numValue > 9999999.99) numValue = 9999999.99
const limitedValue = String(numValue)
if (limitedValue !== value) {
this.$set(this.formData.carBaseReqDTO, field.key, limitedValue)
if (Number(value) > 9999999.99) {
uni.showToast({
title: `${field.label}不能超过9999999.99`,
icon: 'none'
})
}
}
}
if (field.key === 'keyCount' || field.key === 'transferCount') { if (field.key === 'keyCount' || field.key === 'transferCount') {
let numValue = Number(value) let numValue = Number(value)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<view v-if="status == 30 && !subStatus" class="common-btn ml-24" @click.stop="handleClick('cancelSign', 'app_evaluate_cancel_sign')">取消签约</view> <view v-if="status == 30 && !subStatus" class="common-btn ml-24" @click.stop="handleClick('cancelSign', 'app_evaluate_cancel_sign')">取消签约</view>
<view v-if="status == 30 && !subStatus && paymentType == 1" class="common-btn blue-btn ml-24" @click.stop="handleClick('payDeposit', 'app_evaluate_pay_deposit')">支付定金</view> <view v-if="status == 30 && !subStatus && paymentType == 1" class="common-btn blue-btn ml-24" @click.stop="handleClick('payDeposit', 'app_evaluate_pay_deposit')">支付定金</view>
<view v-if="status == 30 && !subStatus && paymentType == 2" class="common-btn blue-btn ml-24" @click.stop="handleClick('payFull', 'app_evaluate_pay_full')">支付全款</view> <view v-if="status == 30 && !subStatus && paymentType == 2" class="common-btn blue-btn ml-24" @click.stop="handleClick('payFull', 'app_evaluate_pay_full')">支付全款</view>
<view v-if="subStatus == 2 || subStatus == 3" class="common-btn gray-btn ml-24" @click.stop="handleClick('paying')">支付中</view> <view v-if="subStatus == 2 || subStatus == 3 || ((status == 30 || status == 40) && subStatus == 1)" class="common-btn gray-btn ml-24" @click.stop="handleClick('paying')">支付中</view>
<view v-if="status == 40 && !subStatus && paymentType == 1" class="common-btn blue-btn ml-24" @click.stop="handleClick('payFull', 'app_evaluate_pay_final')">支付尾款</view> <view v-if="status == 40 && !subStatus && paymentType == 1" class="common-btn blue-btn ml-24" @click.stop="handleClick('payFull', 'app_evaluate_pay_final')">支付尾款</view>
<view v-if="status == 50 && !subStatus" class="common-btn blue-btn ml-24" @click.stop="handleClick('confirmDelivery', 'app_evaluate_confirm_delivery')">确认交车</view> <view v-if="status == 50 && !subStatus" class="common-btn blue-btn ml-24" @click.stop="handleClick('confirmDelivery', 'app_evaluate_confirm_delivery')">确认交车</view>
<view v-if="status == '-1'" class="common-btn blue-btn ml-24" @click.stop="handleClick('reSubmit', 'app_evaluate_re_submit')">重新提交</view> <view v-if="status == '-1'" class="common-btn blue-btn ml-24" @click.stop="handleClick('reSubmit', 'app_evaluate_re_submit')">重新提交</view>
......
...@@ -482,8 +482,8 @@ export default { ...@@ -482,8 +482,8 @@ export default {
{ label: '原车主住址', key: 'carLicense.previousOwnerAddress', fullWidth: true } { label: '原车主住址', key: 'carLicense.previousOwnerAddress', fullWidth: true }
], ],
priceItems: [ priceItems: [
{ label: '评估价格', key: 'evalPrice', cell: '元' }, { label: '评估价格', key: 'evalPriceDisplay' },
{ label: '客户意向报价', key: 'customerTargetPrice' }, { label: '客户意向报价', key: 'customerTargetPriceDisplay' },
{ label: '报价反馈', key: 'customerTargetPriceFeedback', fullWidth: true }, { label: '报价反馈', key: 'customerTargetPriceFeedback', fullWidth: true },
{ label: '评估意见', key: 'evalOpinion', fullWidth: true } { label: '评估意见', key: 'evalOpinion', fullWidth: true }
], ],
......
...@@ -270,7 +270,7 @@ export default { ...@@ -270,7 +270,7 @@ export default {
const userInfo = uni.$storage.get('userInfo'), const userInfo = uni.$storage.get('userInfo'),
{ shopMerchantId } = userInfo { shopMerchantId } = userInfo
const res = await uni.$api.evaluationApi.evalOrderList({ const res = await uni.$api.evaluationApi.evalOrderList({
t: { ...this.searchValue, status: this.typeList[this.tabIndex].key, sellerMerchantId: shopMerchantId }, t: { ...this.searchValue, status: this.typeList[this.tabIndex].key, sellerMerchantId: shopMerchantId.toString() },
currentPage: pageNo, currentPage: pageNo,
pageSize: 10 pageSize: 10
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!