diff --git a/src/components/SearchInput.vue b/src/components/SearchInput.vue
index 858c73e..69ffdb4 100644
--- a/src/components/SearchInput.vue
+++ b/src/components/SearchInput.vue
@@ -28,7 +28,8 @@
@@ -90,7 +91,7 @@ const changeInput = (inputStr: string) => {
};
-const emit = defineEmits(['selectedCallBack','focus']);
+const emit = defineEmits(['selectedCallBack', 'focus']);
const clickRow = (row: any) => {
emit('selectedCallBack', row);
@@ -103,11 +104,11 @@ const beforeShow = () => {
popoverRef.value.hide();
}
};
-const isVisible =ref(false)
-const focus=()=>{
- isVisible.value=true
- console.log( "focus输入框")
- emit('focus',true)
+const isVisible = ref(false)
+const focus = () => {
+ isVisible.value = true
+ console.log("focus输入框")
+ emit('focus', true)
}
const handlerBlur = () => {
isVisible.value = false
diff --git a/src/components/common/goods/GoodsDetail.vue b/src/components/common/goods/GoodsDetail.vue
index a62df5f..d73078f 100644
--- a/src/components/common/goods/GoodsDetail.vue
+++ b/src/components/common/goods/GoodsDetail.vue
@@ -119,13 +119,33 @@ const goodsShowConfig = [
prop: "name",
},
{
- label: "项目类型",
- prop: "type",
+ label: "规格",
+ prop: "specifications",
},
{
- label: "售价",
+ label: "库存",
+ prop: "inventory",
+ },
+ {
+ label: "价格",
prop: "unitPrice",
},
+ {
+ label: "厂家",
+ prop: "producer",
+ },
+ {
+ label: "效期",
+ prop: "lifespan",
+ },
+ {
+ label: "收费项目等级",
+ prop: "category",
+ },
+ {
+ label: "限制条件",
+ prop: "limit",
+ }
]
const goodsSelect = (row: any) => {
row.selectedNum = 1
@@ -133,6 +153,10 @@ const goodsSelect = (row: any) => {
row.selectedPrice = row.unitPrice
if (goodsDetail.value.find((i: any) => i.id == row.id)) {
ElMessage.warning("数据已存在,只能加数量")
+ goodsDetail.value.find((i: any) => i.id == row.id).selectedNum += 1
+ goodsDetail.value.find((i: any) => i.id == row.id).selectedUnit = row.packagingUnit
+ goodsDetail.value.find((i: any) => i.id == row.id).selectedPrice = row.unitPrice
+ emit('totalPriceChange')
return
}
goodsDetail.value.push(row)
diff --git a/src/components/common/service/ServiceDetail.vue b/src/components/common/service/ServiceDetail.vue
index fb56c6e..521fefd 100644
--- a/src/components/common/service/ServiceDetail.vue
+++ b/src/components/common/service/ServiceDetail.vue
@@ -1,7 +1,7 @@
-
+
-
+
@@ -90,21 +90,34 @@ const serviceShowConfig = [
prop: "itemName",
},
{
- label: "服务医保码",
- prop: "itemSocialCode",
+ label: "单位",
+ prop: "unit",
},
{
label: "售价",
prop: "unitPrice",
},
+ {
+ label: "收费项目等级",
+ prop: "chrgitmLv",
+ },
+ {
+ label: "限制条件",
+ prop: "limit",
+ },
+
]
-const emit = defineEmits(['totalPriceChange','focus'])
+const emit = defineEmits(['totalPriceChange', 'focus'])
const serviceSelect = (row: any) => {
row.selectedNum = 1
row.selectedUnit = row.unit
row.selectedPrice = row.unitPrice
if (itemDetail.value.find((i: any) => i.id == row.id)) {
ElMessage.warning("数据已存在,只能加数量")
+ itemDetail.value.find((i: any) => i.id == row.id).selectedNum += 1
+ itemDetail.value.find((i: any) => i.id == row.id).selectedUnit = row.packagingUnit
+ itemDetail.value.find((i: any) => i.id == row.id).selectedPrice = row.unitPrice
+ emit('totalPriceChange')
return
}
itemDetail.value.push(row)
@@ -144,9 +157,10 @@ const hide = () => {
.bottom {
text-align: right;
- border-top: 1px solid #EAEAEC ;
+ border-top: 1px solid #EAEAEC;
display: flex;
- .search{
+
+ .search {
flex: 1;
}
}
diff --git a/src/components/outpatient/DiagnosisSearchInput.vue b/src/components/outpatient/DiagnosisSearchInput.vue
index 7c2e4a5..c6e6ecf 100644
--- a/src/components/outpatient/DiagnosisSearchInput.vue
+++ b/src/components/outpatient/DiagnosisSearchInput.vue
@@ -1,6 +1,5 @@
-
diff --git a/src/views/charge/index.vue b/src/views/charge/index.vue
index 2976927..6cae979 100644
--- a/src/views/charge/index.vue
+++ b/src/views/charge/index.vue
@@ -10,12 +10,11 @@
-
+
-
+
-
@@ -62,16 +62,16 @@
-
+
-
+
@@ -224,11 +223,11 @@ const list = () => {
display: flex;
flex-direction: column;
overflow: hidden;
- .diagnosis-content{
- height:64px;
- padding:0 24px 24px;
+
+ .diagnosis-content {
+ height: 64px;
+ padding: 0 24px 24px;
display: flex;
- justify-content: left;
}
.case {
@@ -285,6 +284,7 @@ const list = () => {
}
+
.bottom {
margin-top: 24px;
height: 86px;