Ver código fonte

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

28169 9 meses atrás
pai
commit
7cd296b77a

+ 98 - 58
src/xt_pages/Dialysisanalysis/summary/index.vue Ver arquivo

@@ -40,64 +40,68 @@
40 40
           color: '#606266'
41 41
         }"
42 42
                 style="width: 100%;">
43
-                <el-table-column type="index" label="序号" align="center" width="60">
44
-                </el-table-column>
45
-                <el-table-column
46
-                  prop="count"
47
-                  label="姓名"
48
-                >
49
-                  <template slot-scope="scope">
50
-                    {{ scope.row.name }}
51
-                  </template>
52
-                </el-table-column>
53
-                <el-table-column
54
-                  prop="count"
55
-                  label="月"
56
-                >
57
-                  <template slot-scope="scope">
58
-                    {{start_month.split("-")[1]}}
59
-                  </template>
60
-                </el-table-column>
61
-                <el-table-column
62
-                  prop="count"
63
-                  label="IPTH"
64
-                >
65
-                  <template slot-scope="scope">
66
-                    {{scope.row.ipth}}
67
-                  </template>
68
-                </el-table-column>
69
-                <el-table-column
70
-                  prop="count"
71
-                  label="血红蛋白"
72
-                >
73
-                  <template slot-scope="scope">
74
-                    {{scope.row.xhdb}}
75
-                  </template>
76
-                </el-table-column>
77
-                <el-table-column
78
-                  prop="count"
79
-                  label="血钾"
80
-                >
81
-                  <template slot-scope="scope">
82
-                    {{scope.row.xuejia}}
83
-                  </template>
84
-                </el-table-column>
85
-                <el-table-column
86
-                  prop="count"
87
-                  label="白蛋白"
88
-                >
89
-                  <template slot-scope="scope">
90
-                    {{scope.row.bdb}}
91
-                  </template>
92
-                </el-table-column>
93
-                <el-table-column
94
-                  prop="count"
95
-                  label="血磷"
96
-                >
97
-                  <template slot-scope="scope">
98
-                    {{scope.row.xuelin}}
99
-                  </template>
100
-                </el-table-column>
43
+<!--                <el-table-column type="index" label="序号" align="center" width="60">-->
44
+<!--                </el-table-column>-->
45
+<!--                <el-table-column-->
46
+<!--                  prop="count"-->
47
+<!--                  label="姓名"-->
48
+<!--                >-->
49
+<!--                  <template slot-scope="scope">-->
50
+<!--                    {{ scope.row.name }}-->
51
+<!--                  </template>-->
52
+<!--                </el-table-column>-->
53
+<!--                <el-table-column-->
54
+<!--                  prop="count"-->
55
+<!--                  label="月"-->
56
+<!--                >-->
57
+<!--                  <template slot-scope="scope">-->
58
+<!--                    {{start_month.split("-")[1]}}-->
59
+<!--                  </template>-->
60
+<!--                </el-table-column>-->
61
+<!--                <el-table-column-->
62
+<!--                  prop="count"-->
63
+<!--                  label="IPTH"-->
64
+<!--                >-->
65
+<!--                  <template slot-scope="scope">-->
66
+<!--                    {{scope.row.ipth}}-->
67
+<!--                  </template>-->
68
+<!--                </el-table-column>-->
69
+<!--                <el-table-column-->
70
+<!--                  prop="count"-->
71
+<!--                  label="血红蛋白"-->
72
+<!--                >-->
73
+<!--                  <template slot-scope="scope">-->
74
+<!--                    {{scope.row.xhdb}}-->
75
+<!--                  </template>-->
76
+<!--                </el-table-column>-->
77
+<!--                <el-table-column-->
78
+<!--                  prop="count"-->
79
+<!--                  label="血钾"-->
80
+<!--                >-->
81
+<!--                  <template slot-scope="scope">-->
82
+<!--                    {{scope.row.xuejia}}-->
83
+<!--                  </template>-->
84
+<!--                </el-table-column>-->
85
+<!--                <el-table-column-->
86
+<!--                  prop="count"-->
87
+<!--                  label="白蛋白"-->
88
+<!--                >-->
89
+<!--                  <template slot-scope="scope">-->
90
+<!--                    {{scope.row.bdb}}-->
91
+<!--                  </template>-->
92
+<!--                </el-table-column>-->
93
+<!--                <el-table-column-->
94
+<!--                  prop="count"-->
95
+<!--                  label="血磷"-->
96
+<!--                >-->
97
+<!--                  <template slot-scope="scope">-->
98
+<!--                    {{scope.row.xuelin}}-->
99
+<!--                  </template>-->
100
+<!--                </el-table-column>-->
101
+
102
+                  <el-table-column v-for="column in columns" :key="column.prop" :prop="column.prop?column.prop:''" :label="column.label?column.label:''">
103
+                  </el-table-column>
104
+
101 105
               </el-table>
102 106
             </div>
103 107
           </div>
@@ -119,7 +123,10 @@ export default {
119 123
         BreadCrumb,
120 124
     },
121 125
     data() {
126
+
122 127
         return {
128
+          tableData: [], // 数据源
129
+          columns: [], // 表头
123 130
           start_month:new Date(new Date().getFullYear(), new Date().getMonth()).toLocaleDateString('en-CA'),
124 131
           start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
125 132
           end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
@@ -201,6 +208,24 @@ export default {
201 208
         GetFiveInstatistisc(params).then(response => {
202 209
           if (response.data.state == 1) {
203 210
             this.patientTableData  =  response.data.data.list
211
+
212
+            this.columns = Object.keys(response.data.data.list[0]).map(key => ({
213
+              prop: key,
214
+              label: key // 可以自定义表头名称
215
+            }));
216
+            // this.tableData = response.data.data.list
217
+
218
+
219
+            this.tableData = response.data.data.list.map(row => {
220
+              let newRow = {};
221
+              for (let key in row) {
222
+                newRow[key] = row[key] === 0 ? '' : row[key];
223
+              }
224
+              return newRow;
225
+            });
226
+
227
+            // 将 JSON 数据设置为表格数据
228
+
204 229
           } else {
205 230
             this.$message.error(response.data.msg)
206 231
           }
@@ -219,6 +244,21 @@ export default {
219 244
     },created() {
220 245
       this.getData()
221 246
 
247
+  },computed: {
248
+    processedTableData() {
249
+      // 处理数据,将值为0的情况设为空字符串
250
+      return this.tableData.map(row => {
251
+        let newRow = {};
252
+        for (let key in row) {
253
+          if (row[key] === 0) {
254
+            newRow[key] = '';
255
+          } else {
256
+            newRow[key] = row[key];
257
+          }
258
+        }
259
+        return newRow;
260
+      });
261
+    }
222 262
   }
223 263
 }
224 264
 </script>

+ 35 - 33
src/xt_pages/dialysis/template/DialysisPrintOrderSop.vue Ver arquivo

@@ -8,7 +8,7 @@
8 8
         <table border="1" class="table-box" style="border-collapse: collapse;text-align: center;">
9 9
           <tbody>
10 10
             <tr>
11
-              <td width="80">治疗日期: <span>{{ year }}</span>年<span>{{ months }}</span>月<span>{{ day }}</span>日</td>
11
+              <td width="80" style="line-height:30px;">治疗日期: <span>{{ year }}</span>年<span>{{ months }}</span>月<span>{{ day }}</span>日</td>
12 12
             </tr>
13 13
           </tbody>
14 14
         </table>
@@ -16,7 +16,7 @@
16 16
           <tbody>
17 17
             <tr>
18 18
               <td colspan="3">
19
-                <div style="display: flex;">
19
+                <div style="display: flex;line-height:30px;">
20 20
                   <div style="flex: 1;">
21 21
                     姓 名:{{ patientInfo.name ? patientInfo.name : "/" }}
22 22
                   </div>
@@ -33,7 +33,7 @@
33 33
 
34 34
             <tr>
35 35
               <td colspan="3">
36
-                <div>
36
+                <div style="line-height:30px;">
37 37
                   上机前病情:
38 38
                   <label-box :isChecked="predialysis.symptom_before_dialysis==''?true :false" showValue="无特殊"></label-box>&nbsp;
39 39
                   <label-box :isChecked="predialysis.symptom_before_dialysis!=''?true :false" showValue="出现:"></label-box>
@@ -45,7 +45,7 @@
45 45
 
46 46
             <tr>
47 47
               <td colspan="2">
48
-                <div>
48
+                <div style="line-height:30px;">
49 49
                   治疗方式:
50 50
                   <label-box :isChecked="prescription.mode=='HD'?true :false" showValue="HD"></label-box>&nbsp;
51 51
                   <label-box :isChecked="prescription.mode=='HDF'?true :false" showValue="HDF"></label-box>
@@ -57,7 +57,7 @@
57 57
                   <span v-if="prescription.mode!='HDF' && prescription.mode!='HD'">{{ prescription.mode }}</span>
58 58
                 </div>
59 59
               </td>
60
-              <td >
60
+              <td style="line-height:30px;">
61 61
                 治疗时间:
62 62
                 {{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "0" }}小时
63 63
                 {{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}分
@@ -66,14 +66,14 @@
66 66
 
67 67
             <tr>
68 68
               <td colspan="3">
69
-                <div style="display: flex;">
69
+                <div style="display: flex;line-height:30px;">
70 70
                   <span>治疗抗凝:</span>
71 71
                   <span v-if="prescription.anticoagulant !='普通肝素' && prescription.anticoagulant!='无肝素' && prescription.anticoagulant!='枸橼酸'">
72
-                    {{ prescription.anticoagulant }} &nbsp;&nbsp; 
72
+                    {{ prescription.anticoagulant }} &nbsp;&nbsp;
73 73
                     {{prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "0"}}
74
-                  </span>U&nbsp;&nbsp; 
74
+                  </span>U&nbsp;&nbsp;
75 75
                   <!-- <span v-if="prescription.anticoagulant !='普通肝素' && prescription.anticoagulant!='无肝素' && prescription.anticoagulant!='枸橼酸'">
76
-                    
76
+
77 77
                   </span>U &nbsp;&nbsp; -->
78 78
                   <label-box :isChecked="prescription.anticoagulant=='普通肝素'?true :false" showValue="普通肝素:"></label-box>&nbsp;&nbsp;
79 79
                   <div style="display: inline-block;">
@@ -99,7 +99,7 @@
99 99
 
100 100
             <tr>
101 101
               <td colspan="2">
102
-                <div>
102
+                <div style="line-height:30px;">
103 103
                  <span>处方脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} </span>ml &nbsp;&nbsp;
104 104
                  <span>透析液流量: {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }} </span>ml/h
105 105
                 </div>
@@ -119,10 +119,10 @@
119 119
         </table>
120 120
         <table border="1" class="table-box" style="border-collapse: collapse;">
121 121
           <tr>
122
-            <td style="width: 20%;">透析机:
122
+            <td style="width: 20%; line-height: 30px;">透析机:
123 123
               {{predialysis.machine_type ? predialysis.machine_type : " "}}
124 124
             </td>
125
-            <td style="width: 30%;">
125
+            <td style="width: 30%;line-height: 30px;">
126 126
               透析(滤)器:
127 127
               {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "" }}
128 128
 
@@ -153,7 +153,7 @@
153 153
 
154 154
           <tr>
155 155
             <td colspan="3">
156
-              <div style="display: inline-block;">
156
+              <div style="display: inline-block;line-height: 30px;">
157 157
                 血管通路:
158 158
                 <label-box :isChecked="predialysis.blood_access_part_opera_name=='内瘘'?true :false" showValue="内瘘"></label-box>&nbsp;
159 159
                 <label-box :isChecked="predialysis.blood_access_part_opera_name=='长期静脉导管'?true :false" showValue="长期静脉导管"></label-box>&nbsp;
@@ -162,14 +162,14 @@
162 162
                             predialysis.blood_access_part_opera_name!='长期静脉导管' &&
163 163
                             predialysis.blood_access_part_opera_name!='临时静脉导管' &&
164 164
                             predialysis.blood_access_part_opera_name!=''?true :false" showValue="其它">
165
-                </label-box> 
165
+                </label-box>
166 166
               </div>&nbsp;&nbsp;
167
-              <div style="display: inline-block;">
167
+              <div style="display: inline-block;line-height: 30px;">
168 168
                 穿刺者:
169 169
                 <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) == ''">
170 170
                   {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) }}
171 171
                 </span>
172
-                <img class="es-img" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt="" srcset="" v-else />
172
+                <img class="es-img" style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt="" srcset="" v-else />
173 173
               </div>
174 174
             </td>
175 175
 
@@ -179,7 +179,7 @@
179 179
         <table border="1" class="table-box" style="border-collapse: collapse;text-align: center;">
180 180
           <tbody>
181 181
             <tr>
182
-              <td colspan="12">治疗过程记录</td>
182
+              <td colspan="12" style="padding: 5px;">治疗过程记录</td>
183 183
             </tr>
184 184
             <tr>
185 185
               <td rowspan="2">时间</td>
@@ -192,7 +192,7 @@
192 192
               <td>静脉压<br/>mmHg</td>
193 193
               <td>血流量<br/>ml/min</td>
194 194
               <td>脱水量<br/>ml</td>
195
-              <td>T<br/>℃</td>
195
+              <td>超滤率<br/>ml/h</td>
196 196
               <td>HR<br/>bpm</td>
197 197
               <td>R<br/>bpm</td>
198 198
               <td>BP<br/>mmHg</td>
@@ -201,7 +201,7 @@
201 201
               <td>记录</td>
202 202
             </tr>
203 203
             <tr v-for="(monitor, monindex) in monitors" :key="monindex">
204
-              <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
204
+              <td style="height: 30px;">{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
205 205
               <td>{{
206 206
                 monitor.transmembrane_pressure ? monitor.transmembrane_pressure : ""
207 207
                 }}
@@ -209,7 +209,7 @@
209 209
               <td>{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}</td>
210 210
               <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "0" }}</td>
211 211
               <td>{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : ""}}</td>
212
-              <td>{{ monitor.temperature ? monitor.temperature : "0" }}</td>
212
+              <td>{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "0" }}</td>
213 213
               <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "0" }}</td>
214 214
               <td>{{ monitor.breathing_rate ? monitor.breathing_rate : "0" }}</td>
215 215
               <td>{{
@@ -235,29 +235,29 @@
235 235
           <table border="1" class="table-box" style="border-collapse: collapse;text-align: center;">
236 236
             <tbody>
237 237
               <tr>
238
-                <td style="width:12%;height:25px">
239
-                  <p style="height:20px;line-height:20px">时间</p>
238
+                <td style="width:12%;height:25px;">
239
+                  <p style="height:30px;line-height:30px">时间</p>
240 240
                 </td>
241 241
                 <td style="width:120px;height:25px">
242
-                  <p style="height:20px;line-height:20px">医嘱执行记录</p>
242
+                  <p style="height:30px;line-height:30px">医嘱执行记录</p>
243 243
                 </td>
244 244
                 <td style="width:10%;height:25px">
245
-                  <p style="height:20px;line-height:20px">执行</p>
245
+                  <p style="height:30px;line-height:30px">执行</p>
246 246
                 </td>
247 247
                 <td style="width:10%;height:25px">
248
-                  <p style="height:20px;line-height:20px">核对</p>
248
+                  <p style="height:30px;line-height:30px">核对</p>
249 249
                 </td>
250
-                <td style="width:15%;height:25px">
251
-                  <p style="height:20px;line-height:20px">上次透后体重</p>
250
+                <td style="width:15%;height:27px">
251
+                  <p style="height:30px;line-height:30px">上次透后体重</p>
252 252
                 </td>
253
-                <td style="width:10%;height:25px">
253
+                <td style="width:10%;line-height:30px">
254 254
                   {{ assessmentafter.weight_after ? assessmentafter.weight_after : "0" }}kg
255 255
                 </td>
256 256
               </tr>
257 257
 
258 258
               <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
259
-                <td style="">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
260
-                <td>
259
+                <td style="height:30px;line-height:30px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
260
+                <td style="height:30px;line-height:30px">
261 261
                   <span v-if="advice.parent_id > 0">---></span>
262 262
                   <span>{{ advice.advice_name }}</span>
263 263
                   <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
@@ -266,11 +266,11 @@
266 266
                   <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
267 267
                   <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
268 268
                 </td>
269
-                <td>
269
+                <td style="height:30px;line-height:30px">
270 270
                   <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
271 271
                   <img style="height:40px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
272 272
                 </td>
273
-                <td>
273
+                <td style="height:30px;line-height:30px">
274 274
                   <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker) }}</span>
275 275
                   <img style="height:40px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else />
276 276
                 </td>
@@ -830,6 +830,8 @@ export default {
830 830
           }
831 831
 
832 832
           if (tableAdvice.length >= 6) {
833
+            var obj = { advice_name: "", start_time: "" };
834
+            tableAdvice.push(obj);
833 835
             this.tableAdvice = tableAdvice;
834 836
           }
835 837
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;
@@ -1377,7 +1379,7 @@ export default {
1377 1379
 
1378 1380
 .dialysis-print-order .table-box {
1379 1381
   width: 100%;
1380
-  line-height: 23px;
1382
+  line-height: 25px;
1381 1383
   font-size: 14px;
1382 1384
 
1383 1385
 }

+ 2 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue Ver arquivo

@@ -1061,6 +1061,8 @@ export default {
1061 1061
           }
1062 1062
 
1063 1063
           if (tableAdvice.length >= 6) {
1064
+            var obj = { advice_name: "", start_time: "" };
1065
+            tableAdvice.push(obj);
1064 1066
             this.tableAdvice = tableAdvice;
1065 1067
           }
1066 1068
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;

+ 3 - 3
src/xt_pages/outpatientCharges/allListPrint.vue Ver arquivo

@@ -11,12 +11,12 @@
11 11
       </el-button
12 12
       >
13 13
     </template>
14
-
14
+<!--  -->
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne  v-if="org_id != 10215  && org_id !=9671&&org_id !=9675&& org_id !=10515 && org_id !=10489 && org_id !=0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
16
+      <printOne  v-if="org_id != 10215  && org_id !=9671&&org_id !=9675&& org_id !=10515 && org_id !=10489  " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
17 17
       <summary-print v-if="org_id == 10215|| org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
18 18
       <printTwo v-if="org_id==10515 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printTwo>
19
-      <printthree  v-if="org_id == 10489 || org_id==0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printthree>
19
+      <printthree  v-if="org_id == 10489" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printthree>
20 20
 <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
21 21
     </div>
22 22
   </div>

+ 1 - 1
src/xt_pages/outpatientCharges/allListTemplate/printOne.vue Ver arquivo

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div id="allList-print" class="allList-print">
3
-    <div v-for='(i,index) in pageArr.length' :key="index" style="page-break-after: always;">
3
+    <div v-for='(i,index) in pageArr.length' :key="index">
4 4
       <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用汇总</div>
5 5
       <div class="allListInfo">
6 6
         <div>患者姓名:{{ patient.name }}</div>

+ 236 - 129
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Ver arquivo

@@ -1990,9 +1990,11 @@ export default {
1990 1990
               //   }
1991 1991
               //   tempAddition.push(obj)
1992 1992
               // }
1993
+              console.log("test2")
1994
+
1993 1995
 
1994 1996
               var preTime = nowTime
1995
-              if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
1997
+              if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375 && this.$store.getters.xt_user.org.id != 0) {
1996 1998
                 if (prescription.pre_time == 0) {
1997 1999
                   if (this.schedule.schedule_type == 1) {
1998 2000
                     if (this.org_id == 10028) {
@@ -2016,9 +2018,27 @@ export default {
2016 2018
                 } else {
2017 2019
                   preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2018 2020
                 }
2021
+
2019 2022
               } else {
2023
+                console.log("test")
2020 2024
                 if (prescription.pre_time == 0) {
2021
-                  preTime = nowTime
2025
+                  console.log("++=========")
2026
+                  console.log(nowTime.split(" ")[0])
2027
+                  console.log(this.record_date)
2028
+                  console.log("++=========")
2029
+
2030
+                  if(nowTime.split(" ")[0] != this.record_date){
2031
+                    // preTime = this.record_date
2032
+                    if(this.schedule.schedule_type == 1){
2033
+                      preTime = this.record_date + ' ' + '7:00'
2034
+                    }else if(this.schedule.schedule_type == 2){
2035
+                      preTime = this.record_date + ' ' + '11:00'
2036
+
2037
+                    }else{
2038
+                      preTime = this.record_date + ' ' + '17:00'
2039
+                    }
2040
+
2041
+                  }
2022 2042
                 } else {
2023 2043
                   preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2024 2044
                 }
@@ -2039,8 +2059,9 @@ export default {
2039 2059
               }
2040 2060
               this.prescriptions.push(obj)
2041 2061
             }
2042
-          } else {
2043 2062
 
2063
+          } else {
2064
+            console.log("----======0000000")
2044 2065
             if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2045 2066
               for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2046 2067
                 var prescription = response.data.data.sch_prescriptions[i]
@@ -2183,6 +2204,20 @@ export default {
2183 2204
                     preTime = this.record_date + ' ' + '17:00'
2184 2205
                   }
2185 2206
                 }
2207
+                console.log("++=========")
2208
+                console.log(nowTime.split(" ")[0])
2209
+                console.log(this.record_date)
2210
+                console.log("++=========")
2211
+                if(nowTime.split(" ")[0] != this.record_date){
2212
+                  if(this.schedule.schedule_type == 1){
2213
+                    preTime = this.record_date + ' ' + '7:00'
2214
+                  }else if(this.schedule.schedule_type == 2){
2215
+                    preTime = this.record_date + ' ' + '11:00'
2216
+
2217
+                  }else{
2218
+                    preTime = this.record_date + ' ' + '17:00'
2219
+                  }
2220
+                }
2186 2221
 
2187 2222
                 let index = i + 1
2188 2223
                 let obj = {
@@ -2217,6 +2252,25 @@ export default {
2217 2252
               }
2218 2253
 
2219 2254
             } else {
2255
+              console.log("----======1111111")
2256
+              console.log(nowTime.split(" ")[0])
2257
+              console.log(this.record_date)
2258
+
2259
+              if(nowTime.split(" ")[0] != this.record_date){
2260
+                // preTime = this.record_date
2261
+                if(this.schedule.schedule_type == 1){
2262
+                  preTime = this.record_date + ' ' + '7:00'
2263
+                }else if(this.schedule.schedule_type == 2){
2264
+                  preTime = this.record_date + ' ' + '11:00'
2265
+
2266
+                }else{
2267
+                  preTime = this.record_date + ' ' + '17:00'
2268
+                }
2269
+
2270
+              }else{
2271
+
2272
+                preTime = nowTime
2273
+              }
2220 2274
               let obj = {
2221 2275
                 id: 0,
2222 2276
                 name: '处方' + 1,
@@ -2224,7 +2278,7 @@ export default {
2224 2278
                 project: [],
2225 2279
                 addition: [],
2226 2280
                 order_status: 0,
2227
-                pre_time: nowTime,
2281
+                pre_time: preTime,
2228 2282
                 med_type: '',
2229 2283
                 is_medicine_status: false
2230 2284
               }
@@ -2523,7 +2577,17 @@ export default {
2523 2577
                       }
2524 2578
                     } else {
2525 2579
                       if (prescription.pre_time == 0) {
2526
-                        preTime = nowTime
2580
+                        if(nowTime.split(" ")[0] != this.record_date){
2581
+                          if(this.schedule.schedule_type == 1){
2582
+                            preTime = this.record_date + ' ' + '7:00'
2583
+                          }else if(this.schedule.schedule_type == 2){
2584
+                            preTime = this.record_date + ' ' + '11:00'
2585
+
2586
+                          }else{
2587
+                            preTime = this.record_date + ' ' + '17:00'
2588
+                          }
2589
+                        }
2590
+                        // preTime = nowTime
2527 2591
                       } else {
2528 2592
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2529 2593
                       }
@@ -2692,6 +2756,16 @@ export default {
2692 2756
                           preTime = this.record_date + ' ' + '17:00'
2693 2757
                         }
2694 2758
                       }
2759
+                      if(nowTime.split(" ")[0] != this.record_date){
2760
+                        if(this.schedule.schedule_type == 1){
2761
+                          preTime = this.record_date + ' ' + '7:00'
2762
+                        }else if(this.schedule.schedule_type == 2){
2763
+                          preTime = this.record_date + ' ' + '11:00'
2764
+
2765
+                        }else{
2766
+                          preTime = this.record_date + ' ' + '17:00'
2767
+                        }
2768
+                      }
2695 2769
 
2696 2770
                       let index = i + 1
2697 2771
                       let obj = {
@@ -2724,6 +2798,18 @@ export default {
2724 2798
                     }
2725 2799
 
2726 2800
                   } else {
2801
+                    if(nowTime.split(" ")[0] != this.record_date){
2802
+                      if(this.schedule.schedule_type == 1){
2803
+                        preTime = this.record_date + ' ' + '7:00'
2804
+                      }else if(this.schedule.schedule_type == 2){
2805
+                        preTime = this.record_date + ' ' + '11:00'
2806
+
2807
+                      }else{
2808
+                        preTime = this.record_date + ' ' + '17:00'
2809
+                      }
2810
+                    }else{
2811
+                      preTime = nowTime
2812
+                    }
2727 2813
                     let obj = {
2728 2814
                       id: 0,
2729 2815
                       name: '处方' + 1,
@@ -2731,7 +2817,7 @@ export default {
2731 2817
                       project: [],
2732 2818
                       addition: [],
2733 2819
                       order_status: 0,
2734
-                      pre_time: nowTime,
2820
+                      pre_time: preTime,
2735 2821
                       med_type: ''
2736 2822
 
2737 2823
                     }
@@ -3091,7 +3177,17 @@ export default {
3091 3177
                     var preTime = ''
3092 3178
 
3093 3179
                     if (prescription.pre_time == 0) {
3094
-                      preTime = nowTime
3180
+                      // preTime = nowTime
3181
+                      if(nowTime.split(" ")[0] != this.record_date){
3182
+                        if(this.schedule.schedule_type == 1){
3183
+                          preTime = this.record_date + ' ' + '7:00'
3184
+                        }else if(this.schedule.schedule_type == 2){
3185
+                          preTime = this.record_date + ' ' + '11:00'
3186
+
3187
+                        }else{
3188
+                          preTime = this.record_date + ' ' + '17:00'
3189
+                        }
3190
+                      }
3095 3191
                     } else {
3096 3192
                       preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
3097 3193
                     }
@@ -3232,6 +3328,16 @@ export default {
3232 3328
                       }
3233 3329
 
3234 3330
                       var preTime = nowTime
3331
+                      if(nowTime.split(" ")[0] != this.record_date){
3332
+                        if(this.schedule.schedule_type == 1){
3333
+                          preTime = this.record_date + ' ' + '7:00'
3334
+                        }else if(this.schedule.schedule_type == 2){
3335
+                          preTime = this.record_date + ' ' + '11:00'
3336
+
3337
+                        }else{
3338
+                          preTime = this.record_date + ' ' + '17:00'
3339
+                        }
3340
+                      }
3235 3341
 
3236 3342
                       let index = i + 1
3237 3343
                       let obj = {
@@ -3262,6 +3368,19 @@ export default {
3262 3368
                     }
3263 3369
 
3264 3370
                   } else {
3371
+                    if(nowTime.split(" ")[0] != this.record_date){
3372
+                      if(this.schedule.schedule_type == 1){
3373
+                        preTime = this.record_date + ' ' + '7:00'
3374
+                      }else if(this.schedule.schedule_type == 2){
3375
+                        preTime = this.record_date + ' ' + '11:00'
3376
+
3377
+                      }else{
3378
+                        preTime = this.record_date + ' ' + '17:00'
3379
+                      }
3380
+                    }else{
3381
+
3382
+                      preTime = nowTime
3383
+                    }
3265 3384
                     let obj = {
3266 3385
                       id: 0,
3267 3386
                       name: '处方' + 1,
@@ -3269,7 +3388,7 @@ export default {
3269 3388
                       project: [],
3270 3389
                       addition: [],
3271 3390
                       order_status: 0,
3272
-                      pre_time: nowTime,
3391
+                      pre_time: preTime,
3273 3392
                       med_type: ''
3274 3393
 
3275 3394
                     }
@@ -3614,7 +3733,17 @@ export default {
3614 3733
                   var preTime = ''
3615 3734
 
3616 3735
                   if (prescription.pre_time == 0) {
3617
-                    preTime = nowTime
3736
+                    // preTime = nowTime
3737
+                    if(nowTime.split(" ")[0] != this.record_date){
3738
+                      if(this.schedule.schedule_type == 1){
3739
+                        preTime = this.record_date + ' ' + '7:00'
3740
+                      }else if(this.schedule.schedule_type == 2){
3741
+                        preTime = this.record_date + ' ' + '11:00'
3742
+
3743
+                      }else{
3744
+                        preTime = this.record_date + ' ' + '17:00'
3745
+                      }
3746
+                    }
3618 3747
                   } else {
3619 3748
                     preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
3620 3749
                   }
@@ -3754,6 +3883,16 @@ export default {
3754 3883
                     }
3755 3884
 
3756 3885
                     var preTime = nowTime
3886
+                    if(nowTime.split(" ")[0] != this.record_date){
3887
+                      if(this.schedule.schedule_type == 1){
3888
+                        preTime = this.record_date + ' ' + '7:00'
3889
+                      }else if(this.schedule.schedule_type == 2){
3890
+                        preTime = this.record_date + ' ' + '11:00'
3891
+
3892
+                      }else{
3893
+                        preTime = this.record_date + ' ' + '17:00'
3894
+                      }
3895
+                    }
3757 3896
 
3758 3897
                     let index = i + 1
3759 3898
                     let obj = {
@@ -3785,6 +3924,19 @@ export default {
3785 3924
                   }
3786 3925
 
3787 3926
                 } else {
3927
+                  if(nowTime.split(" ")[0] != this.record_date){
3928
+                    if(this.schedule.schedule_type == 1){
3929
+                      preTime = this.record_date + ' ' + '7:00'
3930
+                    }else if(this.schedule.schedule_type == 2){
3931
+                      preTime = this.record_date + ' ' + '11:00'
3932
+
3933
+                    }else{
3934
+                      preTime = this.record_date + ' ' + '17:00'
3935
+                    }
3936
+                  }else{
3937
+
3938
+                    preTime = nowTime
3939
+                  }
3788 3940
                   let obj = {
3789 3941
                     id: 0,
3790 3942
                     name: '处方' + 1,
@@ -3792,7 +3944,7 @@ export default {
3792 3944
                     project: [],
3793 3945
                     addition: [],
3794 3946
                     order_status: 0,
3795
-                    pre_time: nowTime,
3947
+                    pre_time: preTime,
3796 3948
                     med_type: ''
3797 3949
 
3798 3950
                   }
@@ -4250,8 +4402,19 @@ export default {
4250 4402
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4251 4403
                       }
4252 4404
                     } else {
4405
+                      console.log("0---00000000000")
4253 4406
                       if (prescription.pre_time == 0) {
4254
-                        preTime = nowTime
4407
+                        // preTime = nowTime
4408
+                        if(nowTime.split(" ")[0] != this.record_date){
4409
+                          if(this.schedule.schedule_type == 1){
4410
+                            preTime = this.record_date + ' ' + '7:00'
4411
+                          }else if(this.schedule.schedule_type == 2){
4412
+                            preTime = this.record_date + ' ' + '11:00'
4413
+
4414
+                          }else{
4415
+                            preTime = this.record_date + ' ' + '17:00'
4416
+                          }
4417
+                        }
4255 4418
                       } else {
4256 4419
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4257 4420
                       }
@@ -4416,6 +4579,16 @@ export default {
4416 4579
                           preTime = this.record_date + ' ' + '17:00'
4417 4580
                         }
4418 4581
                       }
4582
+                      if(nowTime.split(" ")[0] != this.record_date){
4583
+                        if(this.schedule.schedule_type == 1){
4584
+                          preTime = this.record_date + ' ' + '7:00'
4585
+                        }else if(this.schedule.schedule_type == 2){
4586
+                          preTime = this.record_date + ' ' + '11:00'
4587
+
4588
+                        }else{
4589
+                          preTime = this.record_date + ' ' + '17:00'
4590
+                        }
4591
+                      }
4419 4592
 
4420 4593
                       let index = i + 1
4421 4594
                       let obj = {
@@ -4453,6 +4626,21 @@ export default {
4453 4626
                     }
4454 4627
 
4455 4628
                   } else {
4629
+
4630
+                    if(nowTime.split(" ")[0] != this.record_date){
4631
+                      if(this.schedule.schedule_type == 1){
4632
+                        preTime = this.record_date + ' ' + '7:00'
4633
+                      }else if(this.schedule.schedule_type == 2){
4634
+                        preTime = this.record_date + ' ' + '11:00'
4635
+
4636
+                      }else{
4637
+                        preTime = this.record_date + ' ' + '17:00'
4638
+                      }
4639
+                    }else{
4640
+                      preTime = nowTime
4641
+                    }
4642
+
4643
+
4456 4644
                     let obj = {
4457 4645
                       id: 0,
4458 4646
                       name: '处方' + 1,
@@ -4460,7 +4648,7 @@ export default {
4460 4648
                       project: [],
4461 4649
                       addition: [],
4462 4650
                       order_status: 0,
4463
-                      pre_time: nowTime,
4651
+                      pre_time: preTime,
4464 4652
                       med_type: ''
4465 4653
 
4466 4654
                     }
@@ -4472,122 +4660,6 @@ export default {
4472 4660
 
4473 4661
                     this.prescriptions.push(obj)
4474 4662
 
4475
-                    // if(response.data.data.count <= 1 ){
4476
-                    //   if(response.data.data.last_prescriptions.length == 0){
4477
-                    //     let obj = {
4478
-                    //       id: 0,
4479
-                    //       name: '处方' + 1,
4480
-                    //       advices: [],
4481
-                    //       project: [],
4482
-                    //       addition: [],
4483
-                    //       order_status: 0,
4484
-                    //       pre_time: nowTime,
4485
-                    //
4486
-                    //     };
4487
-                    //     this.prescriptions.push(obj)
4488
-                    //
4489
-                    //
4490
-                    //   }
4491
-                    //   else {
4492
-                    //     for (let i = 0; i < response.data.data.last_prescriptions.length; i++) {
4493
-                    //       var prescription = response.data.data.last_prescriptions[i];
4494
-                    //       let tempAdvice = [];
4495
-                    //       let tempProject = [];
4496
-                    //       let tempAddition = [];
4497
-                    //
4498
-                    //       //药品
4499
-                    //       for (let b = 0; b < prescription.advices.length; b++) {
4500
-                    //         let obj = {
4501
-                    //           advice_id:0,
4502
-                    //           drug_name: prescription.advices[b].advice_name,
4503
-                    //           single_dose: prescription.advices[b].single_dose,
4504
-                    //           delivery_way: prescription.advices[b].delivery_way,
4505
-                    //           execution_frequency: prescription.advices[b].execution_frequency,
4506
-                    //           retail_price: prescription.advices[b].price.toString(),
4507
-                    //           remark: prescription.advices[b].remark,
4508
-                    //           day: prescription.advices[b].day,
4509
-                    //           prescribing_number: prescription.advices[b].prescribing_number.toString(),
4510
-                    //           single_dose_unit: prescription.advices[b].single_dose_unit,
4511
-                    //           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
4512
-                    //           medical_insurance_number: prescription.advices[b].med_list_codg,
4513
-                    //           id: prescription.advices[b].drug_id,
4514
-                    //           drug:prescription.advices[b].drug
4515
-                    //
4516
-                    //         };
4517
-                    //         tempAdvice.push(obj)
4518
-                    //       }
4519
-                    //
4520
-                    //       //项目
4521
-                    //       for (let b = 0; b < prescription.project.length; b++) {
4522
-                    //         let obj = {
4523
-                    //           id:0,
4524
-                    //           project_id: prescription.project[b].project_id,
4525
-                    //           project_name: prescription.project[b].project.project_name,
4526
-                    //           statistical_classification: prescription.project[b].project.statistical_classification,
4527
-                    //           single_dose: prescription.project[b].single_dose,
4528
-                    //           delivery_way: prescription.project[b].delivery_way,
4529
-                    //           execution_frequency: prescription.project[b].execution_frequency,
4530
-                    //           number_days: prescription.project[b].day,
4531
-                    //           total: prescription.project[b].count.toString(),
4532
-                    //           price: prescription.project[b].price,
4533
-                    //           remark: prescription.project[b].remark,
4534
-                    //           medical_code: prescription.project[b].project.medical_code,
4535
-                    //           unit: prescription.project[b].project.unit,
4536
-                    //           type: prescription.project[b].type
4537
-                    //         };
4538
-                    //
4539
-                    //         if (prescription.project[b].type == 2) {
4540
-                    //           obj['statistical_classification'] = prescription.project[b].project.statistical_classification
4541
-                    //           obj['medical_code'] = prescription.project[b].project.medical_code
4542
-                    //           obj['project_name'] = prescription.project[b].project.project_name
4543
-                    //
4544
-                    //         } else if (prescription.project[b].type == 3) {
4545
-                    //           obj['statistical_classification'] = ""
4546
-                    //           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
4547
-                    //           obj['project_name'] = prescription.project[b].good_info.good_name
4548
-                    //         }
4549
-                    //         tempProject.push(obj)
4550
-                    //       }
4551
-                    //
4552
-                    //       //附加收费
4553
-                    //       for (let b = 0; b < prescription.addition.length; b++) {
4554
-                    //         let obj = {
4555
-                    //           item_name: prescription.addition[b].item_name,
4556
-                    //           price: prescription.addition[b].price,
4557
-                    //           count: prescription.addition[b].count,
4558
-                    //           item_id: prescription.addition[b].item_id,
4559
-                    //         };
4560
-                    //         tempAddition.push(obj)
4561
-                    //       }
4562
-                    //
4563
-                    //       var preTime = nowTime
4564
-                    //
4565
-                    //       let index = i + 1;
4566
-                    //       let obj = {
4567
-                    //         id: 0,
4568
-                    //         name: '处方' + index,
4569
-                    //         advices: tempAdvice,
4570
-                    //         project: tempProject,
4571
-                    //         addition: tempAddition,
4572
-                    //         order_status: 1,
4573
-                    //         pre_time: preTime
4574
-                    //       };
4575
-                    //       this.prescriptions.push(obj)
4576
-                    //     }
4577
-                    //   }
4578
-                    // }else{
4579
-                    //   let obj = {
4580
-                    //     id: 0,
4581
-                    //     name: '处方' + 1,
4582
-                    //     advices: [],
4583
-                    //     project: [],
4584
-                    //     addition: [],
4585
-                    //     order_status: 0,
4586
-                    //     pre_time: nowTime,
4587
-                    //
4588
-                    //   };
4589
-                    //   this.prescriptions.push(obj)
4590
-                    // }
4591 4663
                   }
4592 4664
                 }
4593 4665
                 console.log("jin5")
@@ -4935,6 +5007,16 @@ export default {
4935 5007
                     } else {
4936 5008
                       if (prescription.pre_time == 0) {
4937 5009
                         preTime = nowTime
5010
+                        if(nowTime.split(" ")[0] != this.record_date){
5011
+                          if(this.schedule.schedule_type == 1){
5012
+                            preTime = this.record_date + ' ' + '7:00'
5013
+                          }else if(this.schedule.schedule_type == 2){
5014
+                            preTime = this.record_date + ' ' + '11:00'
5015
+
5016
+                          }else{
5017
+                            preTime = this.record_date + ' ' + '17:00'
5018
+                          }
5019
+                        }
4938 5020
 
4939 5021
                       } else {
4940 5022
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
@@ -5101,6 +5183,16 @@ export default {
5101 5183
                           preTime = this.record_date + ' ' + '17:00'
5102 5184
                         }
5103 5185
                       }
5186
+                      if(nowTime.split(" ")[0] != this.record_date){
5187
+                        if(this.schedule.schedule_type == 1){
5188
+                          preTime = this.record_date + ' ' + '7:00'
5189
+                        }else if(this.schedule.schedule_type == 2){
5190
+                          preTime = this.record_date + ' ' + '11:00'
5191
+
5192
+                        }else{
5193
+                          preTime = this.record_date + ' ' + '17:00'
5194
+                        }
5195
+                      }
5104 5196
 
5105 5197
                       let index = i + 1
5106 5198
                       let obj = {
@@ -5138,6 +5230,21 @@ export default {
5138 5230
                     }
5139 5231
 
5140 5232
                   } else {
5233
+                    if(nowTime.split(" ")[0] != this.record_date){
5234
+                      if(this.schedule.schedule_type == 1){
5235
+                        preTime = this.record_date + ' ' + '7:00'
5236
+                      }else if(this.schedule.schedule_type == 2){
5237
+                        preTime = this.record_date + ' ' + '11:00'
5238
+
5239
+                      }else{
5240
+                        preTime = this.record_date + ' ' + '17:00'
5241
+                      }
5242
+                    }else{
5243
+
5244
+                      preTime = nowTime
5245
+                    }
5246
+
5247
+
5141 5248
                     let obj = {
5142 5249
                       id: 0,
5143 5250
                       name: '处方' + 1,
@@ -5145,7 +5252,7 @@ export default {
5145 5252
                       project: [],
5146 5253
                       addition: [],
5147 5254
                       order_status: 0,
5148
-                      pre_time: nowTime,
5255
+                      pre_time: preTime,
5149 5256
                       med_type: ''
5150 5257
 
5151 5258
                     }