Browse Source

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

陈少旭 10 months ago
parent
commit
212fb46839

+ 9 - 0
src/api/stock.js View File

@@ -1088,3 +1088,12 @@ export function getNewWarehouseOutInfoList(params) {
1088 1088
     params: params
1089 1089
   })
1090 1090
 }
1091
+
1092
+
1093
+export function getStockFlowOrderList(params){
1094
+  return request({
1095
+    url:"/api/stock/getstockfloworderlist",
1096
+    method:"Get",
1097
+    params:params,
1098
+  })
1099
+}

+ 87 - 3
src/vendor/Export2Excel.js View File

@@ -182,6 +182,7 @@ export function export_json_to_excel({
182 182
       if (val == null) {
183 183
         return {
184 184
           'wch': 10
185
+          // 'wch': 1
185 186
         };
186 187
       }
187 188
       /*再判断是否为中文*/
@@ -199,9 +200,12 @@ export function export_json_to_excel({
199 200
     let result = colWidth[0];
200 201
     for (let i = 1; i < colWidth.length; i++) {
201 202
       for (let j = 0; j < colWidth[i].length; j++) {
202
-        if (result[j]['wch'] < colWidth[i][j]['wch']) {
203
-          result[j]['wch'] = colWidth[i][j]['wch'];
204
-        }
203
+        // console.log('7777',result[j]['wch'] ,colWidth[i][j]['wch']);
204
+        // if(colWidth[i][j]['wch']!=''){
205
+          if (result[j]['wch'] < colWidth[i][j]['wch']) {
206
+            result[j]['wch'] = colWidth[i][j]['wch'];
207
+          }
208
+        // }
205 209
       }
206 210
     }
207 211
     ws['!cols'] = result;
@@ -387,3 +391,83 @@ export function export_json_to_excel2({
387 391
     type: "application/octet-stream"
388 392
   }), `${filename}.${bookType}`);
389 393
 }
394
+
395
+export function export_json_to_excel3({
396
+  multiHeader = [],
397
+  header,
398
+  data,
399
+  filename,
400
+  merges = [],
401
+  autoWidth = true,
402
+  bookType = 'xlsx'
403
+} = {}) {
404
+  /* original data */
405
+  filename = filename || 'excel-list'
406
+  data = [...data]
407
+  data.unshift(header);
408
+  // console.log('wwwww',data);
409
+  for (let i = multiHeader.length - 1; i > -1; i--) {
410
+    data.unshift(multiHeader[i])
411
+  }
412
+  // console.log('qqqqq',data);
413
+  var ws_name = "SheetJS";
414
+  var wb = new Workbook(),
415
+    ws = sheet_from_array_of_arrays(data);
416
+
417
+  if (merges.length > 0) {
418
+    if (!ws['!merges']) ws['!merges'] = [];
419
+    merges.forEach(item => {
420
+      console.log(XLSX.utils.decode_range(item))
421
+      ws['!merges'].push(XLSX.utils.decode_range(item))
422
+    })
423
+  }
424
+
425
+  if (autoWidth) {
426
+    /*设置worksheet每列的最大宽度*/
427
+    const colWidth = data.map(row => row.map(val => {
428
+      /*先判断是否为null/undefined*/
429
+      if (val == null) {
430
+        return {
431
+          'wch': 10
432
+          // 'wch': 1
433
+        };
434
+      }
435
+      /*再判断是否为中文*/
436
+      else if (val.toString().charCodeAt(0) > 255) {
437
+        return {
438
+          'wch': val.toString().length * 2
439
+        };
440
+      } else {
441
+        return {
442
+          'wch': val.toString().length
443
+        };
444
+      }
445
+    }))
446
+    /*以第一行为初始值*/
447
+    let result = colWidth[0];
448
+    for (let i = 1; i < colWidth.length; i++) {
449
+      for (let j = 0; j < colWidth[i].length; j++) {
450
+        // console.log('7777',result[j]['wch'] ,colWidth[i][j]['wch']);
451
+        if(colWidth[i][j]['wch']!=''){
452
+          if (result[j]['wch'] < colWidth[i][j]['wch']) {
453
+            result[j]['wch'] = colWidth[i][j]['wch'];
454
+          }
455
+        }
456
+      }
457
+    }
458
+    ws['!cols'] = result;
459
+  }
460
+
461
+  /* add worksheet to workbook */
462
+  wb.SheetNames.push(ws_name);
463
+  wb.Sheets[ws_name] = ws;
464
+
465
+  var wbout = XLSX.write(wb, {
466
+    bookType: bookType,
467
+    bookSST: false,
468
+    type: 'binary'
469
+  });
470
+  saveAs(new Blob([s2ab(wbout)], {
471
+    type: "application/octet-stream"
472
+  }), `${filename}.${bookType}`);
473
+}

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seventy.vue View File

@@ -1276,7 +1276,7 @@
1276 1276
                         </tr>
1277 1277
                         <tr>
1278 1278
                           <td width="60">时间</td>
1279
-                          <td width="60">体温(°C)</td>
1279
+                          <td width="60">透析液温度(°C)</td>
1280 1280
                           <td width="50">脉搏<br />(次/分)</td>
1281 1281
                           <td width="50">呼吸<br />(次/分)</td>
1282 1282
                           <td width="60">血压<br />(mmHg)</td>

+ 20 - 3
src/xt_pages/dialysis/details/consumable/dialysisGather.vue View File

@@ -122,7 +122,10 @@
122 122
              
123 123
           <el-table-column align="center" label="透析器"  v-if="gatherSetting.dialysis_dialyszers == 1">
124 124
              <template slot-scope="scope">
125
-               <span v-if="scope.row.schedule_date == timenow">{{scope.row.dialysis_prescription.dialysis_dialyszers}}</span>
125
+               <span v-if="scope.row.schedule_date == timenow">
126
+                <span v-if="scope.row.dialysis_prescription.dialysis_dialyszers!=''">{{scope.row.dialysis_prescription.dialysis_dialyszers}}</span> 
127
+                <span v-if="scope.row.dialysis_prescription.dialysis_dialyszers==''">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span> 
128
+               </span>
126 129
 
127 130
                <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
128 131
 
@@ -133,7 +136,14 @@
133 136
            <el-table-column align="center" label="灌流器"  v-if="gatherSetting.dialysis_irrigation ==1">
134 137
              <template slot-scope="scope">
135 138
 
136
-               <span v-if="scope.row.schedule_date == timenow">{{scope.row.dialysis_prescription.dialysis_irrigation}}</span>
139
+               <span v-if="scope.row.schedule_date == timenow">
140
+                 <span v-if="scope.row.dialysis_prescription.dialysis_irrigation !=''">
141
+                  {{scope.row.dialysis_prescription.dialysis_irrigation}}
142
+                 </span> 
143
+                 <span v-if="scope.row.dialysis_prescription.dialysis_irrigation ==''">
144
+                  {{scope.row.dialysis_solution.dialysis_irrigation}}
145
+                 </span> 
146
+               </span>
137 147
                <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
138 148
                <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
139 149
 
@@ -143,7 +153,14 @@
143 153
           <el-table-column align="center" label="滤过器"  v-if="gatherSetting.dialysis_strainer ==1">
144 154
              <template slot-scope="scope">
145 155
               
146
-               <span v-if="scope.row.schedule_date == timenow">{{scope.row.dialysis_prescription.dialysis_strainer}}</span>
156
+               <span v-if="scope.row.schedule_date == timenow">
157
+                <span v-if="scope.row.dialysis_prescription.dialysis_strainer!=''">
158
+                  {{scope.row.dialysis_prescription.dialysis_strainer}}
159
+                </span>
160
+                <span v-if="scope.row.dialysis_prescription.dialysis_strainer==''">
161
+                  {{ scope.row.dialysis_solution.dialysis_strainer }}
162
+                </span>
163
+               </span>
147 164
                <span v-if="scope.row.schedule_date<timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
148 165
                <span v-if="scope.row.schedule_date>timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
149 166
              </template>

+ 12 - 3
src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue View File

@@ -92,19 +92,28 @@
92 92
                     <span v-if="item.mode_id == 35">HDF1000</span>
93 93
                  </td>
94 94
                   <td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">
95
-                    <span v-if="item.schedule_date == timenow">{{item.dialysis_prescription.dialysis_dialyszers}}</span> 
95
+                    <span v-if="item.schedule_date == timenow">
96
+                      <span v-if="item.dialysis_prescription.dialysis_dialyszers!=''">{{item.dialysis_prescription.dialysis_dialyszers}}</span> 
97
+                      <span v-if="item.dialysis_prescription.dialysis_dialyszers==''">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
98
+                     </span> 
96 99
                     <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
97 100
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
98 101
                   </td>
99 102
                   <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">
100
-                    <span v-if="item.schedule_date == timenow">{{item.dialysis_prescription.dialysis_irrigation}}</span>
103
+                    <span v-if="item.schedule_date == timenow">
104
+                      <span v-if="item.dialysis_prescription.dialysis_irrigation!=''"> {{item.dialysis_prescription.dialysis_irrigation}}</span>
105
+                      <span v-if="item.dialysis_prescription.dialysis_irrigation==''"> {{item.dialysis_solution.dialysis_irrigation}}</span>
106
+                    </span>
101 107
 
102 108
                     <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
103 109
 
104 110
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
105 111
                   </td>
106 112
                   <td width="100"  v-if="gatherSetting.dialysis_strainer ==1">
107
-                    <span v-if="item.schedule_date == timenow">{{item.dialysis_prescription.dialysis_strainer}}</span>
113
+                    <span v-if="item.schedule_date == timenow">
114
+                      <span v-if="item.dialysis_prescription.dialysis_strainer!=''">{{item.dialysis_prescription.dialysis_strainer}}</span> 
115
+                      <span v-if="item.dialysis_prescription.dialysis_strainer==''">{{item.dialysis_solution.dialysis_strainer}}</span> 
116
+                    </span>
108 117
 
109 118
                     <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
110 119
 

+ 2 - 2
src/xt_pages/dialysis/signPrint.vue View File

@@ -28,7 +28,7 @@
28 28
                             规格:{{getSpecialName(it.drug_id)}} 
29 29
                             
30 30
                             </div>  
31
-                            <div v-if="(org_id ==0 || org_id==10440 || org_id == 10478) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
31
+                            <div v-if="(org_id ==0 || org_id==10440 || org_id == 10478 || org_id ==10571) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
32 32
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
33 33
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
34 34
                              
@@ -45,7 +45,7 @@
45 45
                             规格:{{getSpecialName(its.drug_id)}} 
46 46
                             
47 47
                             </div>  
48
-                            <div v-if=" org_id ==0 || org_id==10440 || org_id == 10478">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
48
+                            <div v-if=" org_id ==0 || org_id==10440 || org_id == 10478 || org_id ==10571">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
49 49
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{its.execution_frequency}}</div>  
50 50
                             <div>给药途径:{{its.delivery_way}}</div>  
51 51
                         </div>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventy.vue View File

@@ -1224,7 +1224,7 @@
1224 1224
                       </tr>
1225 1225
                       <tr>
1226 1226
                         <td width="50">时间</td>
1227
-                        <td width="60">温度(°C)</td>
1227
+                        <td width="60">透析液温度(°C)</td>
1228 1228
                         <td width="50">脉搏<br />(次/分)</td>
1229 1229
                         <td width="50">呼吸<br />(次/分)</td>
1230 1230
                         <td width="65">血压<br />(mmHg)</td>

+ 16 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue View File

@@ -224,7 +224,7 @@
224 224
                   <div style="margin-left:70px ; display: inline-block;">
225 225
                     医师签名:
226 226
 
227
-                    <span v-if="setAdminUserES(prescription.creater) == ''">
227
+                    <!-- <span v-if="setAdminUserES(prescription.creater) == ''">
228 228
                       {{ getAdminUser(prescription.creater) }}
229 229
                     </span>
230 230
                     <img
@@ -233,7 +233,17 @@
233 233
                       :src="setAdminUserES(prescription.creater)"
234 234
                       alt
235 235
                       srcset
236
-                      v-else
236
+                      v-else -->
237
+                      <span v-if="setAdminUserES(advices[0].advice_doctor) == ''">
238
+                        {{ getAdminUser(advices[0].advice_doctor) }}
239
+                      </span>
240
+                      <img
241
+                        class="es-img"
242
+                        style="height: 30px"
243
+                        :src="setAdminUserES(advices[0].advice_doctor)"
244
+                        alt
245
+                        srcset
246
+                        v-else
237 247
                     />
238 248
                   </div>
239 249
                 </td>
@@ -654,14 +664,14 @@
654 664
                     </div>
655 665
                     <div style="display: inline-block; margin-left: 30px;">
656 666
                       医生签名:
657
-
658
-                      <span v-if="setAdminUserES(prescription.creater) == ''">
659
-                        {{ getAdminUser(prescription.creater) }}
667
+                       
668
+                      <span v-if="setAdminUserES(advices[0].advice_doctor) == ''">
669
+                        {{ getAdminUser(advices[0].advice_doctor) }}
660 670
                       </span>
661 671
                       <img
662 672
                         class="es-img"
663 673
                         style="height: 30px"
664
-                        :src="setAdminUserES(prescription.creater)"
674
+                        :src="setAdminUserES(advices[0].advice_doctor)"
665 675
                         alt
666 676
                         srcset
667 677
                         v-else

+ 2 - 2
src/xt_pages/role/admin.vue View File

@@ -225,12 +225,12 @@
225 225
           @click="toAutoDrug">自动生成</el-button> -->
226 226
 
227 227
 
228
-         <el-button
228
+         <!-- <el-button
229 229
           type="primary"
230 230
           size="small"
231 231
           icon="el-icon-circle-plus-outline"
232 232
           style="float:left"
233
-          @click="toAutoDiagnose">自动脚本</el-button> 
233
+          @click="toAutoDiagnose">自动脚本</el-button>  -->
234 234
      </div>
235 235
 
236 236
 

+ 26 - 0
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

@@ -331,6 +331,15 @@
331 331
                </tr>
332 332
             </template>
333 333
           </el-table-column>
334
+          <el-table-column label="使用患者" align="center" v-if="is_sys == 0">
335
+            <template slot-scope="scope">
336
+                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
337
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
338
+                     {{getPatientName(item.patient_id)}}
339
+                  </td>
340
+               </tr>
341
+            </template>
342
+          </el-table-column>
334 343
           <el-table-column label="单价" align="center">
335 344
             <template slot-scope="scope">
336 345
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
@@ -690,6 +699,7 @@ export default {
690 699
       warehouseOutList:[],
691 700
       exportLoding:false,
692 701
       outInfoList:[],
702
+      patients:[],
693 703
     };
694 704
   },
695 705
   methods: {
@@ -745,6 +755,7 @@ export default {
745 755
           for (let i = 0; i < response.data.data.houseList.length; i++) {
746 756
             this.houseList.push(response.data.data.houseList[i]);
747 757
           }
758
+         
748 759
         }
749 760
       });
750 761
     },
@@ -791,6 +802,11 @@ export default {
791 802
           for (let i = 0; i < response.data.data.houseList.length; i++) {
792 803
             this.houseList.push(response.data.data.houseList[i]);
793 804
           }
805
+          var objOne = {id:0,name:"系统"}
806
+          this.patients.push(objOne)
807
+          for(let i=0;i<response.data.data.patients.length;i++){
808
+             this.patients.push(response.data.data.patients[i])
809
+          }
794 810
         }
795 811
       });
796 812
     },
@@ -2340,6 +2356,16 @@ export default {
2340 2356
     }
2341 2357
     return max_str + min_str;
2342 2358
   },
2359
+  getPatientName(patient_id){
2360
+      var name = ""
2361
+      console.log("patinetsowowowo",this.patients)
2362
+      for(let i=0;i<this.patients.length;i++){
2363
+         if(patient_id == this.patients[i].id){
2364
+             name = this.patients[i].name
2365
+         }
2366
+      }
2367
+      return name
2368
+    }
2343 2369
   },
2344 2370
 };
2345 2371
 </script>

+ 11 - 1
src/xt_pages/stock/stockFlow.vue View File

@@ -51,6 +51,8 @@
51 51
 
52 52
         <span>
53 53
           <el-button type="primary" size="small" @click="toExprot">导出</el-button>
54
+
55
+          <!-- <el-button type="primary" size="small" @click="toTongBu">同步</el-button> -->
54 56
         </span>
55 57
        
56 58
       </div>
@@ -172,7 +174,7 @@
172 174
 <script>
173 175
   import { uParseTime } from '@/utils/tools'
174 176
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
175
-  import {getStockDrugCount,getStockFlow} from "@/api/stock"
177
+  import {getStockDrugCount,getStockFlow,getStockFlowOrderList} from "@/api/stock"
176 178
   export default {
177 179
     name: 'stockIn',
178 180
     created() {
@@ -610,6 +612,14 @@
610 612
     formatJson(filterVal, jsonData) {
611 613
      return jsonData.map(v => filterVal.map(j => v[j]))
612 614
     },
615
+    toTongBu(){
616
+       var params = {
617
+         good_id:this.$route.query.id,
618
+       }
619
+      getStockFlowOrderList(params).then(response=>{
620
+
621
+      })
622
+    }
613 623
 
614 624
     }
615 625
   }

+ 27 - 0
src/xt_pages/stock/stockOutOrder.vue View File

@@ -322,6 +322,17 @@
322 322
                </tr>
323 323
             </template>
324 324
           </el-table-column>
325
+
326
+          <el-table-column label="使用患者" align="center" v-if="is_sys == 0">
327
+            <template slot-scope="scope">
328
+            
329
+              <tr style="background: none" v-for="(item,index) in scope.row.childOne" :key="index">
330
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
331
+                    {{getPatientName(item.patient_id ) }}
332
+                  </td>
333
+               </tr>
334
+            </template>
335
+          </el-table-column>
325 336
       
326 337
           <el-table-column label="出货价" align="center">
327 338
             <template slot-scope="scope">
@@ -1073,6 +1084,7 @@ export default {
1073 1084
       flowList:[],
1074 1085
       cancelInfoList:[],
1075 1086
       exportLoding:false,
1087
+      patients:[]
1076 1088
     };
1077 1089
   },
1078 1090
   methods: {
@@ -1123,6 +1135,7 @@ export default {
1123 1135
           for (let i = 0; i < response.data.data.list.length; i++) {
1124 1136
             this.warehouseOutDate.push(response.data.data.list[i]);
1125 1137
           }
1138
+          
1126 1139
         }
1127 1140
       });
1128 1141
     },
@@ -1159,6 +1172,11 @@ export default {
1159 1172
           for (let i = 0; i < response.data.data.houselist.length; i++) {
1160 1173
             this.houselist.push(response.data.data.houselist[i]);
1161 1174
           }
1175
+          var objOne = {id:0,name:"系统"}
1176
+          this.patients.push(objOne)
1177
+          for(let i=0;i<response.data.data.patients.length;i++){
1178
+             this.patients.push(response.data.data.patients[i])
1179
+          }
1162 1180
         }
1163 1181
       });
1164 1182
     },
@@ -2422,6 +2440,15 @@ export default {
2422 2440
         }
2423 2441
       }
2424 2442
      
2443
+      return name
2444
+    },
2445
+    getPatientName(patient_id){
2446
+      var name = ""
2447
+      for(let i=0;i<this.patients.length;i++){
2448
+         if(patient_id == this.patients[i].id){
2449
+             name = this.patients[i].name
2450
+         }
2451
+      }
2425 2452
       return name
2426 2453
     }
2427 2454
   },

+ 27 - 11
src/xt_pages/stock/stockOutOrderEdit.vue View File

@@ -343,6 +343,7 @@
343 343
   import { deleteWarehouseOutInfo, editWarehouseoutInfo,GetAllConfig,GetAllGoodInfoByID,postSearchGoodList,getSingleOutOrderDetail,getStockBatchNumber,checkWarehouseOut,returnCheckWarehouseOut } from '@/api/stock'
344 344
   import BreadCrumb from '../components/bread-crumb'
345 345
   import StockInDialog from './Dialog/stockInDialog'
346
+import patient from '../../router/modules/patient'
346 347
 
347 348
   export default {
348 349
     components: { StockInDialog, BreadCrumb},
@@ -673,6 +674,7 @@
673 674
                 return
674 675
               }
675 676
             }
677
+            console.log("类别喔喔喔w",this.recordInfo.recordData)
676 678
             for(let i=0;i<this.recordInfo.recordData.length;i++){
677 679
 
678 680
               if(parseInt(this.recordInfo.recordData[i].count) > parseInt(this.recordInfo.recordData[i].stock_count) ){
@@ -734,6 +736,7 @@
734 736
             }
735 737
 
736 738
             console.log("paramswowowoowow",params)
739
+            
737 740
             var warehout_id = parseInt(this.$route.query.id)
738 741
            
739 742
             editWarehouseoutInfo(params, this.warehouse_out_time, warehout_id, this.$route.query.type, this.form.manufacturer, this.form.dealer,this.storehouse_id).then(response => {
@@ -892,7 +895,14 @@
892 895
         }
893 896
       getSingleOutOrderDetail(params).then(response=>{
894 897
         if(response.data.state == 1){
895
-
898
+          this.patients =[]
899
+          var obj ={id:0,name:"系统"}
900
+          this.patients.push(obj)
901
+          if(response.data.data.patients!=null){
902
+            for(let i=0;i<response.data.data.patients.length;i++){
903
+              this.patients.push(response.data.data.patients[i])
904
+            }
905
+          }
896 906
           var dealerList = response.data.data.dealerList
897 907
           this.dealerList = dealerList
898 908
           var manufacturerList = response.data.data.manufacturerList
@@ -913,27 +923,24 @@
913 923
             response.data.data.list[i].remark = response.data.data.list[i].remark
914 924
             response.data.data.list[i].buy_price = response.data.data.list[i].buy_price.toString()
915 925
             response.data.data.list[i].stock_count = response.data.data.list[i].stock_count.toString()
916
-            response.data.data.list[i].patient_id = response.data.data.list[i].patient_id
926
+          
927
+            // response.data.data.list[i].patient_id = this.getPatientName(response.data.data.list[i].patient_id)
928
+           
917 929
             if(response.data.data.list[i].dealer == 0){
918 930
                response.data.data.list[i].dealer = ""
919 931
             }
920 932
             if(response.data.data.list[i].manufacturer ==0 ){
921 933
                response.data.data.list[i].manufacturer = ""
922 934
             }
923
-            response.data.data.list[i].patient_id = response.data.data.list[i].patient_id
935
+            
924 936
             this.recordInfo.recordData.push(response.data.data.list[i])
925 937
           }
938
+          console.log("列表我我哦我o",this.recordInfo.recordData)
926 939
           this.storelist = response.data.data.storelist
927 940
           this.warehouse_out_time = this.getTime(response.data.data.out.warehouse_out_time,"{y}-{m}-{d}")
928 941
           this.storehouse_id = response.data.data.out.storehouse_id
929
-          var obj ={id:0,name:"系统"}
930
-          this.patients =[]
931
-          this.patients.push(obj)
932
-          if(response.data.data.patients!=null){
933
-            for(let i=0;i<response.data.data.patients.length;i++){
934
-              this.patients.push(response.data.data.patients[i])
935
-            }
936
-          }
942
+        
943
+         
937 944
           loading.close();
938 945
         }
939 946
       })
@@ -1035,6 +1042,15 @@
1035 1042
            loading.close()
1036 1043
          }
1037 1044
       })
1045
+    },
1046
+    getPatientName(patient_id){
1047
+      var name = ""
1048
+      for(let i=0;i<this.patients.length;i++){
1049
+         if(patient_id == this.patients[i].id){
1050
+             name = this.patients[i].name
1051
+         }
1052
+      }
1053
+      return name
1038 1054
     }
1039 1055
 
1040 1056
     },

+ 2 - 2
src/xt_pages/user/Physicalexamination.vue View File

@@ -2173,8 +2173,8 @@
2173 2173
           yinyang_options:[
2174 2174
             {value:1, label:"良好"},
2175 2175
             {value:2, label:"中等"},
2176
-            {value:2, label:"不良"},
2177
-            {value:2, label:"恶病质"},
2176
+            {value:3, label:"不良"},
2177
+            {value:4, label:"恶病质"},
2178 2178
 
2179 2179
           ],  shenzhi_options:[
2180 2180
             {value:1, label:"清楚"},

File diff suppressed because it is too large
+ 1590 - 33
src/xt_pages/workforce/appointment.vue


+ 74 - 65
src/xt_pages/workforce/components/tableData.vue View File

@@ -244,28 +244,34 @@
244 244
     </el-dialog>
245 245
 
246 246
     <div class="center-tab">
247
+      <!-- <h2>div move</h2>
248
+      <div ref="main" class="main" style="width: 300px;height: 300px;overflow: auto;">
249
+        <div style="width: 400px;height: 400px;padding-top: 100px;background-color: rgb(13, 255, 0);cursor: pointer;">
250
+          <div>1111111111111111111111</div>
251
+        </div>
252
+      </div>   "calc(100% - 50px)"-->
253
+
247 254
       <el-table
248 255
         :row-style="{ color: '#303133' }"
249 256
         :header-cell-style="{
250 257
           backgroundColor: 'rgb(245, 247, 250)',
251 258
           color: '#606266',
252
-          // border: '1px solid aqua',
253 259
         }"
254 260
         :fit="true"
255 261
         :data="scheduleZone"
256 262
         :span-method="objectSpanMethod"
257 263
         @cell-click="clickThis"
258 264
         @cell-mouse-enter="hoverMouse"
265
+        :cell-style ='cellstyle'
259 266
         :summary-method="getSummaries"
260 267
         show-summary
261 268
         :cell-class-name="cellClass"
262
-
263 269
         sum-text="总数"
264
-        :height="tableContainHeight"
270
+        height="600"
265 271
         ref="table"
266 272
         style="table-layout: fixed;"
267 273
       >
268
-<!-- :cell-style ='cellstyle' -->
274
+      <!-- :height="tableContainHeight" -->
269 275
         <el-table-column
270 276
           prop="area"
271 277
           label="分区"
@@ -286,9 +292,7 @@
286 292
           :label="' 周一(' + weekTitle[0] + ')'"
287 293
           v-if="isShowOne"
288 294
           align="center"
289
-
290 295
         >
291
-        <!-- :width="flexColumnWidth('Mon_M',scheduleZone)" -->
292 296
           <el-table-column  prop="Mon_M" label="上" min-width="40" align="center"  v-if="isShowShangWu" >
293 297
             <schedule-item
294 298
               slot-scope="scope"
@@ -521,7 +525,7 @@
521 525
               :schedulFlag="value1"
522 526
               :schedulMode="modename_value"
523 527
             >
524
-            <!--  -->
528
+
525 529
           </schedule-item>
526 530
           </el-table-column>
527 531
         </el-table-column>
@@ -733,6 +737,7 @@
733 737
 </template>
734 738
 
735 739
 <script>
740
+import Drag from '@/utils/move.js';
736 741
 import { uParseTime } from "@/utils/tools";
737 742
 import print from 'print-js'
738 743
 const moment = require('moment')
@@ -788,7 +793,7 @@ export default {
788 793
   },
789 794
   data() {
790 795
     return {
791
-      tableContainHeight:null,
796
+      // tableContainHeight:"calc(100% - 50px)",
792 797
       value1:false,
793 798
       modename_value:true,
794 799
       weeks:weekOptions,
@@ -926,27 +931,27 @@ export default {
926 931
   },
927 932
 
928 933
   watch: {
929
-    schedule_type:function (){
930
-      this.isShowShangWu = false
931
-      this.isShowXiaWu = false
932
-      this.isShowWanShang = false
933
-      if(this.schedule_type.length > 0) {
934
-        for (let i = 0; i < this.schedule_type.length; i++) {
935
-          if (this.schedule_type[i] == 1) {
936
-            this.isShowShangWu = true
937
-          } else if (this.schedule_type[i] == 2) {
938
-            this.isShowXiaWu = true
939
-          } else if (this.schedule_type[i] == 3) {
940
-            this.isShowWanShang = true
941
-          }
942
-        }
943
-      }else{
944
-        this.isShowShangWu = true
945
-        this.isShowXiaWu = true
946
-        this.isShowWanShang = true
947
-      }
934
+    // schedule_type:function (){
935
+    //   this.isShowShangWu = false
936
+    //   this.isShowXiaWu = false
937
+    //   this.isShowWanShang = false
938
+    //   if(this.schedule_type.length > 0) {
939
+    //     for (let i = 0; i < this.schedule_type.length; i++) {
940
+    //       if (this.schedule_type[i] == 1) {
941
+    //         this.isShowShangWu = true
942
+    //       } else if (this.schedule_type[i] == 2) {
943
+    //         this.isShowXiaWu = true
944
+    //       } else if (this.schedule_type[i] == 3) {
945
+    //         this.isShowWanShang = true
946
+    //       }
947
+    //     }
948
+    //   }else{
949
+    //     this.isShowShangWu = true
950
+    //     this.isShowXiaWu = true
951
+    //     this.isShowWanShang = true
952
+    //   }
948 953
 
949
-    },
954
+    // },
950 955
      week_type:function () {
951 956
       // console.log(this.week_type)
952 957
       // console.log(this.schedule_type)
@@ -1068,6 +1073,7 @@ export default {
1068 1073
     // 班次选择
1069 1074
     scheduleType_change(val){
1070 1075
       console.log('vvvvvv',val);
1076
+      this.$emit('event2', val)
1071 1077
       if(val==1){
1072 1078
         this.isShowShangWu = true
1073 1079
         this.isShowXiaWu = false
@@ -1095,6 +1101,7 @@ export default {
1095 1101
       }else{
1096 1102
          sessionStorage.setItem('value1',this.value1)
1097 1103
       }
1104
+      this.$emit('guanliu_show',this.value1)
1098 1105
         console.log('this.value1',this.value1);
1099 1106
         console.log('flag',flag);
1100 1107
     },
@@ -1409,9 +1416,9 @@ export default {
1409 1416
         return "";
1410 1417
       } else {
1411 1418
         if (this.weekTime == "lastWeek") {
1412
-          // if(column.label == '晚' ){
1413
-          //   return 'evening_border schedule-table-cell-disable'
1414
-          // }
1419
+           if(column.label == '晚' ){
1420
+             return 'evening_border schedule-table-cell-disable'
1421
+           }
1415 1422
           if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1416 1423
             return 'hover-td schedule-table-cell-disable'
1417 1424
           }else {
@@ -1426,15 +1433,15 @@ export default {
1426 1433
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1427 1434
               return 'hover-td schedule-table-cell-disable'
1428 1435
             }
1429
-            // if(column.label == '晚'){
1430
-            //   return 'evening_border schedule-table-cell-disable'
1431
-            // }
1436
+             if(column.label == '晚'){
1437
+               return 'evening_border schedule-table-cell-disable'
1438
+             }
1432 1439
             return "schedule-table-cell-disable";
1433 1440
           }else{
1434 1441
             // 分日期
1435
-            // if(column.label == '晚' ){
1436
-            //     return 'evening_border'
1437
-            // }
1442
+            if(column.label == '晚' ){
1443
+                return 'evening_border'
1444
+            }
1438 1445
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1439 1446
               return 'hover-td '
1440 1447
             }else {
@@ -1449,17 +1456,17 @@ export default {
1449 1456
       }
1450 1457
       return "";
1451 1458
     },
1452
-    // cellstyle({ row, column, rowIndex, columnIndex }){
1453
-    //   // 分区蓝线
1454
-    //   for(let i=0;i<this.subzone.length;i++){
1455
-    //     const subslice=this.subzone[i].jihaos.slice(-1)
1456
-    //     console.log('这是row',subslice);
1457
-    //     if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
1458
-    //       // console.log('33333333333');
1459
-    //       return 'border-top: 1px solid aqua;'
1460
-    //     }
1461
-    //   }
1462
-    // },
1459
+    cellstyle({ row, column, rowIndex, columnIndex }){
1460
+      // 分区蓝线
1461
+      // for(let i=0;i<this.subzone.length;i++){
1462
+      //   const subslice=this.subzone[i].jihaos.slice(-1)
1463
+      //   // console.log('这是row',subslice);
1464
+      //   if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
1465
+      //     // console.log('33333333333',subslice);
1466
+      //     return 'border-top: 1px solid red;'
1467
+      //   }
1468
+      // }
1469
+    },
1463 1470
 
1464 1471
     changeSearchContagion(id) {
1465 1472
       this.patientQuery.contagion = id;
@@ -3363,6 +3370,7 @@ export default {
3363 3370
     },
3364 3371
     changeSchedule_type(val) {
3365 3372
       this.$emit('event2', val)
3373
+      console.log('yyyyy',val);
3366 3374
       this.schedule_type = val
3367 3375
       this.getSchedules()
3368 3376
     },
@@ -3374,7 +3382,7 @@ export default {
3374 3382
     ScheduleItem
3375 3383
   },
3376 3384
   mounted() {
3377
-
3385
+    new Drag(this.$refs.main);
3378 3386
     this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
3379 3387
 
3380 3388
     // var theType = this.weekType(this.weekTime);
@@ -3499,22 +3507,22 @@ textarea{
3499 3507
     background-color: #409eff !important;
3500 3508
     color: #fff;
3501 3509
   }
3502
-  .Infectious_disease{
3503
-    background-color: red !important;
3504
-    color: white;
3505
-    border-left: 1px solid aqua;
3506
-    border-right: 1px solid aqua;
3507
-  }
3508
-  .border_bott{
3509
-    border-left: 1px solid aqua;
3510
-    border-right: 1px solid aqua;
3511
-  }
3512
-  .border_left{
3513
-    border-left: 1px solid aqua;
3514
-  }
3515
-  .evening_border{
3516
-    border-right: 1px solid aqua;
3517
-  }
3510
+  // .Infectious_disease{
3511
+  //   background-color: red !important;
3512
+  //   color: white;
3513
+  //   border-left: 1px solid aqua;
3514
+  //   border-right: 1px solid aqua;
3515
+  // }
3516
+  // .border_bott{
3517
+  //   border-left: 1px solid aqua;
3518
+  //   border-right: 1px solid aqua;
3519
+  // }
3520
+  // .border_left{
3521
+  //   // border-left: 1px solid aqua;
3522
+  // }
3523
+  // .evening_border{
3524
+  //   border-right: 1px solid rgb(236, 41, 41);
3525
+  // }
3518 3526
 
3519 3527
 }
3520 3528
 .backPurple{
@@ -3539,3 +3547,4 @@ textarea{
3539 3547
 //   padding: 0px 0px !important;
3540 3548
 // }
3541 3549
 </style>
3550
+

+ 2 - 2
src/xt_pages/workforce/remind_print_setting.vue View File

@@ -80,8 +80,8 @@
80 80
                    <span>{{getAnticoagulant(main_collection.dialysissolution.anticoagulant)}}</span>
81 81
                   </span>
82 82
                 </div>
83
-               <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
84
-                <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">维持:{{main_collection.dialysissolution.anticoagulant_weichi}}</div>
83
+               <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675||org_id ==10571">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
84
+                <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675 || org_id ==10571">维持:{{main_collection.dialysissolution.anticoagulant_weichi}}</div>
85 85
                 <div v-if="printObj.anticoagulant_zongliang == 1">
86 86
                   用量:
87 87
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">