Commit 13adf5fb by 前端

Merge branch 'SAAS+V5.8.1' into 'master'

上线合并

See merge request !95
2 parents 29170fd6 6714e368
...@@ -608,6 +608,16 @@ const batchCheckItemsApi = params => { ...@@ -608,6 +608,16 @@ const batchCheckItemsApi = params => {
sign: true sign: true
}) })
} }
// 校验权益单是否可退单
const checkClaimApi = params => {
params.method = 'scrm.api.equity.service.channel.order.check.charge.back'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
uploadImageApi, uploadImageApi,
newSaveWriteOff, newSaveWriteOff,
...@@ -663,5 +673,6 @@ export default { ...@@ -663,5 +673,6 @@ export default {
getContractServiceListApi, getContractServiceListApi,
getTermationRecordApi, getTermationRecordApi,
saveTerminationInfoApi, saveTerminationInfoApi,
batchCheckItemsApi batchCheckItemsApi,
checkClaimApi
} }
...@@ -298,7 +298,8 @@ export default { ...@@ -298,7 +298,8 @@ export default {
auditStatus: '', auditStatus: '',
dataPerfection: '', dataPerfection: '',
successDate: [], successDate: [],
effectiveDate: [] effectiveDate: [],
orderType: ''
}, },
tableSearchForm: {}, tableSearchForm: {},
// 合同打印 // 合同打印
...@@ -310,6 +311,14 @@ export default { ...@@ -310,6 +311,14 @@ export default {
uploadRule: {}, uploadRule: {},
uploadForm: {}, uploadForm: {},
uploadFormData: [], uploadFormData: [],
orderTypeMap: {
2: "打折策略",
5: "组合付款",
3: "买赠策略",
4: "冲量活动",
1: "正常订单",
6: "内部结算",
},
// 搜索 // 搜索
searchSelectObj: { searchSelectObj: {
nameOrNoOrVin: { nameOrNoOrVin: {
...@@ -452,6 +461,41 @@ export default { ...@@ -452,6 +461,41 @@ export default {
optionLabel: 'merchantName', optionLabel: 'merchantName',
optionsName: 'mdList', optionsName: 'mdList',
isHide: true isHide: true
},
{
label: '订单类型',
name: 'orderType',
type: 'select',
optionList: [{
confId: "",
confLabel: "全部",
},
{
confId: "2",
confLabel: "打折策略",
},
{
confId: "5",
confLabel: "组合付款",
},
{
confId: "3",
confLabel: "买赠策略",
},
{
confId: "4",
confLabel: "冲量活动",
},
{
confId: "1",
confLabel: "正常订单",
},
{
confId: "6",
confLabel: "内部结算",
}],
optionId: "confId",
optionLabel: "confLabel",
} }
], ],
searchFormData2: [ searchFormData2: [
...@@ -521,6 +565,15 @@ export default { ...@@ -521,6 +565,15 @@ export default {
width: '160px' width: '160px'
}, },
{ {
label: '订单类型',
line: 1,
prop: 'orderType',
width: '130px',
formatter: cellValue => {
return cellValue.orderType ? this.orderTypeMap[cellValue.orderType] : '--'
}
},
{
label: '车系', label: '车系',
line: 1, line: 1,
width: '160px', width: '160px',
...@@ -1302,7 +1355,18 @@ export default { ...@@ -1302,7 +1355,18 @@ export default {
}) })
return true return true
} }
this.secondConfirm('退单', '是否确认退单?', 'beforeSale', 'backOrderApi', { contractNo: row.contractNo, merchantId: row.merchantId }) // 添加理赔过权益单拦截退单
this.$apis.beforeSale.checkClaimApi({ vin: row.vin, source: 2 }).then(res => {
if (!res.allowChargeBack) {
this.$confirm(`${res.message}`, '提示', {
confirmButtonText: '确定',
showCancelButton: false,
type: 'warning'
})
} else {
this.secondConfirm('退单', '是否确认退单?', 'beforeSale', 'backOrderApi', { contractNo: row.contractNo, merchantId: row.merchantId })
}
})
}, },
// 导出 // 导出
...@@ -1338,7 +1402,8 @@ export default { ...@@ -1338,7 +1402,8 @@ export default {
auditStatus: '', auditStatus: '',
dataPerfection: '', dataPerfection: '',
successDate: [], successDate: [],
effectiveDate: [] effectiveDate: [],
orderType: ''
} }
this.searchSelectObj = { this.searchSelectObj = {
nameOrNoOrVin: { nameOrNoOrVin: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!