Commit aac14ea9 by 李伟康

```

fix(equity): 移除调试日志并修正购车发票日期结束时间为当天

移除了多个组件中的 console.log 调试语句,避免生产环境中输出无关信息。
同时将购车发票日期选择器的默认结束时间从昨天调整为今天,
确保用户可以选择当前日期。

此外,在处理弹窗确认逻辑时,统一在赋值后更新 viewKey,
以保证视图响应的及时性。
```
1 parent 3415ea76
...@@ -235,24 +235,23 @@ export default { ...@@ -235,24 +235,23 @@ export default {
this.viewKey = Date.now() this.viewKey = Date.now()
}, },
handleCell (val) { handleCell (val) {
console.log(val)
if (['calendar', 'futureCalendar'].includes(val.key)) return this.$refs[val.key]?.open() if (['calendar', 'futureCalendar'].includes(val.key)) return this.$refs[val.key]?.open()
this.popupType = Object.keys(EQUITY_POPUP_ENUM).find(key => EQUITY_POPUP_ENUM[key].key === val.key) * 1 this.popupType = Object.keys(EQUITY_POPUP_ENUM).find(key => EQUITY_POPUP_ENUM[key].key === val.key) * 1
this.orderPopupRef.open() this.orderPopupRef.open()
}, },
onConfirm (val) { onConfirm (val) {
console.log(val)
const { chooseContent, popupType } = val, const { chooseContent, popupType } = val,
_typeValue = EQUITY_POPUP_ENUM[popupType] _typeValue = EQUITY_POPUP_ENUM[popupType]
console.log(_typeValue)
if (_typeValue.key == 'carBrand') { if (_typeValue.key == 'carBrand') {
Object.assign(this.orderObj, chooseContent) Object.assign(this.orderObj, chooseContent)
this.$set(this.orderObj, 'carBrandText', this.$set(this.orderObj, 'carBrandText',
`${chooseContent.vehicleBrandName}/${chooseContent.vehicleSubBrandName}/${chooseContent.vehicleSeriesName}/${chooseContent.vehicleShapeName}`) `${chooseContent.vehicleBrandName}/${chooseContent.vehicleSubBrandName}/${chooseContent.vehicleSeriesName}/${chooseContent.vehicleShapeName}`)
this.viewKey = Date.now()
return return
} else if (_typeValue.options) { } else if (_typeValue.options) {
this.$set(this.orderObj, _typeValue.targetIdKey, chooseContent[_typeValue.sourceIdKey || 'optionId']) this.$set(this.orderObj, _typeValue.targetIdKey, chooseContent[_typeValue.sourceIdKey || 'optionId'])
this.$set(this.orderObj, _typeValue.targetNameKey, chooseContent[_typeValue.sourceNameKey || 'optionLabel']) this.$set(this.orderObj, _typeValue.targetNameKey, chooseContent[_typeValue.sourceNameKey || 'optionLabel'])
this.viewKey = Date.now()
return return
} }
this.$set(this.orderObj, _typeValue.value, chooseContent) this.$set(this.orderObj, _typeValue.value, chooseContent)
...@@ -397,7 +396,6 @@ export default { ...@@ -397,7 +396,6 @@ export default {
this.formList[4].map(e => { this.formList[4].map(e => {
if (e.value == 'inclueType') e.current = inclueType if (e.value == 'inclueType') e.current = inclueType
}) })
console.log(JSON.parse(JSON.stringify(this.orderObj)))
this.viewKey = Date.now() this.viewKey = Date.now()
this.loadComplete = true this.loadComplete = true
uni.hideLoading() uni.hideLoading()
...@@ -497,7 +495,6 @@ export default { ...@@ -497,7 +495,6 @@ export default {
this.confirm(params, operationType) this.confirm(params, operationType)
return return
} }
console.log(params)
if (!this.checkOrder(params)) return uni.hideLoading() if (!this.checkOrder(params)) return uni.hideLoading()
const { code, message } = await uni.$api.equityApi.checkVinBuyEquityOrder({ const { code, message } = await uni.$api.equityApi.checkVinBuyEquityOrder({
vin: orderObj.vin vin: orderObj.vin
...@@ -524,7 +521,6 @@ export default { ...@@ -524,7 +521,6 @@ export default {
} else { } else {
if (validatorCheck && validatorCheck.validator) { if (validatorCheck && validatorCheck.validator) {
const res = validatorCheck.validator('', params[key]) const res = validatorCheck.validator('', params[key])
console.log(res, key)
if (res && res.message) throw res.message if (res && res.message) throw res.message
} }
} }
...@@ -588,7 +584,6 @@ export default { ...@@ -588,7 +584,6 @@ export default {
} }
} }
} catch (error) { } catch (error) {
console.log(error, '===')
uni.showToast({ uni.showToast({
title: error, title: error,
icon: 'none' icon: 'none'
...@@ -601,7 +596,6 @@ export default { ...@@ -601,7 +596,6 @@ export default {
try { try {
let params = utils.deepClone(paramsData) let params = utils.deepClone(paramsData)
this.$refs.reportNotice.close() this.$refs.reportNotice.close()
console.log(params, '===')
// 0草稿,1提单 // 0草稿,1提单
params.operationType = operationType params.operationType = operationType
params.addOnsFlag = params.inclueType == 2 ? 0 : 1 params.addOnsFlag = params.inclueType == 2 ? 0 : 1
...@@ -667,7 +661,6 @@ export default { ...@@ -667,7 +661,6 @@ export default {
} else throw message } else throw message
} catch (error) { } catch (error) {
console.log(error)
uni.hideLoading() uni.hideLoading()
if (error) uni.showToast({ if (error) uni.showToast({
title: error, title: error,
......
...@@ -99,7 +99,7 @@ const extendServiceFormList = [ ...@@ -99,7 +99,7 @@ const extendServiceFormList = [
label: '购车发票日期', label: '购车发票日期',
value: 'buyDate', value: 'buyDate',
type: 'single-calendar', type: 'single-calendar',
endDate: dayjs().subtract(1, 'day').format('YYYY-MM-DD') endDate: dayjs().format('YYYY-MM-DD')
}, },
{ {
label: '原厂质保开始日期', label: '原厂质保开始日期',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!