Browse Source

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

28169 9 months ago
parent
commit
7cd296b77a

+ 98 - 58
src/xt_pages/Dialysisanalysis/summary/index.vue View File

40
           color: '#606266'
40
           color: '#606266'
41
         }"
41
         }"
42
                 style="width: 100%;">
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
               </el-table>
105
               </el-table>
102
             </div>
106
             </div>
103
           </div>
107
           </div>
119
         BreadCrumb,
123
         BreadCrumb,
120
     },
124
     },
121
     data() {
125
     data() {
126
+
122
         return {
127
         return {
128
+          tableData: [], // 数据源
129
+          columns: [], // 表头
123
           start_month:new Date(new Date().getFullYear(), new Date().getMonth()).toLocaleDateString('en-CA'),
130
           start_month:new Date(new Date().getFullYear(), new Date().getMonth()).toLocaleDateString('en-CA'),
124
           start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
131
           start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
125
           end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
132
           end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
201
         GetFiveInstatistisc(params).then(response => {
208
         GetFiveInstatistisc(params).then(response => {
202
           if (response.data.state == 1) {
209
           if (response.data.state == 1) {
203
             this.patientTableData  =  response.data.data.list
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
           } else {
229
           } else {
205
             this.$message.error(response.data.msg)
230
             this.$message.error(response.data.msg)
206
           }
231
           }
219
     },created() {
244
     },created() {
220
       this.getData()
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
 </script>
264
 </script>

+ 35 - 33
src/xt_pages/dialysis/template/DialysisPrintOrderSop.vue View File

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

+ 2 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue View File

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

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

11
       </el-button
11
       </el-button
12
       >
12
       >
13
     </template>
13
     </template>
14
-
14
+<!--  -->
15
     <div class='dialysisPage' style="padding-top:40px;">
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
       <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>
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
       <printTwo v-if="org_id==10515 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printTwo>
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
 <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
20
 <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
21
     </div>
21
     </div>
22
   </div>
22
   </div>

+ 1 - 1
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" style="page-break-after: always;">
3
+    <div v-for='(i,index) in pageArr.length' :key="index">
4
       <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用汇总</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>

+ 236 - 129
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

1990
               //   }
1990
               //   }
1991
               //   tempAddition.push(obj)
1991
               //   tempAddition.push(obj)
1992
               // }
1992
               // }
1993
+              console.log("test2")
1994
+
1993
 
1995
 
1994
               var preTime = nowTime
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
                 if (prescription.pre_time == 0) {
1998
                 if (prescription.pre_time == 0) {
1997
                   if (this.schedule.schedule_type == 1) {
1999
                   if (this.schedule.schedule_type == 1) {
1998
                     if (this.org_id == 10028) {
2000
                     if (this.org_id == 10028) {
2016
                 } else {
2018
                 } else {
2017
                   preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2019
                   preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2018
                 }
2020
                 }
2021
+
2019
               } else {
2022
               } else {
2023
+                console.log("test")
2020
                 if (prescription.pre_time == 0) {
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
                 } else {
2042
                 } else {
2023
                   preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2043
                   preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2024
                 }
2044
                 }
2039
               }
2059
               }
2040
               this.prescriptions.push(obj)
2060
               this.prescriptions.push(obj)
2041
             }
2061
             }
2042
-          } else {
2043
 
2062
 
2063
+          } else {
2064
+            console.log("----======0000000")
2044
             if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2065
             if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2045
               for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2066
               for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2046
                 var prescription = response.data.data.sch_prescriptions[i]
2067
                 var prescription = response.data.data.sch_prescriptions[i]
2183
                     preTime = this.record_date + ' ' + '17:00'
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
                 let index = i + 1
2222
                 let index = i + 1
2188
                 let obj = {
2223
                 let obj = {
2217
               }
2252
               }
2218
 
2253
 
2219
             } else {
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
               let obj = {
2274
               let obj = {
2221
                 id: 0,
2275
                 id: 0,
2222
                 name: '处方' + 1,
2276
                 name: '处方' + 1,
2224
                 project: [],
2278
                 project: [],
2225
                 addition: [],
2279
                 addition: [],
2226
                 order_status: 0,
2280
                 order_status: 0,
2227
-                pre_time: nowTime,
2281
+                pre_time: preTime,
2228
                 med_type: '',
2282
                 med_type: '',
2229
                 is_medicine_status: false
2283
                 is_medicine_status: false
2230
               }
2284
               }
2523
                       }
2577
                       }
2524
                     } else {
2578
                     } else {
2525
                       if (prescription.pre_time == 0) {
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
                       } else {
2591
                       } else {
2528
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2592
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2529
                       }
2593
                       }
2692
                           preTime = this.record_date + ' ' + '17:00'
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
                       let index = i + 1
2770
                       let index = i + 1
2697
                       let obj = {
2771
                       let obj = {
2724
                     }
2798
                     }
2725
 
2799
 
2726
                   } else {
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
                     let obj = {
2813
                     let obj = {
2728
                       id: 0,
2814
                       id: 0,
2729
                       name: '处方' + 1,
2815
                       name: '处方' + 1,
2731
                       project: [],
2817
                       project: [],
2732
                       addition: [],
2818
                       addition: [],
2733
                       order_status: 0,
2819
                       order_status: 0,
2734
-                      pre_time: nowTime,
2820
+                      pre_time: preTime,
2735
                       med_type: ''
2821
                       med_type: ''
2736
 
2822
 
2737
                     }
2823
                     }
3091
                     var preTime = ''
3177
                     var preTime = ''
3092
 
3178
 
3093
                     if (prescription.pre_time == 0) {
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
                     } else {
3191
                     } else {
3096
                       preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
3192
                       preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
3097
                     }
3193
                     }
3232
                       }
3328
                       }
3233
 
3329
 
3234
                       var preTime = nowTime
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
                       let index = i + 1
3342
                       let index = i + 1
3237
                       let obj = {
3343
                       let obj = {
3262
                     }
3368
                     }
3263
 
3369
 
3264
                   } else {
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
                     let obj = {
3384
                     let obj = {
3266
                       id: 0,
3385
                       id: 0,
3267
                       name: '处方' + 1,
3386
                       name: '处方' + 1,
3269
                       project: [],
3388
                       project: [],
3270
                       addition: [],
3389
                       addition: [],
3271
                       order_status: 0,
3390
                       order_status: 0,
3272
-                      pre_time: nowTime,
3391
+                      pre_time: preTime,
3273
                       med_type: ''
3392
                       med_type: ''
3274
 
3393
 
3275
                     }
3394
                     }
3614
                   var preTime = ''
3733
                   var preTime = ''
3615
 
3734
 
3616
                   if (prescription.pre_time == 0) {
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
                   } else {
3747
                   } else {
3619
                     preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
3748
                     preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
3620
                   }
3749
                   }
3754
                     }
3883
                     }
3755
 
3884
 
3756
                     var preTime = nowTime
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
                     let index = i + 1
3897
                     let index = i + 1
3759
                     let obj = {
3898
                     let obj = {
3785
                   }
3924
                   }
3786
 
3925
 
3787
                 } else {
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
                   let obj = {
3940
                   let obj = {
3789
                     id: 0,
3941
                     id: 0,
3790
                     name: '处方' + 1,
3942
                     name: '处方' + 1,
3792
                     project: [],
3944
                     project: [],
3793
                     addition: [],
3945
                     addition: [],
3794
                     order_status: 0,
3946
                     order_status: 0,
3795
-                    pre_time: nowTime,
3947
+                    pre_time: preTime,
3796
                     med_type: ''
3948
                     med_type: ''
3797
 
3949
 
3798
                   }
3950
                   }
4250
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4402
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4251
                       }
4403
                       }
4252
                     } else {
4404
                     } else {
4405
+                      console.log("0---00000000000")
4253
                       if (prescription.pre_time == 0) {
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
                       } else {
4418
                       } else {
4256
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4419
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4257
                       }
4420
                       }
4416
                           preTime = this.record_date + ' ' + '17:00'
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
                       let index = i + 1
4593
                       let index = i + 1
4421
                       let obj = {
4594
                       let obj = {
4453
                     }
4626
                     }
4454
 
4627
 
4455
                   } else {
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
                     let obj = {
4644
                     let obj = {
4457
                       id: 0,
4645
                       id: 0,
4458
                       name: '处方' + 1,
4646
                       name: '处方' + 1,
4460
                       project: [],
4648
                       project: [],
4461
                       addition: [],
4649
                       addition: [],
4462
                       order_status: 0,
4650
                       order_status: 0,
4463
-                      pre_time: nowTime,
4651
+                      pre_time: preTime,
4464
                       med_type: ''
4652
                       med_type: ''
4465
 
4653
 
4466
                     }
4654
                     }
4472
 
4660
 
4473
                     this.prescriptions.push(obj)
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
                 console.log("jin5")
4665
                 console.log("jin5")
4935
                     } else {
5007
                     } else {
4936
                       if (prescription.pre_time == 0) {
5008
                       if (prescription.pre_time == 0) {
4937
                         preTime = nowTime
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
                       } else {
5021
                       } else {
4940
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
5022
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
5101
                           preTime = this.record_date + ' ' + '17:00'
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
                       let index = i + 1
5197
                       let index = i + 1
5106
                       let obj = {
5198
                       let obj = {
5138
                     }
5230
                     }
5139
 
5231
 
5140
                   } else {
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
                     let obj = {
5248
                     let obj = {
5142
                       id: 0,
5249
                       id: 0,
5143
                       name: '处方' + 1,
5250
                       name: '处方' + 1,
5145
                       project: [],
5252
                       project: [],
5146
                       addition: [],
5253
                       addition: [],
5147
                       order_status: 0,
5254
                       order_status: 0,
5148
-                      pre_time: nowTime,
5255
+                      pre_time: preTime,
5149
                       med_type: ''
5256
                       med_type: ''
5150
 
5257
 
5151
                     }
5258
                     }