Commit 8b9c8344 by cen

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 84fc9056 49e47de8
......@@ -235,24 +235,23 @@ export default {
this.viewKey = Date.now()
},
handleCell (val) {
console.log(val)
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.orderPopupRef.open()
},
onConfirm (val) {
console.log(val)
const { chooseContent, popupType } = val,
_typeValue = EQUITY_POPUP_ENUM[popupType]
console.log(_typeValue)
if (_typeValue.key == 'carBrand') {
Object.assign(this.orderObj, chooseContent)
this.$set(this.orderObj, 'carBrandText',
`${chooseContent.vehicleBrandName}/${chooseContent.vehicleSubBrandName}/${chooseContent.vehicleSeriesName}/${chooseContent.vehicleShapeName}`)
this.viewKey = Date.now()
return
} else if (_typeValue.options) {
this.$set(this.orderObj, _typeValue.targetIdKey, chooseContent[_typeValue.sourceIdKey || 'optionId'])
this.$set(this.orderObj, _typeValue.targetNameKey, chooseContent[_typeValue.sourceNameKey || 'optionLabel'])
this.viewKey = Date.now()
return
}
this.$set(this.orderObj, _typeValue.value, chooseContent)
......@@ -397,7 +396,6 @@ export default {
this.formList[4].map(e => {
if (e.value == 'inclueType') e.current = inclueType
})
console.log(JSON.parse(JSON.stringify(this.orderObj)))
this.viewKey = Date.now()
this.loadComplete = true
uni.hideLoading()
......@@ -497,7 +495,6 @@ export default {
this.confirm(params, operationType)
return
}
console.log(params)
if (!this.checkOrder(params)) return uni.hideLoading()
const { code, message } = await uni.$api.equityApi.checkVinBuyEquityOrder({
vin: orderObj.vin
......@@ -524,7 +521,6 @@ export default {
} else {
if (validatorCheck && validatorCheck.validator) {
const res = validatorCheck.validator('', params[key])
console.log(res, key)
if (res && res.message) throw res.message
}
}
......@@ -588,7 +584,6 @@ export default {
}
}
} catch (error) {
console.log(error, '===')
uni.showToast({
title: error,
icon: 'none'
......@@ -601,7 +596,6 @@ export default {
try {
let params = utils.deepClone(paramsData)
this.$refs.reportNotice.close()
console.log(params, '===')
// 0草稿,1提单
params.operationType = operationType
params.addOnsFlag = params.inclueType == 2 ? 0 : 1
......@@ -667,7 +661,6 @@ export default {
} else throw message
} catch (error) {
console.log(error)
uni.hideLoading()
if (error) uni.showToast({
title: error,
......
......@@ -99,7 +99,7 @@ const extendServiceFormList = [
label: '购车发票日期',
value: 'buyDate',
type: 'single-calendar',
endDate: dayjs().subtract(1, 'day').format('YYYY-MM-DD')
endDate: dayjs().format('YYYY-MM-DD')
},
{
label: '原厂质保开始日期',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!