mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-13 20:06:44 +08:00
新增卡单出单支付调用接口
This commit is contained in:
@@ -169,3 +169,11 @@ export function deleteGroupCardByInsured(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 不让跨天支付 单新契约出单跨天支付流程优化
|
||||||
|
export function cardContIsPay(data) {
|
||||||
|
return request({
|
||||||
|
url: getUrl('/sale/card/contIsPay', 1),
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ Vue.use(Checkbox).use(CheckboxGroup)
|
|||||||
Vue.use(Field)
|
Vue.use(Field)
|
||||||
Vue.use(Button)
|
Vue.use(Button)
|
||||||
import { acceptInsurance, getBankList, underWrite, getOrderDetail } from '@/api/ebiz/sale/sale'
|
import { acceptInsurance, getBankList, underWrite, getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||||
import { saveOrUpdateAccount, getPayTemp, getShareParam } from '@/api/ebiz/cardList/cardList.js'
|
import { saveOrUpdateAccount, getPayTemp, getShareParam, cardContIsPay } from '@/api/ebiz/cardList/cardList.js'
|
||||||
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||||
import areaList from '@/assets/js/utils/area'
|
import areaList from '@/assets/js/utils/area'
|
||||||
import Loading from '@/components/ebiz/Loading'
|
import Loading from '@/components/ebiz/Loading'
|
||||||
@@ -311,8 +311,8 @@ export default {
|
|||||||
this.bankListName = orderDetail.orderAccountDTO.bankName
|
this.bankListName = orderDetail.orderAccountDTO.bankName
|
||||||
this.orderStatus = orderDetail.orderInfoDTO.orderStatus
|
this.orderStatus = orderDetail.orderInfoDTO.orderStatus
|
||||||
localStorage.orderNo = orderDetail.orderInfoDTO.orderNo
|
localStorage.orderNo = orderDetail.orderInfoDTO.orderNo
|
||||||
orderDetail.insuredDTOs.forEach(item=>{
|
orderDetail.insuredDTOs.forEach((item) => {
|
||||||
item.riskDTOLst.forEach(ii=>{
|
item.riskDTOLst.forEach((ii) => {
|
||||||
if (ii.isMainRisk == '0') {
|
if (ii.isMainRisk == '0') {
|
||||||
this.mainRiskCode = ii.mainRiskCode
|
this.mainRiskCode = ii.mainRiskCode
|
||||||
}
|
}
|
||||||
@@ -478,7 +478,7 @@ export default {
|
|||||||
let data = {
|
let data = {
|
||||||
operateType: 'bank_type'
|
operateType: 'bank_type'
|
||||||
}
|
}
|
||||||
getBankList(data).then(res => {
|
getBankList(data).then((res) => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
console.log('银行卡列表', res.content)
|
console.log('银行卡列表', res.content)
|
||||||
self.bankList = res.content
|
self.bankList = res.content
|
||||||
@@ -496,22 +496,22 @@ export default {
|
|||||||
},
|
},
|
||||||
getPayTemp() {
|
getPayTemp() {
|
||||||
getPayTemp({ orderNo: window.localStorage.getItem('orderNo') })
|
getPayTemp({ orderNo: window.localStorage.getItem('orderNo') })
|
||||||
.then(res => {
|
.then((res) => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.noEdit = res.content.flag != 'false'
|
this.noEdit = res.content.flag != 'false'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch((e) => {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取支付详情
|
// 获取支付详情
|
||||||
getOrderDetail() {
|
getOrderDetail() {
|
||||||
getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') }).then(res => {
|
getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') }).then((res) => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.insuredDTOs = res.orderDTO.insuredDTOs
|
this.insuredDTOs = res.orderDTO.insuredDTOs
|
||||||
res.orderDTO.insuredDTOs.forEach(item=>{
|
res.orderDTO.insuredDTOs.forEach((item) => {
|
||||||
item.riskDTOLst.forEach(ii=>{
|
item.riskDTOLst.forEach((ii) => {
|
||||||
if (ii.isMainRisk == '0') {
|
if (ii.isMainRisk == '0') {
|
||||||
this.mainRiskCode = ii.mainRiskCode
|
this.mainRiskCode = ii.mainRiskCode
|
||||||
}
|
}
|
||||||
@@ -615,6 +615,19 @@ export default {
|
|||||||
if (true !== valid) {
|
if (true !== valid) {
|
||||||
return this.$toast(this.$validator.errors.all()[0])
|
return this.$toast(this.$validator.errors.all()[0])
|
||||||
}
|
}
|
||||||
|
let data = {
|
||||||
|
orderNo: window.localStorage.getItem('orderNo')
|
||||||
|
}
|
||||||
|
this.$toast.loading({
|
||||||
|
duration: 0, // 持续展示 toast
|
||||||
|
forbidClick: true, // 禁用背景点击
|
||||||
|
loadingType: 'spinner',
|
||||||
|
message: '加载中……'
|
||||||
|
})
|
||||||
|
// 支付之前要先调用一下是否跨天,不让跨天支付 过了24点 保费不一样 CYN 2024.06.28
|
||||||
|
let res = await cardContIsPay(data)
|
||||||
|
this.$toast.clear()
|
||||||
|
if (res.result == '0') {
|
||||||
switch (this.orderStatus) {
|
switch (this.orderStatus) {
|
||||||
case '56':
|
case '56':
|
||||||
case '57':
|
case '57':
|
||||||
@@ -631,6 +644,10 @@ export default {
|
|||||||
return this.$toast('当前不可支付')
|
return this.$toast('当前不可支付')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
this.isLoading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
acceptInsurance() {
|
acceptInsurance() {
|
||||||
let data = {
|
let data = {
|
||||||
@@ -638,7 +655,7 @@ export default {
|
|||||||
cardOrder: 'cardOrder',
|
cardOrder: 'cardOrder',
|
||||||
payType: this.radio
|
payType: this.radio
|
||||||
}
|
}
|
||||||
acceptInsurance(data).then(res => {
|
acceptInsurance(data).then((res) => {
|
||||||
// this.$jump({
|
// this.$jump({
|
||||||
// flag: 'h5',
|
// flag: 'h5',
|
||||||
// extra: {
|
// extra: {
|
||||||
@@ -753,7 +770,7 @@ export default {
|
|||||||
title: '特别提醒',
|
title: '特别提醒',
|
||||||
messageAlign: 'left',
|
messageAlign: 'left',
|
||||||
confirmButtonText: '确认',
|
confirmButtonText: '确认',
|
||||||
message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`,
|
message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
@@ -764,8 +781,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.acceptInsurance()
|
this.acceptInsurance()
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {})
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
duration: 0, // 持续展示 toast
|
duration: 0, // 持续展示 toast
|
||||||
@@ -775,7 +791,6 @@ export default {
|
|||||||
})
|
})
|
||||||
this.acceptInsurance()
|
this.acceptInsurance()
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
this.isLoading = false
|
this.isLoading = false
|
||||||
@@ -786,7 +801,7 @@ export default {
|
|||||||
title: '特别提醒',
|
title: '特别提醒',
|
||||||
messageAlign: 'left',
|
messageAlign: 'left',
|
||||||
confirmButtonText: '确认',
|
confirmButtonText: '确认',
|
||||||
message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`,
|
message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
@@ -797,8 +812,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.acceptInsurance()
|
this.acceptInsurance()
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {})
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
duration: 0, // 持续展示 toast
|
duration: 0, // 持续展示 toast
|
||||||
@@ -808,7 +822,6 @@ export default {
|
|||||||
})
|
})
|
||||||
this.acceptInsurance()
|
this.acceptInsurance()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 选择微信支付校验身份证类型
|
// 选择微信支付校验身份证类型
|
||||||
|
|||||||
Reference in New Issue
Block a user