Commit fcf96643 by cwq0219

bug修复

1 parent 78834c3a
This diff could not be displayed because it is too large.
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"dayjs": "^1.10.7", "dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.9",
"glsx-components": "^1.1.8", "glsx-components": "^1.1.8",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
......
...@@ -17,9 +17,6 @@ import { routes } from '@/router' ...@@ -17,9 +17,6 @@ import { routes } from '@/router'
export async function start() { export async function start() {
if (window.__POWERED_BY_QIANKUN__) return if (window.__POWERED_BY_QIANKUN__) return
const { response, request, request_brand, sign, secret } = await fetchConfig() const { response, request, request_brand, sign, secret } = await fetchConfig()
window.logout = function() {
console.log('cwq--------------')
}
var urlParams = {} var urlParams = {}
window.location.href.split('?').length > 1 window.location.href.split('?').length > 1
? window.location.href ? window.location.href
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<template slot="packageCode" slot-scope="scope"> <template slot="packageCode" slot-scope="scope">
<el-radio-group class="package-code-box" v-model="editForm[scope.scope.name]" :disabled="scope.scope.isDisabled" @change="scope.scope.handleRadioChange"> <el-radio-group class="package-code-box" v-model="editForm[scope.scope.name]" :disabled="scope.scope.isDisabled" @change="scope.scope.handleRadioChange">
<el-radio class="package-code" v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" :label="subItem[scope.scope.optionId]"> <el-radio class="package-code" v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" :label="subItem[scope.scope.optionId]">
{{ subItem[scope.scope.optionLabel] }} <span class="package-title">{{ subItem[scope.scope.optionLabel] }}</span>
<div class="radio-add-block"> <div class="radio-add-block">
<p>{{ subItem.serviceItems }}</p> <p>{{ subItem.serviceItems }}</p>
<div v-if="editForm.packageCode == subItem[scope.scope.optionId]"> <div v-if="editForm.packageCode == subItem[scope.scope.optionId]">
...@@ -467,6 +467,11 @@ export default { ...@@ -467,6 +467,11 @@ export default {
}) })
} }
}, },
handleCancelBubble(e) {
console.log(e)
window.event.cancelBubble = true
e.stopPropagation()
},
getInfo() { getInfo() {
this.$apis.beforeSale.getEquityApi({ contractNo: this.routeInfo.contractNo }).then(res => { this.$apis.beforeSale.getEquityApi({ contractNo: this.routeInfo.contractNo }).then(res => {
console.log(res) console.log(res)
...@@ -709,7 +714,7 @@ export default { ...@@ -709,7 +714,7 @@ export default {
params.vehicle.vehicleSeriesName = this.baseData.carSeriesOptions.find(item => item.id == this.editForm.vehicle.vehicleSeriesId).name params.vehicle.vehicleSeriesName = this.baseData.carSeriesOptions.find(item => item.id == this.editForm.vehicle.vehicleSeriesId).name
} }
if (this.editForm.vehicle.vehicleShapeId) { if (this.editForm.vehicle.vehicleShapeId) {
params.vehicle.vehicleBrandName = this.baseData.carTypeOptions.find(item => item.id == this.editForm.vehicle.vehicleShapeId).name params.vehicle.vehicleShapeName = this.baseData.carTypeOptions.find(item => item.id == this.editForm.vehicle.vehicleShapeId).name
} }
var targetItem = this.packageList.find(item => item.packageCode == this.editForm.packageCode) var targetItem = this.packageList.find(item => item.packageCode == this.editForm.packageCode)
// console.log(targetItem) // console.log(targetItem)
...@@ -899,6 +904,10 @@ export default { ...@@ -899,6 +904,10 @@ export default {
display: block; display: block;
margin-bottom: 20px; margin-bottom: 20px;
} }
.before-sale .package-code .package-title {
font-size: 16px;
font-weight: bold;
}
.before-sale .package-code-box ::v-deep .el-radio__label { .before-sale .package-code-box ::v-deep .el-radio__label {
width: 100% !important; width: 100% !important;
text-overflow: ellipsis; text-overflow: ellipsis;
......
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
label: '搜索内容', label: '搜索内容',
name: 'queryText', name: 'queryText',
type: 'input', type: 'input',
placeholder: '输入车主、单号、车架号', placeholder: '输入车主、合同号、车架号',
maxlength: 100 maxlength: 100
}, },
{ {
...@@ -257,10 +257,10 @@ export default { ...@@ -257,10 +257,10 @@ export default {
}, },
{ {
label: '生效时间', label: '生效时间',
prop: 'expirationDate', prop: 'effectiveDate',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.expirationDate ? dayjs(cellValue.expirationDate).format('YYYY-MM-DD HH:mm:ss') : '-' return cellValue.effectiveDate ? dayjs(cellValue.effectiveDate).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
}, },
{ {
...@@ -304,7 +304,7 @@ export default { ...@@ -304,7 +304,7 @@ export default {
orderStatusList: [ orderStatusList: [
{ {
confId: 0, confId: 0,
confName: '初始化' confName: '待提单'
}, },
{ {
confId: 2, confId: 2,
...@@ -339,6 +339,7 @@ export default { ...@@ -339,6 +339,7 @@ export default {
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}) })
this.$apis.beforeSale.getUserInfoApi({}).then(res => { this.$apis.beforeSale.getUserInfoApi({}).then(res => {
console.log(res)
this.userInfo = res this.userInfo = res
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[res.merchantAccountLevel]) var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[res.merchantAccountLevel])
this.searchFormData[idx].isHide = false this.searchFormData[idx].isHide = false
...@@ -528,8 +529,8 @@ export default { ...@@ -528,8 +529,8 @@ export default {
// 退保 // 退保
handleBack(row) { handleBack(row) {
console.log(row) console.log(this.userInfo)
if (new Date(new Date().setDate(new Date().getDate() - 7)) > new Date(row.successDate)) { if (!this.userInfo.admin && new Date(new Date().setDate(new Date().getDate() - 7)) > new Date(row.successDate)) {
const h = this.$createElement const h = this.$createElement
this.$message({ this.$message({
message: h('p', null, [h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '为保障客户权益,请邮件主送:operation@didihu.com.cn,抄送:liuqm@didihu.com.cn,jiangfj@didihu.com.cn提交退单申请 ')]), message: h('p', null, [h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '为保障客户权益,请邮件主送:operation@didihu.com.cn,抄送:liuqm@didihu.com.cn,jiangfj@didihu.com.cn提交退单申请 ')]),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!