Commit b21f8a5f by 杨明

fixed

1 parent dcd3a56b
...@@ -259,7 +259,6 @@ const checkOrderApi = params => { ...@@ -259,7 +259,6 @@ const checkOrderApi = params => {
}) })
} }
// 核赔审核 // 核赔审核
const checkClaimsOrderApi = params => { const checkClaimsOrderApi = params => {
params.method = 'scrm.api.equity.service.claims.audit' params.method = 'scrm.api.equity.service.claims.audit'
...@@ -282,7 +281,6 @@ const cancelClaims = params => { ...@@ -282,7 +281,6 @@ const cancelClaims = params => {
}) })
} }
// 定损保存草稿 // 定损保存草稿
const saveCG = params => { const saveCG = params => {
params.method = 'scrm.api.equity.service.claims.merchant.lossDeter.draft.or.commit' params.method = 'scrm.api.equity.service.claims.merchant.lossDeter.draft.or.commit'
...@@ -348,4 +346,15 @@ const getMerchantApi = params => { ...@@ -348,4 +346,15 @@ const getMerchantApi = params => {
sign: true sign: true
}) })
} }
export default {getMerchantApi,getMidMerchantApi,getBigMerchantApi,saveSign,saveClaimsCG,saveCG,cancelClaims,checkClaimsOrderApi,checkOrderApi,getOrderOherInfo,uploadImgApi,getGHCountApi,getGHPhoneImageApi,getGHattachmentApi,getGHClaimsDetailApi,getGHhistoryListApi,checkGHClaimsListApi,exportGHClaimsListApi,getGHClaimFollowsListApi,addGHClaimFollowsListApi,getGHClaimsListApi,getclaimsList, getclaimsCount, resubmitOrder, commitClaimsOrder, getClaimsDetail, exportClaimsData, checkContractNo, getDetailByWOCode, getBankList, getCityList, getAccountInfo } //广汇续保定损审核接口
const renewalAudit = params => {
params.method = 'scrm.api.equity.service.claims.renewal.audit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default { renewalAudit, getMerchantApi, getMidMerchantApi, getBigMerchantApi, saveSign, saveClaimsCG, saveCG, cancelClaims, checkClaimsOrderApi, checkOrderApi, getOrderOherInfo, uploadImgApi, getGHCountApi, getGHPhoneImageApi, getGHattachmentApi, getGHClaimsDetailApi, getGHhistoryListApi, checkGHClaimsListApi, exportGHClaimsListApi, getGHClaimFollowsListApi, addGHClaimFollowsListApi, getGHClaimsListApi, getclaimsList, getclaimsCount, resubmitOrder, commitClaimsOrder, getClaimsDetail, exportClaimsData, checkContractNo, getDetailByWOCode, getBankList, getCityList, getAccountInfo }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-button type="primary" @click="confirmSubmit(1)">提交</el-button> <el-button type="primary" @click="confirmSubmit(1)">提交</el-button>
<el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button> <el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
</div> </div>
<div class="page-btm-btn" v-if="orderStatus == 6"> <div class="page-btm-btn" v-if="orderStatus == 15">
<el-button @click="toShowSP" type="primary">定损通过</el-button> <el-button @click="toShowSP" type="primary">定损通过</el-button>
<el-button @click="toShowSPNoPass" type="primary" plain>定损不通过</el-button> <el-button @click="toShowSPNoPass" type="primary" plain>定损不通过</el-button>
</div> </div>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="set-price"> <div class="set-price">
<li> <li>
<label for="">批准金额/元:</label> <label for="">批准金额/元:</label>
<el-input size="small" maxlength="10" placeholder="请输入定损批准金额"></el-input> <el-input size="small" maxlength="10" placeholder="请输入定损批准金额" v-model="approveAmounts"></el-input>
</li> </li>
</div> </div>
</div> </div>
...@@ -52,6 +52,7 @@ export default { ...@@ -52,6 +52,7 @@ export default {
permitDraft: false, permitDraft: false,
routeInfo: null, routeInfo: null,
isGH: false, isGH: false,
approveAmounts: 0,
editForm: { editForm: {
contractNo: '', contractNo: '',
reportDate: '', reportDate: '',
...@@ -141,15 +142,13 @@ export default { ...@@ -141,15 +142,13 @@ export default {
}, },
computed: { computed: {
totalPrice() { totalPrice() {
let total = this.serviceItemsList.reduce(function (prev, cur) { let total = this.serviceItemsList.reduce(function(prev, cur) {
return prev + +(cur.approveAmount * 100).toFixed(0) return prev + +(cur.approveAmount * 100).toFixed(0)
}, 0) }, 0)
return total / 100 return total / 100
} }
}, },
mounted() { mounted() {},
},
methods: { methods: {
changeObjectType(newVal) { changeObjectType(newVal) {
if (newVal === 1) { if (newVal === 1) {
...@@ -167,7 +166,7 @@ export default { ...@@ -167,7 +166,7 @@ export default {
}, },
//详情 //详情
getDetailById() { getDetailById() {
this.$apis.claims.getClaimsDetail({ id: this.routeInfo.orderId }).then(res => { this.$apis.claims.getClaimsDetail({ id: this.routeInfo.orderId, needDetail: true }).then(res => {
// 以下是report数据 // 以下是report数据
for (let key in this.editForm) { for (let key in this.editForm) {
this.editForm[key] = res[key] this.editForm[key] = res[key]
...@@ -363,6 +362,13 @@ export default { ...@@ -363,6 +362,13 @@ export default {
}, },
// 定损审核通过 // 定损审核通过
comfirmPass() { comfirmPass() {
console.log(this.accountForm, this.saveObj)
const sc = ['SC0002', 'SC0003', 'SC0005', 'SC0006', 'SC0007', 'SC0008', 'SC0011'],
sc_obg = {}
for (let i = 0; i < sc.length; i++) {
sc_obg[sc[i]] = this.approveAmounts
}
this.$apis.claims.renewalAudit({ ...this.editForm, operation: 4, id: this.routeInfo.orderId, ...this.accountForm, approveAmounts: JSON.stringify(sc_obg) }).then(res => {})
this.canclePass() this.canclePass()
}, },
canclePass() { canclePass() {
......
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
return '去处理' return '去处理'
}, },
condition: row => { condition: row => {
return [0, 6].includes(row.scope.status) return [15].includes(row.scope.status)
}, },
attrs: { attrs: {
type: 'text', type: 'text',
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
return '重新提交' return '重新提交'
}, },
condition: row => { condition: row => {
return [2].includes(row.scope.status) return [16].includes(row.scope.status)
}, },
attrs: { attrs: {
type: 'text', type: 'text',
...@@ -310,7 +310,7 @@ export default { ...@@ -310,7 +310,7 @@ export default {
// isGH: true, // isGH: true,
contractNo: editNo == 1 ? '' : row.contractNo, // 嘀加的用合同号 contractNo: editNo == 1 ? '' : row.contractNo, // 嘀加的用合同号
orderId: editNo == 1 ? '' : row.id, orderId: editNo == 1 ? '' : row.id,
status:row.status status: row.status
} }
if (this.showGh) { if (this.showGh) {
// 广汇的用核销码 // 广汇的用核销码
...@@ -318,7 +318,7 @@ export default { ...@@ -318,7 +318,7 @@ export default {
} }
const title = this.jumpTitle(editNo) const title = this.jumpTitle(editNo)
const temp = encodeURIComponent(JSON.stringify(urlParam)) const temp = encodeURIComponent(JSON.stringify(urlParam))
this.$router.push({ path: '/GH/Renew/detail/' + temp,query: { $title: title }}) this.$router.push({ path: '/GH/Renew/detail/' + temp, query: { $title: title } })
}, },
handleOkFn() { handleOkFn() {
this.getParams() this.getParams()
......
...@@ -716,7 +716,7 @@ export default { ...@@ -716,7 +716,7 @@ export default {
isGH: true, isGH: true,
contractNo: editNo == 4 ? row.writeOffCode : '', contractNo: editNo == 4 ? row.writeOffCode : '',
orderId: editNo == 4 ? row.id : '', orderId: editNo == 4 ? row.id : '',
status: editNo == 4 ? row.status : '', status: editNo == 4 ? row.status : ''
} }
const temp = encodeURIComponent(JSON.stringify(urlParam)) const temp = encodeURIComponent(JSON.stringify(urlParam))
this.$router.push({ path: '/claims/order/' + temp, query: { $title: title } }) this.$router.push({ path: '/claims/order/' + temp, query: { $title: title } })
...@@ -750,7 +750,7 @@ export default { ...@@ -750,7 +750,7 @@ export default {
params.commitTimeStart = dayjs(params.commitDate[0]).format('YYYY-MM-DD') + ' 00:00:00' params.commitTimeStart = dayjs(params.commitDate[0]).format('YYYY-MM-DD') + ' 00:00:00'
params.commitTimeEnd = dayjs(params.commitDate[1]).format('YYYY-MM-DD') + ' 23:59:59' params.commitTimeEnd = dayjs(params.commitDate[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
if(Array.isArray(params.shopDate) && params.shopDate.length > 0){ if (Array.isArray(params.shopDate) && params.shopDate.length > 0) {
params.merchantCommitStart = dayjs(params.shopDate[0]).format('YYYY-MM-DD') + ' 00:00:00' params.merchantCommitStart = dayjs(params.shopDate[0]).format('YYYY-MM-DD') + ' 00:00:00'
params.merchantCommitEnd = dayjs(params.shopDate[1]).format('YYYY-MM-DD') + ' 23:59:59' params.merchantCommitEnd = dayjs(params.shopDate[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!