Procházet zdrojové kódy

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

XMLWAN před 4 roky
rodič
revize
8d12ebd2d4

+ 4 - 1
src/xt_pages/outpatientCharges/allListPrint.vue Zobrazit soubor

@@ -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
@@ -266,7 +269,7 @@
266 269
       printThisPage() {
267 270
 
268 271
         const style =
269
-          '@media print {.allListTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;text-align:left;}.allListTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
272
+          '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;text-align:left;}.allListTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
270 273
         printJS({
271 274
           printable: 'allList-print',
272 275
           type: 'html',

+ 6 - 6
src/xt_pages/outpatientCharges/allListTemplate/printOne.vue Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
     <div id="allList-print" class="allList-print">
3 3
         <div v-for='(i,index) in pageArr.length' :key="index">
4
-            <div class="allListTitle">翁源沅胜透析中心费用汇总</div>
4
+            <div class="allListTitle">{{$store.getters.xt_user.org.org_name}}费用汇总</div>
5 5
             <div class="allListInfo">
6 6
             <div>患者姓名:{{patient.name}}</div>
7 7
             <div>透析号:{{patient.dialysis_no}}</div>
@@ -19,13 +19,13 @@
19 19
                     <td style="width:10%">数量</td>
20 20
                     <td style="width:10%">金额(元)</td>
21 21
                 </tr>
22
-                <template v-for='item in list.slice(index * 13,(index * 14) + pageArr[index])'>
22
+                <template v-for='item in list.slice(index * 13,(index * 13) + pageArr[index])'>
23 23
                     <tr v-if="item.is_total == 2">
24 24
                         <td style="width:10%">{{item.med_chrgitm_type}}</td>
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>
@@ -108,7 +108,7 @@
108 108
         }else if(this.list.length > 13){
109 109
             this.page = parseInt(this.list.length / 13)
110 110
             let num = this.list.length % 13
111
-            for (var i=0;i<this.page;i++){ 
111
+            for (var i=0;i<this.page;i++){
112 112
                 this.pageArr.push(13)
113 113
             }
114 114
             if(num != 0){
@@ -140,7 +140,7 @@
140 140
     padding:20px 10px;
141 141
 }
142 142
 .allListTitle{
143
-    font-size: 28px;
143
+    font-size: 24px;
144 144
     text-align: center;
145 145
     font-weight: bold;
146 146
     margin-bottom: 10px;
@@ -156,7 +156,7 @@
156 156
     text-align: center;
157 157
     border-collapse: collapse;
158 158
     line-height: 40px;
159
-    font-size: 16px;
159
+    font-size: 14px;
160 160
     border-color: #000;
161 161
     text-align: left;
162 162
 }

+ 5 - 1
src/xt_pages/outpatientCharges/listPrint.vue Zobrazit soubor

@@ -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) {
@@ -153,7 +157,7 @@
153 157
       printThisPage() {
154 158
 
155 159
         const style =
156
-          '@media print {.listTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
160
+          '@media print {.listTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
157 161
         printJS({
158 162
           printable: 'list-print',
159 163
           type: 'html',

+ 8 - 6
src/xt_pages/outpatientCharges/listTemplate/printOne.vue Zobrazit soubor

@@ -1,14 +1,16 @@
1 1
 <template>
2 2
     <div id="list-print" class="list-print">
3 3
         <div v-for='(i,index) in pageArr.length' :key="index">
4
-        <div class="listTitle">翁源沅胜透析中心费用清单</div>
4
+        <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用清单</div>
5 5
         <div class="listInfo">
6 6
 
7 7
             <div>患者姓名:{{patient.name}}</div>
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">
@@ -21,13 +23,13 @@
21 23
                 <td style="width:6%">数量</td>
22 24
                 <td style="width:10%">金额(元)</td>
23 25
             </tr>
24
-            <tr v-for="item in list.slice(index * 13,(index * 14) + pageArr[index])">
26
+            <tr v-for="item in list.slice(index * 13,(index * 13) + pageArr[index])">
25 27
                 <td style="width:19%">{{item.p_time}}</td>
26 28
                 <td style="width:10%">{{item.med_chrgitm_type}}</td>
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>
@@ -136,7 +138,7 @@
136 138
     padding:20px 10px;
137 139
 }
138 140
 .listTitle{
139
-    font-size: 28px;
141
+    font-size: 24px;
140 142
     text-align: center;
141 143
     font-weight: bold;
142 144
     margin-bottom: 10px;
@@ -152,7 +154,7 @@
152 154
     text-align: center;
153 155
     border-collapse: collapse;
154 156
     line-height: 40px;
155
-    font-size: 16px;
157
+    font-size: 14px;
156 158
     border-color: #000;
157 159
     text-align: left;
158 160
 }

+ 2 - 2
src/xt_pages/outpatientRegistration/registrationHistory.vue Zobrazit soubor

@@ -102,8 +102,8 @@
102 102
                 </el-table-column>
103 103
                 <el-table-column align="center" prop="name" label="操作" width="180">
104 104
                     <template slot-scope="scope">
105
-                      <el-button size="mini" type="primary" v-if=" scope.row.order.order_status == 0 && scope.row.record_date < startUnix" :disabled="true">已过号</el-button>
106
-                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date >= startUnix && scope.row.order.order_status != 2" @click ="toReturnPatient(scope.row.id)">退号</el-button>
105
+                      <el-button size="mini" type="primary" v-if=" scope.row.record_date < startUnix" :disabled="true">已过号</el-button>
106
+                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date >= startUnix" @click ="toReturnPatient(scope.row.id)">退号</el-button>
107 107
                       <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>
108 108
                       <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>
109 109
                       <el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>