Parcourir la source

长沙南雅打印单问题修改

28169 il y a 2 ans
Parent
révision
0134190bd2

+ 2 - 2
config/dev.env.js Voir le fichier

7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
9
   //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
9
   //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  // BASE_API: '"http://localhost:9531"',
10
+  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  BASE_API: '"http://localhost:9531"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js Voir le fichier

27
     // can be overwritten by process.env.HOST
27
     // can be overwritten by process.env.HOST
28
     // if you want dev by ip, please set host: '0.0.0.0'
28
     // if you want dev by ip, please set host: '0.0.0.0'
29
 
29
 
30
-    host: 'xt.test.sgjyun.com',
30
+    // host: 'xt.test.sgjyun.com',
31
     //  host: 'xt.kuyicloud.com',
31
     //  host: 'xt.kuyicloud.com',
32
    // host: 'xt.test.sgjyun.com',
32
    // host: 'xt.test.sgjyun.com',
33
-  //  host: 'localhost',
33
+    host: 'localhost',
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35
     autoOpenBrowser: true,
35
     autoOpenBrowser: true,
36
     errorOverlay: true,
36
     errorOverlay: true,

+ 3 - 2
src/api/dialysis_record.js Voir le fichier

47
   })
47
   })
48
 }
48
 }
49
 
49
 
50
-export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing, quality_nurse, puncture_needle, puncture_way, dialysis_dialyszers, dialysis_irrigation, blood_access_id, nuclein_date, schedule_remark, order_remark) {
50
+export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing, quality_nurse, puncture_needle, puncture_way, dialysis_dialyszers, dialysis_irrigation, blood_access_id, nuclein_date, schedule_remark, order_remark,catheter_operation) {
51
   var params = {
51
   var params = {
52
     patient_id: patient_id,
52
     patient_id: patient_id,
53
     date: schedule_date,
53
     date: schedule_date,
71
     blood_access_id: blood_access_id,
71
     blood_access_id: blood_access_id,
72
     nuclein_date: nuclein_date,
72
     nuclein_date: nuclein_date,
73
     schedule_remark: schedule_remark,
73
     schedule_remark: schedule_remark,
74
-    order_remark: order_remark
74
+    order_remark: order_remark,
75
+    catheter_operation:catheter_operation
75
   }
76
   }
76
   console.log('params', params)
77
   console.log('params', params)
77
   return request({
78
   return request({

+ 2 - 1
src/lang/zh.js Voir le fichier

404
     treatment: '诊疗经过',
404
     treatment: '诊疗经过',
405
     illness_discharge: '出院时病情',
405
     illness_discharge: '出院时病情',
406
     discharge_advice: '出院医嘱',
406
     discharge_advice: '出院医嘱',
407
-    dialysis_remark: '透析备注'
407
+    dialysis_remark: '透析备注',
408
+    catheter_operation:'导管备注',
408
   }
409
   }
409
 }
410
 }

+ 1 - 1
src/utils/data.js Voir le fichier

6
   if (moduleConfig == undefined) {
6
   if (moduleConfig == undefined) {
7
     return false
7
     return false
8
   }
8
   }
9
-  if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record' || module == 'dialysis_remark') {
9
+  if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record' || module == 'dialysis_remark' || module=='catheter_operation') {
10
     var Aresult = []
10
     var Aresult = []
11
     for (var j = 0; j < moduleConfig.length; j++) {
11
     for (var j = 0; j < moduleConfig.length; j++) {
12
       var Atemp = []
12
       var Atemp = []

+ 1 - 0
src/xt_pages/data/template.vue Voir le fichier

55
         { label: this.$t("data_config.illness_discharge"), key:"illness_discharge"},
55
         { label: this.$t("data_config.illness_discharge"), key:"illness_discharge"},
56
         { label: this.$t("data_config.discharge_advice"), key:"discharge_advice"},
56
         { label: this.$t("data_config.discharge_advice"), key:"discharge_advice"},
57
         { label: this.$t("data_config.dialysis_remark"), key:"dialysis_remark"},
57
         { label: this.$t("data_config.dialysis_remark"), key:"dialysis_remark"},
58
+        { label: this.$t("data_config.catheter_operation"), key:"catheter_operation"},
58
       ],
59
       ],
59
       activeName: "education",
60
       activeName: "education",
60
       createdTimes: 0
61
       createdTimes: 0

Fichier diff supprimé car celui-ci est trop grand
+ 1067 - 15
src/xt_pages/dialysis/bloodPresssWatch.vue


+ 59 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue Voir le fichier

117
             </el-select>
117
             </el-select>
118
        </el-form-item>
118
        </el-form-item>
119
 
119
 
120
+       <el-row :gutter="20">
121
+        <el-col :span="24" v-if="isShowFiled('导管备注')">
122
+          <el-form-item label="导管备注:">
123
+            <el-select @change="dialysisSummarySelectChange" v-model="value2">
124
+              <el-option
125
+                v-for="(item, index) in summary"
126
+                :label="item.text"
127
+                :value="item.value"
128
+                :key="index"
129
+              ></el-option>
130
+            </el-select>
131
+          </el-form-item>
132
+        </el-col>
133
+      </el-row>
134
+      <el-row :gutter="20">
135
+        <el-col v-if="isShowFiled('导管备注')">
136
+          <el-form-item>
137
+            <el-input
138
+              type="textarea"
139
+              v-model="form.catheter_operation"
140
+              :rows="4"
141
+            ></el-input>
142
+          </el-form-item>
143
+        </el-col>
144
+      </el-row>
145
+
120
        <el-form-item label="核酸检测日期:" style="width:300px"  v-if="isShowFiled('核酸检测日期')">
146
        <el-form-item label="核酸检测日期:" style="width:300px"  v-if="isShowFiled('核酸检测日期')">
121
           <el-date-picker
147
           <el-date-picker
122
             type="date"
148
             type="date"
136
          <el-form-item label="排班备注:" style="width:300px"  v-if="isShowFiled('排班备注')">
162
          <el-form-item label="排班备注:" style="width:300px"  v-if="isShowFiled('排班备注')">
137
           <el-input style="width:200px" v-model="form.schedule_remark"></el-input>
163
           <el-input style="width:200px" v-model="form.schedule_remark"></el-input>
138
         </el-form-item>
164
         </el-form-item>
139
-
165
+         
166
+        
140
 
167
 
141
 
168
 
142
         <el-form-item label="上机时间 :" style="width:300px"  v-if="isShowFiled('上机时间')">
169
         <el-form-item label="上机时间 :" style="width:300px"  v-if="isShowFiled('上机时间')">
211
           nuclein_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
238
           nuclein_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
212
           schedule_remark:"",
239
           schedule_remark:"",
213
           order_remark:"",
240
           order_remark:"",
241
+          catheter_operation:""
214
         },
242
         },
215
         blood_access_option:[],
243
         blood_access_option:[],
216
         schedual_type: 0,
244
         schedual_type: 0,
234
         },
262
         },
235
         dialyzers:[],
263
         dialyzers:[],
236
         irrigations:[],
264
         irrigations:[],
265
+        summary: [],
266
+        value2:"",
237
       }
267
       }
238
     },
268
     },
239
     props: {
269
     props: {
312
         )
342
         )
313
       this.form.schedule_remark = this.dialysis_order.schedule_remark
343
       this.form.schedule_remark = this.dialysis_order.schedule_remark
314
       this.form.order_remark = this.dialysis_order.order_remark
344
       this.form.order_remark = this.dialysis_order.order_remark
345
+    
346
+      this.summary = getDataConfig('catheter_operation', 'catheter_operation')
315
     },
347
     },
316
     watch: {
348
     watch: {
317
       patient:{
349
       patient:{
557
         console.log("质控护士",this.form.quality_nurse_id)
589
         console.log("质控护士",this.form.quality_nurse_id)
558
         console.log("this.form.nuclein_date",this.form.nuclein_date)
590
         console.log("this.form.nuclein_date",this.form.nuclein_date)
559
        
591
        
560
-        startDialysis(this.patient_id, this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse,blood_drawing,this.form.quality_nurse_id,this.form.puncture_needle,this.form.puncture_way,this.form.dialysis_dialyszers,this.form.dialysis_irrigation,this.form.blood_access_id,this.form.nuclein_date,this.form.schedule_remark,this.form.order_remark).then(rs => {
592
+        startDialysis(this.patient_id, this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse,blood_drawing,this.form.quality_nurse_id,this.form.puncture_needle,this.form.puncture_way,this.form.dialysis_dialyszers,this.form.dialysis_irrigation,this.form.blood_access_id,this.form.nuclein_date,this.form.schedule_remark,this.form.order_remark,this.form.catheter_operation).then(rs => {
561
           this.loading = false
593
           this.loading = false
562
           var resp = rs.data
594
           var resp = rs.data
563
           if (resp.state == 1) {
595
           if (resp.state == 1) {
602
         ParamsQuery['mode'] = "2"
634
         ParamsQuery['mode'] = "2"
603
         ParamsQuery["schedule_remark"] = this.form.schedule_remark
635
         ParamsQuery["schedule_remark"] = this.form.schedule_remark
604
         ParamsQuery["order_remark"] = this.form.order_remark
636
         ParamsQuery["order_remark"] = this.form.order_remark
637
+        ParamsQuery['catheter_operation'] = this.form.catheter_operation
638
+ 
605
         if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
639
         if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
606
           ParamsQuery['mode'] = "3"
640
           ParamsQuery['mode'] = "3"
607
         }
641
         }
721
       innerDialogCancle: function() {
755
       innerDialogCancle: function() {
722
         this.InnerDialogProps.visibility = false
756
         this.InnerDialogProps.visibility = false
723
       },
757
       },
758
+     
759
+      dialysisSummarySelectChange: function(values) {
760
+      if (this.form.catheter_operation == '') {
761
+        this.form.catheter_operation = values
762
+      } else {
763
+       
764
+        if (this.form.catheter_operation.indexOf(values) == -1) {
765
+          if (
766
+            this.form.catheter_operation
767
+              .charAt(this.form.catheter_operation.length - 1)
768
+              .indexOf('。') == -1
769
+          ) {
770
+            this.form.catheter_operation =
771
+              this.form.catheter_operation + ',' + values
772
+          } else {
773
+            this.form.catheter_operation =
774
+              this.form.catheter_operation + ',' + values
775
+            this.form.catheter_operation =
776
+              this.form.catheter_operation + values
777
+          }
778
+        }
779
+      }
780
+    },
724
     }
781
     }
725
   }
782
   }
726
 </script>
783
 </script>

+ 14 - 0
src/xt_pages/dialysis/details/dialysisComputer.vue Voir le fichier

92
           <span class="content">{{start_time}}</span>
92
           <span class="content">{{start_time}}</span>
93
         </li>
93
         </li>
94
       </ul>
94
       </ul>
95
+      <ul>
96
+        <li v-if="isShow('导管操作')">
97
+          <label>导管操作 : </label>
98
+          <span class="content">{{catheter_operation}}</span>
99
+        </li>
100
+      </ul>
95
     </div>
101
     </div>
96
     <div class="middleLine"></div>
102
     <div class="middleLine"></div>
97
   </div>
103
   </div>
224
           }
230
           }
225
         }
231
         }
226
         return name
232
         return name
233
+      },
234
+      catheter_operation:function(){
235
+        if(this.record.id == 0){
236
+          return '-'
237
+        }else{
238
+          return this.record.catheter_operation
239
+        }
240
+       
227
       }
241
       }
228
     },
242
     },
229
     methods: {
243
     methods: {

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue Voir le fichier

657
                   </th>
657
                   </th>
658
                   <th style="width: 70px; font-weight: normal" v-if="org_id==10430||org_id==9675">
658
                   <th style="width: 70px; font-weight: normal" v-if="org_id==10430||org_id==9675">
659
                     <p style="height: 20px; line-height: 20px">血温</p>
659
                     <p style="height: 20px; line-height: 20px">血温</p>
660
-                    <p style="height: 20px; line-height: 20px">ml</p>
660
+                    <p style="height: 20px; line-height: 20px"></p>
661
                   </th>
661
                   </th>
662
 
662
 
663
                   <th style="width: 80px; font-weight: normal">
663
                   <th style="width: 80px; font-weight: normal">

+ 0 - 3
src/xt_pages/hospitalStation/invoicePrint.vue Voir le fichier

38
   </div>
38
   </div>
39
 </template>
39
 </template>
40
 
40
 
41
-
42
-
43
 <script>
41
 <script>
44
 import printOne from "./invoiceTemplate/printOne";
42
 import printOne from "./invoiceTemplate/printOne";
45
 import printTwo from "./invoiceTemplate/printTwo";
43
 import printTwo from "./invoiceTemplate/printTwo";
48
 export default {
46
 export default {
49
   name: "invoicePrint",
47
   name: "invoicePrint",
50
   components: {
48
   components: {
51
-    PrintNight,
52
     printOne,
49
     printOne,
53
     printTwo,
50
     printTwo,
54
     printThree,
51
     printThree,

+ 124 - 5
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Voir le fichier

94
 
94
 
95
           <div>
95
           <div>
96
             <div>入院时间:{{this.hisPatientInfo&&this.hisPatientInfo.in_hosptial_time?this.hisPatientInfo.in_hosptial_time:""}}</div>
96
             <div>入院时间:{{this.hisPatientInfo&&this.hisPatientInfo.in_hosptial_time?this.hisPatientInfo.in_hosptial_time:""}}</div>
97
-            <el-button  size="small"
98
-                       @click="open(1)"
99
-                       type="primary">入院登记
100
-            </el-button>
97
+            <el-button
98
+              size="small"
99
+              @click="exportUnchargeData"
100
+              type="primary">导出未收费数据</el-button>
101
+
102
+<!--            -->
103
+<!--            <el-button  size="small"-->
104
+<!--                       @click="open(1)"-->
105
+<!--                       type="primary">入院登记-->
106
+<!--            </el-button>-->
101
 
107
 
102
             <el-button v-loading="loadingone" size="small"
108
             <el-button v-loading="loadingone" size="small"
103
                        v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
109
                        v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
276
                 <el-button type="primary" @click="comfirmTime">确 定</el-button>
282
                 <el-button type="primary" @click="comfirmTime">确 定</el-button>
277
              </span>
283
              </span>
278
     </el-dialog>
284
     </el-dialog>
285
+
286
+    <el-dialog
287
+      title="导出时间"
288
+      :visible.sync="dialogExportVisible"
289
+      width="30%"
290
+    >
291
+      <el-date-picker v-model="export_start_time" type="datetime" format="yyyy-MM-dd"
292
+                      value-format="yyyy-MM-dd"
293
+                      placeholder="请选择导出开始时间">
294
+      </el-date-picker>
295
+
296
+      <el-date-picker v-model="export_end_time" type="datetime" format="yyyy-MM-dd"
297
+                      value-format="yyyy-MM-dd"
298
+                      placeholder="请选择导出结束时间">
299
+      </el-date-picker>
300
+
301
+      <span slot="footer" class="dialog-footer">
302
+                <el-button @click="dialogExportVisible = false">取 消</el-button>
303
+                <el-button type="primary" @click="comfirmExportTime">确 定</el-button>
304
+             </span>
305
+    </el-dialog>
306
+
279
   </div>
307
   </div>
280
 
308
 
281
 </template>
309
 </template>
301
   Outhopitaluncheck,
329
   Outhopitaluncheck,
302
   Settle
330
   Settle
303
 } from '@/api/his/his'
331
 } from '@/api/his/his'
332
+
333
+import {
334
+  exportData
335
+} from '@/api/his/his_hospital'
336
+
337
+
304
 import { uParseTime } from '@/utils/tools'
338
 import { uParseTime } from '@/utils/tools'
305
 
339
 
306
 import RegisterDialog from './components/registerDialog'
340
 import RegisterDialog from './components/registerDialog'
436
       department: [],
470
       department: [],
437
       invoiceVisible: false,
471
       invoiceVisible: false,
438
       invoiceParams: {},
472
       invoiceParams: {},
439
-      out_hospital_time: moment(new Date()).add('year',0).format("YYYY-MM-DD HH:mm:ss")
473
+      out_hospital_time: moment(new Date()).add('year',0).format("YYYY-MM-DD HH:mm:ss"),
474
+      dialogExportVisible:false,
475
+      export_start_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
476
+      export_end_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
440
 
477
 
441
     }
478
     }
442
   },
479
   },
459
     this.getPatientList()
496
     this.getPatientList()
460
   },
497
   },
461
   methods: {
498
   methods: {
499
+    comfirmExportTime(){
500
+      let params = {
501
+        'patient_id': this.patientInfo.id,
502
+        'start_time': this.export_start_time,
503
+        'end_time': this.export_end_time,
504
+      }
505
+      exportData(params).then(response => {
506
+        if (response.data.state == 0) {
507
+          this.$message.error(response.data.msg)
508
+          this.dialogExportVisible = false
509
+          return false
510
+        } else {
511
+          this.dialogExportVisible = false
512
+          var prescriptions = response.data.data.month_prescriptions
513
+          var patient_ids = this.unique_patient(prescriptions)
514
+          let list=  []
515
+          for(var i = 0;i < patient_ids.length; i++){
516
+            let obj = {}
517
+            let total = 0
518
+            obj["患者姓名"] = patient_ids[i].patient.name
519
+            for(let b = 0; b < prescriptions.length; b++){
520
+              if(patient_ids[i].patient_id == prescriptions[b].patient_id){
521
+                if (prescriptions[b].type == 1) {
522
+                  if (prescriptions[b].advices != null) {
523
+                    console.log("~~~~~~~~~~~~~~~~~1111")
524
+
525
+                    for (let a = 0; a < prescriptions[b].advices.length; a++) {
526
+                      total = total + parseFloat(prescriptions[b].advices[a].price * prescriptions[b].advices[a].prescribing_number)
527
+                    }
528
+                  }
529
+                } else {
530
+                  if (prescriptions[b].project != null) {
531
+                    console.log("~~~~~~~~~~~~~~~~~22222")
532
+                    for (let c = 0; c < prescriptions[b].project.length; c++) {
533
+                      total = total + parseFloat(prescriptions[b].project[c].price  * prescriptions[b].project[c].count)
534
+                    }
535
+                  }
536
+                }
537
+              }
538
+            }
539
+            obj["总金额"] = total.toFixed(2)
540
+            list.push(obj)
541
+          }
542
+          import("@/vendor/Export2Excel").then((excel) => {
543
+            const tHeader = [
544
+              "患者姓名",
545
+              "总金额"
546
+            ];
547
+            const filterVal = [
548
+              "患者姓名",
549
+              "总金额"
550
+            ];
551
+            const data = this.formatJson(filterVal, list);
552
+            excel.export_json_to_excel({
553
+              header: tHeader,
554
+              data,
555
+              filename: "消费明细",
556
+            });
557
+          });
558
+        }
559
+      })
560
+    },
462
     comfirmTime() {
561
     comfirmTime() {
463
       var that = this
562
       var that = this
464
       let params = {
563
       let params = {
1290
     },
1389
     },
1291
     formatJson(filterVal, jsonData) {
1390
     formatJson(filterVal, jsonData) {
1292
       return jsonData.map(v => filterVal.map(j => v[j]))
1391
       return jsonData.map(v => filterVal.map(j => v[j]))
1392
+    },exportUnchargeData(){
1393
+
1394
+      this.dialogExportVisible = true
1395
+
1293
     },
1396
     },
1294
     open(index) {
1397
     open(index) {
1295
       if (index == 1){
1398
       if (index == 1){
2873
       this.curSettlePrescriptions = this.settle_prescriptions[0]
2976
       this.curSettlePrescriptions = this.settle_prescriptions[0]
2874
 
2977
 
2875
     },
2978
     },
2979
+    unique_patient(array) {
2980
+      // res用来存储结果
2981
+      var res = []
2982
+      for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
2983
+        for (var j = 0, resLen = res.length; j < resLen; j++) {
2984
+          if (array[i].patient_id === res[j].patient_id) {
2985
+            break
2986
+          }
2987
+        }
2988
+        // 如果array[i]是唯一的,那么执行完循环,j等于resLen
2989
+        if (j === resLen) {
2990
+          res.push(array[i])
2991
+        }
2992
+      }
2993
+      return res
2994
+    },
2876
     unique_two(array) {
2995
     unique_two(array) {
2877
       // res用来存储结果
2996
       // res用来存储结果
2878
       var res = []
2997
       var res = []

+ 5 - 5
src/xt_pages/user/courseOfDisease.vue Voir le fichier

86
               <label class="title"><span class="name">病程日期</span> : </label>
86
               <label class="title"><span class="name">病程日期</span> : </label>
87
               <el-date-picker v-model="course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
87
               <el-date-picker v-model="course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
88
                               style="width: 200px;"
88
                               style="width: 200px;"
89
-                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
90
-                              value-format="yyyy-MM-dd HH:mm"></el-date-picker>
89
+                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
90
+                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
91
 
91
 
92
               <label class="title"><span class="name">日常病程</span> : </label>
92
               <label class="title"><span class="name">日常病程</span> : </label>
93
               <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
93
               <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
132
               <el-date-picker v-model="edit_course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
132
               <el-date-picker v-model="edit_course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
133
                               style="width: 200px;"
133
                               style="width: 200px;"
134
                               type="datetime"
134
                               type="datetime"
135
-                              placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
136
-                              value-format="yyyy-MM-dd HH:mm"></el-date-picker>
135
+                              placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
136
+                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
137
 
137
 
138
               <label class="title"><span class="name">日常病程</span> : </label>
138
               <label class="title"><span class="name">日常病程</span> : </label>
139
               <el-select v-model="select_template" placeholder="可选择病程模板" @change="didEditSelectTemplate">
139
               <el-select v-model="select_template" placeholder="可选择病程模板" @change="didEditSelectTemplate">
286
       },
286
       },
287
       recordTime: function(timestamp) {
287
       recordTime: function(timestamp) {
288
         var time = new Date(timestamp * 1000)
288
         var time = new Date(timestamp * 1000)
289
-        return parseTime(time, '{y}-{m}-{d} {h}:{m}')
289
+        return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
290
       },
290
       },
291
       doctorName: function(doctor_id) {
291
       doctorName: function(doctor_id) {
292
         for (let index = 0; index < this.doctors.length; index++) {
292
         for (let index = 0; index < this.doctors.length; index++) {

+ 36 - 36
src/xt_pages/workforce/components/template_table.vue Voir le fichier

886
                       placeholder="请选择"
886
                       placeholder="请选择"
887
                       size="mini"
887
                       size="mini"
888
                       @change="changeJihao"
888
                       @change="changeJihao"
889
+                      @click.native="changeSch(scope.row)"
889
                       class="select_list_arrage"
890
                       class="select_list_arrage"
890
                     >
891
                     >
891
                       <el-option
892
                       <el-option
1594
 
1595
 
1595
       this.smartVisible = true;
1596
       this.smartVisible = true;
1596
     },
1597
     },
1597
-    SetSmartSch(tempData,delData) {
1598
-        this.saveActionThree(tempData,delData);
1598
+    SetSmartSch(tempData) {
1599
+        this.saveActionThree(tempData);
1599
     },
1600
     },
1600
     check(tempData) {
1601
     check(tempData) {
1601
       let isJiXu = true;
1602
       let isJiXu = true;
1647
     batchSetSch() {
1648
     batchSetSch() {
1648
       this.smartSaveLoading = true;
1649
       this.smartSaveLoading = true;
1649
       var tempData = [];
1650
       var tempData = [];
1650
-      var delData = [];
1651
+      // var delData = [];
1651
       for (let b = 0; b < this.editableTabs.length; b++) {
1652
       for (let b = 0; b < this.editableTabs.length; b++) {
1652
         for (let c = 0; c < this.editableTabs[b].tableWeekArrage.length; c++) {
1653
         for (let c = 0; c < this.editableTabs[b].tableWeekArrage.length; c++) {
1653
           let obj = {
1654
           let obj = {
1667
         }
1668
         }
1668
       }
1669
       }
1669
 
1670
 
1670
-      for (let b = 0; b < this.current_patient_data.length; b++) {
1671
-        for (let c = 0; c < this.current_patient_data[b].tableWeekArrage.length; c++) {
1672
-          let obj = {
1673
-            time_type: this.current_patient_data[b].tableWeekArrage[c].time_type,
1674
-            jihao_id: this.current_patient_data[b].tableWeekArrage[c].device_number_id,
1675
-            schedule_week: this.getWeekByzhongwen(
1676
-              this.current_patient_data[b].tableWeekArrage[c].week
1677
-            ),
1678
-            mode_id: this.current_patient_data[b].tableWeekArrage[c].treat_mode,
1679
-            sch_id: this.current_patient_data[b].tableWeekArrage[c].id,
1680
-            zone_id: this.current_patient_data[b].tableWeekArrage[c].zone_id,
1681
-            t_id: this.current_patient_data[b].name,
1682
-            title:this.current_patient_data[b].title,
1683
-            patient_id: this.cur_smart_patient_id,
1684
-          };
1685
-          delData.push(obj);
1686
-        }
1687
-      }
1688
-      console.log(tempData)
1689
-      console.log(delData)
1671
+      // for (let b = 0; b < this.current_patient_data.length; b++) {
1672
+      //   for (let c = 0; c < this.current_patient_data[b].tableWeekArrage.length; c++) {
1673
+      //     let obj = {
1674
+      //       time_type: this.current_patient_data[b].tableWeekArrage[c].time_type,
1675
+      //       jihao_id: this.current_patient_data[b].tableWeekArrage[c].device_number_id,
1676
+      //       schedule_week: this.getWeekByzhongwen(
1677
+      //         this.current_patient_data[b].tableWeekArrage[c].week
1678
+      //       ),
1679
+      //       mode_id: this.current_patient_data[b].tableWeekArrage[c].treat_mode,
1680
+      //       sch_id: this.current_patient_data[b].tableWeekArrage[c].id,
1681
+      //       zone_id: this.current_patient_data[b].tableWeekArrage[c].zone_id,
1682
+      //       t_id: this.current_patient_data[b].name,
1683
+      //       title:this.current_patient_data[b].title,
1684
+      //       patient_id: this.cur_smart_patient_id,
1685
+      //     };
1686
+      //     delData.push(obj);
1687
+      //   }
1688
+      // }
1689
+      // console.log(tempData)
1690
+      // console.log(delData)
1690
 
1691
 
1691
-      for (let i = 0; i < delData.length; i++) {
1692
-        for (let  b = 0; b < tempData.length; b++) {
1693
-          if(delData[i].sch_id == tempData[b].sch_id){
1694
-            delData.splice(i,1)
1695
-          }
1696
-        }
1697
-      }
1692
+      // for (let i = 0; i < delData.length; i++) {
1693
+      //   for (let  b = 0; b < tempData.length; b++) {
1694
+      //     if(delData[i].sch_id == tempData[b].sch_id){
1695
+      //       delData.splice(i,1)
1696
+      //     }
1697
+      //   }
1698
+      // }
1698
 
1699
 
1699
-      console.log(delData)
1700
       for (let i = 0; i < tempData.length; i++) {
1700
       for (let i = 0; i < tempData.length; i++) {
1701
         if (tempData[i].jihao_id == "" || tempData[i].zone_id == "") {
1701
         if (tempData[i].jihao_id == "" || tempData[i].zone_id == "") {
1702
           this.$message.error("分区或者床位不能空");
1702
           this.$message.error("分区或者床位不能空");
1706
         }
1706
         }
1707
       }
1707
       }
1708
       this.isEdit = true
1708
       this.isEdit = true
1709
-      this.$emit("saveData", tempData,delData);
1709
+      console.log("saveData")
1710
+      console.log(tempData)
1711
+      this.$emit("saveData", tempData);
1710
     },changeJihao(){
1712
     },changeJihao(){
1711
-
1712
       this.$forceUpdate()
1713
       this.$forceUpdate()
1713
-
1714
     },
1714
     },
1715
     changeSch(row) {
1715
     changeSch(row) {
1716
 
1716
 
2940
         });
2940
         });
2941
       }
2941
       }
2942
     },
2942
     },
2943
-    saveActionThree: function (val,delData) {
2943
+    saveActionThree: function (val) {
2944
       updateEditSchedules(
2944
       updateEditSchedules(
2945
         JSON.stringify(val),
2945
         JSON.stringify(val),
2946
-        JSON.stringify(delData),
2946
+        JSON.stringify([]),
2947
       ).then((rs) => {
2947
       ).then((rs) => {
2948
         var resp = rs.data;
2948
         var resp = rs.data;
2949
         if (resp.state == 1) {
2949
         if (resp.state == 1) {