Commit 72375963 by 杨北旺

合同打印订单导出接口更换

1 parent 435bf2d9
......@@ -44,7 +44,7 @@ const getMerchantApi = params => {
}
const getExportApi = params => {
params.method = `${defaultPath}order.export.get`
params.method = `scrm.api.equity.service.package.dj.order.export.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
......@@ -55,7 +55,7 @@ const getExportApi = params => {
// 打印合同
const getPriteApi = params => {
params.method = `${defaultPath}order.prite`
params.method = `scrm.api.equity.service.package.dj.order.print`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
......
......@@ -22,7 +22,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$messageBox = messageBox
Vue.prototype.$defaultStartDate = '2021-07-01'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'f518259d-1edc-4695-a1cd-a3487567e0af' } })
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
......
......@@ -38,6 +38,7 @@ export default {
} else {
this.status = 2
}
localStorage.setItem('preSetStatus', this.status)
})
}
}
......
......@@ -469,9 +469,7 @@ export default {
crash: {},
stolen: {},
tire: {},
vip1: {},
vip2: {},
vip3: {}
vip: {},
},
// 其他信息
editRuleOther: {
......@@ -644,7 +642,8 @@ export default {
created() {
this.getAllVehicleBrand()
this.getCarChildList(false, true)
this.toTestProductData()
// 测试时使用
this.getPackageList()
},
mounted() {
......@@ -667,167 +666,8 @@ export default {
methods: {
// 模拟获取产品的数据
toTestProductData() {
let testArr = [
{
servicePackagePrices: [],
attachments: [],
serviceItemsList: [
{ serviceContent: '机动车因玻璃破碎导致的太阳膜损坏,经确认后,到店面获得玻璃太阳膜更换服务。', serviceCode: 'SC0018', serviceName: '玻璃太阳膜更换服务' },
{ serviceContent: '提供“加油、救援、餐饮、娱乐、出行、充值、游戏”等多种优惠于一体的服务,让车主一站式享受更多、更划算的增值服务。', serviceCode: 'SC0016', serviceName: '车主生活权益服务' },
{ serviceContent: '', serviceCode: 'SC0014', serviceName: '轮胎更换服务' },
{ serviceContent: '非车主故意行为导致机动车钥匙或车牌丢失,经确认后,到店面获得车辆钥匙或车牌重置服务。', serviceCode: 'SC0017', serviceName: '钥匙及车牌重置服务' },
{ serviceContent: '', serviceCode: 'SC0015', serviceName: '碰撞事故代步车服务' },
{ serviceContent: '', serviceCode: 'SC0013', serviceName: '整车全损无忧权益' }
],
packageType: 1,
templateUrl: 'E:\\需求文档\\SCRM售前需求\\优享版\\优享版1126.pdf',
packageCode: 'PC0010',
groupAttributeList: [
{ groupName: 'service_period', attributeList: [{ quantity: 1, attributeGroup: 'service_period', sort: 1, required: 1, attributeDesc: '服务期限', attributeType: 'select', attributeName: 'service_period', maxLength: 1 }], num: 1 },
{ groupName: 'buy_car_type', attributeList: [{ quantity: 1, attributeGroup: 'buy_car_type', sort: 1, required: 1, attributeDesc: '购车类型', attributeType: 'select', attributeName: 'buy_car_type', maxLength: 1 }], num: 1 },
{ groupName: 'special_appoint_id', attributeList: [{ quantity: 1, attributeGroup: 'special_appoint_id', sort: 1, required: 1, attributeDesc: '第一受益人', attributeType: 'input', attributeName: 'special_appoint_id', maxLength: 11 }], num: 1 },
{ groupName: 'additional_date', attributeList: [{ quantity: 1, attributeGroup: 'additional_date', sort: 1, required: 1, attributeDesc: '加装日期', attributeType: 'datePicker', attributeName: 'additional_date', maxLength: 1 }], num: 1 },
{ groupName: 'additional_price', attributeList: [{ quantity: 1, attributeGroup: 'additional_price', sort: 1, required: 1, attributeDesc: '加装件价格', attributeType: 'input', attributeName: 'additional_price', maxLength: 10 }], num: 1 },
{ groupName: 'actual_sales_price', attributeList: [{ quantity: 1, attributeGroup: 'actual_sales_price', sort: 1, required: 1, attributeDesc: '无忧保障服务费', attributeType: 'input', attributeName: 'actual_sales_price', maxLength: 10 }], num: 1 },
{ groupName: 'effective_date', attributeList: [{ quantity: 1, attributeGroup: 'effective_date', sort: 1, required: 1, attributeDesc: '生效日期', attributeType: 'datePicker', attributeName: 'effective_date', maxLength: 1 }], num: 1 },
{ groupName: 'additional_device_name', attributeList: [{ quantity: 1, attributeGroup: 'additional_device_name', sort: 1, required: 1, attributeDesc: '加装件名称', attributeType: 'input', attributeName: 'additional_device_name', maxLength: 14 }], num: 1 },
{ groupName: 'tireBrand', attributeList: [{ quantity: 1, attributeGroup: 'tireBrand', sort: 1, required: 1, attributeDesc: '轮胎品牌', attributeType: 'input', attributeName: 'tireBrand', maxLength: 10 }], num: 1 },
{ groupName: 'tireScale', attributeList: [{ quantity: 1, attributeGroup: 'tireScale', sort: 1, required: 1, attributeDesc: '规格型号', attributeType: 'input', attributeName: 'tireScale', maxLength: 10 }], num: 1 }
],
id: 11,
packageName: '优享版'
},
{
servicePackagePrices: [],
attachments: [],
serviceItemsList: [
{ serviceContent: '提供“加油、救援、餐饮、娱乐、出行、充值、游戏”等多种优惠于一体的服务,让车主一站式享受更多、更划算的增值服务。', serviceCode: 'SC0016', serviceName: '车主生活权益服务' },
{ serviceContent: '', serviceCode: 'SC0014', serviceName: '轮胎更换服务' },
{ serviceContent: '机动车在使用过程中,发生无明显碰撞痕迹的划痕,导致车身油漆的损失,经确认后,到店面获得补漆服务。', serviceCode: 'SC0019', serviceName: '车辆补漆服务' },
{ serviceContent: '非车主故意行为导致机动车钥匙或车牌丢失,经确认后,到店面获得车辆钥匙或车牌重置服务。', serviceCode: 'SC0017', serviceName: '钥匙及车牌重置服务' },
{ serviceContent: '', serviceCode: 'SC0015', serviceName: '碰撞事故代步车服务' },
{ serviceContent: '', serviceCode: 'SC0013', serviceName: '整车全损无忧权益' },
{ serviceContent: '机动车因玻璃破碎导致的太阳膜损坏,经确认后,到店面获得玻璃太阳膜更换服务。', serviceCode: 'SC0018', serviceName: '玻璃太阳膜更换服务' }
],
packageType: 1,
templateUrl: 'E:\\需求文档\\SCRM售前需求\\尊享版\\尊享版1126.pdf',
packageCode: 'PC0009',
groupAttributeList: [
{ groupName: 'service_period', attributeList: [{ quantity: 1, attributeGroup: 'service_period', sort: 1, required: 1, attributeDesc: '服务期限', attributeType: 'select', attributeName: 'service_period', maxLength: 1 }], num: 1 },
{ groupName: 'buy_car_type', attributeList: [{ quantity: 1, attributeGroup: 'buy_car_type', sort: 1, required: 1, attributeDesc: '购车类型', attributeType: 'select', attributeName: 'buy_car_type', maxLength: 1 }], num: 1 },
{ groupName: 'special_appoint_id', attributeList: [{ quantity: 1, attributeGroup: 'special_appoint_id', sort: 1, required: 1, attributeDesc: '第一受益人', attributeType: 'input', attributeName: 'special_appoint_id', maxLength: 11 }], num: 1 },
{ groupName: 'additional_date', attributeList: [{ quantity: 1, attributeGroup: 'additional_date', sort: 1, required: 1, attributeDesc: '加装日期', attributeType: 'datePicker', attributeName: 'additional_date', maxLength: 1 }], num: 1 },
{ groupName: 'additional_price', attributeList: [{ quantity: 1, attributeGroup: 'additional_price', sort: 1, required: 1, attributeDesc: '加装件价格', attributeType: 'input', attributeName: 'additional_price', maxLength: 10 }], num: 1 },
{ groupName: 'actual_sales_price', attributeList: [{ quantity: 1, attributeGroup: 'actual_sales_price', sort: 1, required: 1, attributeDesc: '无忧保障服务费', attributeType: 'input', attributeName: 'actual_sales_price', maxLength: 10 }], num: 1 },
{ groupName: 'effective_date', attributeList: [{ quantity: 1, attributeGroup: 'effective_date', sort: 1, required: 1, attributeDesc: '生效日期', attributeType: 'datePicker', attributeName: 'effective_date', maxLength: 1 }], num: 1 },
{ groupName: 'additional_device_name', attributeList: [{ quantity: 1, attributeGroup: 'additional_device_name', sort: 1, required: 1, attributeDesc: '加装件名称', attributeType: 'input', attributeName: 'additional_device_name', maxLength: 14 }], num: 1 },
{ groupName: 'tireBrand', attributeList: [{ quantity: 1, attributeGroup: 'tireBrand', sort: 1, required: 1, attributeDesc: '轮胎品牌', attributeType: 'input', attributeName: 'tireBrand', maxLength: 10 }], num: 1 },
{ groupName: 'tireScale', attributeList: [{ quantity: 1, attributeGroup: 'tireScale', sort: 1, required: 1, attributeDesc: '规格型号', attributeType: 'input', attributeName: 'tireScale', maxLength: 10 }], num: 1 }
],
id: 10,
packageName: '尊享版'
},
{
servicePackagePrices: [],
attachments: [],
serviceItemsList: [
{ serviceContent: '机动车因玻璃破碎导致的太阳膜损坏,经确认后,到店面获得玻璃太阳膜更换服务。', serviceCode: 'SC0018', serviceName: '玻璃太阳膜更换服务' },
{ serviceContent: '提供“加油、救援、餐饮、娱乐、出行、充值、游戏”等多种优惠于一体的服务,让车主一站式享受更多、更划算的增值服务。', serviceCode: 'SC0016', serviceName: '车主生活权益服务' },
{ serviceContent: '', serviceCode: 'SC0013', serviceName: '整车全损无忧权益' },
{ serviceContent: '非车主故意行为导致机动车钥匙或车牌丢失,经确认后,到店面获得车辆钥匙或车牌重置服务。', serviceCode: 'SC0017', serviceName: '钥匙及车牌重置服务' },
{ serviceContent: '', serviceCode: 'SC0014', serviceName: '轮胎更换服务' }
],
packageType: 1,
templateUrl: 'E:\\需求文档\\SCRM售前需求\\舒享版\\舒享版1126.pdf',
packageCode: 'PC0011',
groupAttributeList: [
{ groupName: 'service_period', attributeList: [{ quantity: 1, attributeGroup: 'service_period', sort: 1, required: 1, attributeDesc: '服务期限', attributeType: 'select', attributeName: 'service_period', maxLength: 1 }], num: 1 },
{ groupName: 'buy_car_type', attributeList: [{ quantity: 1, attributeGroup: 'buy_car_type', sort: 1, required: 1, attributeDesc: '购车类型', attributeType: 'select', attributeName: 'buy_car_type', maxLength: 1 }], num: 1 },
{ groupName: 'special_appoint_id', attributeList: [{ quantity: 1, attributeGroup: 'special_appoint_id', sort: 1, required: 1, attributeDesc: '第一受益人', attributeType: 'input', attributeName: 'special_appoint_id', maxLength: 11 }], num: 1 },
{ groupName: 'additional_date', attributeList: [{ quantity: 1, attributeGroup: 'additional_date', sort: 1, required: 1, attributeDesc: '加装日期', attributeType: 'datePicker', attributeName: 'additional_date', maxLength: 1 }], num: 1 },
{ groupName: 'additional_price', attributeList: [{ quantity: 1, attributeGroup: 'additional_price', sort: 1, required: 1, attributeDesc: '加装件价格', attributeType: 'input', attributeName: 'additional_price', maxLength: 10 }], num: 1 },
{ groupName: 'actual_sales_price', attributeList: [{ quantity: 1, attributeGroup: 'actual_sales_price', sort: 1, required: 1, attributeDesc: '无忧保障服务费', attributeType: 'input', attributeName: 'actual_sales_price', maxLength: 10 }], num: 1 },
{ groupName: 'effective_date', attributeList: [{ quantity: 1, attributeGroup: 'effective_date', sort: 1, required: 1, attributeDesc: '生效日期', attributeType: 'datePicker', attributeName: 'effective_date', maxLength: 1 }], num: 1 },
{ groupName: 'additional_device_name', attributeList: [{ quantity: 1, attributeGroup: 'additional_device_name', sort: 1, required: 1, attributeDesc: '加装件名称', attributeType: 'input', attributeName: 'additional_device_name', maxLength: 14 }], num: 1 },
{ groupName: 'tireBrand', attributeList: [{ quantity: 1, attributeGroup: 'tireBrand', sort: 1, required: 1, attributeDesc: '轮胎品牌', attributeType: 'input', attributeName: 'tireBrand', maxLength: 10 }], num: 1 },
{ groupName: 'tireScale', attributeList: [{ quantity: 1, attributeGroup: 'tireScale', sort: 1, required: 1, attributeDesc: '规格型号', attributeType: 'input', attributeName: 'tireScale', maxLength: 10 }], num: 1 }
],
id: 12,
packageName: '舒享版'
},
{
servicePackagePrices: [],
attachments: [],
serviceItemsList: [{ serviceContent: '', serviceCode: 'SC0012', serviceName: '盗抢全损无忧' }],
packageType: 2,
templateUrl: 'E:\\需求文档\\SCRM售前需求\\尊享版\\尊享版1126.pdf',
packageCode: 'PC0005',
groupAttributeList: [
{ groupName: 'service_period', attributeList: [{ quantity: 1, attributeGroup: 'service_period', sort: 1, required: 1, attributeDesc: '服务期限', attributeType: 'select', attributeName: 'service_period', maxLength: 1 }], num: 1 },
{ groupName: 'buy_car_type', attributeList: [{ quantity: 1, attributeGroup: 'buy_car_type', sort: 1, required: 1, attributeDesc: '购车类型', attributeType: 'select', attributeName: 'buy_car_type', maxLength: 1 }], num: 1 },
{ groupName: 'special_appoint_id', attributeList: [{ quantity: 1, attributeGroup: 'special_appoint_id', sort: 1, required: 1, attributeDesc: '第一受益人', attributeType: 'input', attributeName: 'special_appoint_id', maxLength: 11 }], num: 1 },
{ groupName: 'actual_sales_price', attributeList: [{ quantity: 1, attributeGroup: 'actual_sales_price', sort: 1, required: 1, attributeDesc: '无忧保障服务费', attributeType: 'input', attributeName: 'actual_sales_price', maxLength: 10 }], num: 1 },
{ groupName: 'effective_date', attributeList: [{ quantity: 1, attributeGroup: 'effective_date', sort: 1, required: 1, attributeDesc: '生效日期', attributeType: 'datePicker', attributeName: 'effective_date', maxLength: 1 }], num: 1 }
],
id: 5,
packageName: '盗抢全损无忧'
},
{
servicePackagePrices: [],
attachments: [],
description: '',
serviceItemsList: [{ serviceContent: '', serviceCode: 'SC0015', serviceName: '碰撞事故代步车服务' }],
packageType: 2,
templateUrl: 'E:\\需求文档\\SCRM售前需求\\尊享版\\尊享版1126.pdf',
packageCode: 'PC0008',
groupAttributeList: [
{ groupName: 'service_period', attributeList: [{ quantity: 1, attributeGroup: 'service_period', sort: 1, required: 1, attributeDesc: '服务期限', attributeType: 'select', attributeName: 'service_period', maxLength: 1 }], num: 1 },
{ groupName: 'actual_sales_price', attributeList: [{ quantity: 1, attributeGroup: 'actual_sales_price', sort: 1, required: 1, attributeDesc: '无忧保障服务费', attributeType: 'input', attributeName: 'actual_sales_price', maxLength: 10 }], num: 1 },
{ groupName: 'effective_date', attributeList: [{ quantity: 1, attributeGroup: 'effective_date', sort: 1, required: 1, attributeDesc: '生效日期', attributeType: 'datePicker', attributeName: 'effective_date', maxLength: 1 }], num: 1 }
],
id: 8,
packageName: '碰撞无忧权益'
},
{
servicePackagePrices: [],
attachments: [],
serviceItemsList: [{ serviceContent: '', serviceCode: 'SC0014', serviceName: '轮胎更换服务' }],
packageType: 2,
templateUrl: 'E:\\需求文档\\SCRM售前需求\\尊享版\\尊享版1126.pdf',
packageCode: 'PC0006',
groupAttributeList: [
{ groupName: 'service_period', attributeList: [{ quantity: 1, attributeGroup: 'service_period', sort: 1, required: 1, attributeDesc: '服务期限', attributeType: 'select', attributeName: 'service_period', maxLength: 1 }], num: 1 },
{ groupName: 'actual_sales_price', attributeList: [{ quantity: 1, attributeGroup: 'actual_sales_price', sort: 1, required: 1, attributeDesc: '无忧保障服务费', attributeType: 'input', attributeName: 'actual_sales_price', maxLength: 10 }], num: 1 },
{ groupName: 'effective_date', attributeList: [{ quantity: 1, attributeGroup: 'effective_date', sort: 1, required: 1, attributeDesc: '生效日期', attributeType: 'datePicker', attributeName: 'effective_date', maxLength: 1 }], num: 1 },
{ groupName: 'tireBrand', attributeList: [{ quantity: 1, attributeGroup: 'tireBrand', sort: 1, required: 1, attributeDesc: '轮胎品牌', attributeType: 'input', attributeName: 'tireBrand', maxLength: 10 }], num: 1 },
{ groupName: 'tireScale', attributeList: [{ quantity: 1, attributeGroup: 'tireScale', sort: 1, required: 1, attributeDesc: '规格型号', attributeType: 'input', attributeName: 'tireScale', maxLength: 10 }], num: 1 }
],
id: 6,
packageName: '轮胎保障服务权益'
},
{
servicePackagePrices: [],
attachments: [],
serviceItemsList: [{ serviceContent: '', serviceCode: 'SC0013', serviceName: '整车全损无忧权益' }],
packageType: 2,
templateUrl: 'E:\\需求文档\\SCRM售前需求\\尊享版\\尊享版1126.pdf',
packageCode: 'PC0007',
groupAttributeList: [
{ groupName: 'service_period', attributeList: [{ quantity: 1, attributeGroup: 'service_period', sort: 1, required: 1, attributeDesc: '服务期限', attributeType: 'select', attributeName: 'service_period', maxLength: 1 }], num: 1 },
{ groupName: 'buy_car_type', attributeList: [{ quantity: 1, attributeGroup: 'buy_car_type', sort: 1, required: 1, attributeDesc: '购车类型', attributeType: 'select', attributeName: 'buy_car_type', maxLength: 1 }], num: 1 },
{ groupName: 'special_appoint_id', attributeList: [{ quantity: 1, attributeGroup: 'special_appoint_id', sort: 1, required: 1, attributeDesc: '第一受益人', attributeType: 'input', attributeName: 'special_appoint_id', maxLength: 11 }], num: 1 },
{ groupName: 'additional_date', attributeList: [{ quantity: 1, attributeGroup: 'additional_date', sort: 1, required: 1, attributeDesc: '加装日期', attributeType: 'datePicker', attributeName: 'additional_date', maxLength: 1 }], num: 1 },
{ groupName: 'additional_price', attributeList: [{ quantity: 1, attributeGroup: 'additional_price', sort: 1, required: 1, attributeDesc: '加装件价格', attributeType: 'input', attributeName: 'additional_price', maxLength: 10 }], num: 1 },
{ groupName: 'actual_sales_price', attributeList: [{ quantity: 1, attributeGroup: 'actual_sales_price', sort: 1, required: 1, attributeDesc: '无忧保障服务费', attributeType: 'input', attributeName: 'actual_sales_price', maxLength: 10 }], num: 1 },
{ groupName: 'effective_date', attributeList: [{ quantity: 1, attributeGroup: 'effective_date', sort: 1, required: 1, attributeDesc: '生效日期', attributeType: 'datePicker', attributeName: 'effective_date', maxLength: 1 }], num: 1 },
{ groupName: 'additional_device_name', attributeList: [{ quantity: 1, attributeGroup: 'additional_device_name', sort: 1, required: 1, attributeDesc: '加装件名称', attributeType: 'input', attributeName: 'additional_device_name', maxLength: 14 }], num: 1 }
],
id: 7,
packageName: '整车全损无忧权益'
}
]
testArr.forEach(item => {
toTestProductData(arr) {
arr.forEach(item => {
if (item.packageName.includes('整车全损无忧')) {
item.idName = 'car'
} else if (item.packageName.includes('轮胎保障服务')) {
......@@ -837,11 +677,11 @@ export default {
} else if (item.packageName.includes('盗抢全损无忧')) {
item.idName = 'stolen'
} else if (item.packageName.includes('尊享版')) {
item.idName = 'vip1'
item.idName = 'vip'
} else if (item.packageName.includes('舒享版')) {
item.idName = 'vip2'
item.idName = 'vip'
} else if (item.packageName.includes('优享版')) {
item.idName = 'vip3'
item.idName = 'vip'
}
item.serviceItems=item.serviceItemsList.length ? item.serviceItemsList.map(k => k.serviceName).join(',') : ''
let newArr = []
......@@ -952,8 +792,8 @@ export default {
},
getPackageList() {
this.$apis.beforeSale.getPackageListApi({}).then(res => {
this.packageList = res
this.autoGenerate()
this.toTestProductData(res)
// this.autoGenerate()
})
},
// 改建议价,实际销售价
......
......@@ -250,7 +250,7 @@ export default {
{
label: '无忧卡卡号',
line:1,
prop: 'carNo',
prop: 'cardSeqNo',
width: '200px',
formatter: cellValue => {
return cellValue.carNo || '-'
......@@ -630,22 +630,22 @@ export default {
// 打印
handlePdf(row) {
if (!row.auditStatus) {
const h = this.$createElement
this.isTipVisible = true
this.editNotify = {
code: '-1',
message: '财务未审核,合同无法打印'
}
clearTimeout(this.timer)
this.timer = setTimeout(
() => {
this.isTipVisible = false
},
this.editNotify.code == '0' ? 1500 : 3000
)
return true
}
// if (!row.auditStatus) {
// const h = this.$createElement
// this.isTipVisible = true
// this.editNotify = {
// code: '-1',
// message: '财务未审核,合同无法打印'
// }
// clearTimeout(this.timer)
// this.timer = setTimeout(
// () => {
// this.isTipVisible = false
// },
// this.editNotify.code == '0' ? 1500 : 3000
// )
// return true
// }
this.handlePdfClose()
this.$apis.beforeSale.getPriteApi({ contractNo: row.contractNo }).then(res => {
this.pdfUrl = res
......
<!-- 店面服务设置 -->
<template>
<div class="edit-equity">
<div class="edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="140px" defaultWidth="320px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<template slot="vehicleBrandId">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width: 320px" clearable>
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
<template slot="vehicleSubBrandId">
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width: 320px" clearable>
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
</glsx-combi-form>
<template v-if="showPage == 1">
<div class="edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="140px" defaultWidth="320px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<template slot="vehicleBrandId">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width: 320px" clearable>
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
<template slot="vehicleSubBrandId">
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width: 320px" clearable>
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
</glsx-combi-form>
</div>
<div
class="fixed_bottom"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div>
</template>
<template v-if="showPage==2">
<div class="nodata_widget">
<div :style="[{ height: nodataHeight + 'px' }]" class="wrapper">
<img src="../../assets/nodata_icon.png" />
<span class="nodata_tip_1">您暂未开通售前权益服务</span>
<span class="nodata_tip_2">合作开通后,您方可在此页设置店面的服务热线和默认提单车辆品牌等。</span>
</div>
</div>
<div
class="fixed_bottom"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<!-- <div class="footer" :style="{ width: '100%' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
</div> -->
</template>
</div>
</template>
......@@ -79,7 +86,9 @@ export default {
baseData: {
carBrandOptions: [],
carChildOptions: []
}
},
showPage: 0,
nodataHeight:0
}
},
......@@ -88,6 +97,14 @@ export default {
},
created() {
let clientHeight = document.documentElement.clientHeight
this.nodataHeight = clientHeight *0.8
const openStatus = localStorage.getItem('preSetStatus')
if (openStatus == 2) {
this.showPage = 2
return
}
this.showPage = 1
this.getAllVehicleBrand()
this.getCarChildList()
},
......@@ -250,4 +267,29 @@ export default {
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.nodata_widget {
margin-top: 17px;
.wrapper {
width: 100%;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
.nodata_tip_1 {
font-size: 18px;
font-weight: 500;
color: #3a3a3a;
margin-top: 48px;
}
.nodata_tip_2 {
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
margin-top: 9px;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!