Commit 1a4989e8 authored by 任鸿志's avatar 任鸿志

feat(yibaomanager): 新增单边退款功能并更新相关接口

- 新增单边退款页面和相关 API 接口
- 更新环境变量中的 API 地址
- 在权限列表和路由中添加单边退款相关项
parent 944da45c
...@@ -11,7 +11,7 @@ VUE_APP_BASE_API = '' ...@@ -11,7 +11,7 @@ VUE_APP_BASE_API = ''
# VUE_APP_BASE_URL = 'http://10.10.40.69:9903' # VUE_APP_BASE_URL = 'http://10.10.40.69:9903'
VUE_APP_BASE_URL_change = 'http://10.10.8.230:6200/fancy' VUE_APP_BASE_URL_change = 'http://10.10.8.230:6200/fancy'
# VUE_APP_BASE_URL = 'http://127.0.0.1:9902' # VUE_APP_BASE_URL = 'http://127.0.0.1:9902'
VUE_APP_BASE_URL = 'http://10.10.9.219:9902' VUE_APP_BASE_URL = 'http://10.10.9.219:8802'
# VUE_APP_BASE_URL = 'http://10.10.9.219:9902' # VUE_APP_BASE_URL = 'http://10.10.9.219:9902'
VUE_APP_BASE_URL_SFC = 'http://10.10.9.219:8802' VUE_APP_BASE_URL_SFC = 'http://10.10.9.219:8802'
# VUE_APP_BASE_URL_SFC = 'http://127.0.0.1:9902' # VUE_APP_BASE_URL_SFC = 'http://127.0.0.1:9902'
......
...@@ -213,6 +213,8 @@ export const api = { ...@@ -213,6 +213,8 @@ export const api = {
basic:'/api/dir/departments/basic', //获取科室信息 basic:'/api/dir/departments/basic', //获取科室信息
}, },
mz:{ mz:{
destroy_yd_gz:'api/dw/destroy_yd_gz/destroy',
destroy_ewm_gz:'api/dw/destroy_ewm_gz/destroy',
jhsubmit:'/api/plug_sign/submit', jhsubmit:'/api/plug_sign/submit',
pdxx:'/api/patient/mz', pdxx:'/api/patient/mz',
mzxx:'/api/dw/query_bassic_info', mzxx:'/api/dw/query_bassic_info',
......
...@@ -237,4 +237,19 @@ export function selfFundedSettle (data) { ...@@ -237,4 +237,19 @@ export function selfFundedSettle (data) {
method: 'DELETE', method: 'DELETE',
params:data params:data
}) })
}
export function destroy_yd_gz (data) {
return request({
url: Vue.prototype.$api.mz.destroy_yd_gz,
method: 'post',
params:data
})
}
export function destroy_ewm_gz (data) {
return request({
url: Vue.prototype.$api.mz.destroy_ewm_gz,
method: 'post',
params:data
})
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ import store from './store' ...@@ -7,7 +7,7 @@ import store from './store'
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
NProgress.configure({ showSpinner: false }) NProgress.configure({ showSpinner: false })
const whiteList = ['/login', '/register','/401','/staff/profile','/yibaomanager/outpatient','/yibaomanager/outpatientTwo','/yibaomanager/outpatientTwoSFC','/yibaomanager/refound','/yibaomanager/refoundSFC','/yibaomanager/patientInfo','/yibaomanager/dwText','/yibaomanager/outpatientCharging','/yibaomanager/outpatientYfang'] const whiteList = ['/login', '/register','/401','/staff/profile','/yibaomanager/outpatient','/yibaomanager/outpatientTwo','/yibaomanager/outpatientTwoSFC','/yibaomanager/refound','/yibaomanager/refoundSFC','/yibaomanager/patientInfo','/yibaomanager/dwText','/yibaomanager/outpatientCharging','/yibaomanager/outpatientYfang','/yibaomanager/unilateralRefund']
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
NProgress.start() NProgress.start()
var reg = new RegExp('(^|&)' + 'token' + '=([^&]*)(&|$)') var reg = new RegExp('(^|&)' + 'token' + '=([^&]*)(&|$)')
......
...@@ -226,6 +226,21 @@ export const constantRoutes = [ ...@@ -226,6 +226,21 @@ export const constantRoutes = [
meta: { title: "查询患者余额", icon: "user" } meta: { title: "查询患者余额", icon: "user" }
} }
] ]
},
{
path: "/yibaomanager",
component: Layout,
hidden: true,
redirect: "noredirect",
children: [
{
path: "unilateralRefund",
component: resolve =>
require(["@/views/jiesuan/unilateralRefund"], resolve),
name: "Profile",
meta: { title: "单边退款", icon: "user" }
}
]
}, },
{ {
path: "/yibaomanager", path: "/yibaomanager",
......
...@@ -133,6 +133,15 @@ const permission = { ...@@ -133,6 +133,15 @@ const permission = {
name: "Refund_1", name: "Refund_1",
path: "/yibaomanager", path: "/yibaomanager",
type: 1, type: 1,
},
{
alwaysShow: false,
children: [{ path: "unilateralRefund", component: "jiesuan/unilateralRefund", type: 2, name: "Refund", meta: { title: "单边退款", icon: "el-icon-monitor" } }],
component: "Layout",
meta: { title: "单边退款", icon: "el-icon-monitor" },
name: "Refund_1",
path: "/yibaomanager",
type: 1,
}, },
{ {
alwaysShow: false, alwaysShow: false,
......
<template>
<div class="app-container" v-loading="allLoading">
<el-card class="userInfo_box">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="异地个账撤销" name="1">
<el-form ref="form" :model="form" label-width="100px">
<el-form-item label="地纬账号">
<el-input v-model="form.dw_user"></el-input>
</el-form-item>
<el-form-item label="订单号">
<el-input v-model="form.order_id"></el-input>
</el-form-item>
<el-form-item label="社保机构编号">
<el-input v-model="form.social_code"></el-input>
</el-form-item>
<el-form-item label="身份证号">
<el-input v-model="form.id_card"></el-input>
</el-form-item>
<el-form-item label="退款金额">
<el-input v-model="form.refund_money"></el-input>
</el-form-item>
<el-form-item label="姓名">
<el-input v-model="form.name"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">确定</el-button>
<el-button>取消</el-button>
</el-form-item>
</el-form>
</el-tab-pane>
<el-tab-pane label="二维码个账撤销" name="2">
<el-form ref="formEWM" :model="formEWM" label-width="100px">
<el-form-item label="地纬账号">
<el-input v-model="formEWM.dw_user"></el-input>
</el-form-item>
<el-form-item label="二维码">
<el-input v-model="formEWM.ewm"></el-input>
</el-form-item>
<el-form-item label="结算号ID">
<el-input v-model="formEWM.jsh_id"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmitEWM">确定</el-button>
<el-button>取消</el-button>
</el-form-item>
</el-form>
</el-tab-pane>
</el-tabs>
</el-card>
<!-- 读卡弹窗 -->
</div>
</template>
<script>
import { destroy_ewm_gz,destroy_yd_gz } from '@/api/mz'
export default {
name: 'Outpatient',
components: {
},
data() {
return {
allLoading:false,
activeName: '1',
form: {
name: '',
refund_money: '',
id_card: '',
social_code: '',
order_id: '',
dw_user: '',
},
formEWM: {
jsh_id: '',
ewm: '',
dw_user: '',
},
}
},
mounted() {},
created() {},
methods: {
handleClick(tab, event) {
console.log(tab, event)
},
onSubmit() {
this.allLoading = true
destroy_yd_gz(this.form)
.then(response => {
this.$message({
message: '成功撤销!',
type: 'success',
})
})
.catch(e => {
this.$message({
message: e.message,
type: 'error',
})
})
.finally(() => {
this.allLoading = false
})
console.log('submit!')
},
onSubmitEWM() {
this.allLoading = true
destroy_ewm_gz(this.formEWM)
.then(response => {
this.$message({
message: '成功撤销!',
type: 'success',
})
})
.catch(e => {
this.$message({
message: e.message,
type: 'error',
})
})
.finally(() => {
this.allLoading = false
})
console.log('submit!')
},
},
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped></style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment