Commit 243fc6a0 by 张立顺

feat 功能

1 parent b8d1a111
......@@ -374,6 +374,7 @@ export default {
this.getCityList()
if (this.curRouteInfo.pageType != 6) {
this.batchListSearch.writeOffCode = this.curRouteInfo.writeOffCode
this.batchListSearch.id = this.curRouteInfo.id
this.getDetail()
}
},
......@@ -599,7 +600,7 @@ export default {
})
},
getDetail() {
const { writeOffCode } = this.batchListSearch
const { id } = this.batchListSearch
const loading = this.$loading({
lock: true,
text: '加载中',
......@@ -607,7 +608,7 @@ export default {
background: 'rgba(0, 0, 0, 0.5)',
customClass: 'loadingClass'
})
this.$apis.beforeSale.getClaimsDetail({ id: writeOffCode }).then(res => {
this.$apis.beforeSale.getClaimsDetail({ id }).then(res => {
console.log(res, 'getClaimsDetail')
if (res.code == '0') {
this.handleData(res)
......@@ -780,6 +781,7 @@ export default {
if (type == 1 && auditStatus === 0 && this.curRouteInfo.status == 7) {
errorTarget = 'errorFile'
}
console.log(auditStatus, 'auditStatus')
attachments1.push({ id, claimsId: claimsId || this.resData.id, secondClassifyName, attachmentFile, attachmentType, attachmentCode, classifyId, attachmentName, auditStatus, reasonForFailure, auditBy })
} else if (type == 1 && ele.isRequire == 1) {
if (ele.serviceItemCode == 'SC0006') {
......@@ -802,6 +804,7 @@ export default {
if (type == 1 && errorTarget) return { error: 'errorTip', tip: `请上传${errorTarget.firstClassifyName}中的${errorTarget.secondClassifyName}` }
const params = {
id: this.resData.id,
status: this.resData.status,
operation: type,
applyAmount: parseInt(this.totalPrice * 100),
...customObj,
......@@ -837,7 +840,7 @@ export default {
type: 'success'
})
this.$router.push({
path: '/beforeSale/index'
path: '/claims/index'
})
} else {
this.gotoValidView('writeOff')
......@@ -870,7 +873,7 @@ export default {
},
handleCancel() {
this.$router.push({
path: '/beforeSale/index'
path: '/claims/index'
})
}
}
......
......@@ -630,7 +630,8 @@ export default {
status: item.status
}
if (type != 6) {
urlParam.writeOffCode = item.writeOffCode || item.id
urlParam.writeOffCode = item.writeOffCode
urlParam.id = item.id
}
const params = encodeURIComponent(JSON.stringify(urlParam))
// if ((item.preStatus == 6 && item.status == 31) || item.status == 5 || item.status == 6 || item.status == 7 || item.status == 29 || item.status == 30 || item.status == 999) {
......@@ -649,7 +650,7 @@ export default {
// 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核
handleEdit(editNo, row) {
const title = this.jumpTitle(editNo)
if (row && row.source == 3) {
if (row && (row.source == 3 || row.source == 4)) {
const params = {
editNo,
isGH: true,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!