|
@@ -80,64 +80,68 @@
|
80
|
80
|
|
81
|
81
|
<div class="mainCell fixedCell" style="margin-bottom:10px;">
|
82
|
82
|
|
83
|
|
- <div v-if="this.radio == 1">
|
|
83
|
+ <div v-if="this.radio == 1&&this.activeName=='first'">
|
84
|
84
|
<el-button
|
85
|
85
|
size="small"
|
86
|
86
|
v-loading="isloading"
|
87
|
87
|
:disabled="isdisabled"
|
88
|
|
- @click="open(1)"
|
|
88
|
+ @click="open(1,0)"
|
89
|
89
|
type="primary">上传明细
|
90
|
90
|
</el-button>
|
91
|
91
|
</div>
|
92
|
|
-
|
93
|
92
|
<div v-if="this.radio == 2">
|
94
|
93
|
<el-button
|
95
|
94
|
size="small"
|
96
|
|
- @click="open(2)"
|
|
95
|
+ @click="open(2,0)"
|
97
|
96
|
type="primary">撤销明细
|
98
|
97
|
</el-button>
|
99
|
98
|
</div>
|
100
|
|
-
|
101
|
99
|
</div>
|
102
|
100
|
|
103
|
101
|
<div class="mainCenter" v-loading="loading">
|
104
|
102
|
<el-tabs class="settlementTabs" v-model="activeName" @tab-click="handleClick">
|
105
|
|
- <!-- <el-tab-pane label="日结" name="first">-->
|
106
|
|
- <!-- <div style="display:flex;height:100%;">-->
|
107
|
|
- <!-- <div class="centerLeft">-->
|
108
|
|
- <!-- <div class="tabsBox">-->
|
109
|
|
- <!-- <!–<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>–>-->
|
110
|
|
- <!-- <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"-->
|
111
|
|
- <!-- @tab-click="tabclickEvent">-->
|
112
|
|
- <!-- <el-tab-pane-->
|
113
|
|
- <!-- v-for="(item, index) in prescriptions"-->
|
114
|
|
- <!-- :key="index"-->
|
115
|
|
- <!-- :label="item.name"-->
|
116
|
|
- <!-- :name="item.name"-->
|
117
|
|
- <!-- >-->
|
118
|
|
- <!-- </el-tab-pane>-->
|
119
|
|
-
|
120
|
|
- <!-- <charge-prescription-table ref="prescription_tables"-->
|
121
|
|
- <!-- :manufacturers="manufacturers"-->
|
122
|
|
- <!-- :prescription="curPrescriptions"></charge-prescription-table>-->
|
123
|
|
- <!-- </el-tabs>-->
|
124
|
|
-
|
125
|
|
- <!-- </div>-->
|
126
|
|
- <!-- <div class="costBox">-->
|
127
|
|
- <!-- <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>-->
|
128
|
|
- <!-- <span v-if="this.radio == 2&&this.hisPatientInfo.balance_accounts_type != 2">处方总价:<span style="color:red;">{{-->
|
129
|
|
- <!-- all_total + '元' + ' = 全自费总金额:' + fulamt_ownpay_amt + '元+' + '超限价总金额:' + overlmt_amt + '元+' + '先行自付金额:' + preselfpay_amt + '元+' + '符合正常范围总金额:' + inscp_scp_amt + '元'-->
|
130
|
|
- <!-- }}</span></span>-->
|
131
|
|
- <!-- <span v-if="this.radio == 2&&this.hisPatientInfo.balance_accounts_type == 2">处方总价:<span style="color:red;">{{-->
|
132
|
|
- <!-- all_total + '元' + ' = 全自费总金额:' + all_total + '元+' + '超限价总金额:' + overlmt_amt + '元+' + '先行自付金额:' + preselfpay_amt + '元+' + '符合正常范围总金额:' + inscp_scp_amt + '元'-->
|
133
|
|
- <!-- }}</span></span>-->
|
134
|
|
- <!-- <span v-if="this.radio == 1">处方总价:<span style="color:red;">{{ all_total }}元</span></span>-->
|
135
|
|
-
|
136
|
|
- <!-- </div>-->
|
137
|
|
- <!-- </div>-->
|
138
|
|
-
|
139
|
|
- <!-- </div>-->
|
140
|
|
- <!-- </el-tab-pane>-->
|
|
103
|
+ <el-tab-pane label="日结" name="second">
|
|
104
|
+ <div style="display:flex;height:100%;">
|
|
105
|
+ <div class="centerLeft">
|
|
106
|
+ <div class="tabsBox">
|
|
107
|
+ <!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
|
|
108
|
+ <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
|
|
109
|
+ @tab-click="tabclickEvent">
|
|
110
|
+ <el-tab-pane
|
|
111
|
+ v-for="(item, index) in prescriptions"
|
|
112
|
+ :key="index"
|
|
113
|
+ :label="item.name"
|
|
114
|
+ :name="item.name"
|
|
115
|
+ >
|
|
116
|
+ <el-button type="primary" v-loading="isloading"
|
|
117
|
+ :disabled="isdisabled" @click="open(1,item.id)">上传处方费用</el-button>
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+ </el-tab-pane>
|
|
121
|
+
|
|
122
|
+ <charge-month-prescription-table v-if="this.radio == 1"
|
|
123
|
+ :prescription="curPrescriptions"></charge-month-prescription-table>
|
|
124
|
+
|
|
125
|
+ </el-tabs>
|
|
126
|
+
|
|
127
|
+ </div>
|
|
128
|
+ <div class="costBox">
|
|
129
|
+ <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>
|
|
130
|
+ <span v-if="this.radio == 2&&this.hisPatientInfo.balance_accounts_type != 2">处方总价:<span
|
|
131
|
+ style="color:red;">{{
|
|
132
|
+ all_total + '元' + ' = 全自费总金额:' + fulamt_ownpay_amt + '元+' + '超限价总金额:' + overlmt_amt + '元+' + '先行自付金额:' + preselfpay_amt + '元+' + '符合正常范围总金额:' + inscp_scp_amt + '元'
|
|
133
|
+ }}</span></span>
|
|
134
|
+ <span v-if="this.radio == 2&&this.hisPatientInfo.balance_accounts_type == 2">处方总价:<span
|
|
135
|
+ style="color:red;">{{
|
|
136
|
+ all_total + '元' + ' = 全自费总金额:' + all_total + '元+' + '超限价总金额:' + overlmt_amt + '元+' + '先行自付金额:' + preselfpay_amt + '元+' + '符合正常范围总金额:' + inscp_scp_amt + '元'
|
|
137
|
+ }}</span></span>
|
|
138
|
+ <span v-if="this.radio == 1">处方总价:<span style="color:red;">{{ all_total }}元</span></span>
|
|
139
|
+
|
|
140
|
+ </div>
|
|
141
|
+ </div>
|
|
142
|
+
|
|
143
|
+ </div>
|
|
144
|
+ </el-tab-pane>
|
141
|
145
|
<el-tab-pane label="月结" name="first">
|
142
|
146
|
<div style="display:flex;height:100%;">
|
143
|
147
|
<div class="centerLeft">
|
|
@@ -156,7 +160,9 @@
|
156
|
160
|
<div class="RP">
|
157
|
161
|
Rp
|
158
|
162
|
<div v-if="radio == 2">
|
159
|
|
- <span>处方日期:{{ getTimes(zuobiao_info.start_time) }}~{{ getTimes(zuobiao_info.end_time) }}</span>
|
|
163
|
+ <span>处方日期:{{ getTimes(zuobiao_info.start_time) }}~{{
|
|
164
|
+ getTimes(zuobiao_info.end_time)
|
|
165
|
+ }}</span>
|
160
|
166
|
</div>
|
161
|
167
|
<div v-if="radio == 2">
|
162
|
168
|
<span>医嘱单id:{{ zuobiao_info.cbm01 }}</span>
|
|
@@ -197,17 +203,17 @@
|
197
|
203
|
:value="item.value">
|
198
|
204
|
</el-option>
|
199
|
205
|
</el-select>
|
200
|
|
- <label>
|
201
|
|
- 疾病类型:
|
202
|
|
- </label>
|
203
|
|
- <el-select filterable v-model="sick_type" placeholder="请选择疾病类型">
|
204
|
|
- <el-option
|
205
|
|
- v-for="(item,index) in sick"
|
206
|
|
- :key="index"
|
207
|
|
- :label="item.class_name"
|
208
|
|
- :value="item.id">
|
209
|
|
- </el-option>
|
210
|
|
- </el-select>
|
|
206
|
+ <label>
|
|
207
|
+ 疾病类型:
|
|
208
|
+ </label>
|
|
209
|
+ <el-select filterable v-model="sick_type" placeholder="请选择疾病类型">
|
|
210
|
+ <el-option
|
|
211
|
+ v-for="(item,index) in sick"
|
|
212
|
+ :key="index"
|
|
213
|
+ :label="item.class_name"
|
|
214
|
+ :value="item.id">
|
|
215
|
+ </el-option>
|
|
216
|
+ </el-select>
|
211
|
217
|
|
212
|
218
|
</div>
|
213
|
219
|
|
|
@@ -263,8 +269,8 @@ export default {
|
263
|
269
|
},
|
264
|
270
|
data() {
|
265
|
271
|
return {
|
266
|
|
- isloading:false,
|
267
|
|
- isdisabled:false,
|
|
272
|
+ isloading: false,
|
|
273
|
+ isdisabled: false,
|
268
|
274
|
register: [
|
269
|
275
|
{ value: 11, label: '普通门诊' },
|
270
|
276
|
// { value: 12, label: '门诊挂号' },
|
|
@@ -335,7 +341,7 @@ export default {
|
335
|
341
|
tabIndex: 1,
|
336
|
342
|
|
337
|
343
|
hisPatientInfo: {},
|
338
|
|
- prescription_info:{},
|
|
344
|
+ prescription_info: {},
|
339
|
345
|
loadingtwo: false,
|
340
|
346
|
upload_list: [],
|
341
|
347
|
patientTableData: [{}],
|
|
@@ -675,12 +681,12 @@ export default {
|
675
|
681
|
}, formatJson(filterVal, jsonData) {
|
676
|
682
|
return jsonData.map(v => filterVal.map(j => v[j]))
|
677
|
683
|
},
|
678
|
|
- open(index) {
|
|
684
|
+ open(index,id) {
|
679
|
685
|
if (index == 2) {
|
680
|
686
|
var that = this
|
681
|
687
|
let obj3 = {
|
682
|
688
|
id: this.zuobiao_info.id,
|
683
|
|
- admin_user_id: this.$store.getters.xt_user.user.id,
|
|
689
|
+ admin_user_id: this.$store.getters.xt_user.user.id
|
684
|
690
|
}
|
685
|
691
|
axios.get('http://127.0.0.1:9532' + '/nmg/coordinate/settleAccount/cancel', {
|
686
|
692
|
params: obj3
|
|
@@ -717,11 +723,11 @@ export default {
|
717
|
723
|
this.isdisabled = true
|
718
|
724
|
var that = this
|
719
|
725
|
if (this.hisPatientInfo.id == 0) {
|
720
|
|
- this.$message.error("请选择需要记账的患者")
|
|
726
|
+ this.$message.error('请选择需要记账的患者')
|
721
|
727
|
return
|
722
|
728
|
}
|
723
|
|
- if (this.sick_type == 0 || this.sick_type == "") {
|
724
|
|
- this.$message.error("请选择疾病类型")
|
|
729
|
+ if (this.sick_type == 0 || this.sick_type == '') {
|
|
730
|
+ this.$message.error('请选择疾病类型')
|
725
|
731
|
return
|
726
|
732
|
}
|
727
|
733
|
|
|
@@ -731,12 +737,18 @@ export default {
|
731
|
737
|
record_date: this.record_date,
|
732
|
738
|
admin_user_id: this.$store.getters.xt_user.user.id,
|
733
|
739
|
org_id: this.$store.getters.xt_user.org_id,
|
734
|
|
- sick_type:this.sick_type,
|
|
740
|
+ sick_type: this.sick_type,
|
|
741
|
+ settle_type: this.activeName,
|
|
742
|
+ p_id:id,
|
|
743
|
+ }
|
|
744
|
+ if (this.activeName == "first"){
|
|
745
|
+ obj['settle_accounts_type'] = 2
|
|
746
|
+ }else{
|
|
747
|
+ obj['settle_accounts_type'] = 1
|
735
|
748
|
}
|
736
|
749
|
obj['start_time'] = this.other_start_time
|
737
|
750
|
obj['end_time'] = this.other_end_time
|
738
|
|
- obj['settle_accounts_type'] = 2
|
739
|
|
- axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount', {
|
|
751
|
+ axios.get('http://127.0.0.1:9532' + '/nmg/coordinate/settleAccount', {
|
740
|
752
|
params: obj
|
741
|
753
|
})
|
742
|
754
|
.then(function(response) {
|
|
@@ -758,7 +770,6 @@ export default {
|
758
|
770
|
}).catch(() => {
|
759
|
771
|
})
|
760
|
772
|
|
761
|
|
-
|
762
|
773
|
} else {
|
763
|
774
|
that.isloading = false
|
764
|
775
|
that.isdisabled = false
|
|
@@ -862,13 +873,13 @@ export default {
|
862
|
873
|
case 1:
|
863
|
874
|
this.all_table_data = response.data.data.list
|
864
|
875
|
this.patientTableData = response.data.data.list
|
865
|
|
- if (this.hisPatientInfo&&this.hisPatientInfo.id > 0){
|
866
|
|
- for(let i = 0; i < this.patientTableData.length;i++){
|
867
|
|
- if(this.hisPatientInfo.id == this.patientTableData[i].id){
|
|
876
|
+ if (this.hisPatientInfo && this.hisPatientInfo.id > 0) {
|
|
877
|
+ for (let i = 0; i < this.patientTableData.length; i++) {
|
|
878
|
+ if (this.hisPatientInfo.id == this.patientTableData[i].id) {
|
868
|
879
|
this.$refs.tab.setCurrentRow(this.patientTableData[i])
|
869
|
880
|
}
|
870
|
881
|
}
|
871
|
|
- }else{
|
|
882
|
+ } else {
|
872
|
883
|
this.$refs.tab.setCurrentRow(this.patientTableData[0])
|
873
|
884
|
this.getPatientInformation(this.patientTableData[0].id)
|
874
|
885
|
}
|
|
@@ -878,15 +889,15 @@ export default {
|
878
|
889
|
this.patientTableData = response.data.data.list_two
|
879
|
890
|
this.upload_list = response.data.data.upload_list
|
880
|
891
|
this.all_upload_list = response.data.data.upload_list
|
881
|
|
- if (this.hisPatientInfo && this.hisPatientInfo.id > 0){
|
882
|
|
- for(let i = 0; i < this.upload_list.length;i++){
|
883
|
|
- if(this.hisPatientInfo.id == this.upload_list[i].his_patient.id){
|
|
892
|
+ if (this.hisPatientInfo && this.hisPatientInfo.id > 0) {
|
|
893
|
+ for (let i = 0; i < this.upload_list.length; i++) {
|
|
894
|
+ if (this.hisPatientInfo.id == this.upload_list[i].his_patient.id) {
|
884
|
895
|
this.$refs.tab.setCurrentRow(this.upload_list[i])
|
885
|
896
|
this.getPatientInformation(this.upload_list[0].his_patient.id)
|
886
|
897
|
|
887
|
898
|
}
|
888
|
899
|
}
|
889
|
|
- }else{
|
|
900
|
+ } else {
|
890
|
901
|
this.$refs.tab.setCurrentRow(this.upload_list[0])
|
891
|
902
|
this.getPatientInformation(this.upload_list[0].his_patient.id)
|
892
|
903
|
}
|
|
@@ -1088,8 +1099,8 @@ export default {
|
1088
|
1099
|
this.loading = false
|
1089
|
1100
|
this.prescription_info = response.data.data.prescription_info
|
1090
|
1101
|
this.sick_type = this.prescription_info.sick_type
|
1091
|
|
- if(this.sick_type == 0){
|
1092
|
|
- this.sick_type = ""
|
|
1102
|
+ if (this.sick_type == 0) {
|
|
1103
|
+ this.sick_type = ''
|
1093
|
1104
|
}
|
1094
|
1105
|
console.log(this.sick_type)
|
1095
|
1106
|
this.hisPatientInfo = response.data.data.patient
|
|
@@ -1242,8 +1253,8 @@ export default {
|
1242
|
1253
|
this.hisPatientInfo = response.data.data.patient
|
1243
|
1254
|
this.prescription_info = response.data.data.prescription_info
|
1244
|
1255
|
this.sick_type = this.prescription_info.sick_type
|
1245
|
|
- if(this.sick_type == 0){
|
1246
|
|
- this.sick_type = ""
|
|
1256
|
+ if (this.sick_type == 0) {
|
|
1257
|
+ this.sick_type = ''
|
1247
|
1258
|
}
|
1248
|
1259
|
console.log(this.sick_type)
|
1249
|
1260
|
this.setMonthPrescription(response.data.data.month_prescriptions)
|