Selaa lähdekoodia

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

csx 4 vuotta sitten
vanhempi
commit
bcb0cfd0c5

+ 3 - 0
src/xt_pages/outpatientCharges/allListPrint.vue Näytä tiedosto

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

+ 1 - 1
src/xt_pages/outpatientCharges/allListTemplate/printOne.vue Näytä tiedosto

25
                         <td style="width:50%">{{item.name}}</td>
25
                         <td style="width:50%">{{item.name}}</td>
26
                         <td style="width:10%">{{item.spec}}</td>
26
                         <td style="width:10%">{{item.spec}}</td>
27
                         <td style="width:10%">{{(item.price).toFixed(2)}}</td>
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
                         <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
29
                         <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
30
                     </tr>
30
                     </tr>
31
                     <tr>
31
                     <tr>

+ 4 - 0
src/xt_pages/outpatientCharges/listPrint.vue Näytä tiedosto

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

+ 4 - 2
src/xt_pages/outpatientCharges/listTemplate/printOne.vue Näytä tiedosto

8
             <div>透析号:{{patient.dialysis_no}}</div>
8
             <div>透析号:{{patient.dialysis_no}}</div>
9
             <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
9
             <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
10
             <div>年龄:{{patient.age}}  岁</div>
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
         </div>
15
         </div>
14
         <table class="listTable" border="1">
16
         <table class="listTable" border="1">
27
                 <td style="width:31%">{{item.name}}</td>
29
                 <td style="width:31%">{{item.name}}</td>
28
                 <td style="width:14%">{{item.spec}}</td>
30
                 <td style="width:14%">{{item.spec}}</td>
29
                 <td style="width:10%">{{(item.price).toFixed(2)}}</td>
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
                 <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
33
                 <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
32
             </tr>
34
             </tr>
33
         </table>
35
         </table>