|
@@ -29,7 +29,7 @@ import {getFundPayAmt, getUnPaidFee} from '@/api/pay-mz-fee'
|
|
|
import empty from '@/assets/empty.png'
|
|
|
import {useRouter} from 'vue-router'
|
|
|
import {computed, onMounted, ref} from 'vue'
|
|
|
-import {getOpenid} from "@/api/medins-mobile-pay";
|
|
|
+import {lockOrder} from "@/api/medins-mobile-pay";
|
|
|
|
|
|
const router = useRouter()
|
|
|
const patientId = router.currentRoute.value.params.patientId
|
|
@@ -99,38 +99,22 @@ const payMethodColumns = [
|
|
|
|
|
|
function handleConfirmPayMethod({selectedValues}) {
|
|
|
const payMethod = selectedValues[0]
|
|
|
- if (payMethod === 'YB') {
|
|
|
- startMedInsMobilePay()
|
|
|
- } else {
|
|
|
- beforeToWxPay(currentHisItem.value)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-function askForMedinsAuth() {
|
|
|
- location.href = 'https://exp.wecity.qq.com/oauth/code?' +
|
|
|
- 'authType=2&' +
|
|
|
- 'isDepart=2&' +
|
|
|
- 'appid=wxbde6b16acad84204&' +
|
|
|
- 'cityCode=430100&' +
|
|
|
- 'channel=AAGt1YEW0gQit2g7flFIZ13K&' +
|
|
|
- 'orgChnlCrtfCodg=BqK1kMStlhVDgN2uHf4EsLK/F2LjZPYJ81nK2eYQqxuRcOtN/4mSdyZLhMkSo4hy&' +
|
|
|
- 'orgCodg=H43010500370&' +
|
|
|
- 'bizType=04107&' +
|
|
|
- 'orgAppId=FBEBNX3X60526RPYJQ7PZ4CRPNZO8NC9&'
|
|
|
-}
|
|
|
-
|
|
|
-function startMedInsMobilePay() {
|
|
|
const hisOrdNum = localStorage.getItem('hisOrdNum')
|
|
|
- getOpenid({
|
|
|
- hisOrdNum
|
|
|
- }).then(openid => {
|
|
|
- location.href = 'https://pss.ybj.hunan.gov.cn:30443' +
|
|
|
- '/pss-hunan-h5/mobilePayment/paymentRecordList?' +
|
|
|
- 'channelCode=d32IFCxMsT&openId=' + openid
|
|
|
- }).catch(e => {
|
|
|
+ lockOrder({hisOrdNum}).then(openid => {
|
|
|
+ if (payMethod === 'YB') {
|
|
|
+ startMedInsMobilePay(openid)
|
|
|
+ } else {
|
|
|
+ beforeToWxPay(currentHisItem.value)
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+function startMedInsMobilePay(openid) {
|
|
|
+ location.href = 'https://pss.ybj.hunan.gov.cn:30443' +
|
|
|
+ '/pss-hunan-h5/mobilePayment/paymentRecordList?' +
|
|
|
+ 'channelCode=d32IFCxMsT&openId=' + openid
|
|
|
+}
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
getUnPaidFee(patientId).then((res) => {
|
|
|
unpaidFees.value = res
|
|
@@ -143,10 +127,6 @@ onMounted(() => {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- // const queryParams = router.currentRoute.value.query
|
|
|
- // if (queryParams.retCode === '0') {
|
|
|
- // startMedInsMobilePay(queryParams.authCode)
|
|
|
- // }
|
|
|
})
|
|
|
|
|
|
</script>
|