Commit eb595cec by zhangquan

提交核销码开发

1 parent c863d181
import { http } from '@/main'
const defaultPath = 'scrm.api.equity.service.'
const url = 'rop-scrm-equity/router'
const getcodeList = params => {
params.method = `${defaultPath}claims.code.list`
return http({
url,
method: 'POST',
data: params
})
}
const uploadCodeFile = params => {
params.method = `${defaultPath}claims.code.batchGenerateCodeByExcel`
return http({
url,
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
const exportInvalidClaimsCodeApi = params => {
params.method =`${defaultPath}claims.code.exportInvalidClaimsCode`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const createCode = params => {
params.method =`${defaultPath}claims.code.batchGenerateCodeByHand`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
getcodeList,
uploadCodeFile,
exportInvalidClaimsCodeApi,
createCode
}
\ No newline at end of file
......@@ -106,6 +106,12 @@ const staticRoutes = Object.freeze([
path: '/claims/ghOrder/:id',
component: resolve => require([`@/views/claims/ghOrder.vue`], resolve),
meta: {}
},
{
name: 'addCode',
path: '/addCode/index',
component: resolve => require([`@/views/addCode/index.vue`], resolve),
meta: {}
}
])
export default staticRoutes
......@@ -1122,29 +1122,51 @@ export default {
// 获取产品的数据
toGetProductData(arr) {
arr.forEach(item => {
if (item.packageName.includes('整车全损')) {
item.idName = 'car'
} else if (item.packageName.includes('轮胎')) {
item.idName = 'tire'
} else if (item.packageName.includes('碰撞')) {
item.idName = 'crash'
this.productModal[item.idName]['planId'] = item.planId
this.productModal['vip']['planId'] = item.planId
this.getCase(item.planId)
} else if (item.packageName.includes('盗抢')) {
item.idName = 'stolen'
} else if (item.packageName.includes('尊享版')) {
item.idName = 'vip'
} else if (item.packageName.includes('舒享版')) {
item.idName = 'vip'
} else if (item.packageName.includes('优享版')) {
item.idName = 'vip'
} else if (item.packageType == 1) {
// if (item.packageName.includes('整车全损')) {
// item.idName = 'car'
// } else if (item.packageName.includes('轮胎')) {
// item.idName = 'tire'
// } else if (item.packageName.includes('碰撞')) {
// item.idName = 'crash'
// this.productModal[item.idName]['planId'] = item.planId
// this.productModal['vip']['planId'] = item.planId
// this.getCase(item.planId)
// } else if (item.packageName.includes('盗抢')) {
// item.idName = 'stolen'
// } else if (item.packageName.includes('尊享版')) {
// item.idName = 'vip'
// } else if (item.packageName.includes('舒享版')) {
// item.idName = 'vip'
// } else if (item.packageName.includes('优享版')) {
// item.idName = 'vip'
// } else if (item.packageType == 1) {
// item.idName = 'vip'
// } else if (item.packageName.includes('玻璃')) {
// this.vailGlassName = item.packageName // 备用
// this.vailGlassCode = item.packageCode
// item.idName = 'glass'
// }
if (item.packageType == 1) {
//定制权益
item.idName = 'vip'
} else if (item.packageName.includes('玻璃')) {
this.vailGlassName = item.packageName // 备用
this.vailGlassCode = item.packageCode
item.idName = 'glass'
} else {
// 自选权益
if (item.packageName.includes('整车全损')) {
item.idName = 'car'
} else if (item.packageName.includes('轮胎')) {
item.idName = 'tire'
} else if (item.packageName.includes('碰撞')) {
item.idName = 'crash'
this.productModal[item.idName]['planId'] = item.planId
this.productModal['vip']['planId'] = item.planId
this.getCase(item.planId)
} else if (item.packageName.includes('盗抢')) {
item.idName = 'stolen'
} else if (item.packageName.includes('玻璃')) {
this.vailGlassName = item.packageName // 备用
this.vailGlassCode = item.packageCode
item.idName = 'glass'
}
}
item.disabled = false
item.serviceItems = item.serviceItemsList.length ? item.serviceItemsList.map(k => k.serviceName).join(',') : ''
......
......@@ -224,6 +224,14 @@ export default {
{
label: '车架号',
name: 'vin'
},
{
label: '设备号',
name: 'sn'
},
{
label: '卡号',
name: 'cardSeqNo'
}
],
handleSelectChange: value => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!