diff --git a/src/components/patientRegister/PatientRegisterItem.vue b/src/components/patientRegister/PatientRegisterItem.vue index 651ef67..1ba7781 100644 --- a/src/components/patientRegister/PatientRegisterItem.vue +++ b/src/components/patientRegister/PatientRegisterItem.vue @@ -11,53 +11,80 @@
- - + + + + + + + +
-
- 添加 +
+ 添加
-
+
移除
-
+
保存
+
+ 折扣 + +
+
+ 总金额 + +
+
+ + + +
- - - - + + + + - + - + + + @@ -68,7 +95,7 @@ - + diff --git a/src/components/patientRegister/patientRegisterAsbItem.vue b/src/components/patientRegister/patientRegisterAsbItem.vue index 6661db3..05dae19 100644 --- a/src/components/patientRegister/patientRegisterAsbItem.vue +++ b/src/components/patientRegister/patientRegisterAsbItem.vue @@ -2,7 +2,7 @@
diff --git a/src/store/index.js b/src/store/index.js index 13e4fc2..811939f 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -182,6 +182,7 @@ export default new Vuex.Store({ itemTypeTree: [], //体检类别 树结构 asbItemAll: [], //所有组合项目 asbItem: [], //显示的 未选组合项目 + asbItemQuick: [], //显示的 未选组合项目(供快速选择) }, }, getters: {}, @@ -249,9 +250,15 @@ export default new Vuex.Store({ (res) => { console.log(`/api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`, res) if (res.code == 1) { + let patientRegisterAbs = [] + res.data.forEach(e => { + e.standTotal = e.amount * e.standardPrice + e.total = e.amount * e.chargePrice + patientRegisterAbs.push(e) + }); context.commit("setData", { key: "patientRegister.patientRegisterAbs", - value: res.data, + value:patientRegisterAbs, }); context.commit("setData", { @@ -262,6 +269,10 @@ export default new Vuex.Store({ "id=asbitemId" ), }); + context.commit("setData", { + key: "dict.asbItemQuick", + value: arrayReduce([...context.state.dict.asbItemAll],[...context.state.patientRegister.patientRegisterAbs],"id=asbitemId"), + }); //console.log(`getPatientRegisterAbs ${id}`,context.state.dict.asbItem) } }