diff --git a/src/api/patient/family.js b/src/api/patient/family.js
new file mode 100644
index 0000000..887b8c0
--- /dev/null
+++ b/src/api/patient/family.js
@@ -0,0 +1,26 @@
+import request from '../../utils/request'
+
+const url = '/admin/patient/family';
+
+
+export function getFamilyList(params){
+ return request({
+ url:'/admin/patient/family',
+ method: 'get',
+ params
+ })
+}
+export function getFamilyDetail(id){
+ return request({
+ url:'/admin/patient/family/'+id,
+ method: 'get'
+ })
+ }
+ export function decryptMobile(params){
+ return request({
+ url:'/decrypt/mobile',
+ method: 'get',
+ params
+ })
+ }
+
\ No newline at end of file
diff --git a/src/api/patient/list.js b/src/api/patient/list.js
index ee95432..8564b2b 100644
--- a/src/api/patient/list.js
+++ b/src/api/patient/list.js
@@ -10,80 +10,16 @@ export function getPatientList(params){
params
})
}
-
-export function addPatient(data) {
- return request({
- url,
- method: 'post',
- data
- })
-}
-
-export function removePatient(data) {
- return request({
- url,
- method: 'delete',
- data
- })
-}
-
-export function updatePatient(data, id) {
- return request({
- url: `${url}/${id}`,
- method: 'put',
- data
- })
-}
export function getPatientDetail(id){
return request({
- url:'/admin/doctor/'+id,
+ url:'/admin/patient/'+id,
method: 'get'
})
}
- export function departmentList(){ //获取科室列表
+ export function changeStatus(id,data){
return request({
- url:'/basic/department/custom/list',
- method: 'get'
+ url:'/admin/patient/status/'+id,
+ method: 'put',
+ data
})
- }
- export function decryptCard(params){
- return request({
- url:'/decrypt/card/num',
- method: 'get',
- params
- })
- }
- export function decryptBank(doctor_id){
- return request({
- url:'/decrypt/bank/'+doctor_id,
- method: 'get'
- })
- }
-
- export function hospitalList(params){ //获取医院地址列表
- return request({
- url:'/basic/hospital/list',
- method: 'get',
- params
- })
- }
- export function expertiseList(){ //获取专长列表
- return request({
- url:'/basic/expertise/list',
- method: 'get'
- })
- }
- export function bankList(){ //获取银行列表
- return request({
- url:'/basic/bank/list',
- method: 'get'
- })
- }
- export function areaList(params){ //获取银行列表
- return request({
- url:'/basic/area/list',
- method: 'get',
- params
- })
- }
-
\ No newline at end of file
+ }
\ No newline at end of file
diff --git a/src/api/prescription/list.js b/src/api/prescription/list.js
new file mode 100644
index 0000000..d1536a0
--- /dev/null
+++ b/src/api/prescription/list.js
@@ -0,0 +1,18 @@
+import request from '../../utils/request'
+
+const url = '/admin/prescription';
+
+
+export function getPrescriptionList(params){
+ return request({
+ url:'/admin/prescription',
+ method: 'get',
+ params
+ })
+}
+export function getPrescriptionDetail(id){
+ return request({
+ url:'/admin/prescription/'+id,
+ method: 'get'
+ })
+ }
diff --git a/src/components/familyModal.vue b/src/components/familyModal.vue
new file mode 100644
index 0000000..ef20ca9
--- /dev/null
+++ b/src/components/familyModal.vue
@@ -0,0 +1,193 @@
+
+
+
+
+
+
+
+
+ {{modalForm.card_name}} ({{modalForm.sex==1?'男,':'女,'}}{{modalForm.age
+}}岁)
+
+
+
+
+
+
{{modalForm.id_number_mask}}
+
+
+
+
{{id_card_num}}
+
{showEye=false}" />
+
+
+
+
+
+
+
+
+
{{modalForm.mobile_mask}}
+
+
+
+
{{family_mobile}}
+
{family_Eye=false}" />
+
+
+
+
+
+
+
+
+
+ {{modalForm.user.user_name}}
+
+
+
+
+
+
+
{{modalForm.user.mobile}}
+
+
+
+
{{count_mobile}}
+
{count_Eye=false}" />
+
+
+
+
+
+
+
+ {{formatRelation(modalForm.relation)}}
+ -
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/isOkModal.vue b/src/components/isOkModal.vue
index 4b70c02..f353ee8 100644
--- a/src/components/isOkModal.vue
+++ b/src/components/isOkModal.vue
@@ -40,28 +40,17 @@ const {isVisible,title,id,api} = toRefs(props);
// Akiraka 20230210 关闭弹窗
const handleClose = () => {
emits('closeChangeOk',false);
- // alert(flag)
}
// Akiraka 20230210 确认按钮 => 开始数据检查
const handleConfirm = async () => {
- const {code}=api.value(id.value);
- if(code==200){
+ const data=title.value=="确定启用吗?"?await api.value(id.value,{status:1}):await api.value(id.value);
+ if(data.code==200){
Message.success("成功");
- proxy.$refs.modalFormRef.resetFields();
+ //proxy.$refs.modalFormRef.resetFields();
}else{
proxy.$notification.error(response.message);
}
emits('closeChangeOk',true);
- // api.value(id.value).then(response => {
- // // Akiraka 20230210 关闭弹窗
- // if(response.code==200){
- // Message.success("成功");
- // proxy.$refs.modalFormRef.resetFields();
- // }else{
- // proxy.$notification.error(response.message);
- // }
- // emits('closeChangeOk',true);
- // })
}
\ No newline at end of file
diff --git a/src/components/tableUnit.vue b/src/components/tableUnit.vue
index 0a2f90a..89e4a60 100644
--- a/src/components/tableUnit.vue
+++ b/src/components/tableUnit.vue
@@ -1,13 +1,26 @@
-
+
查看处方
+
+ {{(rowIndex+1)}}
+
+
+ {{formatRelation(record.relation)}}
+
+
+
+ 详情
+
+
\ No newline at end of file
diff --git a/src/utils/format.js b/src/utils/format.js
index b3c29a4..b4c5fd3 100644
--- a/src/utils/format.js
+++ b/src/utils/format.js
@@ -61,3 +61,12 @@ export const formatDoctorTitle=(val)=>{
return ''
}
}
+export const formatRelation=(val)=>{
+ //与患者关系(1:本人 2:父母 3:爱人 4:子女 5:亲戚 6:其他 )
+ let data={1:'本人', 2:'父母', 3:'爱人', 4:'子女',5:'亲戚',6:'其他'}
+ if(val){
+ return data[val]
+ }else{
+ return ''
+ }
+ }
\ No newline at end of file
diff --git a/src/utils/request.js b/src/utils/request.js
index 002f538..66674a8 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -19,10 +19,14 @@ service.interceptors.request.use(
// Store 必须在拦截器内部导入,在外部导入会显示 Pinia 未初始化
const store = useUserStore();
// 设置请求头部 Authorization
+ // if(config.method=="put"){
+ // config.headers['Content-Type'] = 'application/x-www-form-urlencoded'
+ // }
if (store.token) {
config.headers['Authorization'] = 'Bearer ' + store.token;
//config.headers['Content-Type'] = 'multipart/form-data'
}
+
return config;
},
(error) => {
diff --git a/src/views/order/order-list/index.vue b/src/views/order/order-list/index.vue
index ea28bba..d25b4de 100644
--- a/src/views/order/order-list/index.vue
+++ b/src/views/order/order-list/index.vue
@@ -123,6 +123,9 @@
{{record.patient_name}}({{record.patient_sex==1?'男,':'女,'}}{{record.patient_age}}岁)
+
+ {{ formatInquiryType(record.inquiry_type) }}
+
{{ parseTime(record.pay_time) }}
@@ -516,6 +519,7 @@ const columns = [
{ title: '联系电话', dataIndex: 'patient_mobile',width: 130 },
{ title: '订单金额', dataIndex: 'amount_total',slotName:'amount_total',width:100 },
{ title: '实付金额', dataIndex: 'payment_amount_total',slotName:'payment_amount_total',width:100 },
+ { title: '服务类型', dataIndex: 'inquiry_type',slotName:'inquiry_type',width:100 },
{ title: '支付方式', dataIndex: 'inquiry_pay_channel',slotName: 'inquiry_pay_channel'},
{ title: '订单状态', dataIndex: 'inquiry_status', slotName:'inquiry_status' },
{ title: '支付时间', dataIndex: 'pay_time', slotName: 'pay_time',width:200 },
diff --git a/src/views/patient/family-list/index.vue b/src/views/patient/family-list/index.vue
new file mode 100644
index 0000000..9d204ed
--- /dev/null
+++ b/src/views/patient/family-list/index.vue
@@ -0,0 +1,348 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
{deleteData = selection;console.log(selection)}"
+ @page-change="handlePageChange" @page-size-change="handlepage_sizeChange">
+
+ {{(rowIndex+1)+(pager.page-1)*10}}
+
+
+
+ 禁用
+ 正常
+ 删除
+
+
+ 否
+ 是
+
+
+
+ {{ record.disable_reason }}
+ -
+
+
+ {{formatRelation(record.relation)}}
+
+
+
+
+ 详情
+
+
+
+
+
+
+
{modalVisible=false}">
+
+
+
+
okVisible=false">
+
+ 提示
+
+ 确定保存当前信息?
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/patient/patient-list/index.vue b/src/views/patient/patient-list/index.vue
index 8fd2745..f50e7b1 100644
--- a/src/views/patient/patient-list/index.vue
+++ b/src/views/patient/patient-list/index.vue
@@ -2,79 +2,26 @@
-
-
+
+
-
-
-
-
-
-
-
- 主任医师
- 主任中医师
- 副主任医师
- 副主任中医师
- 主治医师
- 住院医师
+
+
+
+ 禁用
+ 正常
+ 删除
-
-
-
- 专家问诊
- 快速问诊
- 公益问诊
- 问诊购药
-
+
+
-
-
-
- 未认证
- 认证通过
- 审核中
- 认证失败
-
-
-
-
-
- 未认证
- 认证通过
- 审核中
- 认证失败
-
-
-
-
-
- 未认证
- 认证通过
- 认证失败
-
-
-
-
-
- 否
- 是
-
-
-
-
-
- 否
- 是
-
-
-
搜索
@@ -86,15 +33,15 @@
-
+ -->
- {deleteData = selection;console.log(selection)}"
@@ -102,466 +49,150 @@
{{(rowIndex+1)+(pager.page-1)*10}}
-
-
- 主任医师
- 主任中医师
- 副主任医师
- 副主任中医师
- 主治医师
- 住院医师
-
-
- {{record.hospital_name}}
-
-
- {{filterService(record)}}
-
-
-
- 未认证
- 认证通过
- 审核中
- 认证失败
-
-
-
- 未认证
- 认证通过
- 审核中
- 认证失败
-
-
-
- 否
- 是
-
-
-
- 否
- 是
-
-
-
- 未认证
- 认证通过
- 认证失败
-
禁用
正常
- 删除
+ 删除
+
+
+
+ 否
+ 是
+
+
+
+ {{ record.disable_reason }}
+ -
+
+
+ 绑定了{{ record.patient_family_count}}个
+
- 详情
-
- 修改
-
+
{$refs.modalFormRef.resetFields(); modalForm.doctor_id = null;}">
+ @close="() => {$refs.modalFormRef.resetFields(); modalForm.patient_id = null;}">
+ " ref="modalFormRef" :auto-label-width="true">
-
+
-
-
-
-
-
-
-
-
+
+ {{modalForm.user_name}}
-
-
-
-
-
-
{{modalForm.user_doctor_info.card_num_mask}}
-
+
+
+
-
+
-
-
-
-
- {{item.hospital_name+'('+item.province+item.city+item.county+')'}}
-
-
+
+
+ 禁用
+ 正常
+ 删除
+
+
+
+
+ {{modalForm.created_at}}
+ -
+
+
+
+
+
+
+
+ {{modalForm.disable_reason}}
-
-
-
-
-
-
-
-
-
-
-
- {{item.department_custom_name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.doctor_title_name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.expertise_name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 理由:平台合作
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
- 省
- {{item.area_name}}
-
-
-
- 市
- {{item.area_name}}
-
-
-
- 区
- {{item.area_name}}
-
-
+
+ {{ item.consignee_name}}
-
-
-
-
-
-
-
+
+ {{ item.consignee_tel}}
-
-
-
-
+
+
+
+ {{ item.province}} {{item.city}}{{item.county}}{{item.address}}
-
-
-
-
-
- *医师执业证(点击图片查看大图)
-
-
-
-
-
-
-
-
-
-
-
-
-
- *医师资格证(点击图片查看大图)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- *医师职称证(点击图片查看大图)
-
-
-
-
-
-
-
-
-
-
-
-
-
- 医师身份证正面(点击图片查看大图)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 医师身份证反面(点击图片查看大图)
-
-
-
-
-
-
-
-
-
-
-
-
-
- 医师手写签名(点击图片查看大图)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 医师二维码(点击图片查看大图)
-
-
-
-
-
-
-
-
-
+
+
-
+
-
+
-
- okVisible=true">保存
+
+ 禁用
+ 启用
- deleteVisible = false" />
+
+
+ {familyVisible=false}">
- okVisible=false">
+
提示
- 确定保存当前信息?
+
+
+
+
+
+
+
@@ -1503,17 +497,22 @@
.arco-form-item-layout-horizontal:nth-child(2) {
align-items: center;
}
-
- .upload {
- margin-left: 20px;
+ .cellbox{
+ margin-top: 35px;
}
-
- .eye {
- margin-left: 20px;
- cursor: pointer;
- font-size: 18px;
+ .cellbox .cell{
+ width:50%;
+ border-bottom:1px dashed #efefef;
+ margin-bottom: 20px;
+ }
+ .cellbox .cell:first-child{
+ border: none;
+ }
+ .cell{
+ .arco-form-item{
+ margin-bottom: 10px;
+ }
}
-
.box {
display: flex;
align-items: center;
@@ -1538,4 +537,10 @@
display: flex;
align-items: center;
}
+ .reason{
+ max-width:250px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
\ No newline at end of file
diff --git a/src/views/prescription/prescription-list/index.vue b/src/views/prescription/prescription-list/index.vue
new file mode 100644
index 0000000..56e569c
--- /dev/null
+++ b/src/views/prescription/prescription-list/index.vue
@@ -0,0 +1,425 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 待审核
+ 待使用
+ 已失效
+ 已使用
+
+
+
+
+
+ 审核中
+ 审核成功
+ 审核驳回
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
{deleteData = selection;console.log(selection)}"
+ @page-change="handlePageChange" @page-size-change="handlepage_sizeChange">
+
+ {{(rowIndex+1)+(pager.page-1)*10}}
+
+
+ {{formatPrescriptionStatus(record.prescription_status)}}
+
+
+ 否
+ 是
+
+
+
+ {{ record.doctor_name }}
+
+
+ {{record.pharmacist_name}}
+
+
+ {{record.patient_name}}({{
+ record.patient_sex == 1 ? '男,' : '女,'
+ }}{{ record.patient_age }}岁)
+
+
+ {{record.order_prescription_icd}}
+
+
+
+ 详情
+
+
+
+
+
+
+
{modalVisible=false}">
+
+
+
+
okVisible=false">
+
+ 提示
+
+ 确定保存当前信息?
+
+
+
+
+
+
+
\ No newline at end of file