소스 검색

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

陈少旭 1 년 전
부모
커밋
212fb46839

+ 9 - 0
src/api/stock.js 파일 보기

1088
     params: params
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 파일 보기

182
       if (val == null) {
182
       if (val == null) {
183
         return {
183
         return {
184
           'wch': 10
184
           'wch': 10
185
+          // 'wch': 1
185
         };
186
         };
186
       }
187
       }
187
       /*再判断是否为中文*/
188
       /*再判断是否为中文*/
199
     let result = colWidth[0];
200
     let result = colWidth[0];
200
     for (let i = 1; i < colWidth.length; i++) {
201
     for (let i = 1; i < colWidth.length; i++) {
201
       for (let j = 0; j < colWidth[i].length; j++) {
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
     ws['!cols'] = result;
211
     ws['!cols'] = result;
387
     type: "application/octet-stream"
391
     type: "application/octet-stream"
388
   }), `${filename}.${bookType}`);
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 파일 보기

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

+ 20 - 3
src/xt_pages/dialysis/details/consumable/dialysisGather.vue 파일 보기

122
              
122
              
123
           <el-table-column align="center" label="透析器"  v-if="gatherSetting.dialysis_dialyszers == 1">
123
           <el-table-column align="center" label="透析器"  v-if="gatherSetting.dialysis_dialyszers == 1">
124
              <template slot-scope="scope">
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
                <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
130
                <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
128
 
131
 
133
            <el-table-column align="center" label="灌流器"  v-if="gatherSetting.dialysis_irrigation ==1">
136
            <el-table-column align="center" label="灌流器"  v-if="gatherSetting.dialysis_irrigation ==1">
134
              <template slot-scope="scope">
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
                <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
147
                <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
138
                <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
148
                <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
139
 
149
 
143
           <el-table-column align="center" label="滤过器"  v-if="gatherSetting.dialysis_strainer ==1">
153
           <el-table-column align="center" label="滤过器"  v-if="gatherSetting.dialysis_strainer ==1">
144
              <template slot-scope="scope">
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
                <span v-if="scope.row.schedule_date<timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
164
                <span v-if="scope.row.schedule_date<timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
148
                <span v-if="scope.row.schedule_date>timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
165
                <span v-if="scope.row.schedule_date>timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
149
              </template>
166
              </template>

+ 12 - 3
src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue 파일 보기

92
                     <span v-if="item.mode_id == 35">HDF1000</span>
92
                     <span v-if="item.mode_id == 35">HDF1000</span>
93
                  </td>
93
                  </td>
94
                   <td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">
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
                     <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
99
                     <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
97
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
100
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
98
                   </td>
101
                   </td>
99
                   <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">
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
                     <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
108
                     <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
103
 
109
 
104
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
110
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
105
                   </td>
111
                   </td>
106
                   <td width="100"  v-if="gatherSetting.dialysis_strainer ==1">
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
                     <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
118
                     <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
110
 
119
 

+ 2 - 2
src/xt_pages/dialysis/signPrint.vue 파일 보기

28
                             规格:{{getSpecialName(it.drug_id)}} 
28
                             规格:{{getSpecialName(it.drug_id)}} 
29
                             
29
                             
30
                             </div>  
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
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
32
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
33
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
33
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
34
                              
34
                              
45
                             规格:{{getSpecialName(its.drug_id)}} 
45
                             规格:{{getSpecialName(its.drug_id)}} 
46
                             
46
                             
47
                             </div>  
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
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{its.execution_frequency}}</div>  
49
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{its.execution_frequency}}</div>  
50
                             <div>给药途径:{{its.delivery_way}}</div>  
50
                             <div>给药途径:{{its.delivery_way}}</div>  
51
                         </div>
51
                         </div>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventy.vue 파일 보기

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

+ 16 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue 파일 보기

224
                   <div style="margin-left:70px ; display: inline-block;">
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
                       {{ getAdminUser(prescription.creater) }}
228
                       {{ getAdminUser(prescription.creater) }}
229
                     </span>
229
                     </span>
230
                     <img
230
                     <img
233
                       :src="setAdminUserES(prescription.creater)"
233
                       :src="setAdminUserES(prescription.creater)"
234
                       alt
234
                       alt
235
                       srcset
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
                   </div>
248
                   </div>
239
                 </td>
249
                 </td>
654
                     </div>
664
                     </div>
655
                     <div style="display: inline-block; margin-left: 30px;">
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
                       </span>
670
                       </span>
661
                       <img
671
                       <img
662
                         class="es-img"
672
                         class="es-img"
663
                         style="height: 30px"
673
                         style="height: 30px"
664
-                        :src="setAdminUserES(prescription.creater)"
674
+                        :src="setAdminUserES(advices[0].advice_doctor)"
665
                         alt
675
                         alt
666
                         srcset
676
                         srcset
667
                         v-else
677
                         v-else

+ 2 - 2
src/xt_pages/role/admin.vue 파일 보기

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

+ 26 - 0
src/xt_pages/stock/drugs/drugStockOutOrder.vue 파일 보기

331
                </tr>
331
                </tr>
332
             </template>
332
             </template>
333
           </el-table-column>
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
           <el-table-column label="单价" align="center">
343
           <el-table-column label="单价" align="center">
335
             <template slot-scope="scope">
344
             <template slot-scope="scope">
336
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
345
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
690
       warehouseOutList:[],
699
       warehouseOutList:[],
691
       exportLoding:false,
700
       exportLoding:false,
692
       outInfoList:[],
701
       outInfoList:[],
702
+      patients:[],
693
     };
703
     };
694
   },
704
   },
695
   methods: {
705
   methods: {
745
           for (let i = 0; i < response.data.data.houseList.length; i++) {
755
           for (let i = 0; i < response.data.data.houseList.length; i++) {
746
             this.houseList.push(response.data.data.houseList[i]);
756
             this.houseList.push(response.data.data.houseList[i]);
747
           }
757
           }
758
+         
748
         }
759
         }
749
       });
760
       });
750
     },
761
     },
791
           for (let i = 0; i < response.data.data.houseList.length; i++) {
802
           for (let i = 0; i < response.data.data.houseList.length; i++) {
792
             this.houseList.push(response.data.data.houseList[i]);
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
     }
2356
     }
2341
     return max_str + min_str;
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
 </script>
2371
 </script>

+ 11 - 1
src/xt_pages/stock/stockFlow.vue 파일 보기

51
 
51
 
52
         <span>
52
         <span>
53
           <el-button type="primary" size="small" @click="toExprot">导出</el-button>
53
           <el-button type="primary" size="small" @click="toExprot">导出</el-button>
54
+
55
+          <!-- <el-button type="primary" size="small" @click="toTongBu">同步</el-button> -->
54
         </span>
56
         </span>
55
        
57
        
56
       </div>
58
       </div>
172
 <script>
174
 <script>
173
   import { uParseTime } from '@/utils/tools'
175
   import { uParseTime } from '@/utils/tools'
174
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
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
   export default {
178
   export default {
177
     name: 'stockIn',
179
     name: 'stockIn',
178
     created() {
180
     created() {
610
     formatJson(filterVal, jsonData) {
612
     formatJson(filterVal, jsonData) {
611
      return jsonData.map(v => filterVal.map(j => v[j]))
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 파일 보기

322
                </tr>
322
                </tr>
323
             </template>
323
             </template>
324
           </el-table-column>
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
           <el-table-column label="出货价" align="center">
337
           <el-table-column label="出货价" align="center">
327
             <template slot-scope="scope">
338
             <template slot-scope="scope">
1073
       flowList:[],
1084
       flowList:[],
1074
       cancelInfoList:[],
1085
       cancelInfoList:[],
1075
       exportLoding:false,
1086
       exportLoding:false,
1087
+      patients:[]
1076
     };
1088
     };
1077
   },
1089
   },
1078
   methods: {
1090
   methods: {
1123
           for (let i = 0; i < response.data.data.list.length; i++) {
1135
           for (let i = 0; i < response.data.data.list.length; i++) {
1124
             this.warehouseOutDate.push(response.data.data.list[i]);
1136
             this.warehouseOutDate.push(response.data.data.list[i]);
1125
           }
1137
           }
1138
+          
1126
         }
1139
         }
1127
       });
1140
       });
1128
     },
1141
     },
1159
           for (let i = 0; i < response.data.data.houselist.length; i++) {
1172
           for (let i = 0; i < response.data.data.houselist.length; i++) {
1160
             this.houselist.push(response.data.data.houselist[i]);
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
         }
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
       return name
2452
       return name
2426
     }
2453
     }
2427
   },
2454
   },

+ 27 - 11
src/xt_pages/stock/stockOutOrderEdit.vue 파일 보기

343
   import { deleteWarehouseOutInfo, editWarehouseoutInfo,GetAllConfig,GetAllGoodInfoByID,postSearchGoodList,getSingleOutOrderDetail,getStockBatchNumber,checkWarehouseOut,returnCheckWarehouseOut } from '@/api/stock'
343
   import { deleteWarehouseOutInfo, editWarehouseoutInfo,GetAllConfig,GetAllGoodInfoByID,postSearchGoodList,getSingleOutOrderDetail,getStockBatchNumber,checkWarehouseOut,returnCheckWarehouseOut } from '@/api/stock'
344
   import BreadCrumb from '../components/bread-crumb'
344
   import BreadCrumb from '../components/bread-crumb'
345
   import StockInDialog from './Dialog/stockInDialog'
345
   import StockInDialog from './Dialog/stockInDialog'
346
+import patient from '../../router/modules/patient'
346
 
347
 
347
   export default {
348
   export default {
348
     components: { StockInDialog, BreadCrumb},
349
     components: { StockInDialog, BreadCrumb},
673
                 return
674
                 return
674
               }
675
               }
675
             }
676
             }
677
+            console.log("类别喔喔喔w",this.recordInfo.recordData)
676
             for(let i=0;i<this.recordInfo.recordData.length;i++){
678
             for(let i=0;i<this.recordInfo.recordData.length;i++){
677
 
679
 
678
               if(parseInt(this.recordInfo.recordData[i].count) > parseInt(this.recordInfo.recordData[i].stock_count) ){
680
               if(parseInt(this.recordInfo.recordData[i].count) > parseInt(this.recordInfo.recordData[i].stock_count) ){
734
             }
736
             }
735
 
737
 
736
             console.log("paramswowowoowow",params)
738
             console.log("paramswowowoowow",params)
739
+            
737
             var warehout_id = parseInt(this.$route.query.id)
740
             var warehout_id = parseInt(this.$route.query.id)
738
            
741
            
739
             editWarehouseoutInfo(params, this.warehouse_out_time, warehout_id, this.$route.query.type, this.form.manufacturer, this.form.dealer,this.storehouse_id).then(response => {
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
         }
895
         }
893
       getSingleOutOrderDetail(params).then(response=>{
896
       getSingleOutOrderDetail(params).then(response=>{
894
         if(response.data.state == 1){
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
           var dealerList = response.data.data.dealerList
906
           var dealerList = response.data.data.dealerList
897
           this.dealerList = dealerList
907
           this.dealerList = dealerList
898
           var manufacturerList = response.data.data.manufacturerList
908
           var manufacturerList = response.data.data.manufacturerList
913
             response.data.data.list[i].remark = response.data.data.list[i].remark
923
             response.data.data.list[i].remark = response.data.data.list[i].remark
914
             response.data.data.list[i].buy_price = response.data.data.list[i].buy_price.toString()
924
             response.data.data.list[i].buy_price = response.data.data.list[i].buy_price.toString()
915
             response.data.data.list[i].stock_count = response.data.data.list[i].stock_count.toString()
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
             if(response.data.data.list[i].dealer == 0){
929
             if(response.data.data.list[i].dealer == 0){
918
                response.data.data.list[i].dealer = ""
930
                response.data.data.list[i].dealer = ""
919
             }
931
             }
920
             if(response.data.data.list[i].manufacturer ==0 ){
932
             if(response.data.data.list[i].manufacturer ==0 ){
921
                response.data.data.list[i].manufacturer = ""
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
             this.recordInfo.recordData.push(response.data.data.list[i])
936
             this.recordInfo.recordData.push(response.data.data.list[i])
925
           }
937
           }
938
+          console.log("列表我我哦我o",this.recordInfo.recordData)
926
           this.storelist = response.data.data.storelist
939
           this.storelist = response.data.data.storelist
927
           this.warehouse_out_time = this.getTime(response.data.data.out.warehouse_out_time,"{y}-{m}-{d}")
940
           this.warehouse_out_time = this.getTime(response.data.data.out.warehouse_out_time,"{y}-{m}-{d}")
928
           this.storehouse_id = response.data.data.out.storehouse_id
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
           loading.close();
944
           loading.close();
938
         }
945
         }
939
       })
946
       })
1035
            loading.close()
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 파일 보기

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

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1590 - 33
src/xt_pages/workforce/appointment.vue


+ 74 - 65
src/xt_pages/workforce/components/tableData.vue 파일 보기

244
     </el-dialog>
244
     </el-dialog>
245
 
245
 
246
     <div class="center-tab">
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
       <el-table
254
       <el-table
248
         :row-style="{ color: '#303133' }"
255
         :row-style="{ color: '#303133' }"
249
         :header-cell-style="{
256
         :header-cell-style="{
250
           backgroundColor: 'rgb(245, 247, 250)',
257
           backgroundColor: 'rgb(245, 247, 250)',
251
           color: '#606266',
258
           color: '#606266',
252
-          // border: '1px solid aqua',
253
         }"
259
         }"
254
         :fit="true"
260
         :fit="true"
255
         :data="scheduleZone"
261
         :data="scheduleZone"
256
         :span-method="objectSpanMethod"
262
         :span-method="objectSpanMethod"
257
         @cell-click="clickThis"
263
         @cell-click="clickThis"
258
         @cell-mouse-enter="hoverMouse"
264
         @cell-mouse-enter="hoverMouse"
265
+        :cell-style ='cellstyle'
259
         :summary-method="getSummaries"
266
         :summary-method="getSummaries"
260
         show-summary
267
         show-summary
261
         :cell-class-name="cellClass"
268
         :cell-class-name="cellClass"
262
-
263
         sum-text="总数"
269
         sum-text="总数"
264
-        :height="tableContainHeight"
270
+        height="600"
265
         ref="table"
271
         ref="table"
266
         style="table-layout: fixed;"
272
         style="table-layout: fixed;"
267
       >
273
       >
268
-<!-- :cell-style ='cellstyle' -->
274
+      <!-- :height="tableContainHeight" -->
269
         <el-table-column
275
         <el-table-column
270
           prop="area"
276
           prop="area"
271
           label="分区"
277
           label="分区"
286
           :label="' 周一(' + weekTitle[0] + ')'"
292
           :label="' 周一(' + weekTitle[0] + ')'"
287
           v-if="isShowOne"
293
           v-if="isShowOne"
288
           align="center"
294
           align="center"
289
-
290
         >
295
         >
291
-        <!-- :width="flexColumnWidth('Mon_M',scheduleZone)" -->
292
           <el-table-column  prop="Mon_M" label="上" min-width="40" align="center"  v-if="isShowShangWu" >
296
           <el-table-column  prop="Mon_M" label="上" min-width="40" align="center"  v-if="isShowShangWu" >
293
             <schedule-item
297
             <schedule-item
294
               slot-scope="scope"
298
               slot-scope="scope"
521
               :schedulFlag="value1"
525
               :schedulFlag="value1"
522
               :schedulMode="modename_value"
526
               :schedulMode="modename_value"
523
             >
527
             >
524
-            <!--  -->
528
+
525
           </schedule-item>
529
           </schedule-item>
526
           </el-table-column>
530
           </el-table-column>
527
         </el-table-column>
531
         </el-table-column>
733
 </template>
737
 </template>
734
 
738
 
735
 <script>
739
 <script>
740
+import Drag from '@/utils/move.js';
736
 import { uParseTime } from "@/utils/tools";
741
 import { uParseTime } from "@/utils/tools";
737
 import print from 'print-js'
742
 import print from 'print-js'
738
 const moment = require('moment')
743
 const moment = require('moment')
788
   },
793
   },
789
   data() {
794
   data() {
790
     return {
795
     return {
791
-      tableContainHeight:null,
796
+      // tableContainHeight:"calc(100% - 50px)",
792
       value1:false,
797
       value1:false,
793
       modename_value:true,
798
       modename_value:true,
794
       weeks:weekOptions,
799
       weeks:weekOptions,
926
   },
931
   },
927
 
932
 
928
   watch: {
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
      week_type:function () {
955
      week_type:function () {
951
       // console.log(this.week_type)
956
       // console.log(this.week_type)
952
       // console.log(this.schedule_type)
957
       // console.log(this.schedule_type)
1068
     // 班次选择
1073
     // 班次选择
1069
     scheduleType_change(val){
1074
     scheduleType_change(val){
1070
       console.log('vvvvvv',val);
1075
       console.log('vvvvvv',val);
1076
+      this.$emit('event2', val)
1071
       if(val==1){
1077
       if(val==1){
1072
         this.isShowShangWu = true
1078
         this.isShowShangWu = true
1073
         this.isShowXiaWu = false
1079
         this.isShowXiaWu = false
1095
       }else{
1101
       }else{
1096
          sessionStorage.setItem('value1',this.value1)
1102
          sessionStorage.setItem('value1',this.value1)
1097
       }
1103
       }
1104
+      this.$emit('guanliu_show',this.value1)
1098
         console.log('this.value1',this.value1);
1105
         console.log('this.value1',this.value1);
1099
         console.log('flag',flag);
1106
         console.log('flag',flag);
1100
     },
1107
     },
1409
         return "";
1416
         return "";
1410
       } else {
1417
       } else {
1411
         if (this.weekTime == "lastWeek") {
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
           if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1422
           if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1416
             return 'hover-td schedule-table-cell-disable'
1423
             return 'hover-td schedule-table-cell-disable'
1417
           }else {
1424
           }else {
1426
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1433
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1427
               return 'hover-td schedule-table-cell-disable'
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
             return "schedule-table-cell-disable";
1439
             return "schedule-table-cell-disable";
1433
           }else{
1440
           }else{
1434
             // 分日期
1441
             // 分日期
1435
-            // if(column.label == '晚' ){
1436
-            //     return 'evening_border'
1437
-            // }
1442
+            if(column.label == '晚' ){
1443
+                return 'evening_border'
1444
+            }
1438
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1445
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1439
               return 'hover-td '
1446
               return 'hover-td '
1440
             }else {
1447
             }else {
1449
       }
1456
       }
1450
       return "";
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
     changeSearchContagion(id) {
1471
     changeSearchContagion(id) {
1465
       this.patientQuery.contagion = id;
1472
       this.patientQuery.contagion = id;
3363
     },
3370
     },
3364
     changeSchedule_type(val) {
3371
     changeSchedule_type(val) {
3365
       this.$emit('event2', val)
3372
       this.$emit('event2', val)
3373
+      console.log('yyyyy',val);
3366
       this.schedule_type = val
3374
       this.schedule_type = val
3367
       this.getSchedules()
3375
       this.getSchedules()
3368
     },
3376
     },
3374
     ScheduleItem
3382
     ScheduleItem
3375
   },
3383
   },
3376
   mounted() {
3384
   mounted() {
3377
-
3385
+    new Drag(this.$refs.main);
3378
     this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
3386
     this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
3379
 
3387
 
3380
     // var theType = this.weekType(this.weekTime);
3388
     // var theType = this.weekType(this.weekTime);
3499
     background-color: #409eff !important;
3507
     background-color: #409eff !important;
3500
     color: #fff;
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
 .backPurple{
3528
 .backPurple{
3539
 //   padding: 0px 0px !important;
3547
 //   padding: 0px 0px !important;
3540
 // }
3548
 // }
3541
 </style>
3549
 </style>
3550
+

+ 2 - 2
src/xt_pages/workforce/remind_print_setting.vue 파일 보기

80
                    <span>{{getAnticoagulant(main_collection.dialysissolution.anticoagulant)}}</span>
80
                    <span>{{getAnticoagulant(main_collection.dialysissolution.anticoagulant)}}</span>
81
                   </span>
81
                   </span>
82
                 </div>
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
                 <div v-if="printObj.anticoagulant_zongliang == 1">
85
                 <div v-if="printObj.anticoagulant_zongliang == 1">
86
                   用量:
86
                   用量:
87
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
87
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">