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 => {
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 {
uploadImageApi,
newSaveWriteOff,
......@@ -663,5 +673,6 @@ export default {
getContractServiceListApi,
getTermationRecordApi,
saveTerminationInfoApi,
batchCheckItemsApi
batchCheckItemsApi,
checkClaimApi
}
......@@ -298,7 +298,8 @@ export default {
auditStatus: '',
dataPerfection: '',
successDate: [],
effectiveDate: []
effectiveDate: [],
orderType: ''
},
tableSearchForm: {},
// 合同打印
......@@ -310,6 +311,14 @@ export default {
uploadRule: {},
uploadForm: {},
uploadFormData: [],
orderTypeMap: {
2: "打折策略",
5: "组合付款",
3: "买赠策略",
4: "冲量活动",
1: "正常订单",
6: "内部结算",
},
// 搜索
searchSelectObj: {
nameOrNoOrVin: {
......@@ -452,6 +461,41 @@ export default {
optionLabel: 'merchantName',
optionsName: 'mdList',
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: [
......@@ -521,6 +565,15 @@ export default {
width: '160px'
},
{
label: '订单类型',
line: 1,
prop: 'orderType',
width: '130px',
formatter: cellValue => {
return cellValue.orderType ? this.orderTypeMap[cellValue.orderType] : '--'
}
},
{
label: '车系',
line: 1,
width: '160px',
......@@ -1302,7 +1355,18 @@ export default {
})
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 {
auditStatus: '',
dataPerfection: '',
successDate: [],
effectiveDate: []
effectiveDate: [],
orderType: ''
}
this.searchSelectObj = {
nameOrNoOrVin: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!