Commit 725cddf8 by 杨北旺

提交理赔代码

1 parent b1763f9b
...@@ -25,8 +25,8 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -25,8 +25,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$defaultStartDate = '2021-07-01' Vue.prototype.$defaultStartDate = '2021-07-01'
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-ed690cff-685f-43db-9670-912cac0af9a6-rop' } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-358c21aa-b86b-4ff1-8348-a81fb8cc8a44-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-ed690cff-685f-43db-9670-912cac0af9a6-rop' } }) // Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-358c21aa-b86b-4ff1-8348-a81fb8cc8a44-rop' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
......
...@@ -262,7 +262,7 @@ export default { ...@@ -262,7 +262,7 @@ export default {
} }
}, },
{ {
type: 'GLButton', type: 'el-button',
name: row => { name: row => {
return '查看' return '查看'
}, },
...@@ -278,7 +278,7 @@ export default { ...@@ -278,7 +278,7 @@ export default {
} }
}, },
{ {
type: 'GLButton', type: 'el-button',
name: row => { name: row => {
return '重新提交' return '重新提交'
}, },
......
...@@ -108,11 +108,22 @@ export default { ...@@ -108,11 +108,22 @@ export default {
}, },
noPassForm: [ noPassForm: [
{ {
label: '原因:', label: '原因',
name: 'reason', name: 'reason',
type: 'input', type: 'select',
maxlength: 11, isClear: true,
isClear: true optionList: [
{
confId: 1,
confName: '拒赔'
},
{
confId: 2,
confName: '资料不清晰'
}
],
optionId: 'confId',
optionLabel: 'confName'
}, },
{ {
label: '具体描述:', label: '具体描述:',
...@@ -120,7 +131,8 @@ export default { ...@@ -120,7 +131,8 @@ export default {
type: 'input', type: 'input',
inputType: 'textarea', inputType: 'textarea',
rows: 3, rows: 3,
isClear: true isClear: true,
maxLenght: 50
} }
], ],
testServiceList: [], testServiceList: [],
...@@ -379,7 +391,7 @@ export default { ...@@ -379,7 +391,7 @@ export default {
return target return target
} }
}, },
hepeiPass() { hepeiPass(isNopass) {
let obj = this.handlerServices() let obj = this.handlerServices()
let exobj = this.handlerExplain() let exobj = this.handlerExplain()
let para = { let para = {
...@@ -393,11 +405,19 @@ export default { ...@@ -393,11 +405,19 @@ export default {
reasonForFailure: '', reasonForFailure: '',
writeOffCode: this.repotData.writeOffCode writeOffCode: this.repotData.writeOffCode
} }
if (isNopass) {
para.auditStatus = 0
para.reasonForFailureCode = this.noPassObj.reason
para.reasonForFailure = this.noPassObj.desc
}
this.$apis.claims.checkClaimsOrderApi(para).then(res => { this.$apis.claims.checkClaimsOrderApi(para).then(res => {
if (res) {
this.$message({ this.$message({
message: '审核成功', message: '审核成功',
type: 'success' type: 'success'
}) })
this.$router.push({ path: '/claims/ghIndex' })
}
}) })
}, },
comfirmPass() { comfirmPass() {
...@@ -421,10 +441,14 @@ export default { ...@@ -421,10 +441,14 @@ export default {
this.showNoPassDialog = true this.showNoPassDialog = true
}, },
comfirmNoPass() { comfirmNoPass() {
console.log(this.noPassObj) if (this.orderMsg.status == 12) {
this.hepeiPass(true)
return
}
let para = this.handleParams() let para = this.handleParams()
para.auditStatus = 0 para.auditStatus = 0
para.reasonForFailure = this.noPassObj.reason + this.noPassObj.desc para.reasonForFailureCode = this.noPassObj.reason
para.reasonForFailure = this.noPassObj.desc
this.$apis.claims.checkOrderApi(para).then(res => { this.$apis.claims.checkOrderApi(para).then(res => {
if (res) { if (res) {
this.$message({ this.$message({
...@@ -434,7 +458,6 @@ export default { ...@@ -434,7 +458,6 @@ export default {
this.$router.push({ path: '/claims/ghIndex' }) this.$router.push({ path: '/claims/ghIndex' })
} }
}) })
// this.cancleNoPass()
}, },
cancleNoPass() { cancleNoPass() {
this.showNoPassDialog = false this.showNoPassDialog = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!