Commit d5060231 by zhouzy

样式及bug修复

1 parent 850bc544
......@@ -6710,9 +6710,9 @@
}
},
"glsx-components": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.5.tgz",
"integrity": "sha512-4Xi6IaTqEGczZV2Z5BN7rxQKX9R5ZV33sRFMOd6l+wxRbfCvwJsvzW92AEDeVOqZsf0r/hZHu+pB0L2vsqaRGQ==",
"version": "1.3.7",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.7.tgz",
"integrity": "sha512-kSzNVShRlR/qd0XOvB7QrZIRNMF7oZCGYxKtFyhcWgzr2ICWiA3CnTDjxPGslJX8F5oljwowYxL9U8ljzeeESQ==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.3.5",
"glsx-components": "^1.3.7",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
......@@ -107,7 +107,8 @@ const getCarTypeListApi = params => {
}
const getHotlineApi = params => {
params.method = `${defaultPath}merchant.hotline.get`
// params.method = `${defaultPath}merchant.hotline.get`
params.method = `scrm.api.equity.service.package.merchant.config.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
......@@ -348,6 +349,26 @@ const dateBycarNo = params => {
sign: true,
})
}
// 获取活码列表-
const activeCodeList = params => {
params.method = 'entmicro.api.code.getFreeChannelCode'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true,
})
}
// 更新活码
const updateActiveCode = params => {
params.method = 'scrm.api.equity.service.merchant.qrcode.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
})
}
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo }
\ No newline at end of file
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo,activeCodeList,updateActiveCode }
\ No newline at end of file
<template>
<div class="qr-code-components">
<div :style="[{bottom:bottom+'px'}]" @mouseenter="show = true" @mouseleave="show = false" class="right_btn flex_ccc">
<div :style="[{ bottom: bottom + 'px' }]" @mousedown="move" @mouseup="moveEnd" ref="callCenter" @mouseenter="show = true" @mouseleave="show = false" class="right_btn flex_ccc">
<img src="../../assets/contact_icon.png" />
<div class="contact_text">联系我们</div>
</div>
<div :style="[{bottom:bottom+'px'}]" v-if="show" class="left_code flex_ccc">
<img :src="codeUrl" />
<div style="height: 16px"></div>
<span class="h18_title">服务热线</span>
<span class="h18_title">{{phone}}</span>
<div v-if="show" class="left_code flex_ccc">
<img :src="codeUrl" />
<div style="height: 16px"></div>
<span class="h18_title">{{phoneTitle}}</span>
<span class="h18_title">{{ phone }}</span>
</div>
</div>
</div>
</template>
......@@ -21,13 +21,17 @@ export default {
type: Number,
default: 64
},
codeUrl:{
type:String,
default:'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg'
codeUrl: {
type: String,
default: 'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg'
},
phone:{
phone: {
type: String,
default: '189 0000 1234'
},
phoneTitle:{
type:String,
default:'189 0000 1234'
default:'服务热线'
}
},
data() {
......@@ -35,15 +39,57 @@ export default {
show: false
}
},
methods: {}
methods: {
// 拖动窗口,鼠标按下
move(event) {
// 给对应div添加拖拽属性
let callCenter = this.$refs.callCenter
callCenter.style.cursor = 'move'
var distanceX = event.clientX - callCenter.offsetLeft
var distanceY = event.clientY - callCenter.offsetTop
// 获取按下时对应的坐标
this.startX = event.pageX
this.startY = event.pageY
document.onmousemove = function (ev) {
var oevent = ev || event
// 加入判断,让浮窗在限定的页面内可拖动
if (ev.clientX < 40 || ev.clientX > document.body.clientWidth - 30) {
return
}
if (ev.clientY < 40 || ev.clientY > document.body.clientHeight - 30) {
return
}
callCenter.style.left = oevent.clientX - distanceX + 'px'
callCenter.style.top = oevent.clientY - distanceY + 'px'
}
document.onmouseup = function () {
document.onmousemove = null
document.onmouseup = null
callCenter.style.cursor = 'default'
}
},
// 鼠标抬起触发
moveEnd(event) {
// 获取鼠标抬起时的坐标
this.endX = event.pageX
this.endY = event.pageY
// 计算按下与抬起位置差值
var d = Math.sqrt((this.startX - this.endX) * (this.startX - this.endX) + (this.startY - this.endY) * (this.startY - this.endY))
if (d === 0 || d < 7) {
// console.log('执行了点击事件')
} else {
// console.log('执行了拖拽事件')
}
}
}
}
</script>
<style lang="scss" scoped>
.qr-code-components {
.left_code {
position: fixed;
right: 77px;
bottom: 64px;
position: absolute;
right: 57px;
bottom: 0px;
width: 144px;
height: 201px;
background: #ffffff;
......
......@@ -64,5 +64,11 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/beforeSale/serviceSet.vue`], resolve),
meta: {}
},
{
name: 'editEquity',
path: '/beforeSale/editEquity',
component: resolve => require([`@/views/beforeSale/editEquity.vue`], resolve),
meta: {}
},
])
export default staticRoutes
\ No newline at end of file
......@@ -198,19 +198,6 @@ export default {
download(e) {
console.log(e, '111111111111')
this.$apis.addWorryFree.downLoads({ id: e.id }).then(res => {
// if (res) {
// var a = document.createElement('a')
// a.setAttribute('href', res)
// a.setAttribute('target', '_blank')
// a.setAttribute('id', 'd2admin-link-temp')
// a.setAttribute('download', '批量下载' + '.xlsx') // 设置下载文件名称
// window.open(a)
// document.body.appendChild(a)
// a.click()
// document.body.removeChild(document.getElementById('d2admin-link-temp'))
// } else {
// console.log('导出失败')
// }
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
window.open(res)
......
......@@ -35,7 +35,7 @@
</el-row>
<el-row>
<el-form-item label="特约内容" prop="spaContent" style="margin-top: 24px">
<el-input type="textarea" v-model="modifyDialogForm.spaContent" maxlength="200" style="width: 320px; width: 320px; height: 80px" placeholder="请输入"></el-input>
<el-input type="textarea" v-model="modifyDialogForm.spaContent" maxlength="200" placeholder="请输入"></el-input>
</el-form-item>
</el-row>
</div>
......@@ -91,7 +91,9 @@ export default {
},
{
label: '特约内容',
prop: 'spaContent'
prop: 'spaContent',
line:2,
width:160
},
{
......@@ -288,4 +290,21 @@ export default {
border-color: #5850ff;
color: #5850ff;
}
/deep/ .el-textarea__inner {
display: block;
resize: vertical;
padding: 5px 15px;
line-height: 1.5;
box-sizing: border-box;
width: 100%;
font-size: inherit;
color: #606266;
background-color: #fff;
background-image: none;
border: 1px solid #dcdfe6;
border-radius: 4px;
transition: border-color .2s cubic-bezier(.645,.045,.355,1);
width: 320px;
height: 80px;
}
</style>
\ No newline at end of file
......@@ -63,7 +63,7 @@
</div>
<div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'">
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName=='compensation_name'&&compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
</template>
<template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc">
......@@ -71,7 +71,7 @@
</el-select>
</template>
<template v-if="attr.attributeType == 'datePicker'">
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName=='additional_date'?pickerOptions2: pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName == 'additional_date' ? pickerOptions2 : pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
</template>
</div>
</div>
......@@ -120,7 +120,7 @@
</div>
<div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'">
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName=='compensation_name'&&compensationNameDisable)" @input="getCurChangeInput($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
</template>
<template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc">
......@@ -128,7 +128,7 @@
</el-select>
</template>
<template v-if="attr.attributeType == 'datePicker'">
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName=='additional_date'?pickerOptions2: pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName == 'additional_date' ? pickerOptions2 : pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
</template>
</div>
</div>
......@@ -204,12 +204,13 @@
<div class="mar-10"></div>
<el-button v-if="routeInfo.addOrEdit != '5'" type="primary" size="small" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
<div class="mar-10"></div>
<el-button size="small" @click="handleCancel">取消</el-button>
<el-button v-if="routeInfo.addOrEdit != 5" size="small" @click="handleCancel">返回</el-button>
<el-button v-else size="small" type="primary" @click="handleCancel">返回</el-button>
</div>
</div>
<!-- 二维码 -->
<qrCode :bottom="320" phone="400 6123 886" :codeUrl="qrcodUrl"></qrCode>
<qrCode :bottom="320" phone="400 6123 886" phoneTitle="提单及服务咨询" :codeUrl="qrcodUrl"></qrCode>
</div>
</template>
......@@ -524,7 +525,8 @@ export default {
name: 'specialAppoint',
type: 'input',
inputType: 'textarea',
isDisabled:true,
isDisabled: true,
rows: 6
}
],
// 店面信息
......@@ -643,11 +645,11 @@ export default {
label: '3年'
}
],
servicePeriodList2:[
servicePeriodList2: [
{
value: '1',
label: '1年'
},
}
],
carBrandOptions: [],
carChildOptions: [],
......@@ -666,7 +668,7 @@ export default {
agreeList: []
},
allCarChildList: [],
qrcodUrl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/beforesale_equity_code.png',
qrcodUrl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/preSale_qrCode.png' + '?time=' + new Date(),
// 权益类型
equityRadio: 1,
// 自选权益产品属性传参数组
......@@ -681,10 +683,10 @@ export default {
checkCodeList: [],
rightDisable: false,
leftDisable: false,
pickerOptions:{},
pickerOptions2:{},
hotline:'',
compensationNameDisable:false
pickerOptions: {},
pickerOptions2: {},
hotline: '',
compensationNameDisable: false
}
},
......@@ -697,7 +699,7 @@ export default {
},
'editFormPro.additional_price'(newValue, oldValue) {
this.editFormPro.additional_price = limitPrice(newValue, oldValue, 6, 2)
},
}
// 'editForm.customerName'(newValue,oldValue){
// this.compensationNameDisable = newValue?true:false
// }
......@@ -731,17 +733,17 @@ export default {
this.getOptionsList('editFormDataUser', false)
this.getOptionsList('editFormDataOther', false)
this.disabled && this.setDisabled()
this.successDisable && this.setDisabled(['invoicePrice', 'billingDate', 'packageCode', 'actualSalesPrice', 'servicePeriod', 'effectiveDate','merchantName','merchantPhone','merchantAddress'])
this.successDisable && this.setDisabled(['invoicePrice', 'billingDate', 'packageCode', 'actualSalesPrice', 'servicePeriod', 'effectiveDate', 'merchantName', 'merchantPhone', 'merchantAddress'])
},
methods: {
// 查找服务热线
getHotline() {
if(this.routeInfo.addOrEdit==3){
if (this.routeInfo.addOrEdit == 3) {
return
}
this.$apis.beforeSale.getHotlineApi({}).then(res => {
this.hotline = res
this.hotline = res.serviceHotline
this.getStoreInfo()
})
},
......@@ -790,12 +792,12 @@ export default {
}
})
}
if(item.idName=='crash'){
const customAttr = {
attributeGroup:'planId',
attributeName:'planId'
}
this.commonPart(this.productModal[item.idName]['planId'], item, customAttr)
if (item.idName == 'crash') {
const customAttr = {
attributeGroup: 'planId',
attributeName: 'planId'
}
this.commonPart(this.productModal[item.idName]['planId'], item, customAttr)
}
} else {
this.checkCodeList = this.checkCodeList.filter(t => t != item.packageCode)
......@@ -822,11 +824,11 @@ export default {
}
})
}
const customAttr = {
attributeGroup:'planId',
attributeName:'planId'
}
this.commonPart(this.productModal['vip']['planId'], item, customAttr)
const customAttr = {
attributeGroup: 'planId',
attributeName: 'planId'
}
this.commonPart(this.productModal['vip']['planId'], item, customAttr)
}
},
// 获取店铺信息
......@@ -858,15 +860,15 @@ export default {
// 自选权益产品套餐处理参数--选择框
getCurChangeSelect(e, pack, attr) {
this.commonPart(e, pack, attr)
if(attr.attributeName=='buy_car_type'&&e==1){
if (attr.attributeName == 'buy_car_type' && e == 1) {
// 购车类型为全款车--带入客户姓名
const Newattr = {
attributeName:'compensation_name',
attributeGroup:'compensation_name'
attributeName: 'compensation_name',
attributeGroup: 'compensation_name'
}
this.compensationNameDisable = this.editForm.customerName?true: false
this.compensationNameDisable = this.editForm.customerName ? true : false
this.productModal[pack.idName]['compensation_name'] = this.editForm.customerName
this.commonPart(this.editForm.customerName,pack,Newattr)
this.commonPart(this.editForm.customerName, pack, Newattr)
return
}
this.compensationNameDisable = false
......@@ -990,13 +992,12 @@ export default {
concactArr.forEach(item => {
this.formatProduct = Object.assign(this.formatProduct, item)
})
console.log(this.formatProduct,'自选权益');
// console.log(this.formatProduct, '自选权益')
} else {
concactArr.forEach(item => {
this.autoFormatProduct = Object.assign(this.autoFormatProduct, item)
})
console.log(this.autoFormatProduct,'定制权益');
// console.log(this.autoFormatProduct, '定制权益')
}
},
// 处理传参价格问题
......@@ -1045,19 +1046,19 @@ export default {
let newArr = []
item.groupAttributeList.map(ele => {
ele.attributeList.map(e => {
if ((item.idName == 'stolen' || item.idName=='car')&&e.attributeDesc=="服务期限") {
if ((item.idName == 'stolen' || item.idName == 'car') && e.attributeDesc == '服务期限') {
e.optionList = this.baseData.servicePeriodList
this.productModal[item.idName][e.attributeName] = '1'
} else if (e.attributeDesc == '购车类型') {
e.optionList = this.baseData.buyCarTypeList
this.productModal[item.idName][e.attributeName] = '0'
}else if((item.idName == 'tire' || item.idName=='crash' || item.idName=="vip")&&e.attributeDesc=="服务期限"){
e.optionList = this.baseData.servicePeriodList2
this.productModal[item.idName][e.attributeName] = '1'
e.disabled = true
}else if(e.attributeDesc=="生效日期"){
} else if ((item.idName == 'tire' || item.idName == 'crash' || item.idName == 'vip') && e.attributeDesc == '服务期限') {
e.optionList = this.baseData.servicePeriodList2
this.productModal[item.idName][e.attributeName] = '1'
e.disabled = true
} else if (e.attributeDesc == '生效日期') {
let nextDay = new Date().getTime() + 24 * 60 * 60 * 1000
this.productModal[item.idName][e.attributeName] = utils.dateFormat(nextDay)
this.productModal[item.idName][e.attributeName] = utils.dateFormat(nextDay)
}
ele.tempobj = { ...e }
})
......@@ -1134,6 +1135,7 @@ export default {
// var idxPrice = this.editForm.attributeList.findIndex(i => i.attributeName == 'additional_price')
// this.editForm.attributeList[idxPrice].attributeValue = this.editForm.attributeList[idxPrice].attributeValue ? (this.editForm.attributeList[idxPrice].attributeValue / 100).toFixed(2) : ''
// }
this.editForm.vehicle.billingDate = this.editForm.vehicle.billingDate ? new Date(this.editForm.vehicle.billingDate) : ''
this.editForm.effectiveDate = this.editForm.effectiveDate ? new Date(this.editForm.effectiveDate) : ''
if ([2, 3, 4].includes(this.routeInfo.addOrEdit)) {
......@@ -1157,6 +1159,10 @@ export default {
this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1))
}
this.editForm.packageCode && this.packageAttr(true, productArrData, res)
const spaItem = this.baseData.agreeList.find(item => item.id == this.editForm.specialAppointId)
if(spaItem){
this.editForm.specialAppoint = spaItem.spaContent
}
})
},
getPackageList() {
......@@ -1188,26 +1194,26 @@ export default {
if (item.attributeName.includes('price')) {
item.attributeValue = item.attributeValue / 100
}
if(item.attributeName=="buy_car_type"&&item.attributeValue==1){
this.compensationNameDisable = true
}
this.productModal.vip[item.attributeName] = item.attributeValue
})
if (this.routeInfo.addOrEdit == 3) {
this.leftDisable = true
this.customProductList.map(item => {
if (item.packageCode) {
item.disabled = true
}else{
item.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period') {
ele.disabled = true
}
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date') {
ele.disabled = true
}
})
}
item.disabled = true
item.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period') {
ele.disabled = true
}
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date') {
ele.disabled = true
}
})
return item
})
}
......@@ -1217,29 +1223,34 @@ export default {
this.editForm.attributeList.forEach(item => {
if (item.attributeName.includes('price')) {
item.attributeValue = item.attributeValue / 100
}else if(item.attributeName=='planId'){
} else if (item.attributeName == 'planId') {
this.getCase(parseInt(item.attributeValue))
}
if(item.attributeName=="buy_car_type"&&item.attributeValue==1){
this.compensationNameDisable = true
}
this.productModal[targetItem.idName][item.attributeName] = item.attributeValue
})
if (this.routeInfo.addOrEdit == 3) {
this.rightDisable = true
this.productList.map(item => {
if (item.packageCode) {
item.disabled = true
} else {
item.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period') {
ele.disabled = true
}
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date') {
ele.disabled = true
}
})
}
item.disabled = true
item.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period') {
ele.disabled = true
}
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date') {
ele.disabled = true
}
if (ele.attributeName == 'buy_car_type'&&ele.attributeValue==1) {
ele.disabled = true
}
})
return item
})
}
......@@ -1527,14 +1538,14 @@ export default {
} else {
params.contractNo = ''
}
if(!params.attributes){
if (!params.attributes) {
params.attributes = []
}
params = Object.assign(params, vaidObj)
this.updateEquity(params)
},
updateEquity(params) {
if(!params.sn){
if (!params.sn) {
delete params.sn
}
this.$apis.beforeSale.updateEquityApi(params).then(res => {
......@@ -1714,17 +1725,6 @@ export default {
}
</script>
<style lang="scss" scoped>
.app {
background: #f4f5fa;
padding: 0px 20px 20px 40px;
position: absolute;
box-sizing: border-box;
width: 100%;
top: 0px;
left: 0px;
overflow-y: auto;
height: 100%;
}
.edit-equity {
margin-top: 17px;
}
......
......@@ -3,8 +3,8 @@
<div class="app">
<div class="before-sale">
<div class="flex m-b-10">
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button> -->
<GLButton :size="size" fn="新增权益" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增权益</GLButton>
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button>
<!-- <GLButton :size="size" fn="新增权益" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增权益</GLButton> -->
<!-- <div class="table-top-tips"><span class="el-icon-warning"></span>请注意:订单列表还有{{countNoData}}单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。</div> -->
</div>
<div class="container">
......
......@@ -265,10 +265,10 @@ export default {
console.log(arrs[i].templateFlag, 'collisionRadio1')
}
if (arrs[i].packageCode == 'PC0011') {
this.honorable = true
this.carefree = true
}
if (arrs[i].packageCode == 'PC0009') {
this.carefree = true
this.honorable = true
}
if (arrs[i].packageCode == 'PC0010') {
this.first = true
......
......@@ -35,6 +35,7 @@
<GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check">
<span slot="operate" slot-scope="scope">
<GLButton fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</GLButton>
<!-- <el-button fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</el-button> -->
</span>
<span slot="openFlag" slot-scope="scope">
<el-switch :value="scope.scope.openFlag == 1" active-color="#5850ff" inactive-color="#eee" @change="changStatus(scope.scope.openFlag, scope.scope.id)"></el-switch>
......
......@@ -222,15 +222,15 @@ export default {
},
{
value: 'PC0006',
label: '轮胎保障服务权益'
label: '轮胎无忧'
},
{
value: 'PC0007',
label: '整车全损无忧权益'
label: '整车全损无忧'
},
{
value: 'PC0008',
label: '碰撞无忧权益'
label: '碰撞无忧'
}
],
dialogYearOptions: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!