Commit ee451778 by 杨北旺

提交延保和核赔

1 parent c73bf37a
...@@ -12,9 +12,9 @@ let instance = null ...@@ -12,9 +12,9 @@ let instance = null
Vue.use(GLTable).use(GLCombiForm).use(GLTableButton).use(GLDialog) Vue.use(GLTable).use(GLCombiForm).use(GLTableButton).use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
let { response, request, request_brand, sign, secret } = await fetchConfig(common) let { response, request, request_brand, sign, secret } = await fetchConfig(common)
request.baseURL = 'https://scrm.dev.glsx.com.cn' // request.baseURL = 'https://scrm.dev.glsx.com.cn'
request_brand.baseURL = 'https://scrm.dev.glsx.com.cn' // request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
globalState.session.token = 'scrm-base-863badf1-ab6d-4c0a-af86-50b8a7c19398-rop' // globalState.session.token = 'scrm-base-6358b874-c112-4753-ac00-ec0cce769751-rop'
// request.baseURL = 'http://192.168.1.53:7226' // request.baseURL = 'http://192.168.1.53:7226'
// request_brand.baseURL = 'http://192.168.1.53:7226' // request_brand.baseURL = 'http://192.168.1.53:7226'
Vue.prototype.$history = history Vue.prototype.$history = history
......
...@@ -709,12 +709,12 @@ export default { ...@@ -709,12 +709,12 @@ export default {
], ],
operationalOptions: [ operationalOptions: [
{ {
value: 1, label: '非营运',
label: '非营运' value: '1',
}, },
{ {
value: 0, label: '营运',
label: '营运' value: '0',
} }
] ]
} }
......
...@@ -8,23 +8,23 @@ ...@@ -8,23 +8,23 @@
<div class="wrap"> <div class="wrap">
<div class="cell"> <div class="cell">
<label class="cell-label">预警原因:</label> <label class="cell-label">预警原因:</label>
<div class="cell-value">{{ item.reason }}</div> <div class="cell-value">{{ matchResultDesc[item.matchResult]}}</div>
</div> </div>
<div class="cell"> <div class="cell">
<label class="cell-label">具体描述:</label> <label class="cell-label">具体描述:</label>
<div class="cell-value">{{ item.descption }}</div> <div class="cell-value">{{ item.matchResultDesc }}</div>
</div> </div>
<div class="cell"> <div class="cell">
<label class="cell-label">核实情况说明:</label> <label class="cell-label">核实情况说明:</label>
<el-input class="input-value" v-model="item.explain" type="textarea" placeholder="请输入核实后的情况说明" show-word-limit maxlength="100"></el-input> <el-input @input="inputExplain" class="input-value" v-model="item.verifyResultDesc" type="textarea" placeholder="请输入核实后的情况说明" show-word-limit maxlength="100"></el-input>
</div> </div>
<div class="cell"> <div class="cell">
<label class="cell-label">核实资料补充:</label> <label class="cell-label">核实资料补充:</label>
<div class="inner"> <div class="inner">
<div class="image_group"> <div class="image_group">
<template v-if="item.imgs.length"> <template v-if="item.accountVerifyImagesList.length">
<div v-for="(imgItem, i) in item.imgs" :key="i" class="imagBox"> <div v-for="(imgItem, i) in item.accountVerifyImagesList" :key="i" class="imagBox">
<img class="imgItem" :src="imgItem" alt="" /> <img class="imgItem" :src="imgItem.verifyImage" alt="" />
<div class="img_mask"> <div class="img_mask">
<i @click="handlePictureCardPreview(imgItem)" class="el-icon-zoom-in"></i> <i @click="handlePictureCardPreview(imgItem)" class="el-icon-zoom-in"></i>
<i @click="toDeleteImg(index, i)" class="el-icon-delete"></i> <i @click="toDeleteImg(index, i)" class="el-icon-delete"></i>
...@@ -57,15 +57,11 @@ export default { ...@@ -57,15 +57,11 @@ export default {
data() { data() {
return { return {
upload_img, upload_img,
wraningList: [ dialogVisible:false,
{ matchResultDesc:{
reason: '支付账号异常', 1:'支付账号异常',
descption: '此个人收款账号已累计赔付≥3次', 2:'金额过大'
imgs: [], }
explain: ''
}
],
dialogVisible:false
} }
}, },
props: { props: {
...@@ -74,8 +70,12 @@ export default { ...@@ -74,8 +70,12 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
inputExplain(){
this.$emit('getWarningData',this.list)
},
toDeleteImg(index, i) { toDeleteImg(index, i) {
this.wraningList[index].imgs.splice(i, 1) this.list[index].accountVerifyImagesList.splice(i, 1)
this.$emit('getWarningData',this.list)
}, },
handlePictureCardPreview(url) { handlePictureCardPreview(url) {
this.dialogImageUrl = url this.dialogImageUrl = url
...@@ -143,7 +143,8 @@ export default { ...@@ -143,7 +143,8 @@ export default {
.then(res => { .then(res => {
if (res.code == 0) { if (res.code == 0) {
const url = res.data[0] const url = res.data[0]
this.wraningList[index].imgs.push(url) this.list[index].accountVerifyImagesList.push({verifyImage:url})
this.$emit('getWarningData',this.list)
} }
}) })
} }
......
...@@ -318,6 +318,7 @@ export default { ...@@ -318,6 +318,7 @@ export default {
}, },
{ {
label: '操作', label: '操作',
width:150,
prop: '', prop: '',
fixed: 'right', fixed: 'right',
addHtml: 'table-btns' addHtml: 'table-btns'
......
<!-- 权益订单 --> <!-- 权益订单 -->
<template> <template>
<div> <div v-if="pageShow">
<div class="fail_status_widget"> <div v-if="detailOrderStatus == 25" class="fail_status_widget">
<i class="el-icon-warning"></i> <i class="el-icon-warning"></i>
<span>核赔不通过:订单支付金额异常</span> <span>核赔不通过:{{ noPassMap[reasonForFailureCode] }},{{ reasonForFailure }}</span>
</div> </div>
<report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report> <report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report>
<repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair> <repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material> <material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
<wraning v-if="accountMatchResultList.length" :list="accountMatchResultList"></wraning> <wraning @getWarningData="getWarningData" v-if="accountMatchResultList.length && detailOrderStatus != 22 && detailOrderStatus != 2 && detailOrderStatus != 25" :list="accountMatchResultList"></wraning>
<div class="page-btm-btn" v-if="pageType != 2"> <div class="page-btm-btn">
<el-button type="primary" @click="confirmSubmit(1)">提交</el-button> <template v-if="(detailOrderStatus < 19 || detailOrderStatus == 22 || detailOrderStatus == 25) && pageType != 2">
<el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button> <el-button type="primary" @click="confirmSubmit(1)">提交</el-button>
<el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
</template>
<template v-if="detailOrderStatus == 19">
<el-button @click="toCheckOrder(20)" :size="size" type="primary">提交</el-button>
</template>
<template v-if="detailOrderStatus == 21">
<el-button @click="toCheckOrderByYY(22)" :size="size" plain>审核不通过</el-button>
<el-button @click="toCheckOrderByYY(23)" :size="size" type="primary">审核通过</el-button>
</template>
<template v-if="detailOrderStatus == 23">
<el-button @click="toCheckOrderByYY(25)" :size="size" plain>审核不通过</el-button>
<el-button @click="toCheckOrderByYY(24)" :size="size" type="primary">审核通过</el-button>
</template>
</div> </div>
<el-dialog title="风险预警" width="720px" :visible.sync="dialogVisible"> <el-dialog title="风险预警" width="720px" :visible.sync="dialogVisible">
<div class="warning_body"> <div v-if="accountMatchResultList.length" class="warning_body">
<div class="header"> <div class="header">
<i class="el-icon-warning"></i> <i class="el-icon-warning"></i>
<span class="title">风险预警</span> <span class="title">风险预警</span>
<span class="cont">请核实情况,并在系统上提交说明或上传资料。</span> <span class="cont">请核实情况,并在系统上提交说明或上传资料。</span>
</div> </div>
<div class="main"> <div class="main">
<template v-for="(item, index) in accountMatchResultList"> <div class="element">
<div class="element" :key="index"> <div class="e_title">风险预警:{{ matchResultDesc[accountMatchResultList[0].matchResult] }}</div>
<div class="e_title">风险预警{{ index + 1 }}:支付账号异常</div> <div class="e_desc">具体描述:{{ accountMatchResultList[0].matchResultDesc }}</div>
<div class="e_desc">具体描述:{{ item.matchResultDesc }}</div> </div>
</div>
</template>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -34,6 +45,9 @@ ...@@ -34,6 +45,9 @@
<el-button :size="size" type="primary" @click="handleWarning">确 定</el-button> <el-button :size="size" type="primary" @click="handleWarning">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<GLDialog class="gl-form-page gl-form-min" title="审核不通过" mode="mid" :visible.sync="showNoPassDialog" @onOk="comfirmNoPass" @onCancel="cancleNoPass">
<glsx-combi-form ref="noPassRef" :isInline="false" labelWidth="154px" defaultWidth="284px" :formObj="noPassObj" :formData="noPassForm"></glsx-combi-form>
</GLDialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -42,13 +56,15 @@ import repair from './components/repair.vue' ...@@ -42,13 +56,15 @@ import repair from './components/repair.vue'
import material from './components/material.vue' import material from './components/material.vue'
import util from '@/util/util' import util from '@/util/util'
import wraning from './components/wraning/index.vue' import wraning from './components/wraning/index.vue'
import glsxCombiForm from '@/components/glsx-combi-form'
export default { export default {
name: 'order', name: 'order',
components: { components: {
report, report,
repair, repair,
material, material,
wraning wraning,
glsxCombiForm
}, },
data() { data() {
return { return {
...@@ -91,7 +107,54 @@ export default { ...@@ -91,7 +107,54 @@ export default {
}, },
serviceItemsList: [], serviceItemsList: [],
dialogVisible: false, dialogVisible: false,
accountMatchResultList: [] accountMatchResultList: [],
detailOrderStatus: 0,
matchResultDesc: {
1: '支付账号异常',
2: '金额过大'
},
// 弹窗
showNoPassDialog: false,
showPassedDialog: false,
noPassObj: {
reason: '',
desc: ''
},
noPassForm: [
{
label: '原因',
name: 'reason',
type: 'select',
isClear: true,
optionList: [
{
confId: 1,
confName: '拒赔'
},
{
confId: 2,
confName: '资料不清晰'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '具体描述:',
name: 'desc',
type: 'input',
inputType: 'textarea',
rows: 3,
isClear: true,
maxlength: 200
}
],
pageShow: false,
noPassMap: {
1: '拒赔',
2: '资料不清晰'
},
reasonForFailureCode: 1
} }
}, },
created() { created() {
...@@ -105,6 +168,8 @@ export default { ...@@ -105,6 +168,8 @@ export default {
// } // }
if (this.routeInfo.orderId) { if (this.routeInfo.orderId) {
this.getDetailById() this.getDetailById()
} else {
this.pageShow = true
} }
}, },
computed: { computed: {
...@@ -115,10 +180,150 @@ export default { ...@@ -115,10 +180,150 @@ export default {
return total / 100 return total / 100
} }
}, },
mounted() { mounted() {},
console.log('更新')
},
methods: { methods: {
// 校验上传资料是否填完
verifyWarningImage() {
if (!this.queryList) {
this.queryList = this._temp_queryList
}
if (!this.queryList.length) {
this.$message.error(`请填写风险预警信息补充`)
return false
}
let flag = false,
imgFlag = false,
curImgIndex,
curIndex = 0
this.queryList.forEach((el, index) => {
if (!el.verifyResultDesc) {
flag = true
curIndex = index
}
if (!el.accountVerifyImagesList || !el.accountVerifyImagesList.length) {
imgFlag = true
curImgIndex = index
}
if (el.accountVerifyImagesList.length) {
el.accountVerifyImagesList.forEach((k, i) => {
if (!k.verifyImage) {
imgFlag = true
curImgIndex = index
}
})
}
})
if (flag) {
this.$message.error(`请填写风险预警${curIndex + 1}的核实情况说明`)
return false
}
if (imgFlag) {
this.$message.error(`请上传风险预警${curImgIndex + 1}的核实资料补充`)
return false
}
return true
},
// 处理审核时需要的核赔参数
handlerClaimsQueryForCheck() {
const params = { ...this.editForm, ...this.accountForm }
if (params.accountType !== 1) {
params.accountType = 0
}
params.reimbursementDate = params.reimbursementDate ? util.dateFormat(params.reimbursementDate, 'YYYY-MM-DD HH:mm:ss') : ''
params.reportDate = params.reportDate ? util.dateFormat(params.reportDate, 'YYYY-MM-DD HH:mm:ss') : ''
if (params.reimbursementAddress.length == 3) {
params.reimbursementProvinceCode = params.reimbursementAddress[0]
params.reimbursementCityCode = params.reimbursementAddress[1]
params.reimbursementCountiesCode = params.reimbursementAddress[2]
}
params.approveAmounts = ''
let tagetObj = {}
this.serviceItemsList.forEach(item => {
tagetObj[item.serviceItemCode] = item.approveAmount
})
params.approveAmounts = JSON.stringify(tagetObj)
delete params.reimbursementAddress
params.fileList = []
for (let key in this.materialForm) {
this.materialForm[key].forEach((item, index) => {
const obj = {}
obj.fileType = item.fileType
obj.fileUrl = item.url
obj.fileCode = key == 'idCard' || key == 'idCardBack' ? 1 : key == 'billInfo' ? 31 : 4
obj.fileName = item.name
params.fileList.push(obj)
})
}
return params
},
cancleNoPass() {
this.showNoPassDialog = false
},
// 点击不通过
comfirmNoPass() {
let _para = {
reasonForFailureCode: this.noPassObj.reason,
reasonForFailure: this.noPassObj.desc
}
this.toCheckOrder(this.noPass_operation, _para)
},
// 审核
toCheckOrderByYY(operation) {
if (operation == 22 || operation == 25) {
this.showNoPassDialog = true
this.noPass_operation = operation
} else {
this.toCheckOrder(operation)
}
},
toCheckOrder(operation, addQuery = {}) {
let claimsQuery = {}
if (operation != 20) {
claimsQuery = this.handlerClaimsQueryForCheck()
}
if (operation == 20) {
const flag = this.verifyWarningImage()
if (!flag) return
}
let _para = {
operation,
id: this.orderDetailInfo.id,
accountMatchResultList: this.queryList,
equitySource: 2,
...addQuery,
...claimsQuery
}
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.claims.commitClaimsOrder(_para).then(res => {
loading.close()
if (res) {
this.$message({
message: '操作成功',
type: 'success'
})
this.handleCancel()
}
})
},
getWarningData(e) {
if (e) {
let arr = []
e.forEach(el => {
let obj = {
id: el.id,
verifyResultDesc: el.verifyResultDesc,
accountVerifyImagesList: el.accountVerifyImagesList
}
arr.push(obj)
})
this.queryList = arr
}
},
changeObjectType(newVal) { changeObjectType(newVal) {
if (newVal === 1) { if (newVal === 1) {
this.saveObj.objectType = newVal this.saveObj.objectType = newVal
...@@ -171,8 +376,30 @@ export default { ...@@ -171,8 +376,30 @@ export default {
}) })
if (res.status == 19) { if (res.status == 19) {
this.dangerWran() this.dangerWran()
this.pageType = 2
} }
this.detailOrderStatus = res.status
let _tempArr = []
res.accountMatchResultList.forEach(el => {
let arr = []
el.accountVerifyImagesList.forEach(ele => {
let obj = { verifyImage: ele.verifyImage }
arr.push(obj)
})
el.accountVerifyImagesList = arr
let _temp = {
id: el.id,
accountVerifyImagesList: arr,
verifyResultDesc: el.verifyResultDesc
}
_tempArr.push(_temp)
})
this._temp_queryList = _tempArr
this.accountMatchResultList = res.accountMatchResultList this.accountMatchResultList = res.accountMatchResultList
this.orderDetailInfo = res
this.reasonForFailure = res.reasonForFailure
this.reasonForFailureCode = res.reasonForFailureCode
this.pageShow = true
}) })
}, },
// 新增的时候,输入合同号,带出信息 // 新增的时候,输入合同号,带出信息
...@@ -312,6 +539,7 @@ export default { ...@@ -312,6 +539,7 @@ export default {
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)' background: 'rgba(0, 0, 0, 0.3)'
}) })
params.equitySource = 2
this.$apis.claims.commitClaimsOrder(params).then(res => { this.$apis.claims.commitClaimsOrder(params).then(res => {
loading.close() loading.close()
if (res) { if (res) {
...@@ -394,11 +622,7 @@ export default { ...@@ -394,11 +622,7 @@ export default {
} }
} }
.main { .main {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.element { .element {
width: 335px;
background: #f9f9f9; background: #f9f9f9;
box-sizing: border-box; box-sizing: border-box;
padding: 12px 19px 12px 16px; padding: 12px 19px 12px 16px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!