diff --git a/src/components/inventory/purchase/EditOrder.vue b/src/components/inventory/purchase/EditOrder.vue
index e8c6cd2..3161485 100644
--- a/src/components/inventory/purchase/EditOrder.vue
+++ b/src/components/inventory/purchase/EditOrder.vue
@@ -1,5 +1,4 @@
-
diff --git a/src/components/inventory/supplier/AddSupplier.vue b/src/components/inventory/supplier/AddSupplier.vue
index 004be89..a1bcb5e 100644
--- a/src/components/inventory/supplier/AddSupplier.vue
+++ b/src/components/inventory/supplier/AddSupplier.vue
@@ -1,7 +1,5 @@
-
diff --git a/src/components/manger/Auth.vue b/src/components/manger/Auth.vue
new file mode 100644
index 0000000..1d59b18
--- /dev/null
+++ b/src/components/manger/Auth.vue
@@ -0,0 +1,89 @@
+
+
+
+
+
+ 保存
+
+
+
+
+ {{ decryptedText.fixmedinsCode }}
+
+
+ {{ decryptedText.createDate }}
+
+
+ {{ decryptedText.expiryDate }}
+
+
+
+
+
+
diff --git a/src/components/outpatient/CaseDetail.vue b/src/components/outpatient/CaseDetail.vue
index 3cd605d..183cb1c 100644
--- a/src/components/outpatient/CaseDetail.vue
+++ b/src/components/outpatient/CaseDetail.vue
@@ -17,37 +17,37 @@
:column="1"
border
>
-
+
{{ formDate.mainAppeal}}
-
+
{{ formDate.diagnosisSummary}}
-
+
{{ formDate.nowMedicalHistory}}
-
+
{{ formDate.beforeMedicalHistory}}
-
+
{{ formDate.allergyHistory}}
-
+
{{ formDate.exam}}
-
+
{{ formDate.chinaAdjunctCheck}}
-
+
{{ formDate.chinaDeal}}
-
+
{{ formDate.mouthCheck}}
-
+
{{ formDate.adjunctCheck}}
-
+
{{ formDate.deal}}
diff --git a/src/components/outpatient/Settlement.vue b/src/components/outpatient/Settlement.vue
index bfaf3d5..faa8a91 100644
--- a/src/components/outpatient/Settlement.vue
+++ b/src/components/outpatient/Settlement.vue
@@ -2,7 +2,7 @@
import Panel from '../common/Panel.vue';
import {defineEmits, defineModel,defineProps} from 'vue'
const {status}=defineProps(['status'])
-const emit = defineEmits(['save','deleteItem']);
+const emit = defineEmits(['save','deleteItem','edit']);
const save = () => {
emit('save');
};
@@ -10,7 +10,9 @@ const deleteItem = () => {
emit('deleteItem');
};
const totalAmount = defineModel()
-
+const editItem= () => {
+ emit('edit');
+};
@@ -20,7 +22,7 @@ const totalAmount = defineModel()
取消接诊
完成接诊
- 修改
+ 修改
diff --git a/src/components/settings/ItemEdit.vue b/src/components/settings/ItemEdit.vue
index f5452eb..5e3ab4b 100644
--- a/src/components/settings/ItemEdit.vue
+++ b/src/components/settings/ItemEdit.vue
@@ -1,6 +1,6 @@
-
\ No newline at end of file
diff --git a/src/views/inventory/goods.vue b/src/views/inventory/goods.vue
index 8c8de1a..78c7031 100644
--- a/src/views/inventory/goods.vue
+++ b/src/views/inventory/goods.vue
@@ -1,86 +1,77 @@
-
- 新增商品
-
-
-
-
-
-
- 中西成药
- 中药饮片
- 医疗器材
- 其他商品
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- %
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %
+
+
+
+
+
+
-
-
-
- %
-
-
-
-
- 搜索
-
-
-
-
-
+
+
+
+ %
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+ 新增中西成药
+ 新增中药饮片
+ 新增医疗器材
+ 新增其他商品
-
+
@@ -95,12 +86,12 @@
- ¥{{ scope.row.purchaseUnitPrice?.toFixed(2) }}
+ ¥{{ scope.row.purchaseUnitPrice.toFixed(2) }}
- ¥{{ scope.row.unitPrice?.toFixed(2) }}
+ ¥{{ scope.row.unitPrice.toFixed(2) }}
@@ -116,7 +107,7 @@
- {{ (scope.row.interestRate * 100)?.toFixed(2) }}%
+ {{ (scope.row.interestRate * 100).toFixed(2) }}%
@@ -140,7 +131,7 @@
- ¥{{ scope.row.costPrice?.toFixed(2) }}
+ ¥{{ scope.row.costPrice.toFixed(2) }}
@@ -167,10 +158,13 @@
-
+
-
+
+
+
+
@@ -188,11 +182,12 @@
import {nextTick, onMounted, ref} from "vue";
import {ElTabPane} from "element-plus";
import {post} from '@/utils/request.ts';
-import Mask from "@/components/common/Mask.vue";
+import Mask from "@/components/Mask.vue";
import Edit from "@/components/inventory/goods/Edit.vue";
import InventoryBatchDetail from "@/components/inventory/goods/InventoryBatchDetail.vue";
import InventoryStatistics from "@/components/inventory/goods/InventoryStatistics.vue";
-import {ArrowDown, SemiSelect} from "@element-plus/icons-vue";
+import CloseBtn from "@/components/CloseBtn.vue";
+import {Plus, SemiSelect} from "@element-plus/icons-vue";
const inventoryNumber = ref(false)
const status = ref(false)
@@ -398,41 +393,44 @@ const activeName = ref('first')
height: 100%;
display: flex;
flex-direction: column;
+
+ .top {
+ height: 112px;
+ padding: 24px 24px 0;
+ background: #fff;
+
+ .search {
+ display: flex;
+ justify-content: space-between;
+
+ .el-form-item {
+ margin-right: 5px;
+ }
+ }
+ }
+
+ .content_goods {
+ width: 100%;
+ flex: 1;
+ overflow: hidden;
+ }
+
+ .bottom {
+ width: 100%;
+ height: 60px;
+ background-color: #FFF;
+ box-sizing: border-box;
+ padding: 10px;
+ position: relative;
+ border-top: 1px solid #EEE;
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ }
}
.tags {
margin-left: 5px;
}
-.search {
- display: flex;
- justify-content: space-between;
- margin-top: 10px;
-
- .el-form-item {
- margin-right: 5px;
- }
-}
-
-.content_goods {
- width: 100%;
- flex: 1;
- overflow: hidden;
-}
-
-.bottom {
- width: 100%;
- height: 60px;
- background-color: #FFF;
- box-sizing: border-box;
- padding: 10px;
- position: relative;
- border-bottom: 1px solid #EEE;
-
- .page_btn_list {
- position: absolute;
- left: 0;
- top: 10px;
- }
-}
\ No newline at end of file
diff --git a/src/views/inventory/inventory.vue b/src/views/inventory/inventory.vue
index c47c076..c4c7435 100644
--- a/src/views/inventory/inventory.vue
+++ b/src/views/inventory/inventory.vue
@@ -2,11 +2,11 @@
- 新增采购
+ 新增采购
-
+
{{ scope.row.code }}
@@ -21,20 +21,17 @@
-
-
+
+
{{ formatDate(scope.row.purchaseDate) }}
-
+
{{ formatDate(scope.row.createDatetime) }}
-
- 详情
-
@@ -49,7 +46,7 @@
/>
-
+
@@ -63,6 +60,7 @@ import {useRoute} from "vue-router";
import AddOrder from "@/components/inventory/purchase/AddOrder.vue";
import Mask from "@/components/common/Mask.vue";
import EditOrder from "@/components/inventory/purchase/EditOrder.vue";
+import {Plus} from "@element-plus/icons-vue";
let tableData = ref([])
let is_add = ref(false)
@@ -116,7 +114,7 @@ const formatDate = (isoStr: any) => {
@use "@/assets/scss/base.scss";
.container-wrapper {
box-sizing: border-box;
- padding: 20px;
+ padding: 24px;
overflow: hidden;
display: flex;
flex-direction: column;
@@ -134,12 +132,10 @@ const formatDate = (isoStr: any) => {
box-sizing: border-box;
padding: 10px;
position: relative;
- border-bottom: 1px solid #EEE;
- .page_btn_list {
- position: absolute;
- left: 0;
- top: 10px;
- }
+ border-top: 1px solid #EEE;
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
}
}
.full_screen {
diff --git a/src/views/inventory/supplier.vue b/src/views/inventory/supplier.vue
index 3c12e48..a14ede0 100644
--- a/src/views/inventory/supplier.vue
+++ b/src/views/inventory/supplier.vue
@@ -2,11 +2,11 @@
- 添加供应商
+ 添加供应商
-
+
@@ -15,16 +15,10 @@
已禁用
-
+
-
-
-
- 详情
-
-
-
+
@@ -39,7 +33,7 @@
/>
-
+
@@ -49,6 +43,7 @@ import {nextTick, onMounted, ref, watch} from "vue";
import {post} from "@/utils/request.ts";
import Mask from "@/components/common/Mask.vue";
import AddSupplier from "@/components/inventory/supplier/AddSupplier.vue";
+import {Plus} from "@element-plus/icons-vue";
const tableData = ref([])
const getSupplier = () => {
@@ -67,7 +62,9 @@ const addSupplierRef = ref();
const openAdd = () => {
showAdd.value = true
}
+const id = ref('')
const editSupplier = (row: any) => {
+ id.value = row.id
openAdd()
nextTick(() => {
addSupplierRef.value.edit(row)
@@ -95,25 +92,10 @@ let changePage = (value: number) => {
\ No newline at end of file
diff --git a/src/views/outpatient/index.vue b/src/views/outpatient/index.vue
index 243a3b4..45473de 100644
--- a/src/views/outpatient/index.vue
+++ b/src/views/outpatient/index.vue
@@ -19,7 +19,7 @@
-
+
@@ -98,7 +98,6 @@ const getId = (item: any) => {
status.value = 2
})
}
-
if (item.status == 3) {
post(apiConfig.DoctorDetail, {
regisId: item.id
@@ -119,8 +118,13 @@ const deleteItem = () => {
const getStatus = (e: any) => {
status.value = e
}
+const edit=()=>{
+ post('registration/changeStatus', {id: registerId.value, status: 2}).then((res: any) => {
+ status.value = 2
+ })
+}
// 使用 watch 监听 goodsList 和 itemList 的变化
-watch([()=>goodsList.value, itemList], ([newGoodsList, newItemList]) => {
+watch([()=>goodsList.value, itemList,status], ([newGoodsList, newItemList,newStatus]) => {
const pharmaceuticalTotalAmount = newItemList.reduce((pre: any, cur: any) => {
return pre + cur.unitPrice
}, 0);
@@ -129,7 +133,9 @@ watch([()=>goodsList.value, itemList], ([newGoodsList, newItemList]) => {
return pre + cur.selectNum * cur.selectedPrice
}, 0);
totalAmount.value = pharmaceuticalTotalAmount + serviceTotalAmount;
- console.log(serviceTotalAmount)
+ if (newStatus) {
+ registerId.value=''
+ }
}, {deep: true});
\ No newline at end of file
diff --git a/src/views/settings/member.vue b/src/views/settings/member.vue
index 9aa9eee..29398d0 100644
--- a/src/views/settings/member.vue
+++ b/src/views/settings/member.vue
@@ -1,46 +1,95 @@
-
新增
-
-
-
- {{formatDate(scope.row.createDatetime)}}
-
-
-
-
-
- {{roleList.find((item: any) => item.value === scope.row.role)?.label||'-'}}
-
-
-
-
- {{sectionList.find((item: any) => item.id === scope.row.sectionId)?.name ||'-'}}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 新增
+
+
+
+
+
+
+
+ {{ formatDate(scope.row.memberInfo.createDatetime) }}
+
+
+
+
+ {{ scope.row.memberInfo.name }}
+
+
+
+
+ {{ roleList.find((item: any) => item.value === scope.row.memberInfo.role)?.label || '-' }}
+
+
+
+
+ {{ sectionList.find((item: any) => item.id === scope.row.memberInfo.sectionId)?.name || '-' }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/settings/section.vue b/src/views/settings/section.vue
index 1988e68..245195b 100644
--- a/src/views/settings/section.vue
+++ b/src/views/settings/section.vue
@@ -1,31 +1,66 @@
-
新增
-
-
-
-
-
-
-
- {{ scope.row.createDatetime ? formatDate(scope.row.createDatetime) : '-' }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 新增
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.createDatetime ? formatDate(scope.row.createDatetime) : '-' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -38,6 +73,8 @@ import SectionEdit from "@/components/settings/SectionEdit.vue";
import {post} from "@/utils/request.ts";
import deptsObj from '@/assets/config/directory/depts.json'
import {formatDate} from '@/utils/dateUtils.ts'
+import depts from "@/assets/config/directory/depts.json";
+import {Plus} from "@element-plus/icons-vue";
const id = ref("")
const isShow = ref(false)
@@ -67,18 +104,72 @@ const rowClick = (row: any) => {
onMounted(() => {
init()
})
+
+interface Dept {
+ [key: string]: string | { name: string; children: { [key: string]: string } };
+}
+
const init = () => {
isShow.value = false
- post('organization/section/list', {page: 1, size: 10}).then((res: any) => {
+ post('organization/section/list', {page: page.value, size: pageSize.value}).then((res: any) => {
tableData.value = res.list
tableData.value.forEach((item: any) => {
- item.caty = deptsObj[item.caty]
+ let dept: Dept = deptsObj
+ item.caty = dept[item.caty]
console.log(item.caty)
})
})
}
+const changePage = (val: any) => {
+ page.value = val
+};
+const pageSize = ref(20);
+const page = ref(1);
+const total = ref(0);
+const search = ref({})
+const options = Object.entries(depts).map(([key, value]) => {
+ if (typeof value === 'string') {
+ return {value: key, label: value};
+ } else {
+ return {
+ value: key,
+ label: value.name,
+ children: Object.entries(value.children).map(([childKey, childValue]) => ({
+ value: childKey,
+ label: childValue,
+ })),
+ };
+ }
+});
\ No newline at end of file