Browse Source

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

XMLWAN 4 years ago
parent
commit
8d12ebd2d4

+ 4 - 1
src/xt_pages/outpatientCharges/allListPrint.vue View File

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
266
       printThisPage() {
269
       printThisPage() {
267
 
270
 
268
         const style =
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
         printJS({
273
         printJS({
271
           printable: 'allList-print',
274
           printable: 'allList-print',
272
           type: 'html',
275
           type: 'html',

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

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

+ 5 - 1
src/xt_pages/outpatientCharges/listPrint.vue View File

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) {
153
       printThisPage() {
157
       printThisPage() {
154
 
158
 
155
         const style =
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
         printJS({
161
         printJS({
158
           printable: 'list-print',
162
           printable: 'list-print',
159
           type: 'html',
163
           type: 'html',

+ 8 - 6
src/xt_pages/outpatientCharges/listTemplate/printOne.vue View File

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

+ 2 - 2
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

102
                 </el-table-column>
102
                 </el-table-column>
103
                 <el-table-column align="center" prop="name" label="操作" width="180">
103
                 <el-table-column align="center" prop="name" label="操作" width="180">
104
                     <template slot-scope="scope">
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
                       <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>
107
                       <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>
108
                       <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>
108
                       <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>
109
                       <el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>
109
                       <el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>