Browse Source

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

csx 4 years ago
parent
commit
bcb0cfd0c5

+ 3 - 0
src/xt_pages/outpatientCharges/allListPrint.vue View File

@@ -153,6 +153,8 @@
153 153
               if (new_drug_ids[i].id == details[a].advice.drug_id && new_drug_ids[i].price == details[a].advice.price) {
154 154
                 obj['name'] = details[a].advice.advice_name
155 155
                 obj['spec'] = details[a].advice.drug.drug_spec
156
+                obj['unit'] = details[a].advice.drug.max_unit
157
+
156 158
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
157 159
                 obj['price'] = parseFloat(details[a].pric)
158 160
                 obj['is_total'] = 2
@@ -172,6 +174,7 @@
172 174
               if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
173 175
                 obj['name'] = details[a].project.project.project_name
174 176
                 obj['spec'] = '1'
177
+                obj['unit'] = details[a].project.project.unit
175 178
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
176 179
                 obj['price'] = parseFloat(details[a].pric)
177 180
                 obj['is_total'] = 2

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

@@ -25,7 +25,7 @@
25 25
                         <td style="width:50%">{{item.name}}</td>
26 26
                         <td style="width:10%">{{item.spec}}</td>
27 27
                         <td style="width:10%">{{(item.price).toFixed(2)}}</td>
28
-                        <td style="width:10%">{{item.count}}</td>
28
+                        <td style="width:10%">{{item.count}}{{item.unit}}</td>
29 29
                         <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
30 30
                     </tr>
31 31
                     <tr>

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

@@ -74,12 +74,16 @@
74 74
                 obj['p_time'] = this.getTimes(infos.project.prescription.ctime)
75 75
                 obj['name'] = infos.project.project.project_name
76 76
                 obj['spec'] = 1
77
+                obj['unit'] = infos.project.project.unit
78
+
77 79
               }
78 80
 
79 81
               if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
80 82
                 obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
81 83
                 obj['name'] = infos.advice.advice_name
82 84
                 obj['spec'] = infos.advice.drug.drug_spec
85
+                obj['unit'] = infos.advice.drug.max_unit
86
+
83 87
               }
84 88
               this.list.push(obj)
85 89
               this.list.sort(function(a, b) {

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

@@ -8,7 +8,9 @@
8 8
             <div>透析号:{{patient.dialysis_no}}</div>
9 9
             <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
10 10
             <div>年龄:{{patient.age}}  岁</div>
11
-            <div>收费日期:{{getTimes(order.settle_start_time)}} 至 {{getTimes(order.settle_end_time)}}</div>
11
+            <div v-if="order.settle_type == 1">收费日期:{{getTimes(order.settle_accounts_date)}}</div>
12
+          <div v-if="order.settle_type == 2">收费日期:{{getTimes(order.settle_start_time)}} 至 {{getTimes(order.settle_end_time)}}</div>
13
+
12 14
 
13 15
         </div>
14 16
         <table class="listTable" border="1">
@@ -27,7 +29,7 @@
27 29
                 <td style="width:31%">{{item.name}}</td>
28 30
                 <td style="width:14%">{{item.spec}}</td>
29 31
                 <td style="width:10%">{{(item.price).toFixed(2)}}</td>
30
-                <td style="width:6%">{{item.count}}</td>
32
+                <td style="width:6%">{{item.count}}{{item.unit}}</td>
31 33
                 <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
32 34
             </tr>
33 35
         </table>