Commit 243fc6a0 by 张立顺

feat 功能

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