Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 2 years ago
parent
commit
0abf965e4a

+ 11 - 11
src/xt_pages/outpatientCharges/allListPrint.vue View File

101
               for (let i = 0; i < med_chrgitm_types.length; i++) {
101
               for (let i = 0; i < med_chrgitm_types.length; i++) {
102
                 let obj = {
102
                 let obj = {
103
                   total: 0,
103
                   total: 0,
104
-                  details: []
104
+                  details: [],
105
+                  is_total:0,
105
                 }
106
                 }
106
                 let tempDetails = []
107
                 let tempDetails = []
107
                 for (let b = 0; b < order_info.length; b++) {
108
                 for (let b = 0; b < order_info.length; b++) {
111
                 }
112
                 }
112
 
113
 
113
                 obj.details = this.setNewData(tempDetails)
114
                 obj.details = this.setNewData(tempDetails)
114
-                // obj.total = this.getTotal(obj.details)
115
-                //
116
-                // obj.details.push({
117
-                //   total: obj.total,
118
-                //   is_total: 1,
119
-                // })
120
                 this.list =  this.list.concat(obj.details)
115
                 this.list =  this.list.concat(obj.details)
121
               }
116
               }
122
 
117
 
118
+              let newobj = {}
119
+              newobj['total'] = this.order.medfee_sumamt
120
+              newobj['is_total'] = 1
121
+              this.list.push(newobj)
123
 
122
 
124
             }else{
123
             }else{
125
 
124
 
210
             for (let a = 0; a < details.length; a++) {
209
             for (let a = 0; a < details.length; a++) {
211
               if (new_drug_ids[i].id == details[a].advice.drug_id && new_drug_ids[i].price == details[a].advice.price) {
210
               if (new_drug_ids[i].id == details[a].advice.drug_id && new_drug_ids[i].price == details[a].advice.price) {
212
                 obj['name'] = details[a].advice.advice_name
211
                 obj['name'] = details[a].advice.advice_name
213
-                obj['spec'] = details[a].advice.drug.drug_spec
212
+                // obj['spec'] = details[a].advice.drug.drug_spec
213
+                obj['spec'] =   details[a].advice.drug.dose +   details[a].advice.drug.dose_unit+"*" +  details[a].advice.drug.min_number +   details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
214
                 obj['unit'] = details[a].advice.drug.min_unit
214
                 obj['unit'] = details[a].advice.drug.min_unit
215
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
215
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
216
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
216
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
232
               if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
232
               if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
233
                if( details[a].project.type == 2){
233
                if( details[a].project.type == 2){
234
                  obj['name'] = details[a].project.project.project_name
234
                  obj['name'] = details[a].project.project.project_name
235
-                 obj['spec'] = ''
235
+                 obj['spec'] = ''
236
                  obj['unit'] = details[a].project.project.unit
236
                  obj['unit'] = details[a].project.project.unit
237
 
237
 
238
 
238
 
239
                }else if(details[a].project.type == 3){
239
                }else if(details[a].project.type == 3){
240
                  obj['name'] = details[a].project.good_info.good_name
240
                  obj['name'] = details[a].project.good_info.good_name
241
-                 obj['spec'] = details[a].project.good_info.specification_name
242
-                 obj['unit'] = this.getGoodUnit( details[a].project.good_info.good_unit)
241
+                 obj['spec'] = ''
242
+                 obj['unit'] = details[a].project.good_info.packing_unit
243
 
243
 
244
                }
244
                }
245
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
245
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)

+ 4 - 4
src/xt_pages/outpatientCharges/allListTemplate/printOne.vue View File

150
 }
150
 }
151
 
151
 
152
 .allListTitle {
152
 .allListTitle {
153
-  font-size: 24px;
153
+  font-size: 22px;
154
   text-align: center;
154
   text-align: center;
155
   font-weight: bold;
155
   font-weight: bold;
156
   margin-bottom: 10px;
156
   margin-bottom: 10px;
158
 
158
 
159
 .allListInfo {
159
 .allListInfo {
160
   display: flex;
160
   display: flex;
161
-  font-size: 16px;
161
+  font-size: 14px;
162
   justify-content: space-between;
162
   justify-content: space-between;
163
   margin: 10px 0;
163
   margin: 10px 0;
164
 }
164
 }
168
   text-align: center;
168
   text-align: center;
169
   border-collapse: collapse;
169
   border-collapse: collapse;
170
   line-height: 20px;
170
   line-height: 20px;
171
-  font-size: 14px;
171
+  font-size: 12px;
172
   border-color: #000;
172
   border-color: #000;
173
   text-align: left;
173
   text-align: left;
174
 }
174
 }
178
 }
178
 }
179
 
179
 
180
 .tableBottom {
180
 .tableBottom {
181
-  font-size: 16px;
181
+  font-size: 14px;
182
   display: flex;
182
   display: flex;
183
   margin-top: 20px;
183
   margin-top: 20px;
184
 }
184
 }

+ 19 - 11
src/xt_pages/outpatientCharges/allListTemplate/summaryPrint.vue View File

16
 
16
 
17
     <div class="allListInfo">
17
     <div class="allListInfo">
18
       <div>西药:&nbsp;&nbsp;&nbsp;{{order.westernMedicineCostTotal?order.westernMedicineCostTotal:''}}</div>
18
       <div>西药:&nbsp;&nbsp;&nbsp;{{order.westernMedicineCostTotal?order.westernMedicineCostTotal:''}}</div>
19
-      <div >中成药:{{order.chineseTraditionalMedicineCostTotal?order.chineseTraditionalMedicineCostTotal:''}}</div>
20
-      <div >中草药:</div>
21
-      <div >检查费:{{order.checkCostTotal?order.checkCostTotal:''}}</div>
19
+      <div>中成药:{{order.chineseTraditionalMedicineCostTotal?order.chineseTraditionalMedicineCostTotal:''}}</div>
20
+      <div>中草药:</div>
21
+      <div>检查费:{{order.checkCostTotal?order.checkCostTotal:''}}</div>
22
     </div>
22
     </div>
23
 
23
 
24
 
24
 
25
     <div class="allListInfo">
25
     <div class="allListInfo">
26
-      <div >输氧费:</div>
26
+      <div>输氧费:</div>
27
       <div>手术费:{{order.operationCostTotal?order.operationCostTotal:''}}</div>
27
       <div>手术费:{{order.operationCostTotal?order.operationCostTotal:''}}</div>
28
-      <div >化验费:{{order.laboratoryCostTotal?order.laboratoryCostTotal:''}}</div>
28
+      <div>化验费:{{order.laboratoryCostTotal?order.laboratoryCostTotal:''}}</div>
29
       <div>输血费:</div>
29
       <div>输血费:</div>
30
     </div>
30
     </div>
31
 
31
 
87
       <tr>
87
       <tr>
88
         <td style="width:10%">费用类别</td>
88
         <td style="width:10%">费用类别</td>
89
         <td style="width:35%">项目名称</td>
89
         <td style="width:35%">项目名称</td>
90
-        <td style="width:15%">规格</td>
91
         <td style="width:5%">单位</td>
90
         <td style="width:5%">单位</td>
92
         <td style="width:10%">数量</td>
91
         <td style="width:10%">数量</td>
93
         <td style="width:10%">单价</td>
92
         <td style="width:10%">单价</td>
96
 
95
 
97
       </tr>
96
       </tr>
98
       <template v-for='(item,index) in list'>
97
       <template v-for='(item,index) in list'>
99
-        <tr>
98
+        <tr v-if="item.is_total == 2">
100
           <td style="width:10%">{{ item.med_chrgitm_type }}</td>
99
           <td style="width:10%">{{ item.med_chrgitm_type }}</td>
101
-          <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ item.name }}</td>
102
-          <td style="width:15%">{{ item.spec }}</td>
100
+          <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ item.name }}{{ item.spec }}</td>
103
           <td style="width:5%">{{ item.unit }}</td>
101
           <td style="width:5%">{{ item.unit }}</td>
104
-          <td style="width:10%">{{ item.count }}</td>
105
-          <td style="width:10%;text-align:right;">{{ item.price }}</td>
102
+          <td style="width:10%;text-align:right;">{{ item.count }}</td>
103
+          <td style="width:10%;text-align:right;">{{ item.price.toFixed(4) }}</td>
106
           <td style="width:10%;text-align:right;">{{ (item.price * item.count).toFixed(2) }}</td>
104
           <td style="width:10%;text-align:right;">{{ (item.price * item.count).toFixed(2) }}</td>
107
           <td style="width:10%">{{ item.medicine_insurance_kind }}</td>
105
           <td style="width:10%">{{ item.medicine_insurance_kind }}</td>
108
 
106
 
109
         </tr>
107
         </tr>
108
+        <tr v-if="item.is_total == 1">
109
+          <td style="width:10%"></td>
110
+          <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">合计</td>
111
+          <td style="width:5%"></td>
112
+          <td style="width:10%;text-align:right;"></td>
113
+          <td style="width:10%;text-align:right;"></td>
114
+          <td style="width:10%;text-align:right;">{{ item.total }}</td>
115
+          <td style="width:10%"></td>
116
+
117
+        </tr>
110
       </template>
118
       </template>
111
     </table>
119
     </table>
112
 
120
 

+ 18 - 4
src/xt_pages/outpatientCharges/listPrint.vue View File

100
               var infos = response.data.data.order_info[i]
100
               var infos = response.data.data.order_info[i]
101
               let obj = {
101
               let obj = {
102
                 med_chrgitm_type: this.getType(infos.med_chrgitm_type),
102
                 med_chrgitm_type: this.getType(infos.med_chrgitm_type),
103
-                price: infos.pric,
103
+                price: infos.pric.toFixed(4),
104
                 count: infos.cnt
104
                 count: infos.cnt
105
               }
105
               }
106
               console.log(infos)
106
               console.log(infos)
112
                   obj['name'] = infos.project.project.project_name
112
                   obj['name'] = infos.project.project.project_name
113
                   obj['spec'] = ''
113
                   obj['spec'] = ''
114
                   obj['unit'] =  infos.project.project.unit
114
                   obj['unit'] =  infos.project.project.unit
115
+                  obj['is_total']= 0
115
 
116
 
116
 
117
 
117
                 }else if (infos.project.type == 3){
118
                 }else if (infos.project.type == 3){
118
                   obj['name'] = infos.project.good_info.good_name
119
                   obj['name'] = infos.project.good_info.good_name
119
-                  obj['spec'] = infos.project.good_info.specification_name
120
-                  obj['unit'] = this.getGoodUnit(infos.project.good_info.good_unit)
120
+                  obj['spec'] = ""
121
+                  obj['unit'] = infos.project.good_info.packing_unit
122
+                  obj['is_total']= 0
121
 
123
 
122
                 }
124
                 }
123
 
125
 
125
 
127
 
126
               if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
128
               if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
127
                 obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
129
                 obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
128
-                obj['name'] = infos.advice.advice_name
130
+                obj['name'] = infos.advice.drug.drug_name
129
                 obj['unit'] = infos.advice.drug.min_unit
131
                 obj['unit'] = infos.advice.drug.min_unit
130
                 obj['feedetl_sn'] =  infos.feedetl_sn
132
                 obj['feedetl_sn'] =  infos.feedetl_sn
133
+                obj['spec'] =  infos.advice.drug.dose +  infos.advice.drug.dose_unit+"*" + infos.advice.drug.min_number +  infos.advice.drug.min_unit+"/"+infos.advice.drug.max_unit
134
+                obj['is_total']= 0
135
+
136
+                // v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>{{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
131
 
137
 
132
 
138
 
133
               }
139
               }
136
                 return b.p_time < a.p_time ? 1 : -1
142
                 return b.p_time < a.p_time ? 1 : -1
137
               })
143
               })
138
 
144
 
145
+
139
             }
146
             }
147
+
148
+
149
+            let newObj = {}
150
+            newObj['name'] = "合计"
151
+            newObj['price']= this.order.medfee_sumamt
152
+            newObj['is_total']= 1
153
+            this.list.push(newObj)
140
           }
154
           }
141
         })
155
         })
142
       },
156
       },

+ 26 - 18
src/xt_pages/outpatientCharges/listTemplate/listPrintTwo.vue View File

2
   <div id="allList-print" class="allList-print">
2
   <div id="allList-print" class="allList-print">
3
       <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用清单</div>
3
       <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用清单</div>
4
       <div class="allListInfo">
4
       <div class="allListInfo">
5
-        <div>患者姓名:{{ patient.name }}</div>
6
-        <div>性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
7
-        <div>结算类型:{{order.is_medicine_insurance == 1 ?'医保':'自费'}}</div>
8
-        <div>发票号码:</div>
5
+        <div style="text-align:left;">患者姓名:{{ patient.name }}</div>
6
+        <div style="text-align:left;padding-left: -20px">性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
7
+        <div style="text-align:left;">结算类型:{{order.is_medicine_insurance == 1 ?'医保':'自费'}}</div>
8
+<!--        <div>发票号码:</div>-->
9
       </div>
9
       </div>
10
 
10
 
11
     <div class="allListInfo">
11
     <div class="allListInfo">
12
-        <div>住院/门诊号:{{order.mdtrt_id}}</div>
13
-        <div>科室:血透</div>
14
-        <div>就诊流水号:{{order.mdtrt_id}}</div>
15
-        <div>总费用:{{order.medfee_sumamt}}</div>
12
+        <div style="text-align:left;">住院/门诊号:{{order.mdtrt_id}}</div>
13
+        <div style="text-align:left;">科室:血透</div>
14
+        <div style="text-align:left;">就诊流水号:{{order.mdtrt_id}}</div>
16
     </div>
15
     </div>
17
 
16
 
18
       <div class="allListInfo">
17
       <div class="allListInfo">
19
-
20
-      <div>个人支付:{{order.psn_part_amt}}</div>
21
-        <div>基金支付记账:{{order.fund_pay_sumamt}}</div>
22
-        <div>补充医疗支付记账:0.00</div>
23
-        <div>救助支付金额:{{order.maf_pay}}</div>
18
+        <div style="text-align:left;">总费用:{{order.medfee_sumamt}}</div>
19
+        <div style="text-align:left;">个人支付:{{order.psn_part_amt}}</div>
20
+        <div style="text-align:left;">基金支付记账:{{order.fund_pay_sumamt}}</div>
21
+        <div style="text-align:left;">补充医疗支付记账:0.00</div>
22
+        <div style="text-align:left;">救助支付金额:{{order.maf_pay}}</div>
24
       </div>
23
       </div>
25
       <table class="allListTable" border="1">
24
       <table class="allListTable" border="1">
26
         <tr>
25
         <tr>
27
           <td style="width:5%">序号</td>
26
           <td style="width:5%">序号</td>
28
           <td style="width:15%">处方日期</td>
27
           <td style="width:15%">处方日期</td>
29
           <td style="width:10%">费用编号</td>
28
           <td style="width:10%">费用编号</td>
30
-          <td style="width:30%">费用名称</td>
31
-          <td style="width:10%">规格</td>
29
+          <td style="width:40%">费用名称</td>
32
           <td style="width:5%">单位</td>
30
           <td style="width:5%">单位</td>
33
           <td style="width:5%">数量</td>
31
           <td style="width:5%">数量</td>
34
           <td style="width:10%">单价</td>
32
           <td style="width:10%">单价</td>
35
           <td style="width:10%">金额</td>
33
           <td style="width:10%">金额</td>
36
         </tr>
34
         </tr>
37
         <template v-for='(item,index) in list'>
35
         <template v-for='(item,index) in list'>
38
-          <tr>
36
+          <tr v-if="item.is_total == 0">
39
             <td style="width:5%">{{index + 1}}</td>
37
             <td style="width:5%">{{index + 1}}</td>
40
             <td style="width:15%">{{item.p_time}}</td>
38
             <td style="width:15%">{{item.p_time}}</td>
41
             <td style="width:10%">{{item.feedetl_sn.split("-")[2]}}</td>
39
             <td style="width:10%">{{item.feedetl_sn.split("-")[2]}}</td>
42
-            <td style="width:40%;white-space: nowrap;overflow: hidden;">{{item.name}}/{{item.spec}}</td>
40
+            <td style="width:30%;white-space: nowrap;overflow: hidden;">{{item.name}}{{item.spec}}</td>
43
             <td style="width:5%">{{item.unit}}</td>
41
             <td style="width:5%">{{item.unit}}</td>
44
-            <td style="width:5%">{{ item.count }}</td>
42
+            <td style="width:5%;text-align:right;">{{ item.count }}</td>
45
             <td style="width:10%;text-align:right;">{{ item.price }}</td>
43
             <td style="width:10%;text-align:right;">{{ item.price }}</td>
46
             <td style="width:10%;text-align:right;">{{ (item.price * item.count).toFixed(2) }}</td>
44
             <td style="width:10%;text-align:right;">{{ (item.price * item.count).toFixed(2) }}</td>
47
           </tr>
45
           </tr>
46
+          <tr v-if="item.is_total == 1">
47
+            <td style="width:5%"></td>
48
+            <td style="width:15%"></td>
49
+            <td style="width:10%"></td>
50
+            <td style="width:30%;white-space: nowrap;overflow: hidden;">{{item.name}}</td>
51
+            <td style="width:5%"></td>
52
+            <td style="width:5%"></td>
53
+            <td style="width:10%;text-align:right;"></td>
54
+            <td style="width:10%;text-align:right;">{{ item.price}}</td>
55
+          </tr>
48
         </template>
56
         </template>
49
       </table>
57
       </table>
50
 
58
 

+ 14 - 14
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

85
 
85
 
86
 
86
 
87
           <div>
87
           <div>
88
-            <el-button size="small"
89
-                       @click="openZb(1)"
90
-                       type="primary">登记
91
-            </el-button>
92
-
93
-            <el-button  size="small"
94
-                       @click="openZb(2)"
95
-                       type="primary">记账
96
-            </el-button>
97
-
98
-            <el-button   size="small"
99
-                       @click="openZb(3)"
100
-                       type="primary">撤销记账
101
-            </el-button>
88
+<!--            <el-button size="small"-->
89
+<!--                       @click="openZb(1)"-->
90
+<!--                       type="primary">登记-->
91
+<!--            </el-button>-->
92
+
93
+<!--            <el-button  size="small"-->
94
+<!--                       @click="openZb(2)"-->
95
+<!--                       type="primary">记账-->
96
+<!--            </el-button>-->
97
+
98
+<!--            <el-button   size="small"-->
99
+<!--                       @click="openZb(3)"-->
100
+<!--                       type="primary">撤销记账-->
101
+<!--            </el-button>-->
102
 
102
 
103
 
103
 
104
             <el-button v-loading="loadingone" size="small"
104
             <el-button v-loading="loadingone" size="small"