Browse Source

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

陈少旭 1 year ago
parent
commit
438d858eb4

+ 8 - 0
src/api/drug/drug.js View File

452
   })
452
   })
453
 }
453
 }
454
 
454
 
455
+export function getInventoryDetailPrintList(params) {
456
+  return request({
457
+    url: '/api/drug/getinventorydetailprintlist',
458
+    method: 'Get',
459
+    params: params
460
+  })
461
+}
462
+
455
 export function SaveDrugProofInventory(params) {
463
 export function SaveDrugProofInventory(params) {
456
   return request({
464
   return request({
457
     url: '/api/drug/savedrugproofinventory',
465
     url: '/api/drug/savedrugproofinventory',

+ 8 - 0
src/api/patient.js View File

752
     params:params
752
     params:params
753
   })
753
   })
754
 }
754
 }
755
+
756
+export function getContextScheduleList(params){
757
+  return request({
758
+    url:"/api/patient/getcontextschedulelist",
759
+    method:"get",
760
+    params:params
761
+  })
762
+}

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

1051
                         </div>
1051
                         </div>
1052
                         mmol/L
1052
                         mmol/L
1053
                       </div>
1053
                       </div>
1054
-                      <div class="inline_block" style="margin-left: 10px">
1054
+                      <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478">
1055
                         碳酸氢根:
1055
                         碳酸氢根:
1056
                         <div
1056
                         <div
1057
                           class="under_line"
1057
                           class="under_line"
1066
                         </div>
1066
                         </div>
1067
                         mmol/L
1067
                         mmol/L
1068
                       </div>
1068
                       </div>
1069
-                      <div class="inline_block" style="margin-left: 10px">
1069
+                      <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478">
1070
                         流量:
1070
                         流量:
1071
                         <div
1071
                         <div
1072
                           class="under_line"
1072
                           class="under_line"

+ 14 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyFive.vue View File

1438
                                 <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
1438
                                 <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
1439
                                     <img style="height:30px;" :src="setAdminUserES(monitor_record, 'monitoring_nurse')" alt srcset />
1439
                                     <img style="height:30px;" :src="setAdminUserES(monitor_record, 'monitoring_nurse')" alt srcset />
1440
                                 </span> -->
1440
                                 </span> -->
1441
-
1442
-                                <span v-if="setAdminUserES(monitor_record, 'creator') == ''">
1441
+                                <span v-if="monitor_record.creator >0">
1442
+                                  <span v-if="setAdminUserES(monitor_record, 'creator') == ''">
1443
                                     {{ getAdminUser(monitor_record, 'creator') }}
1443
                                     {{ getAdminUser(monitor_record, 'creator') }}
1444
+                                  </span>
1445
+                                  <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
1446
+                                      <img style="height:30px;" :src="setAdminUserES(monitor_record, 'creator')" alt srcset />
1447
+                                  </span>
1444
                                 </span>
1448
                                 </span>
1445
-                                <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
1446
-                                    <img style="height:30px;" :src="setAdminUserES(monitor_record, 'creator')" alt srcset />
1449
+                                <span v-if="monitor_record.creator ==0">
1450
+                                  <span v-if="setAdminUserES(monitor_record, 'modify') == ''">
1451
+                                    {{ getAdminUser(monitor_record, 'modify') }}
1452
+                                  </span>
1453
+                                  <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
1454
+                                      <img style="height:30px;" :src="setAdminUserES(monitor_record, 'modify')" alt srcset />
1455
+                                  </span>
1447
                                 </span>
1456
                                 </span>
1457
+                                
1448
                             </td>
1458
                             </td>
1449
                           </tr>
1459
                           </tr>
1450
                           <!-- <tr
1460
                           <!-- <tr

+ 1 - 1
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

1979
       }else if (this.org_template_info.template_id == 65 || this.org_template_info.template_id == 6) {
1979
       }else if (this.org_template_info.template_id == 65 || this.org_template_info.template_id == 6) {
1980
         console.log("进来")
1980
         console.log("进来")
1981
         printJS({
1981
         printJS({
1982
-          printable: "dialysis-print-box",
1982
+          printable: "dialysis-print-box-1",
1983
           type: "html",
1983
           type: "html",
1984
           style: style12,
1984
           style: style12,
1985
           scanStyles: false,
1985
           scanStyles: false,

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

1066
                       </div>
1066
                       </div>
1067
                       mmol/L
1067
                       mmol/L
1068
                     </div>
1068
                     </div>
1069
-                    <div class="inline_block" style="margin-left: 10px">
1069
+                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478">
1070
                       碳酸氢根:
1070
                       碳酸氢根:
1071
                       <div
1071
                       <div
1072
                         class="under_line"
1072
                         class="under_line"
1080
                       </div>
1080
                       </div>
1081
                       mmol/L
1081
                       mmol/L
1082
                     </div>
1082
                     </div>
1083
-                    <div class="inline_block" style="margin-left: 10px">
1083
+                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478">
1084
                       流量:
1084
                       流量:
1085
                       <div
1085
                       <div
1086
                         class="under_line"
1086
                         class="under_line"
1716
                         <td
1716
                         <td
1717
                           style="font-size: 16px"
1717
                           style="font-size: 16px"
1718
                           width="10%"
1718
                           width="10%"
1719
-                          v-if="org_id == 10223"
1719
+                          v-if="org_id == 10223 || org_id == 9538"
1720
                         >
1720
                         >
1721
                           核对护士
1721
                           核对护士
1722
                         </td>
1722
                         </td>
1807
                             getTime(advice.execution_time, "{h}:{i}")
1807
                             getTime(advice.execution_time, "{h}:{i}")
1808
                           }}</span>
1808
                           }}</span>
1809
                         </td>
1809
                         </td>
1810
-                        <td height="32px" v-if="org_id == 10223">
1810
+                        <td height="32px" v-if="org_id == 10223 || org_id == 9538">
1811
                           <span v-if="setAdminUserES(advice.checker) == ''">{{
1811
                           <span v-if="setAdminUserES(advice.checker) == ''">{{
1812
                             getAdminUser(advice.checker)
1812
                             getAdminUser(advice.checker)
1813
                           }}</span>
1813
                           }}</span>

+ 7 - 12
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyFive.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <el-button type="primary" @click="checkData">一键核对</el-button>
3
     <el-button type="primary" @click="checkData">一键核对</el-button>
4
-    <div id="dialysis-print-box">
4
+    <div id="dialysis-print-box-1">
5
       <div
5
       <div
6
-        id="dialysis-print-box"
6
+        id="dialysis-print-box-1"
7
         class="dialysis-print-order print-template-two print_page_main_content"
7
         class="dialysis-print-order print-template-two print_page_main_content"
8
       >
8
       >
9
         <div style="display: inline-block; width: 100%; text-align: center">
9
         <div style="display: inline-block; width: 100%; text-align: center">
1374
                     <tbody>
1374
                     <tbody>
1375
                       <tr>
1375
                       <tr>
1376
                         <td
1376
                         <td
1377
-                          :colspan="
1378
-                            prescription.mode_id == 2 ||
1379
-                            prescription.mode_id == 5
1380
-                              ? 14
1381
-                              : 13
1382
-                          "
1377
+                          :colspan="14"
1383
                           style="
1378
                           style="
1384
                             letter-spacing: 5px;
1379
                             letter-spacing: 5px;
1385
                             text-align: center;
1380
                             text-align: center;
1433
                         <td width="50">
1428
                         <td width="50">
1434
                           <span v-if="monitor.creator == 0">
1429
                           <span v-if="monitor.creator == 0">
1435
                             <span
1430
                             <span
1436
-                            v-if="setAdminUserES(monitor.modifier) == ''"
1437
-                            >{{ getAdminUser(monitor.modifier) }}</span
1431
+                            v-if="setAdminUserES(monitor.modify) == ''"
1432
+                            >{{ getAdminUser(monitor.modify) }}</span
1438
                           >
1433
                           >
1439
                           <img
1434
                           <img
1440
                             style="height: 30px"
1435
                             style="height: 30px"
1441
-                            :src="setAdminUserES(monitor.modifier)"
1436
+                            :src="setAdminUserES(monitor.modify)"
1442
                             alt=""
1437
                             alt=""
1443
                             srcset=""
1438
                             srcset=""
1444
                             v-else
1439
                             v-else
3279
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
3274
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
3280
 
3275
 
3281
       const style =
3276
       const style =
3282
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
3277
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
3283
 
3278
 
3284
       if (this.org_template_info.template_id == 1) {
3279
       if (this.org_template_info.template_id == 1) {
3285
         printJS({
3280
         printJS({

+ 435 - 143
src/xt_pages/sign/Contextowner.vue View File

38
             </el-row>
38
             </el-row>
39
             <div class="page_lineUp">
39
             <div class="page_lineUp">
40
                 <div class="lineUpTitle">
40
                 <div class="lineUpTitle">
41
-                    <!-- <div>{{ this.$store.getters.xt_user.org.org_name }}<span>&nbsp;&nbsp;温馨提示:请注意排队叫号,依次叫号就诊上机,谢谢配合</span></div>
42
-                    <div>{{ newdate }}&nbsp;&nbsp;{{ time }}</div> -->
43
                 </div>
41
                 </div>
44
                 <div class="lineUpMain">
42
                 <div class="lineUpMain">
45
                     <div class="lineUpMainLeft">
43
                     <div class="lineUpMainLeft">
50
                             <p style="width:55%">透析时间</p>
48
                             <p style="width:55%">透析时间</p>
51
                             
49
                             
52
                         </div>
50
                         </div>
53
-                        <!-- <div class="lineUpList">
54
-                            <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
55
-                                <p style="width:12%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id!=10440">
56
-                                    <span v-if="item.schedule_type == 1">上午</span>
57
-                                    <span v-if="item.schedule_type == 2">下午</span>
58
-                                    <span v-if="item.schedule_type == 3">晚上</span>
59
-                                    {{ item.queue_no }}号
60
-                                </p>
61
-                                <p style="width:14%">{{ item.patient_name }}</p>
62
-                                <p style="width:14%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">{{ item.dialysis_no }}</p>
63
-                                <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
64
-                                <p style="width:14%">
65
-                                    <span v-if="item.status == 1">待接诊</span>
66
-                                    <span v-if="item.status == 2">接诊中</span>
67
-                                    <span v-if="item.status == 3">待上机</span>
68
-                                    <span v-if="item.status == 4">透析中</span>
69
-                                    <span v-if="item.status == 5">已下机</span>
70
-                                </p>
71
-                                <p style="width:14%">{{ item.start_time ? getDates(item.start_time) : '--' }}</p>
72
-                                <p style="width:16%">{{ item.end_time && item.start_time ? getDates(item.end_time) : '--' }}</p>
73
-                            </div>
74
-                        </div> -->
75
                     </div> 
51
                     </div> 
76
-                    <!-- <div class="callingBox">
77
-                        <div :class="(queueConfig.jzjhyc == 1 && queueConfig.sjjhyc == 0) ? 'callingBoxLeft1' : 'callingBoxLeft'" v-if="queueConfig.jzjhyc == 1">
78
-                            <div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
79
-                            <div style="flex: 1;justify-content: space-between;display: flex;flex-direction: column;">
80
-                                <div class="callingTop" style="margin-bottom:10px;">
81
-                                    <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
82
-                                    <div class="callingContent">
83
-                                        <div>
84
-                                            <p><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
85
-                                            <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
86
-                                        </div>
87
-                                    </div>
88
-                                </div>
89
-                                <div class="callingTop" style="border-radius: 0 0 15px 0;">
90
-                                    <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
91
-                                    <div class="callingContent">
92
-                                        <div>
93
-                                            <p><span v-for="(item,index) in (waitDoctorList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
94
-                                            <p><span v-for="(item,index) in (waitDoctorList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
95
-                                        </div>
96
-                                    </div>
97
-                                </div>
98
-                            </div>
52
+                    <div class="lineUpList">
53
+                        <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
54
+                            <p style="width:12%" > {{ index+1 }} </p>
55
+                            <p style="width:14%">{{ getPatientName(item.patient_id)}}</p>
56
+                            <p style="width:14%">{{ getDialysisNo(item.patient_id) }}</p>
57
+                            <p style="width:55%">{{getContent(item.child) }}</p>
99
                         </div>
58
                         </div>
100
-                        <div :class="(queueConfig.jzjhyc == 0 && queueConfig.sjjhyc == 1) ? 'callingBoxLeft1' : 'callingBoxLeft'" v-if="queueConfig.sjjhyc == 1">
101
-                            <div class="callingTitle newCallingTitle"><span style="margin: 0 auto;">上<br />机<br />叫<br />号</span></div>
102
-                            <div style="flex: 1;justify-content: space-between;display: flex;flex-direction: column;">
103
-                                <div class="callingTop" style="margin-bottom:10px;">
104
-                                    <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
105
-                                    <div class="callingContent newCallingContent">
106
-                                        <div>
107
-                                            <p><span v-for="(item,index) in (upPatientList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
108
-                                            <p><span v-for="(item,index) in (upPatientList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
109
-                                        </div>
110
-                                    </div>
111
-                                </div>
112
-                                <div class="callingTop" style="border-radius: 0 0 15px 0;">
113
-                                    <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
114
-                                    <div class="callingContent newCallingContent">
115
-                                        <div>
116
-                                            <p><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
117
-                                            <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
118
-                                        </div>
119
-                                    </div>
120
-                                </div>
121
-                            </div>
122
-                        </div>
123
-                    </div> -->
59
+                    </div>
124
                 </div> 
60
                 </div> 
125
                 
61
                 
126
              </div>
62
              </div>
142
                         </div>
78
                         </div>
143
                         <div class="lineUpList">
79
                         <div class="lineUpList">
144
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
80
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
145
-                                <p style="width:12%" > {{ item.xuhao }} </p>
146
-                                <p style="width:14%">{{ item.name }}</p>
147
-                                <p style="width:14%">{{ item.toux }}</p>
148
-                                <p style="width:55%">{{ item.touxtime }}</p>
149
-                                
150
-                                <!-- <p style="width:14%">{{ item.patient_name }}</p>
151
-                                <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
152
-                                <p style="width:14%">{{ item.start_time ? getDates(item.start_time) : '--' }}</p>
153
-                                <p style="width:16%">{{ item.end_time && item.start_time ? getDates(item.end_time) : '--' }}</p> -->
81
+                                <p style="width:12%" > {{ index+1 }} </p>
82
+                                <p style="width:14%">{{ getPatientName(item.patient_id)}}</p>
83
+                                <p style="width:14%">{{ getDialysisNo(item.patient_id) }}</p>
84
+                                <p style="width:55%">{{getContent(item.child) }}</p>
154
                             </div>
85
                             </div>
155
                         </div>
86
                         </div>
156
                     </div> 
87
                     </div> 
164
 </template>
95
 </template>
165
 
96
 
166
 <script>
97
 <script>
98
+import {getContextScheduleList} from "@/api/patient"
167
 const moment = require('moment')
99
 const moment = require('moment')
168
 import BreadCrumb from "../components/bread-crumb";
100
 import BreadCrumb from "../components/bread-crumb";
169
 import screenfull from "screenfull";
101
 import screenfull from "screenfull";
102
+import { uParseTime } from '@/utils/tools'
170
 export default {
103
 export default {
171
     components:{
104
     components:{
172
         BreadCrumb
105
         BreadCrumb
180
             ],
113
             ],
181
             dialogTableVisible:false,
114
             dialogTableVisible:false,
182
             showSetting: false,
115
             showSetting: false,
183
-            lineUpList:[
184
-                {xuhao:1,name:'张三',toux:1001,touxtime:'07-05 周一上午 HD 8号床  周三上午HD 9号床 周六上午HD 9号床'},
185
-                // {xuhao:2,name:'李四',toux:1002,touxtime:'2023-07-03'},
186
-                // {xuhao:3,name:'王五',toux:1003,touxtime:'2023-07-03'},
187
-                // {xuhao:4,name:'赵六',toux:1004,touxtime:'2023-07-03'},
188
-                // {xuhao:1,name:'肖雪',toux:1001,touxtime:'2023-07-03'},
189
-                // {xuhao:2,name:'小舞',toux:1002,touxtime:'2023-07-03'},
190
-                // {xuhao:3,name:'小明',toux:1003,touxtime:'2023-07-03'},
191
-                // {xuhao:4,name:'小红',toux:1004,touxtime:'2023-07-03'},
192
-                // {xuhao:1,name:'小雪',toux:1001,touxtime:'2023-07-03'},
193
-                // {xuhao:2,name:'小王',toux:1002,touxtime:'2023-07-03'},
194
-                // {xuhao:3,name:'小爱同学',toux:1003,touxtime:'2023-07-03'},
195
-                // {xuhao:4,name:'小亦',toux:1004,touxtime:'2023-07-03'},
196
-            ],
116
+            lineUpList:[],
197
             count:0,
117
             count:0,
198
             page:1,
118
             page:1,
199
             timer:null,
119
             timer:null,
212
 
132
 
213
             voice:true,
133
             voice:true,
214
             a:1,
134
             a:1,
215
-            newTimes:null
216
-            
135
+            newTimes:null,
136
+            limit:6,
137
+            page:1,
138
+            total:0,
139
+            patientList:[],
140
+            deviceNumberList:[],
141
+            schedule:[],
217
         }
142
         }
218
     },
143
     },
219
     computed: {
144
     computed: {
222
         },
147
         },
223
     },
148
     },
224
     created(){
149
     created(){
150
+        this.getlist()
225
         if(sessionStorage.getItem('lineUpKey') != null){
151
         if(sessionStorage.getItem('lineUpKey') != null){
226
             if(sessionStorage.getItem('lineUpKey') == 1){
152
             if(sessionStorage.getItem('lineUpKey') == 1){
227
                 this.dialogTableVisible = true
153
                 this.dialogTableVisible = true
264
                 }
190
                 }
265
             }, 1000);
191
             }, 1000);
266
         }
192
         }
267
-        // this.websocketMess();
193
+       
268
     },
194
     },
269
     mounted(){
195
     mounted(){
270
         
196
         
271
-        // this.timer = setInterval(() => {
272
-        //     if(this.page < Math.ceil(this.count / 6)){
273
-        //         console.log('执行',Math.ceil(this.count / 6),this.page)
274
-        //         this.page++
275
-        //         let obj = {
276
-        //             cmd: "queue/queuelist",
277
-        //             data: {page:this.page,size:6,sort:0}
278
-        //         };
279
-        //         this.websocketSend(obj)
280
-        //         setTimeout(() => {
281
-        //             this.websocketMess();
282
-        //         }, 1000);
283
-        //     }
284
-        //     else{
285
-        //         console.log('执行22223333')
286
-        //         this.page = 1
287
-        //         let a = {
288
-        //             cmd: "queue/queuelist",
289
-        //             data: {page:this.page,size:6,sort:0}
290
-        //         };
291
-        //         this.websocketSend(a)
292
-        //         setTimeout(() => {
293
-        //             // this.websocketMess();
294
-        //             this.lineUpList
295
-        //         }, 1000);
197
+        this.timer = setInterval(() => {
198
+            if(this.page < Math.ceil(this.count / 6)){
199
+                console.log('执行',Math.ceil(this.count / 6),this.page)
200
+                this.page++
201
+                 this.getlist()
202
+                setTimeout(() => {
203
+                    this.websocketMess();
204
+                }, 1000);
205
+            }
206
+            else{
207
+                console.log('执行22223333')
208
+                this.page = 1
209
+                this.getlist()
210
+                setTimeout(() => {
211
+                    // this.websocketMess();
212
+                    this.lineUpList
213
+                }, 1000);
296
                 
214
                 
297
-        //     }
298
-        //     console.log('切换时间',this.queueConfig)
299
-        // }, 1000 * parseInt(this.queueConfig.qhsj));
300
-        // this.timerID = setInterval(() => {
301
-        //     this.updateTime()
302
-        // }, 1000);
303
-        // this.newTimes = setInterval(() => {
304
-        //     // this.reload()
305
-        //     console.log('1222222333333333');
306
-        //     sessionStorage.setItem('lineUpKey',1);
307
-        //     window.location.reload()
308
-        // }, 1000 * 60 * 30);
215
+            }
216
+            console.log('切换时间',this.queueConfig)
217
+        }, 1000 * parseInt(this.queueConfig.qhsj));
218
+        this.timerID = setInterval(() => {
219
+            this.updateTime()
220
+        }, 1000);
221
+        this.newTimes = setInterval(() => {
222
+            // this.reload()
223
+            console.log('1222222333333333');
224
+            sessionStorage.setItem('lineUpKey',1);
225
+            window.location.reload()
226
+        }, 1000 * 60 * 30);
309
     },
227
     },
310
     beforeDestroy(){
228
     beforeDestroy(){
311
         clearInterval(this.timer);// 清除定时器
229
         clearInterval(this.timer);// 清除定时器
312
         this.timer = null
230
         this.timer = null
313
         clearInterval(this.timerID);
231
         clearInterval(this.timerID);
314
         this.timerID = null;// 清除定时器
232
         this.timerID = null;// 清除定时器
315
-        // clearInterval(this.newTimes);  // 清除定时器
316
-        // this.newTimes = null
317
         let unObj = {
233
         let unObj = {
318
             cmd:'queue/unjoin',
234
             cmd:'queue/unjoin',
319
             data:{type:2}
235
             data:{type:2}
320
         }
236
         }
321
         this.websocketSend(unObj)
237
         this.websocketSend(unObj)
322
-        // this.timer = null;
323
-        // let obj = {
324
-        //     cmd: "queue/join",
325
-        //     data: {type:1},
326
-        // };
327
-        // this.websocketSend(obj)
328
     },
238
     },
329
     methods:{
239
     methods:{
330
         websocketSend(data) {
240
         websocketSend(data) {
473
         },
383
         },
474
         getDates(time){
384
         getDates(time){
475
             return moment(time * 1000).format('HH:mm:ss')
385
             return moment(time * 1000).format('HH:mm:ss')
476
-        }
386
+        },
387
+        getlist(){
388
+            var params = {
389
+              limit:this.limit,
390
+              page:this.page,
391
+              start_time:"2023-07-03",
392
+              end_time:"2023-07-09"
393
+            }
394
+          getContextScheduleList(params).then(response=>{
395
+             if(response.data.state ==1){
396
+               var schedule = response.data.data.schedule
397
+               
398
+               this.lineUpList = schedule
399
+               var list = response.data.data.list
400
+               console.log("list232322323",list)
401
+               for(let i=0;i<schedule.length;i++){
402
+                  if(schedule[i].mode_id ==1){
403
+                    schedule[i].mode_name = "HD"
404
+                  }
405
+                  if(schedule[i].mode_id ==2){
406
+                    schedule[i].mode_name = "HDF"
407
+                  }
408
+                  if(schedule[i].mode_id ==3){
409
+                    schedule[i].mode_name = "HD+HP"
410
+                  }
411
+
412
+                  if(schedule[i].mode_id ==4){
413
+                    schedule[i].mode_name = "HP"
414
+                  }
415
+
416
+                  if(schedule[i].mode_id ==5){
417
+                    schedule[i].mode_name = "HF"
418
+                  }
419
+
420
+                  
421
+                  if(schedule[i].mode_id ==6){
422
+                    schedule[i].mode_name = "SCUF"
423
+                  }
424
+
425
+                  if(schedule[i].mode_id ==7){
426
+                    schedule[i].mode_name = "IUF"
427
+                  }
428
+
429
+                  if(schedule[i].mode_id ==8){
430
+                    schedule[i].mode_name = "HFHD"
431
+                  }
432
+
433
+                  if(schedule[i].mode_id ==9){
434
+                    schedule[i].mode_name = "HFHD+HP"
435
+                  }
436
+                  
437
+                  if(schedule[i].mode_id ==10){
438
+                    schedule[i].mode_name = "PHF"
439
+                  }
440
+
441
+                  if(schedule[i].mode_id ==11){
442
+                    schedule[i].mode_name = "HFR"
443
+                  }
444
+
445
+                  if(schedule[i].mode_id ==12){
446
+                    schedule[i].mode_name = "HDF+HP"
447
+                  }
448
+
449
+                  if(schedule[i].mode_id ==13){
450
+                    schedule[i].mode_name = "CRRT"
451
+                  }
452
+
453
+                  if(schedule[i].mode_id ==14){
454
+                    schedule[i].mode_name = "腹水回输"
455
+                  }
456
+
457
+                  if(schedule[i].mode_id ==15){
458
+                    schedule[i].mode_name = "IUF+HD"
459
+                  }
460
+
461
+                  if(schedule[i].mode_id ==19){
462
+                    schedule[i].mode_name = "IUF+HD"
463
+                  }
464
+
465
+                  if(schedule[i].mode_id ==20){
466
+                    schedule[i].mode_name = "UF"
467
+                  }
468
+                  if(schedule[i].mode_id ==21){
469
+                    schedule[i].mode_name = "HD+"
470
+                  }
471
+
472
+                  if(schedule[i].mode_id ==22){
473
+                    schedule[i].mode_name = "血浆胆红素吸附+HDF"
474
+                  }
475
+
476
+                  if(schedule[i].mode_id ==23){
477
+                    schedule[i].mode_name = "血浆胆红素吸附"
478
+                  }
479
+
480
+                  if(schedule[i].mode_id ==24){
481
+                    schedule[i].mode_name = "I-HDF"
482
+                  }
483
+
484
+                  if(schedule[i].mode_id ==25){
485
+                    schedule[i].mode_name = "HD高通"
486
+                  }
487
+
488
+                  if(schedule[i].mode_id ==26){
489
+                    schedule[i].mode_name = "CVVH"
490
+                  }
491
+
492
+                  if(schedule[i].mode_id ==27){
493
+                    schedule[i].mode_name = "CVVHD"
494
+                  }
495
+
496
+                  if(schedule[i].mode_id ==28){
497
+                    schedule[i].mode_name = "CVVHDF"
498
+                  }
499
+                  
500
+                  if(schedule[i].mode_id ==29){
501
+                    schedule[i].mode_name = "PE"
502
+                  }
503
+
504
+                  if(schedule[i].mode_id ==30){
505
+                    schedule[i].mode_name = "血浆胆红素吸附+HP"
506
+                  }
507
+
508
+                  if(schedule[i].mode_id ==31){
509
+                    schedule[i].mode_name = "HPD"
510
+                  }
511
+
512
+                  if(schedule[i].mode_id ==32){
513
+                    schedule[i].mode_name = "HDP"
514
+                  }
515
+
516
+
517
+
518
+
519
+
520
+                  if(schedule[i].schedule_week ==1){
521
+                    schedule[i].schedule_week_name = "周一"
522
+                  }
523
+                  if(schedule[i].schedule_week ==2){
524
+                    schedule[i].schedule_week_name = "周二"
525
+                  }
526
+                  if(schedule[i].schedule_week ==3){
527
+                    schedule[i].schedule_week_name = "周三"
528
+                  }
529
+                  if(schedule[i].schedule_week ==4){
530
+                    schedule[i].schedule_week_name = "周四"
531
+                  }
532
+                  if(schedule[i].schedule_week ==5){
533
+                    schedule[i].schedule_week_name = "周五"
534
+                  }
535
+                  if(schedule[i].schedule_week ==6){
536
+                    schedule[i].schedule_week_name = "周六"
537
+                  }
538
+                  if(schedule[i].schedule_week ==7){
539
+                    schedule[i].schedule_week_name = "周日"
540
+                  }
541
+
542
+                  if(schedule[i].schedule_type ==1){
543
+                    schedule[i].schedule_type_name = "上午"
544
+                  }
545
+                  if(schedule[i].schedule_type ==2){
546
+                    schedule[i].schedule_type_name = "下午"
547
+                  }
548
+                  if(schedule[i].schedule_type ==3){
549
+                    schedule[i].schedule_type_name = "晚上"
550
+                  }
551
+                
552
+                  schedule[i].child = []
553
+                 for(let j=0;j<list.length;j++){
554
+                    
555
+                    if(schedule[i].patient_id == list[j].patient_id){
556
+                       schedule[i].child.push(list[j])
557
+                    }
558
+                 }
559
+               } 
560
+               console.log("schedule",schedule)
561
+               this.schedule = schedule
562
+             
563
+               var total = response.data.data.total
564
+               console.log("total+23323223",total)
565
+               var patients =  response.data.data.patients
566
+               console.log("patinets",patients)
567
+               this.patientList = patients
568
+
569
+               this.deviceNumberList =  response.data.data.devicenumber
570
+
571
+
572
+             }
573
+          })  
574
+        },
575
+        getPatientName(patient_id){
576
+          var name = ""
577
+          for(let i=0;i<this.patientList.length;i++){
578
+            if(patient_id == this.patientList[i].id){
579
+               name = this.patientList[i].name
580
+            }
581
+          }
582
+          return name
583
+        },
584
+        getDialysisNo(patient_id){
585
+          var dialysis_no = ""
586
+          for(let i=0;i<this.patientList.length;i++){
587
+            if(patient_id == this.patientList[i].id){
588
+                dialysis_no = this.patientList[i].dialysis_no
589
+            }
590
+          }
591
+          return dialysis_no
592
+        },
593
+        getContent(schedule){
594
+          var str = ""
595
+          if(schedule!=null && schedule.length >0){
596
+            for(let i=0;i<schedule.length;i++){
597
+                schedule[i].bed_number = this.getNumberName(schedule[i].bed_id)
598
+                if(schedule[i].mode_id ==1){
599
+                    schedule[i].mode_name = "HD"
600
+                  }
601
+                  if(schedule[i].mode_id ==2){
602
+                    schedule[i].mode_name = "HDF"
603
+                  }
604
+                  if(schedule[i].mode_id ==3){
605
+                    schedule[i].mode_name = "HD+HP"
606
+                  }
607
+
608
+                  if(schedule[i].mode_id ==4){
609
+                    schedule[i].mode_name = "HP"
610
+                  }
611
+
612
+                  if(schedule[i].mode_id ==5){
613
+                    schedule[i].mode_name = "HF"
614
+                  }
615
+
616
+                  
617
+                  if(schedule[i].mode_id ==6){
618
+                    schedule[i].mode_name = "SCUF"
619
+                  }
620
+
621
+                  if(schedule[i].mode_id ==7){
622
+                    schedule[i].mode_name = "IUF"
623
+                  }
624
+
625
+                  if(schedule[i].mode_id ==8){
626
+                    schedule[i].mode_name = "HFHD"
627
+                  }
628
+
629
+                  if(schedule[i].mode_id ==9){
630
+                    schedule[i].mode_name = "HFHD+HP"
631
+                  }
632
+                  
633
+                  if(schedule[i].mode_id ==10){
634
+                    schedule[i].mode_name = "PHF"
635
+                  }
636
+
637
+                  if(schedule[i].mode_id ==11){
638
+                    schedule[i].mode_name = "HFR"
639
+                  }
640
+
641
+                  if(schedule[i].mode_id ==12){
642
+                    schedule[i].mode_name = "HDF+HP"
643
+                  }
644
+
645
+                  if(schedule[i].mode_id ==13){
646
+                    schedule[i].mode_name = "CRRT"
647
+                  }
648
+
649
+                  if(schedule[i].mode_id ==14){
650
+                    schedule[i].mode_name = "腹水回输"
651
+                  }
652
+
653
+                  if(schedule[i].mode_id ==15){
654
+                    schedule[i].mode_name = "IUF+HD"
655
+                  }
656
+
657
+                  if(schedule[i].mode_id ==19){
658
+                    schedule[i].mode_name = "IUF+HD"
659
+                  }
660
+
661
+                  if(schedule[i].mode_id ==20){
662
+                    schedule[i].mode_name = "UF"
663
+                  }
664
+                  if(schedule[i].mode_id ==21){
665
+                    schedule[i].mode_name = "HD+"
666
+                  }
667
+
668
+                  if(schedule[i].mode_id ==22){
669
+                    schedule[i].mode_name = "血浆胆红素吸附+HDF"
670
+                  }
671
+
672
+                  if(schedule[i].mode_id ==23){
673
+                    schedule[i].mode_name = "血浆胆红素吸附"
674
+                  }
675
+
676
+                  if(schedule[i].mode_id ==24){
677
+                    schedule[i].mode_name = "I-HDF"
678
+                  }
679
+
680
+                  if(schedule[i].mode_id ==25){
681
+                    schedule[i].mode_name = "HD高通"
682
+                  }
683
+
684
+                  if(schedule[i].mode_id ==26){
685
+                    schedule[i].mode_name = "CVVH"
686
+                  }
687
+
688
+                  if(schedule[i].mode_id ==27){
689
+                    schedule[i].mode_name = "CVVHD"
690
+                  }
691
+
692
+                  if(schedule[i].mode_id ==28){
693
+                    schedule[i].mode_name = "CVVHDF"
694
+                  }
695
+                  
696
+                  if(schedule[i].mode_id ==29){
697
+                    schedule[i].mode_name = "PE"
698
+                  }
699
+
700
+                  if(schedule[i].mode_id ==30){
701
+                    schedule[i].mode_name = "血浆胆红素吸附+HP"
702
+                  }
703
+
704
+                  if(schedule[i].mode_id ==31){
705
+                    schedule[i].mode_name = "HPD"
706
+                  }
707
+
708
+                  if(schedule[i].mode_id ==32){
709
+                    schedule[i].mode_name = "HDP"
710
+                  }
711
+
712
+
713
+                  if(schedule[i].schedule_week ==1){
714
+                    schedule[i].schedule_week_name = "周一"
715
+                  }
716
+                  if(schedule[i].schedule_week ==2){
717
+                    schedule[i].schedule_week_name = "周二"
718
+                  }
719
+                  if(schedule[i].schedule_week ==3){
720
+                    schedule[i].schedule_week_name = "周三"
721
+                  }
722
+                  if(schedule[i].schedule_week ==4){
723
+                    schedule[i].schedule_week_name = "周四"
724
+                  }
725
+                  if(schedule[i].schedule_week ==5){
726
+                    schedule[i].schedule_week_name = "周五"
727
+                  }
728
+                  if(schedule[i].schedule_week ==6){
729
+                    schedule[i].schedule_week_name = "周六"
730
+                  }
731
+                  if(schedule[i].schedule_week ==7){
732
+                    schedule[i].schedule_week_name = "周日"
733
+                  }
734
+
735
+                  if(schedule[i].schedule_type ==1){
736
+                    schedule[i].schedule_type_name = "上午"
737
+                  }
738
+                  if(schedule[i].schedule_type ==2){
739
+                    schedule[i].schedule_type_name = "下午"
740
+                  }
741
+                  if(schedule[i].schedule_type ==3){
742
+                    schedule[i].schedule_type_name = "晚上"
743
+                  }
744
+                
745
+              str += " "+this.getTime(schedule[i].schedule_date)+" "+schedule[i].schedule_week_name + " " +schedule[i].schedule_type_name +" " + schedule[i].mode_name+"," 
746
+            }
747
+          }
748
+          return str
749
+        },
750
+        getTime(val) {
751
+         if(val < 0){
752
+           return ""
753
+         }
754
+         if(val == ""){
755
+          return ""
756
+         }else {
757
+          return uParseTime(val, '{m}-{d}')
758
+         }
759
+      },
760
+      getNumberName(id){
761
+         var number = ""
762
+         for(let i=0;i<this.deviceNumberList.length;i++){
763
+           if(id == this.deviceNumberList[i].bed_id){
764
+             number = this.deviceNumberList[i].bed_number
765
+           }
766
+         }
767
+         return number
768
+      }
477
     }
769
     }
478
 }
770
 }
479
 </script>
771
 </script>

+ 1 - 1
src/xt_pages/stock/drugs/components/drugQuery.vue View File

207
            <el-pagination
207
            <el-pagination
208
             @size-change="handleSizeChange"
208
             @size-change="handleSizeChange"
209
             @current-change="handleCurrentChange"
209
             @current-change="handleCurrentChange"
210
-            :page-sizes="[10, 50, 100,200,500,1000]"
210
+            :page-sizes="[10, 50, 100,200,300,400,500,1000]"
211
             :page-size="10"
211
             :page-size="10"
212
             background
212
             background
213
             align="right"
213
             align="right"

+ 22 - 9
src/xt_pages/stock/drugs/inventoryDetails.vue View File

35
                 <el-button size="small" type="primary">导出</el-button>
35
                 <el-button size="small" type="primary">导出</el-button>
36
             </div> -->
36
             </div> -->
37
         </div>
37
         </div>
38
-        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" style="width:100%">
38
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" style="width:100%"  @selection-change="changePrice" >
39
+           <el-table-column type="selection" width="50" align="center"> </el-table-column>
39
             <el-table-column prop="date" label="药品名称" align="center">
40
             <el-table-column prop="date" label="药品名称" align="center">
40
                <template slot-scope="scope">
41
                <template slot-scope="scope">
41
                  {{scope.row.drug_name}}
42
                  {{scope.row.drug_name}}
42
                </template>
43
                </template>
43
             </el-table-column>
44
             </el-table-column>
44
-            <el-table-column  prop="name" label="规格" width="200"  align="center">
45
+            <el-table-column  prop="name" label="规格" width="100"  align="center">
45
               <template slot-scope="scope">
46
               <template slot-scope="scope">
46
                  {{scope.row.specification_name}}
47
                  {{scope.row.specification_name}}
47
                </template>
48
                </template>
48
             </el-table-column>
49
             </el-table-column>
49
-            <el-table-column prop="name" label="单位" width="100"  align="center">
50
+            <el-table-column prop="name" label="单位" width="80"  align="center">
50
                 <template slot-scope="scope">
51
                 <template slot-scope="scope">
51
                   {{scope.row.warehousing_unit}}
52
                   {{scope.row.warehousing_unit}}
52
                </template>
53
                </template>
53
             </el-table-column>
54
             </el-table-column>
54
           
55
           
55
-            <el-table-column prop="name" label="进价" width="100"  align="center">
56
+            <el-table-column prop="name" label="进价" width="80"  align="center">
56
                 <template slot-scope="scope">
57
                 <template slot-scope="scope">
57
                    {{scope.row.last_price}}
58
                    {{scope.row.last_price}}
58
                 </template> 
59
                 </template> 
59
             </el-table-column>
60
             </el-table-column>
60
            
61
            
61
-            <el-table-column prop="name" label="生产厂商" width="200"  align="center">
62
+            <el-table-column prop="name" label="生产厂商" width="150"  align="center">
62
                 <template slot-scope="scope">
63
                 <template slot-scope="scope">
63
                   {{scope.row.manufacturer}}
64
                   {{scope.row.manufacturer}}
64
                 </template> 
65
                 </template> 
65
             </el-table-column>
66
             </el-table-column>
66
            
67
            
67
            
68
            
68
-            <el-table-column prop="name" label="有效日期" width="200"  align="center">
69
+            <el-table-column prop="name" label="有效日期" width="150"  align="center">
69
                 <template slot-scope="scope">
70
                 <template slot-scope="scope">
70
                    {{getTime(scope.row.expiry_date)}}
71
                    {{getTime(scope.row.expiry_date)}}
71
                 </template>  
72
                 </template>  
72
             </el-table-column>
73
             </el-table-column>
73
 
74
 
74
-           <el-table-column prop="name" label="仓库名称" width="200"  align="center">
75
+           <el-table-column prop="name" label="仓库名称" width="150"  align="center">
75
                 <template slot-scope="scope">
76
                 <template slot-scope="scope">
76
                    {{getHouseName(scope.row.storehouse_id)}}
77
                    {{getHouseName(scope.row.storehouse_id)}}
77
                 </template>  
78
                 </template>  
134
             page:1,
135
             page:1,
135
             storehouse_id:0,
136
             storehouse_id:0,
136
             houseList:[],
137
             houseList:[],
138
+            ids:[]
137
         }
139
         }
138
     },
140
     },
139
     methods:{
141
     methods:{
144
             this.$router.push({path:'/stock/drugs/inventoryPrint'}) 
146
             this.$router.push({path:'/stock/drugs/inventoryPrint'}) 
145
         },
147
         },
146
         print_1(){
148
         print_1(){
147
-           this.$router.push({path:'/stock/drugs/print?storehouse_id='+this.storehouse_id+"&drug_name="+this.searchKey+"&limit="+this.limit+"&page="+this.page}) 
149
+           this.$router.push({path:'/stock/drugs/print?storehouse_id='+this.storehouse_id+"&drug_name="+this.searchKey+"&limit="+this.limit+"&page="+this.page+"&ids="+this.ids}) 
148
         },
150
         },
149
         handleSizeChange(val){
151
         handleSizeChange(val){
150
          this.limit = val
152
          this.limit = val
208
          }else{
210
          }else{
209
            return storehouse_name
211
            return storehouse_name
210
          }
212
          }
211
-       }
213
+       },
214
+       changePrice(val){  
215
+       
216
+        var arr = []
217
+        for(let i=0;i<val.length;i++){
218
+            arr.push(val[i].id)
219
+        }
220
+        var str = arr.join(",")
221
+        
222
+        console.log("str",str)
223
+        this.ids = str  
224
+      },
212
     },
225
     },
213
     created(){
226
     created(){
214
       this.getlist()
227
       this.getlist()

+ 3 - 2
src/xt_pages/stock/drugs/print.vue View File

74
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
74
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
75
 const moment = require('moment');
75
 const moment = require('moment');
76
 import { uParseTime } from '@/utils/tools'
76
 import { uParseTime } from '@/utils/tools'
77
-import { getInventoryDetailList } from "@/api/drug/drug"
77
+import { getInventoryDetailPrintList } from "@/api/drug/drug"
78
 import print from "print-js";
78
 import print from "print-js";
79
 import { min } from 'moment';
79
 import { min } from 'moment';
80
 export default {
80
 export default {
123
               page:this.$route.query.page,
123
               page:this.$route.query.page,
124
               keyword:this.$route.query.drug_name,
124
               keyword:this.$route.query.drug_name,
125
               storehouse_id:this.$route.query.storehouse_id,
125
               storehouse_id:this.$route.query.storehouse_id,
126
+              ids:this.$route.query.ids,
126
             }
127
             }
127
-          getInventoryDetailList(params).then(response=>{
128
+          getInventoryDetailPrintList(params).then(response=>{
128
              if(response.data.state == 1){
129
              if(response.data.state == 1){
129
               this.total =  response.data.data.total
130
               this.total =  response.data.data.total
130
               this.tableData = response.data.data.list
131
               this.tableData = response.data.data.list

+ 1 - 1
src/xt_pages/stock/inventoryDetails.vue View File

131
     },
131
     },
132
     methods:{
132
     methods:{
133
         toprint(){
133
         toprint(){
134
-          this.$router.push({path:'/stock/print_all?storehouse_id='+this.storehouse_id+"&good_name="+this.searchKey+"&limit="+this.limit+"&page="+this.page})
134
+          this.$router.push({path:'/stock/print_all?storehouse_id='+this.storehouse_id+"&good_name="+this.searchKey+"&limit="+this.limit+"&page="+this.page+"&ids="+this.ids})
135
         },
135
         },
136
 
136
 
137
         search(){
137
         search(){

+ 1 - 0
src/xt_pages/stock/print_all.vue View File

108
             good_name:this.$route.query.good_name,
108
             good_name:this.$route.query.good_name,
109
             limit:this.$route.query.limit,
109
             limit:this.$route.query.limit,
110
             page:this.$route.query.page,
110
             page:this.$route.query.page,
111
+            ids:this.$route.query.ids,
111
           }
112
           }
112
          getPrintList(params).then(response=>{
113
          getPrintList(params).then(response=>{
113
            if(response.data.state == 1){
114
            if(response.data.state == 1){

+ 1 - 1
src/xt_pages/stock/query/goodNewQuery.vue View File

188
            <el-pagination
188
            <el-pagination
189
             @size-change="handleSizeChange"
189
             @size-change="handleSizeChange"
190
             @current-change="handleCurrentChange"
190
             @current-change="handleCurrentChange"
191
-            :page-sizes="[10, 50, 100,200,500,1000]"
191
+            :page-sizes="[10, 50, 100,200,300,400,500,1000]"
192
             :page-size="10"
192
             :page-size="10"
193
             background
193
             background
194
             align="right"
194
             align="right"

+ 28 - 1
src/xt_pages/user/components/PatientDetail.vue View File

365
                 </el-form-item>
365
                 </el-form-item>
366
               </el-col>
366
               </el-col>
367
 
367
 
368
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
369
+                <el-form-item
370
+                  label="患者去向时间 : "
371
+                >
372
+                <el-date-picker
373
+                  size="small"
374
+                  disabled
375
+                  v-model="form.patient_start_time"
376
+                  prefix-icon="el-icon-date"
377
+                  :editable="false"
378
+                  style="width: 150px;"
379
+                  type="date"
380
+                  placeholder="选择日期时间"
381
+                  align="right"
382
+                  format="yyyy-MM-dd"
383
+                  value-format="yyyy-MM-dd"
384
+                  @change="startTimeChange"
385
+                 ></el-date-picker>
386
+                </el-form-item>
387
+              </el-col>
388
+
368
                 <el-col :span="8" style="margin-bottom: 20px;">
389
                 <el-col :span="8" style="margin-bottom: 20px;">
369
                 <el-form-item
390
                 <el-form-item
370
                   label="备注 : "
391
                   label="备注 : "
1272
   doctor:"",
1293
   doctor:"",
1273
   record_number:"",
1294
   record_number:"",
1274
   patient_source:"",
1295
   patient_source:"",
1296
+  patient_start_time:"",
1275
 };
1297
 };
1276
 
1298
 
1277
 export default {
1299
 export default {
1615
             );
1637
             );
1616
             
1638
             
1617
             this.form.patient_source = patietInfo.patient_source
1639
             this.form.patient_source = patietInfo.patient_source
1618
-
1640
+            if (patietInfo.patient_start_time != 0) {
1641
+              this.form.patient_start_time = uParseTime(
1642
+                patietInfo.patient_start_time,
1643
+                "{y}-{m}-{d}"
1644
+              );
1645
+            }
1619
             // this.form.initial = patietInfo.initial_dialysis + "";
1646
             // this.form.initial = patietInfo.initial_dialysis + "";
1620
             // this.form.dialysisTotal = patietInfo.total_dialysis + "";
1647
             // this.form.dialysisTotal = patietInfo.total_dialysis + "";
1621
             // this.form.assessment = patietInfo.evaluate;
1648
             // this.form.assessment = patietInfo.evaluate;

+ 36 - 2
src/xt_pages/user/components/PatientForm.vue View File

410
                 </el-form-item>
410
                 </el-form-item>
411
               </el-col>
411
               </el-col>
412
 
412
 
413
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
414
+                <el-form-item
415
+                  label="患者去向时间 : "
416
+                >
417
+                <el-date-picker
418
+                  size="small"
419
+                  v-model="form.patient_start_time"
420
+                  prefix-icon="el-icon-date"
421
+                  :editable="false"
422
+                  style="width: 150px;"
423
+                  type="date"
424
+                  placeholder="选择日期时间"
425
+                  align="right"
426
+                  format="yyyy-MM-dd"
427
+                  value-format="yyyy-MM-dd"
428
+                  @change="startTimeChange"
429
+                 ></el-date-picker>
430
+                </el-form-item>
431
+              </el-col>
432
+
413
               <el-col :span="8" style="margin-bottom: 20px;" :style="isEdit ? 'width:360px' : ''">
433
               <el-col :span="8" style="margin-bottom: 20px;" :style="isEdit ? 'width:360px' : ''">
414
                 <el-form-item
434
                 <el-form-item
415
                   label="备注 : "
435
                   label="备注 : "
1078
   zb_patient_id:"",
1098
   zb_patient_id:"",
1079
   doctor:"",
1099
   doctor:"",
1080
   patient_source:0,
1100
   patient_source:0,
1101
+  patient_start_time:"",
1081
   formItem: [
1102
   formItem: [
1082
     {
1103
     {
1083
       id: 0,
1104
       id: 0,
1958
 
1979
 
1959
          
1980
          
1960
             this.form.patient_source = patietInfo.patient_source
1981
             this.form.patient_source = patietInfo.patient_source
1961
-            
1982
+          
1983
+            if (patietInfo.patient_start_time != 0) {
1984
+              this.form.patient_start_time = uParseTime(
1985
+                patietInfo.patient_start_time,
1986
+                "{y}-{m}-{d}"
1987
+              );
1988
+            }
1962
             this.checkIdCardNo();
1989
             this.checkIdCardNo();
1963
           } else {
1990
           } else {
1964
             this.$notify.error({
1991
             this.$notify.error({
2001
       if(val == 2){
2028
       if(val == 2){
2002
         this.showOne = true
2029
         this.showOne = true
2003
       }
2030
       }
2004
-    }
2031
+    },
2032
+
2033
+    getTime(value, temp) {
2034
+      if (value != undefined) {
2035
+        return uParseTime(value, temp);
2036
+      }
2037
+      return "";
2038
+    },
2005
 
2039
 
2006
     // fetchAllDoctorAndNurse() {
2040
     // fetchAllDoctorAndNurse() {
2007
     // fetchAllDoctorAndNurse().then(response => {
2041
     // fetchAllDoctorAndNurse().then(response => {

+ 15 - 15
src/xt_pages/workforce/components/editTableData.vue View File

2028
       zoneIdList: [],
2028
       zoneIdList: [],
2029
       strArr: "",
2029
       strArr: "",
2030
       patient_id_hover: 0,//高亮id
2030
       patient_id_hover: 0,//高亮id
2031
-
2031
+      // Mouse_id_hover:0,
2032
       now_time: "",
2032
       now_time: "",
2033
       activeItem: {
2033
       activeItem: {
2034
         day: null,
2034
         day: null,
3661
     },
3661
     },
3662
     // 高亮
3662
     // 高亮
3663
     hoverMouse(row, column, cell, event) {
3663
     hoverMouse(row, column, cell, event) {
3664
-      console.log('sdf12344565');
3665
-      if (row[column.property].schedule_id > 0) {
3666
-        let patient_id = row[column.property].patient_id
3667
-        this.patient_id_hover = patient_id
3668
-      } else {
3669
-        this.patient_id_hover = -1
3670
-      }
3664
+      // console.log('sdf12344565');
3665
+      // if (row[column.property].schedule_id > 0) {
3666
+      //   let patient_id = row[column.property].patient_id
3667
+      //   this.Mouse_id_hover = patient_id
3668
+      //   // this.cur_info.patient_id = row.id
3669
+      // } else {
3670
+      //   this.Mouse_id_hover = -1
3671
+      // }
3671
     },
3672
     },
3672
     // 单元格的 className 的回调方法
3673
     // 单元格的 className 的回调方法
3673
     cellClass({ row, column, rowIndex, columnIndex }) {
3674
     cellClass({ row, column, rowIndex, columnIndex }) {
3707
             ) {
3708
             ) {
3708
               return "hover-td schedule-table-cell-disable";
3709
               return "hover-td schedule-table-cell-disable";
3709
             } 
3710
             } 
3710
-            if(column.label == '晚'){
3711
-              return 'evening_border schedule-table-cell-disable'
3712
-            }
3711
+            // if(column.label == '晚'){
3712
+            //   return 'evening_border schedule-table-cell-disable'
3713
+            // }
3713
             return "schedule-table-cell-disable";
3714
             return "schedule-table-cell-disable";
3714
           } else {
3715
           } else {
3715
-            if(column.label == '晚' ){
3716
-                return 'evening_border'
3717
-            }
3716
+            // if(column.label == '晚' ){
3717
+            //     return 'evening_border'
3718
+            // }
3718
             if (
3719
             if (
3719
                 row[column.property].patient_id > 0 &&
3720
                 row[column.property].patient_id > 0 &&
3720
                 row[column.property].patient_id == this.patient_id_hover
3721
                 row[column.property].patient_id == this.patient_id_hover
3757
       if(this.cur_info.patient_id == row.id){
3758
       if(this.cur_info.patient_id == row.id){
3758
         // console.log('patientClassrowIndex的数据',rowIndex);
3759
         // console.log('patientClassrowIndex的数据',rowIndex);
3759
         // console.log('row的数据',row);
3760
         // console.log('row的数据',row);
3760
-
3761
         return 'highlight'
3761
         return 'highlight'
3762
       }
3762
       }
3763
     },
3763
     },

+ 21 - 21
src/xt_pages/workforce/scheduleTablePrint.vue View File

47
                 <td style="min-width:40px;">
47
                 <td style="min-width:40px;">
48
                     <span v-if="item.Mon_M.patient_id">
48
                     <span v-if="item.Mon_M.patient_id">
49
                         <span>{{ item.Mon_M.patient }}</span>
49
                         <span>{{ item.Mon_M.patient }}</span>
50
-                        <span>{{ item.Mon_M.mode_name }}</span>
50
+                        <span v-if="item.Mon_M.mode_name != 'HD'">{{ item.Mon_M.mode_name }}</span>
51
                     </span>
51
                     </span>
52
                 </td>
52
                 </td>
53
                 <td style="min-width:40px;">
53
                 <td style="min-width:40px;">
54
                     <span v-if="item.Mon_A.patient_id">
54
                     <span v-if="item.Mon_A.patient_id">
55
                        
55
                        
56
                         <span>{{ item.Mon_A.patient }}</span>
56
                         <span>{{ item.Mon_A.patient }}</span>
57
-                        <span>{{ item.Mon_A.mode_name }}</span>
57
+                        <span v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</span>
58
                     </span>
58
                     </span>
59
                 </td>
59
                 </td>
60
                 <td style="min-width:40px;">
60
                 <td style="min-width:40px;">
61
                     <span v-if="item.Mon_N.patient_id">
61
                     <span v-if="item.Mon_N.patient_id">
62
                         
62
                         
63
                         <span>{{ item.Mon_N.patient }}</span>
63
                         <span>{{ item.Mon_N.patient }}</span>
64
-                        <span>{{ item.Mon_N.mode_name }}</span>
64
+                        <span v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</span>
65
                     </span>
65
                     </span>
66
                 </td>
66
                 </td>
67
                 <td style="min-width:40px;">
67
                 <td style="min-width:40px;">
68
                     <span v-if="item.Tue_M.patient_id">
68
                     <span v-if="item.Tue_M.patient_id">
69
                         
69
                         
70
                         <span>{{ item.Tue_M.patient }}</span>
70
                         <span>{{ item.Tue_M.patient }}</span>
71
-                        <span>{{ item.Tue_M.mode_name }}</span>
71
+                        <span  v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</span>
72
                     </span>
72
                     </span>
73
                 </td>
73
                 </td>
74
                 <td style="min-width:40px;">
74
                 <td style="min-width:40px;">
75
                     <span v-if="item.Tue_A.patient_id">
75
                     <span v-if="item.Tue_A.patient_id">
76
                         
76
                         
77
                         <span>{{ item.Tue_A.patient }}</span>
77
                         <span>{{ item.Tue_A.patient }}</span>
78
-                        <span>{{ item.Tue_A.mode_name }}</span>
78
+                        <span  v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</span>
79
                     </span>
79
                     </span>
80
                 </td>
80
                 </td>
81
                 <td style="min-width:40px;">
81
                 <td style="min-width:40px;">
82
                     <span v-if="item.Tue_N.patient_id">
82
                     <span v-if="item.Tue_N.patient_id">
83
                         
83
                         
84
                         <span>{{ item.Tue_N.patient }}</span>
84
                         <span>{{ item.Tue_N.patient }}</span>
85
-                        <span>{{ item.Tue_N.mode_name }}</span>
85
+                        <span v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</span>
86
                     </span>
86
                     </span>
87
                 </td>
87
                 </td>
88
                 <td style="min-width:40px;">
88
                 <td style="min-width:40px;">
89
                     <span v-if="item.Wed_M.patient_id">
89
                     <span v-if="item.Wed_M.patient_id">
90
                         
90
                         
91
                         <span>{{ item.Wed_M.patient }}</span>
91
                         <span>{{ item.Wed_M.patient }}</span>
92
-                        <span>{{ item.Wed_M.mode_name }}</span>
92
+                        <span v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</span>
93
                     </span>
93
                     </span>
94
                 </td>
94
                 </td>
95
                 <td style="min-width:40px;">
95
                 <td style="min-width:40px;">
96
                     <span v-if="item.Wed_A.patient_id">
96
                     <span v-if="item.Wed_A.patient_id">
97
                         <span>{{ item.Wed_A.patient }}</span>
97
                         <span>{{ item.Wed_A.patient }}</span>
98
-                        <span>{{ item.Wed_A.mode_name }}</span>
98
+                        <span v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</span>
99
                     </span>
99
                     </span>
100
                 </td>
100
                 </td>
101
                 <td style="min-width:40px;">
101
                 <td style="min-width:40px;">
102
                     <span v-if="item.Wed_N.patient_id">
102
                     <span v-if="item.Wed_N.patient_id">
103
                         <span>{{ item.Wed_N.patient }}</span>
103
                         <span>{{ item.Wed_N.patient }}</span>
104
-                        <span>{{ item.Wed_N.mode_name }}</span>
104
+                        <span v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</span>
105
                     </span>
105
                     </span>
106
                 </td>
106
                 </td>
107
                 <td style="min-width:40px;">
107
                 <td style="min-width:40px;">
108
                     <span v-if="item.Thurs_M.patient_id">     
108
                     <span v-if="item.Thurs_M.patient_id">     
109
                         <span>{{ item.Thurs_M.patient }}</span>
109
                         <span>{{ item.Thurs_M.patient }}</span>
110
-                        <span>{{ item.Thurs_M.mode_name }}</span>
110
+                        <span  v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</span>
111
                     </span>
111
                     </span>
112
                 </td>
112
                 </td>
113
                 <td style="min-width:40px;">
113
                 <td style="min-width:40px;">
114
                     <span v-if="item.Thurs_A.patient_id">                   
114
                     <span v-if="item.Thurs_A.patient_id">                   
115
                         <span>{{ item.Thurs_A.patient }}</span>
115
                         <span>{{ item.Thurs_A.patient }}</span>
116
-                        <span>{{ item.Thurs_A.mode_name }}</span>
116
+                        <span v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</span>
117
                     </span>
117
                     </span>
118
                 </td>
118
                 </td>
119
                 <td style="min-width:40px;">
119
                 <td style="min-width:40px;">
120
                     <span v-if="item.Thurs_N.patient_id">           
120
                     <span v-if="item.Thurs_N.patient_id">           
121
                         <span>{{ item.Thurs_N.patient }}</span>
121
                         <span>{{ item.Thurs_N.patient }}</span>
122
-                        <span>{{ item.Thurs_N.mode_name }}</span>
122
+                        <span  v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</span>
123
                     </span>
123
                     </span>
124
                 </td>
124
                 </td>
125
                 <td style="min-width:40px;">
125
                 <td style="min-width:40px;">
126
                     <span v-if="item.Fri_M.patient_id">                  
126
                     <span v-if="item.Fri_M.patient_id">                  
127
                         <span>{{ item.Fri_M.patient }}</span>
127
                         <span>{{ item.Fri_M.patient }}</span>
128
-                        <span>{{ item.Fri_M.mode_name }}</span>
128
+                        <span v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</span>
129
                     </span>
129
                     </span>
130
                 </td>
130
                 </td>
131
                 <td style="min-width:40px;">
131
                 <td style="min-width:40px;">
132
                     <span v-if="item.Fri_A.patient_id">                     
132
                     <span v-if="item.Fri_A.patient_id">                     
133
                         <span>{{ item.Fri_A.patient }}</span>
133
                         <span>{{ item.Fri_A.patient }}</span>
134
-                        <span>{{ item.Fri_A.mode_name }}</span>
134
+                        <span v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</span>
135
                     </span>
135
                     </span>
136
                 </td>
136
                 </td>
137
                 <td style="min-width:40px;">
137
                 <td style="min-width:40px;">
138
                     <span v-if="item.Fri_N.patient_id">                      
138
                     <span v-if="item.Fri_N.patient_id">                      
139
                         <span>{{ item.Fri_N.patient }}</span>
139
                         <span>{{ item.Fri_N.patient }}</span>
140
-                        <span>{{ item.Sat_M.mode_name }}</span>
140
+                        <span v-if="item.Fri_N.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
141
                     </span>
141
                     </span>
142
                 </td>
142
                 </td>
143
                 <td style="min-width:40px;">
143
                 <td style="min-width:40px;">
144
                     <span v-if="item.Sat_M.patient_id">                      
144
                     <span v-if="item.Sat_M.patient_id">                      
145
                         <span>{{ item.Sat_M.patient }}</span>
145
                         <span>{{ item.Sat_M.patient }}</span>
146
-                        <span>{{ item.Sat_M.mode_name }}</span>
146
+                        <span  v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
147
                     </span>
147
                     </span>
148
                 </td>
148
                 </td>
149
                 <td style="min-width:40px;">
149
                 <td style="min-width:40px;">
150
                     <span v-if="item.Sat_A.patient_id">                       
150
                     <span v-if="item.Sat_A.patient_id">                       
151
                         <span>{{ item.Sat_A.patient }}</span>
151
                         <span>{{ item.Sat_A.patient }}</span>
152
-                        <span>{{ item.Sat_A.mode_name }}</span>
152
+                        <span v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</span>
153
                     </span>
153
                     </span>
154
                 </td>
154
                 </td>
155
                 <td style="min-width:40px;">
155
                 <td style="min-width:40px;">
156
                     <span v-if="item.Sat_N.patient_id">
156
                     <span v-if="item.Sat_N.patient_id">
157
                         <span>{{ item.Sat_N.patient }}</span>
157
                         <span>{{ item.Sat_N.patient }}</span>
158
-                        <span>{{ item.Sat_N.mode_name }}</span>
158
+                        <span v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</span>
159
                     </span>
159
                     </span>
160
                 </td>
160
                 </td>
161
                 <td style="min-width:40px;">
161
                 <td style="min-width:40px;">
162
                     <span v-if="item.Sun_M.patient_id">
162
                     <span v-if="item.Sun_M.patient_id">
163
                         <span>{{ item.Sun_M.patient }}</span>
163
                         <span>{{ item.Sun_M.patient }}</span>
164
-                        <span>{{ item.Sun_M.mode_name }}</span>
164
+                        <span v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }}</span>
165
                     </span>
165
                     </span>
166
                 </td>
166
                 </td>
167
                 <td style="min-width:40px;">
167
                 <td style="min-width:40px;">
168
                     <span v-if="item.Sun_A.patient_id">
168
                     <span v-if="item.Sun_A.patient_id">
169
                         <span>{{ item.Sun_A.patient }}</span>
169
                         <span>{{ item.Sun_A.patient }}</span>
170
-                        <span>{{ item.Sun_A.mode_name }}</span>
170
+                        <span v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }}</span>
171
                     </span>
171
                     </span>
172
                 </td>
172
                 </td>
173
                 <td style="min-width:40px;">
173
                 <td style="min-width:40px;">
174
                     <span v-if="item.Sun_N.patient_id">
174
                     <span v-if="item.Sun_N.patient_id">
175
                         <span>{{ item.Sun_N.patient }}</span>
175
                         <span>{{ item.Sun_N.patient }}</span>
176
-                        <span>{{ item.Sun_N.mode_name }}</span>
176
+                        <span v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }}</span>
177
                     </span>
177
                     </span>
178
                 </td>
178
                 </td>
179
                 <td>{{item.total}}</td>
179
                 <td>{{item.total}}</td>