Commit d5060231 by zhouzy

样式及bug修复

1 parent 850bc544
...@@ -6710,9 +6710,9 @@ ...@@ -6710,9 +6710,9 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.3.5", "version": "1.3.7",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.5.tgz", "resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.7.tgz",
"integrity": "sha512-4Xi6IaTqEGczZV2Z5BN7rxQKX9R5ZV33sRFMOd6l+wxRbfCvwJsvzW92AEDeVOqZsf0r/hZHu+pB0L2vsqaRGQ==", "integrity": "sha512-kSzNVShRlR/qd0XOvB7QrZIRNMF7oZCGYxKtFyhcWgzr2ICWiA3CnTDjxPGslJX8F5oljwowYxL9U8ljzeeESQ==",
"requires": { "requires": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,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.6",
"glsx-components": "^1.3.5", "glsx-components": "^1.3.7",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -107,7 +107,8 @@ const getCarTypeListApi = params => { ...@@ -107,7 +107,8 @@ const getCarTypeListApi = params => {
} }
const getHotlineApi = 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({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
...@@ -348,6 +349,26 @@ const dateBycarNo = params => { ...@@ -348,6 +349,26 @@ const dateBycarNo = params => {
sign: true, 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 \ 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 \ No newline at end of file
<template> <template>
<div class="qr-code-components"> <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" /> <img src="../../assets/contact_icon.png" />
<div class="contact_text">联系我们</div> <div class="contact_text">联系我们</div>
</div> <div v-if="show" class="left_code flex_ccc">
<div :style="[{bottom:bottom+'px'}]" v-if="show" class="left_code flex_ccc">
<img :src="codeUrl" /> <img :src="codeUrl" />
<div style="height: 16px"></div> <div style="height: 16px"></div>
<span class="h18_title">服务热线</span> <span class="h18_title">{{phoneTitle}}</span>
<span class="h18_title">{{phone}}</span> <span class="h18_title">{{ phone }}</span>
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -21,13 +21,17 @@ export default { ...@@ -21,13 +21,17 @@ export default {
type: Number, type: Number,
default: 64 default: 64
}, },
codeUrl:{ codeUrl: {
type:String, type: String,
default:'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg' default: 'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg'
},
phone: {
type: String,
default: '189 0000 1234'
}, },
phone:{ phoneTitle:{
type:String, type:String,
default:'189 0000 1234' default:'服务热线'
} }
}, },
data() { data() {
...@@ -35,15 +39,57 @@ export default { ...@@ -35,15 +39,57 @@ export default {
show: false 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> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.qr-code-components { .qr-code-components {
.left_code { .left_code {
position: fixed; position: absolute;
right: 77px; right: 57px;
bottom: 64px; bottom: 0px;
width: 144px; width: 144px;
height: 201px; height: 201px;
background: #ffffff; background: #ffffff;
......
...@@ -64,5 +64,11 @@ const staticRoutes = Object.freeze([{ ...@@ -64,5 +64,11 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/beforeSale/serviceSet.vue`], resolve), component: resolve => require([`@/views/beforeSale/serviceSet.vue`], resolve),
meta: {} meta: {}
}, },
{
name: 'editEquity',
path: '/beforeSale/editEquity',
component: resolve => require([`@/views/beforeSale/editEquity.vue`], resolve),
meta: {}
},
]) ])
export default staticRoutes export default staticRoutes
\ No newline at end of file \ No newline at end of file
...@@ -198,19 +198,6 @@ export default { ...@@ -198,19 +198,6 @@ export default {
download(e) { download(e) {
console.log(e, '111111111111') console.log(e, '111111111111')
this.$apis.addWorryFree.downLoads({ id: e.id }).then(res => { 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() let tempaa = utils.getExplorer()
if (tempaa == 'QQ') { if (tempaa == 'QQ') {
window.open(res) window.open(res)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-form-item label="特约内容" prop="spaContent" style="margin-top: 24px"> <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-form-item>
</el-row> </el-row>
</div> </div>
...@@ -91,7 +91,9 @@ export default { ...@@ -91,7 +91,9 @@ export default {
}, },
{ {
label: '特约内容', label: '特约内容',
prop: 'spaContent' prop: 'spaContent',
line:2,
width:160
}, },
{ {
...@@ -288,4 +290,21 @@ export default { ...@@ -288,4 +290,21 @@ export default {
border-color: #5850ff; border-color: #5850ff;
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> </style>
\ No newline at end of file \ No newline at end of file
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</div> </div>
<div class="arrt_pannel"> <div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'"> <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>
<template v-if="attr.attributeType == 'select'"> <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"> <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 @@ ...@@ -71,7 +71,7 @@
</el-select> </el-select>
</template> </template>
<template v-if="attr.attributeType == 'datePicker'"> <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> </template>
</div> </div>
</div> </div>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</div> </div>
<div class="arrt_pannel"> <div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'"> <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>
<template v-if="attr.attributeType == 'select'"> <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"> <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 @@ ...@@ -128,7 +128,7 @@
</el-select> </el-select>
</template> </template>
<template v-if="attr.attributeType == 'datePicker'"> <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> </template>
</div> </div>
</div> </div>
...@@ -204,12 +204,13 @@ ...@@ -204,12 +204,13 @@
<div class="mar-10"></div> <div class="mar-10"></div>
<el-button v-if="routeInfo.addOrEdit != '5'" type="primary" size="small" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button> <el-button v-if="routeInfo.addOrEdit != '5'" type="primary" size="small" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
<div class="mar-10"></div> <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>
</div> </div>
<!-- 二维码 --> <!-- 二维码 -->
<qrCode :bottom="320" phone="400 6123 886" :codeUrl="qrcodUrl"></qrCode> <qrCode :bottom="320" phone="400 6123 886" phoneTitle="提单及服务咨询" :codeUrl="qrcodUrl"></qrCode>
</div> </div>
</template> </template>
...@@ -524,7 +525,8 @@ export default { ...@@ -524,7 +525,8 @@ export default {
name: 'specialAppoint', name: 'specialAppoint',
type: 'input', type: 'input',
inputType: 'textarea', inputType: 'textarea',
isDisabled:true, isDisabled: true,
rows: 6
} }
], ],
// 店面信息 // 店面信息
...@@ -643,11 +645,11 @@ export default { ...@@ -643,11 +645,11 @@ export default {
label: '3年' label: '3年'
} }
], ],
servicePeriodList2:[ servicePeriodList2: [
{ {
value: '1', value: '1',
label: '1年' label: '1年'
}, }
], ],
carBrandOptions: [], carBrandOptions: [],
carChildOptions: [], carChildOptions: [],
...@@ -666,7 +668,7 @@ export default { ...@@ -666,7 +668,7 @@ export default {
agreeList: [] agreeList: []
}, },
allCarChildList: [], 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, equityRadio: 1,
// 自选权益产品属性传参数组 // 自选权益产品属性传参数组
...@@ -681,10 +683,10 @@ export default { ...@@ -681,10 +683,10 @@ export default {
checkCodeList: [], checkCodeList: [],
rightDisable: false, rightDisable: false,
leftDisable: false, leftDisable: false,
pickerOptions:{}, pickerOptions: {},
pickerOptions2:{}, pickerOptions2: {},
hotline:'', hotline: '',
compensationNameDisable:false compensationNameDisable: false
} }
}, },
...@@ -697,7 +699,7 @@ export default { ...@@ -697,7 +699,7 @@ export default {
}, },
'editFormPro.additional_price'(newValue, oldValue) { 'editFormPro.additional_price'(newValue, oldValue) {
this.editFormPro.additional_price = limitPrice(newValue, oldValue, 6, 2) this.editFormPro.additional_price = limitPrice(newValue, oldValue, 6, 2)
}, }
// 'editForm.customerName'(newValue,oldValue){ // 'editForm.customerName'(newValue,oldValue){
// this.compensationNameDisable = newValue?true:false // this.compensationNameDisable = newValue?true:false
// } // }
...@@ -731,17 +733,17 @@ export default { ...@@ -731,17 +733,17 @@ export default {
this.getOptionsList('editFormDataUser', false) this.getOptionsList('editFormDataUser', false)
this.getOptionsList('editFormDataOther', false) this.getOptionsList('editFormDataOther', false)
this.disabled && this.setDisabled() 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: { methods: {
// 查找服务热线 // 查找服务热线
getHotline() { getHotline() {
if(this.routeInfo.addOrEdit==3){ if (this.routeInfo.addOrEdit == 3) {
return return
} }
this.$apis.beforeSale.getHotlineApi({}).then(res => { this.$apis.beforeSale.getHotlineApi({}).then(res => {
this.hotline = res this.hotline = res.serviceHotline
this.getStoreInfo() this.getStoreInfo()
}) })
}, },
...@@ -790,10 +792,10 @@ export default { ...@@ -790,10 +792,10 @@ export default {
} }
}) })
} }
if(item.idName=='crash'){ if (item.idName == 'crash') {
const customAttr = { const customAttr = {
attributeGroup:'planId', attributeGroup: 'planId',
attributeName:'planId' attributeName: 'planId'
} }
this.commonPart(this.productModal[item.idName]['planId'], item, customAttr) this.commonPart(this.productModal[item.idName]['planId'], item, customAttr)
} }
...@@ -823,8 +825,8 @@ export default { ...@@ -823,8 +825,8 @@ export default {
}) })
} }
const customAttr = { const customAttr = {
attributeGroup:'planId', attributeGroup: 'planId',
attributeName:'planId' attributeName: 'planId'
} }
this.commonPart(this.productModal['vip']['planId'], item, customAttr) this.commonPart(this.productModal['vip']['planId'], item, customAttr)
} }
...@@ -858,15 +860,15 @@ export default { ...@@ -858,15 +860,15 @@ export default {
// 自选权益产品套餐处理参数--选择框 // 自选权益产品套餐处理参数--选择框
getCurChangeSelect(e, pack, attr) { getCurChangeSelect(e, pack, attr) {
this.commonPart(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 = { const Newattr = {
attributeName:'compensation_name', attributeName: 'compensation_name',
attributeGroup:'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.productModal[pack.idName]['compensation_name'] = this.editForm.customerName
this.commonPart(this.editForm.customerName,pack,Newattr) this.commonPart(this.editForm.customerName, pack, Newattr)
return return
} }
this.compensationNameDisable = false this.compensationNameDisable = false
...@@ -990,13 +992,12 @@ export default { ...@@ -990,13 +992,12 @@ export default {
concactArr.forEach(item => { concactArr.forEach(item => {
this.formatProduct = Object.assign(this.formatProduct, item) this.formatProduct = Object.assign(this.formatProduct, item)
}) })
console.log(this.formatProduct,'自选权益'); // console.log(this.formatProduct, '自选权益')
} else { } else {
concactArr.forEach(item => { concactArr.forEach(item => {
this.autoFormatProduct = Object.assign(this.autoFormatProduct, item) this.autoFormatProduct = Object.assign(this.autoFormatProduct, item)
}) })
console.log(this.autoFormatProduct,'定制权益'); // console.log(this.autoFormatProduct, '定制权益')
} }
}, },
// 处理传参价格问题 // 处理传参价格问题
...@@ -1045,17 +1046,17 @@ export default { ...@@ -1045,17 +1046,17 @@ export default {
let newArr = [] let newArr = []
item.groupAttributeList.map(ele => { item.groupAttributeList.map(ele => {
ele.attributeList.map(e => { 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 e.optionList = this.baseData.servicePeriodList
this.productModal[item.idName][e.attributeName] = '1' this.productModal[item.idName][e.attributeName] = '1'
} else if (e.attributeDesc == '购车类型') { } else if (e.attributeDesc == '购车类型') {
e.optionList = this.baseData.buyCarTypeList e.optionList = this.baseData.buyCarTypeList
this.productModal[item.idName][e.attributeName] = '0' this.productModal[item.idName][e.attributeName] = '0'
}else if((item.idName == 'tire' || item.idName=='crash' || item.idName=="vip")&&e.attributeDesc=="服务期限"){ } else if ((item.idName == 'tire' || item.idName == 'crash' || item.idName == 'vip') && e.attributeDesc == '服务期限') {
e.optionList = this.baseData.servicePeriodList2 e.optionList = this.baseData.servicePeriodList2
this.productModal[item.idName][e.attributeName] = '1' this.productModal[item.idName][e.attributeName] = '1'
e.disabled = true e.disabled = true
}else if(e.attributeDesc=="生效日期"){ } else if (e.attributeDesc == '生效日期') {
let nextDay = new Date().getTime() + 24 * 60 * 60 * 1000 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)
} }
...@@ -1134,6 +1135,7 @@ export default { ...@@ -1134,6 +1135,7 @@ export default {
// var idxPrice = this.editForm.attributeList.findIndex(i => i.attributeName == 'additional_price') // 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.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.vehicle.billingDate = this.editForm.vehicle.billingDate ? new Date(this.editForm.vehicle.billingDate) : ''
this.editForm.effectiveDate = this.editForm.effectiveDate ? new Date(this.editForm.effectiveDate) : '' this.editForm.effectiveDate = this.editForm.effectiveDate ? new Date(this.editForm.effectiveDate) : ''
if ([2, 3, 4].includes(this.routeInfo.addOrEdit)) { if ([2, 3, 4].includes(this.routeInfo.addOrEdit)) {
...@@ -1157,6 +1159,10 @@ export default { ...@@ -1157,6 +1159,10 @@ export default {
this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1)) this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1))
} }
this.editForm.packageCode && this.packageAttr(true, productArrData, res) 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() { getPackageList() {
...@@ -1188,14 +1194,15 @@ export default { ...@@ -1188,14 +1194,15 @@ export default {
if (item.attributeName.includes('price')) { if (item.attributeName.includes('price')) {
item.attributeValue = item.attributeValue / 100 item.attributeValue = item.attributeValue / 100
} }
if(item.attributeName=="buy_car_type"&&item.attributeValue==1){
this.compensationNameDisable = true
}
this.productModal.vip[item.attributeName] = item.attributeValue this.productModal.vip[item.attributeName] = item.attributeValue
}) })
if (this.routeInfo.addOrEdit == 3) { if (this.routeInfo.addOrEdit == 3) {
this.leftDisable = true this.leftDisable = true
this.customProductList.map(item => { this.customProductList.map(item => {
if (item.packageCode) {
item.disabled = true item.disabled = true
}else{
item.groupAttributeList.map(ele => { item.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period') { if (ele.attributeName == 'service_period') {
ele.disabled = true ele.disabled = true
...@@ -1207,7 +1214,6 @@ export default { ...@@ -1207,7 +1214,6 @@ export default {
ele.disabled = true ele.disabled = true
} }
}) })
}
return item return item
}) })
} }
...@@ -1217,17 +1223,19 @@ export default { ...@@ -1217,17 +1223,19 @@ export default {
this.editForm.attributeList.forEach(item => { this.editForm.attributeList.forEach(item => {
if (item.attributeName.includes('price')) { if (item.attributeName.includes('price')) {
item.attributeValue = item.attributeValue / 100 item.attributeValue = item.attributeValue / 100
}else if(item.attributeName=='planId'){ } else if (item.attributeName == 'planId') {
this.getCase(parseInt(item.attributeValue)) 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 this.productModal[targetItem.idName][item.attributeName] = item.attributeValue
}) })
if (this.routeInfo.addOrEdit == 3) { if (this.routeInfo.addOrEdit == 3) {
this.rightDisable = true this.rightDisable = true
this.productList.map(item => { this.productList.map(item => {
if (item.packageCode) {
item.disabled = true item.disabled = true
} else {
item.groupAttributeList.map(ele => { item.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period') { if (ele.attributeName == 'service_period') {
ele.disabled = true ele.disabled = true
...@@ -1238,8 +1246,11 @@ export default { ...@@ -1238,8 +1246,11 @@ export default {
if (ele.attributeName == 'effective_date') { if (ele.attributeName == 'effective_date') {
ele.disabled = true ele.disabled = true
} }
}) if (ele.attributeName == 'buy_car_type'&&ele.attributeValue==1) {
ele.disabled = true
} }
})
return item return item
}) })
} }
...@@ -1527,14 +1538,14 @@ export default { ...@@ -1527,14 +1538,14 @@ export default {
} else { } else {
params.contractNo = '' params.contractNo = ''
} }
if(!params.attributes){ if (!params.attributes) {
params.attributes = [] params.attributes = []
} }
params = Object.assign(params, vaidObj) params = Object.assign(params, vaidObj)
this.updateEquity(params) this.updateEquity(params)
}, },
updateEquity(params) { updateEquity(params) {
if(!params.sn){ if (!params.sn) {
delete params.sn delete params.sn
} }
this.$apis.beforeSale.updateEquityApi(params).then(res => { this.$apis.beforeSale.updateEquityApi(params).then(res => {
...@@ -1714,17 +1725,6 @@ export default { ...@@ -1714,17 +1725,6 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <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 { .edit-equity {
margin-top: 17px; margin-top: 17px;
} }
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<div class="app"> <div class="app">
<div class="before-sale"> <div class="before-sale">
<div class="flex m-b-10"> <div class="flex m-b-10">
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button> --> <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> <!-- <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 class="table-top-tips"><span class="el-icon-warning"></span>请注意:订单列表还有{{countNoData}}单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。</div> -->
</div> </div>
<div class="container"> <div class="container">
......
...@@ -265,10 +265,10 @@ export default { ...@@ -265,10 +265,10 @@ export default {
console.log(arrs[i].templateFlag, 'collisionRadio1') console.log(arrs[i].templateFlag, 'collisionRadio1')
} }
if (arrs[i].packageCode == 'PC0011') { if (arrs[i].packageCode == 'PC0011') {
this.honorable = true this.carefree = true
} }
if (arrs[i].packageCode == 'PC0009') { if (arrs[i].packageCode == 'PC0009') {
this.carefree = true this.honorable = true
} }
if (arrs[i].packageCode == 'PC0010') { if (arrs[i].packageCode == 'PC0010') {
this.first = true this.first = true
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check"> <GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check">
<span slot="operate" slot-scope="scope"> <span slot="operate" slot-scope="scope">
<GLButton fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</GLButton> <GLButton fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</GLButton>
<!-- <el-button fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</el-button> -->
</span> </span>
<span slot="openFlag" slot-scope="scope"> <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> <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 { ...@@ -222,15 +222,15 @@ export default {
}, },
{ {
value: 'PC0006', value: 'PC0006',
label: '轮胎保障服务权益' label: '轮胎无忧'
}, },
{ {
value: 'PC0007', value: 'PC0007',
label: '整车全损无忧权益' label: '整车全损无忧'
}, },
{ {
value: 'PC0008', value: 'PC0008',
label: '碰撞无忧权益' label: '碰撞无忧'
} }
], ],
dialogYearOptions: [ dialogYearOptions: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!