28169 1 年間 前
コミット
a134ca6415

+ 4 - 4
src/xt_pages/stock/Dialog/goodInfoDailog.vue ファイルの表示

34
                 </el-option>
34
                 </el-option>
35
               </el-select>
35
               </el-select>
36
             </el-form-item>
36
             </el-form-item>
37
-            <el-form-item label="医保等级 : " prop="medical_insurance_level">
37
+            <el-form-item label="医保等级 : " >
38
               <el-select v-model="form.medical_insurance_level" style="width:160px;" placeholder="请选择">
38
               <el-select v-model="form.medical_insurance_level" style="width:160px;" placeholder="请选择">
39
                 <el-option
39
                 <el-option
40
                   v-for="(item, index) in medicalInsuranceLevelList"
40
                   v-for="(item, index) in medicalInsuranceLevelList"
421
           good_kind: [
421
           good_kind: [
422
             { required: true, message: '请选择耗材种类', trigger: 'change' }
422
             { required: true, message: '请选择耗材种类', trigger: 'change' }
423
           ],
423
           ],
424
-          medical_insurance_level: [
425
-            { required: true, message: '请输入医保等级', trigger: 'blur' }
426
-          ],
424
+          // medical_insurance_level: [
425
+          //   { required: true, message: '请输入医保等级', trigger: 'blur' }
426
+          // ],
427
           manufacturer: [
427
           manufacturer: [
428
             { required: true, message: '请选择生产厂商', trigger: 'blur' }
428
             { required: true, message: '请选择生产厂商', trigger: 'blur' }
429
           ], good_unit: [
429
           ], good_unit: [

+ 69 - 1
src/xt_pages/stock/drugs/components/drugOutDetail.vue ファイルの表示

9
       >打印
9
       >打印
10
     </el-button>
10
     </el-button>
11
      <el-button
11
      <el-button
12
+      v-if="org_id != 10265 && org_id != 0"
12
       style="float: right;margin-right:10px"
13
       style="float: right;margin-right:10px"
13
       size="small"
14
       size="small"
14
       @click="exportListDetai"
15
       @click="exportListDetai"
15
       type="primary"
16
       type="primary"
16
       >明细导出
17
       >明细导出
18
+    </el-button>
19
+    <el-button
20
+      v-if="org_id == 10265 || org_id == 0"
21
+      style="float: right;margin-right:10px"
22
+      size="small"
23
+      @click="exportListDetaiOne"
24
+      type="primary"
25
+      >明细导出
17
     </el-button>
26
     </el-button>
18
      <el-button
27
      <el-button
19
       style="float: right;margin-right:10px"
28
       style="float: right;margin-right:10px"
182
       <el-pagination
191
       <el-pagination
183
         @size-change="handleSizeChange"
192
         @size-change="handleSizeChange"
184
         @current-change="handleCurrentChange"
193
         @current-change="handleCurrentChange"
185
-        :page-sizes="[10, 50, 100,1000]"
194
+        :page-sizes="[10, 50, 100,1000,2000,3000,4000,5000]"
186
         :page-size="10"
195
         :page-size="10"
187
         background
196
         background
188
         style="margin-top:20px;float: right"
197
         style="margin-top:20px;float: right"
676
        const data = this.formatJson(filterVal, this.tableData)
685
        const data = this.formatJson(filterVal, this.tableData)
677
 
686
 
678
 
687
 
688
+       excel.export_json_to_excel({
689
+           header: tHeader,
690
+           data,
691
+           filename: '药品出库明细'
692
+         })
693
+          this.downloadLoading = false
694
+      })
695
+    },
696
+    exportListDetaiOne(){
697
+      import('@/vendor/Export2Excel').then(excel => {
698
+       const tHeader = ['序号','单据编号', '药品类型', '药品名称','规格型号','生产厂商','进销商','操作时间','制单人','进货价','出货价','数量','单位','总价']
699
+       const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','manufacturer_name','dealer_name','time','user_name','in_retail_price','price','count','count_unit','total_price']
700
+
701
+       console.log("hwhhwhwhwhwhw",this.tableData)
702
+        
703
+      
704
+       for(let i=0;i<this.tableData.length;i++){
705
+         if(this.tableData[i].is_total == 0){
706
+            this.tableData[i].index = i+1
707
+            if(this.tableData[i].drug_type == 1){
708
+              this.tableData[i].drugtype = "西药"
709
+            }
710
+            if(this.tableData[i].drug_type == 2){
711
+              this.tableData[i].drugtype = "草药"
712
+            }
713
+            if(this.tableData[i].drug_type == 3){
714
+              this.tableData[i].drugtype = "成药"
715
+            }
716
+            this.tableData[i].specification_name = this.tableData[i].dose + this.tableData[i].dose_unit +"*" + this.tableData[i].min_number + this.tableData[i].min_unit +  "/" + this.tableData[i].max_unit
717
+            this.tableData[i].time = this.getTime(this.tableData[i].ctime)
718
+            this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)
719
+            this.tableData[i].manufacturer_name = this.getManufacturerName(this.tableData[i].manufacturer)
720
+            this.tableData[i].dealer_name = this.getDealerName(this.tableData[i].dealer)
721
+            this.tableData[i].in_retail_price = (this.tableData[i].in_price/this.tableData[i].min_number).toFixed(2)
722
+            if(this.org_id == 9919){
723
+              this.tableData[i].total = (this.tableData[i].count * this.tableData[i].last_price)
724
+              if(this.tableData[i].count >=this.tableData[i].min_number){
725
+               this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].last_price)/this.tableData[i].min_number
726
+              }else{
727
+                this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].last_price)
728
+              }
729
+
730
+            }else{
731
+              this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
732
+              if(this.tableData[i].count_unit == this.tableData[i].min_unit && this.tableData[i].max_unit!=this.tableData[i].min_unit){
733
+                 this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
734
+              }
735
+              if(this.tableData[i].count_unit == this.tableData[i].max_unit && this.tableData[i].max_unit !=this.tableData[i].min_unit){
736
+                this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)*this.tableData[i].min_number
737
+              }
738
+              if(this.tableData[i].count_unit == this.tableData[i].max_unit && this.tableData[i].max_unit ==this.tableData[i].min_unit){
739
+                this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)*this.tableData[i].min_number
740
+              }
741
+            }
742
+         }
743
+       }
744
+       const data = this.formatJson(filterVal, this.tableData)
745
+
746
+
679
        excel.export_json_to_excel({
747
        excel.export_json_to_excel({
680
            header: tHeader,
748
            header: tHeader,
681
            data,
749
            data,

+ 6 - 1
src/xt_pages/stock/drugs/components/expiryDateDrugQuery.vue ファイルの表示

90
 
90
 
91
             <el-table-column label="剩余天数" align="center">
91
             <el-table-column label="剩余天数" align="center">
92
               <template slot-scope="scope">
92
               <template slot-scope="scope">
93
-                {{getDaysBetween(getTime(scope.row.expiry_date),getTime(nowtime))}}
93
+                <span style="color: red;" v-if="getDaysBetween(getTime(scope.row.expiry_date),getTime(nowtime))<=30">
94
+                  {{getDaysBetween(getTime(scope.row.expiry_date),getTime(nowtime))}}
95
+                </span>
96
+                <span  v-if="getDaysBetween(getTime(scope.row.expiry_date),getTime(nowtime))>30">
97
+                  {{getDaysBetween(getTime(scope.row.expiry_date),getTime(nowtime))}}
98
+                </span>
94
               </template>
99
               </template>
95
             </el-table-column>
100
             </el-table-column>
96
           </el-table>
101
           </el-table>

+ 6 - 0
src/xt_pages/stock/drugs/drugStockInOrder.vue ファイルの表示

449
             </template>
449
             </template>
450
           </el-table-column>
450
           </el-table-column>
451
         </el-table>
451
         </el-table>
452
+        
452
       </span>
453
       </span>
453
       <span slot="footer" class="dialog-footer">
454
       <span slot="footer" class="dialog-footer">
454
         <el-button @click="dialogVisible = false">取 消</el-button>
455
         <el-button @click="dialogVisible = false">取 消</el-button>
1042
       }
1043
       }
1043
       for (let i = 0; i < this.exportList.length; i++) {
1044
       for (let i = 0; i < this.exportList.length; i++) {
1044
         this.exportList[i].index = i + 1;
1045
         this.exportList[i].index = i + 1;
1046
+        this.exportList[i].warehousing_time = this.getTime(this.exportList[i].warehousing_time)
1045
         this.exportList[i].unit =
1047
         this.exportList[i].unit =
1046
           this.exportList[i].dose +
1048
           this.exportList[i].dose +
1047
           this.exportList[i].dose_unit +
1049
           this.exportList[i].dose_unit +
1071
           if (this.exportList[i].dealer == 0) {
1073
           if (this.exportList[i].dealer == 0) {
1072
             this.exportList[i].dealer = "";
1074
             this.exportList[i].dealer = "";
1073
           }
1075
           }
1076
+
1074
         }
1077
         }
1075
       }
1078
       }
1076
 
1079
 
1085
 
1088
 
1086
         const tHeader = [
1089
         const tHeader = [
1087
           "序号",
1090
           "序号",
1091
+          "单据日期",
1088
           "药品名称",
1092
           "药品名称",
1089
           "药品类型",
1093
           "药品类型",
1090
           "规格&单位",
1094
           "规格&单位",
1101
         ];
1105
         ];
1102
         const filterVal = [
1106
         const filterVal = [
1103
           "index",
1107
           "index",
1108
+          "warehousing_time",
1104
           "drug_name",
1109
           "drug_name",
1105
           "drug_type",
1110
           "drug_type",
1106
           "unit",
1111
           "unit",
1143
     changeCheckType() {
1148
     changeCheckType() {
1144
       this.GetWarehouse();
1149
       this.GetWarehouse();
1145
     },
1150
     },
1151
+   
1146
   },
1152
   },
1147
 };
1153
 };
1148
 </script>
1154
 </script>

+ 18 - 0
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue ファイルの表示

400
             </template>
400
             </template>
401
           </el-table-column>
401
           </el-table-column>
402
         </el-table>
402
         </el-table>
403
+
404
+        <div style="margin-top: 20px;">合计金额: {{getTotalPirce() }} </div>
403
       </el-form>
405
       </el-form>
404
     </div>
406
     </div>
405
   </div>
407
   </div>
1113
     //      }
1115
     //      }
1114
     //    }
1116
     //    }
1115
     //  }
1117
     //  }
1118
+    },
1119
+    getTotalPirce(){
1120
+      
1121
+      var total_price = 0
1122
+      if(this.recordInfo.recordData!=null && this.recordInfo.recordData.length>0){
1123
+        
1124
+        for(let i=0;i<this.recordInfo.recordData.length;i++){
1125
+           total_price += this.recordInfo.recordData[i].last_price * parseInt(this.recordInfo.recordData[i].warehousing_count)
1126
+        }
1127
+
1128
+        if(total_price>0){
1129
+          return total_price.toFixed(4)
1130
+        }else{
1131
+         return ""
1132
+        }
1133
+      }
1116
     }
1134
     }
1117
   },
1135
   },
1118
   created() {
1136
   created() {

+ 18 - 0
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue ファイルの表示

383
             </template>
383
             </template>
384
           </el-table-column>
384
           </el-table-column>
385
         </el-table>
385
         </el-table>
386
+
387
+        <div style="margin-top: 20px;">合计金额: {{getTotalPirce() }} </div>
386
       </el-form>
388
       </el-form>
387
     </div>
389
     </div>
388
   </div>
390
   </div>
1011
         return uParseTime(val, '{y}-{m}-{d}')
1013
         return uParseTime(val, '{y}-{m}-{d}')
1012
         }
1014
         }
1013
     },
1015
     },
1016
+    getTotalPirce(){
1017
+      
1018
+      var total_price = 0
1019
+      if(this.recordInfo.recordData!=null && this.recordInfo.recordData.length>0){
1020
+        
1021
+        for(let i=0;i<this.recordInfo.recordData.length;i++){
1022
+           total_price += this.recordInfo.recordData[i].last_price * parseInt(this.recordInfo.recordData[i].warehousing_count)
1023
+        }
1024
+
1025
+        if(total_price>0){
1026
+          return total_price.toFixed(4)
1027
+        }else{
1028
+         return ""
1029
+        }
1030
+      }
1031
+    }
1014
   },
1032
   },
1015
   created() {
1033
   created() {
1016
 
1034
 

+ 3 - 0
src/xt_pages/stock/drugs/drugStockOutOrder.vue ファイルの表示

1627
           }
1627
           }
1628
         }
1628
         }
1629
         const tHeader = [
1629
         const tHeader = [
1630
+          "单据日期",
1630
           "药品名称",
1631
           "药品名称",
1631
           "药品类型",
1632
           "药品类型",
1632
           "规格&单位",
1633
           "规格&单位",
1642
           "批准文号",
1643
           "批准文号",
1643
           "出库时间",
1644
           "出库时间",
1644
           "备注",
1645
           "备注",
1646
+          
1645
         ];
1647
         ];
1646
         const filterVal = [
1648
         const filterVal = [
1649
+          "ctime",
1647
           "drug_name",
1650
           "drug_name",
1648
           "drug_type",
1651
           "drug_type",
1649
           "unit",
1652
           "unit",

+ 1 - 1
src/xt_pages/stock/drugs/inventory.vue ファイルの表示

330
                    list[i].last_stock_min_number = ""
330
                    list[i].last_stock_min_number = ""
331
                    list[i].min_number = list[i].XtBaseDrug.min_number
331
                    list[i].min_number = list[i].XtBaseDrug.min_number
332
                    list[i].manufacturer_name  = ""
332
                    list[i].manufacturer_name  = ""
333
-                   list[i].type = 6
333
+                   list[i].type = 4
334
                    for(let j=0;j<this.manufacturerList.length;j++){
334
                    for(let j=0;j<this.manufacturerList.length;j++){
335
                      if(list[i].manufacturer == this.manufacturerList[j].id){
335
                      if(list[i].manufacturer == this.manufacturerList[j].id){
336
                         list[i].manufacturer_name = this.manufacturerList[j].manufacturer_name
336
                         list[i].manufacturer_name = this.manufacturerList[j].manufacturer_name

+ 1 - 1
src/xt_pages/stock/drugs/newDrugInventory.vue ファイルの表示

809
                 list[i].last_stock_min_number = ""
809
                 list[i].last_stock_min_number = ""
810
                 list[i].min_number = list[i].XtBaseDrug.min_number
810
                 list[i].min_number = list[i].XtBaseDrug.min_number
811
                 list[i].manufacturer_name  = ""
811
                 list[i].manufacturer_name  = ""
812
-                list[i].type = 6
812
+                list[i].type = 4
813
                 list[i].last_stock_max_number = list[i].stock_max_number
813
                 list[i].last_stock_max_number = list[i].stock_max_number
814
                 list[i].last_stock_min_number = list[i].stock_min_number
814
                 list[i].last_stock_min_number = list[i].stock_min_number
815
                 for(let j=0;j<this.manufacturerList.length;j++){
815
                 for(let j=0;j<this.manufacturerList.length;j++){

+ 1 - 1
src/xt_pages/stock/inventory.vue ファイルの表示

455
          if(response.data.state == 1){
455
          if(response.data.state == 1){
456
            var list = response.data.data.list
456
            var list = response.data.data.list
457
            for(let i=0;i<list.length;i++){
457
            for(let i=0;i<list.length;i++){
458
-              list[i].type = 6
458
+              list[i].type = 4
459
               list[i].good_name = list[i].GoodInfo.good_name
459
               list[i].good_name = list[i].GoodInfo.good_name
460
               list[i].specification_name = list[i].GoodInfo.specification_name
460
               list[i].specification_name = list[i].GoodInfo.specification_name
461
               list[i].manufacturer_name = ""
461
               list[i].manufacturer_name = ""

+ 1 - 1
src/xt_pages/stock/newInventory.vue ファイルの表示

446
           this.manufacturerList = response.data.data.manufacturerList
446
           this.manufacturerList = response.data.data.manufacturerList
447
           loading.close()
447
           loading.close()
448
           for(let i=0;i<list.length;i++){
448
           for(let i=0;i<list.length;i++){
449
-              list[i].type = 6
449
+              list[i].type = 4
450
               list[i].good_name = list[i].GoodInfo.good_name
450
               list[i].good_name = list[i].GoodInfo.good_name
451
               list[i].specification_name = list[i].GoodInfo.specification_name
451
               list[i].specification_name = list[i].GoodInfo.specification_name
452
               list[i].manufacturer_name = ""
452
               list[i].manufacturer_name = ""

+ 3 - 2
src/xt_pages/stock/query/expiryDateQuery.vue ファイルの表示

90
             </el-table-column>
90
             </el-table-column>
91
 
91
 
92
             <el-table-column label="剩余天数" align="center">
92
             <el-table-column label="剩余天数" align="center">
93
-              <template slot-scope="scope">
94
-                {{getDaysBetween(getTime(scope.row.expiry_date),getTime(nowtime))}}
93
+              <template slot-scope="scope" >
94
+                <span v-if="getDaysBetween(getTime(scope.row.expiry_date),getTime(nowtime))<=30" style="color: red;">{{getDaysBetween(getTime(scope.row.expiry_date),getTime(nowtime))}}</span>
95
+                <span v-if="getDaysBetween(getTime(scope.row.expiry_date),getTime(nowtime))>30">   {{getDaysBetween(getTime(scope.row.expiry_date),getTime(nowtime))}}</span>
95
               </template>
96
               </template>
96
             </el-table-column>
97
             </el-table-column>
97
           </el-table>
98
           </el-table>

+ 5 - 2
src/xt_pages/stock/stockInOrder.vue ファイルの表示

1698
         this.$message.error("请勾选入库单")
1698
         this.$message.error("请勾选入库单")
1699
         return
1699
         return
1700
       }
1700
       }
1701
+      console.log("this.wowoowow",this.exportList)
1702
+     
1701
       import('@/vendor/Export2Excel').then(excel => {
1703
       import('@/vendor/Export2Excel').then(excel => {
1702
       for(let i=0;i<this.exportList.length;i++){
1704
       for(let i=0;i<this.exportList.length;i++){
1703
         for(let j=0;j<this.goodType.length;j++){
1705
         for(let j=0;j<this.goodType.length;j++){
1714
         if(this.exportList[i].good_type_id == 0){
1716
         if(this.exportList[i].good_type_id == 0){
1715
           this.exportList[i].good_type_id = ""
1717
           this.exportList[i].good_type_id = ""
1716
         }
1718
         }
1719
+        this.exportList[i].warehousing_time  = this.getTime(this.exportList[i].warehousing_time,"{y}-{m}-{d}")
1717
       }
1720
       }
1718
 
1721
 
1719
-      const tHeader = ['耗材名称','耗材类型', '规格&单位','批号','入库数量','进货价','总价','生产厂家','生产日期','有效期','经销商','批准文号','备注']
1720
-      const filterVal = ['good_name', 'good_type_id', 'unit','number','warehousing_count','price','total_price','manufacturer','product_date','expiry_date','dealer','license_number','remark']
1722
+      const tHeader = ['单据日期','耗材名称','耗材类型', '规格&单位','批号','入库数量','进货价','总价','生产厂家','生产日期','有效期','经销商','批准文号','备注']
1723
+      const filterVal = ['warehousing_time','good_name', 'good_type_id', 'unit','number','warehousing_count','price','total_price','manufacturer','product_date','expiry_date','dealer','license_number','remark']
1721
 
1724
 
1722
 
1725
 
1723
 
1726
 

+ 20 - 1
src/xt_pages/stock/stockInOrderAdd.vue ファイルの表示

258
           </el-table-column>
258
           </el-table-column>
259
 
259
 
260
         </el-table>
260
         </el-table>
261
+
262
+        <div style="margin-top: 20px;">合计金额: {{getTotalPirce() }} </div>
261
       </el-form>
263
       </el-form>
262
 
264
 
263
 
265
 
572
         } else {
574
         } else {
573
           this.recordInfo.recordData.splice(index, 1)
575
           this.recordInfo.recordData.splice(index, 1)
574
         }
576
         }
575
-      }, calculate: function(val) {
577
+      },
578
+       calculate: function(val) {
576
         if (val == 0) {
579
         if (val == 0) {
577
           return ''
580
           return ''
578
         }
581
         }
937
             loading.close()
940
             loading.close()
938
           }
941
           }
939
        })
942
        })
943
+     },
944
+     getTotalPirce(){
945
+      
946
+       var total_price = 0
947
+       if(this.recordInfo.recordData!=null && this.recordInfo.recordData.length>0){
948
+         
949
+         for(let i=0;i<this.recordInfo.recordData.length;i++){
950
+            total_price += this.recordInfo.recordData[i].price * parseInt(this.recordInfo.recordData[i].warehousing_count)
951
+         }
952
+
953
+         if(total_price>0){
954
+           return total_price.toFixed(4)
955
+         }else{
956
+          return ""
957
+         }
958
+       }
940
      }
959
      }
941
     }
960
     }
942
     ,
961
     ,

+ 19 - 0
src/xt_pages/stock/stockInOrderEdit.vue ファイルの表示

345
             </template>
345
             </template>
346
           </el-table-column>
346
           </el-table-column>
347
         </el-table>
347
         </el-table>
348
+
349
+        <div style="margin-top: 20px;">合计金额: {{getTotalPirce() }} </div>
348
       </el-form>
350
       </el-form>
349
     </div>
351
     </div>
350
   </div>
352
   </div>
978
         return uParseTime(val, '{y}-{m}-{d}')
980
         return uParseTime(val, '{y}-{m}-{d}')
979
         }
981
         }
980
      },
982
      },
983
+     getTotalPirce(){
984
+      
985
+      var total_price = 0
986
+      if(this.recordInfo.recordData!=null && this.recordInfo.recordData.length>0){
987
+        
988
+        for(let i=0;i<this.recordInfo.recordData.length;i++){
989
+           total_price += this.recordInfo.recordData[i].price * parseInt(this.recordInfo.recordData[i].warehousing_count)
990
+        }
991
+
992
+        if(total_price>0){
993
+          return total_price.toFixed(4)
994
+        }else{
995
+         return ""
996
+        }
997
+      }
998
+    }
999
+     
981
   },
1000
   },
982
   created() {
1001
   created() {
983
     this.GetConfigInfo();
1002
     this.GetConfigInfo();

+ 4 - 0
src/xt_pages/stock/stockOutOrder.vue ファイルの表示

2092
             list[i].total_price = (list[i].total_count * list[i].price).toFixed(2);
2092
             list[i].total_price = (list[i].total_count * list[i].price).toFixed(2);
2093
             list[i].expiry_date = this.getTime(list[i].expiry_date,"{y}-{m}-{d}");
2093
             list[i].expiry_date = this.getTime(list[i].expiry_date,"{y}-{m}-{d}");
2094
             list[i].product_date = this.getTime(list[i].product_date,"{y}-{m}-{d}");
2094
             list[i].product_date = this.getTime(list[i].product_date,"{y}-{m}-{d}");
2095
+           
2095
             for (let j = 0; j < this.manufacturer.length; j++) {
2096
             for (let j = 0; j < this.manufacturer.length; j++) {
2096
               if (list[i].manufacturer == this.manufacturer[j].id) {
2097
               if (list[i].manufacturer == this.manufacturer[j].id) {
2097
                 list[i].manufacturer = this.manufacturer[j].manufacturer_name;
2098
                 list[i].manufacturer = this.manufacturer[j].manufacturer_name;
2140
             this.exportList[i].good_type_id = "";
2141
             this.exportList[i].good_type_id = "";
2141
           }
2142
           }
2142
           this.exportList[i].ctime = this.getTime(this.exportList[i].ctime, "{y}-{m}-{d}")
2143
           this.exportList[i].ctime = this.getTime(this.exportList[i].ctime, "{y}-{m}-{d}")
2144
+          this.exportList[i].warehouse_out_time = this.getTime(this.exportList[i].warehouse_out_time,"{y}-{m}-{d}")
2143
         }
2145
         }
2144
 
2146
 
2145
         const tHeader = [
2147
         const tHeader = [
2148
+          "单据日期",
2146
           "耗材名称",
2149
           "耗材名称",
2147
           "耗材类型",
2150
           "耗材类型",
2148
           "规格&单位",
2151
           "规格&单位",
2157
           "出库时间"
2160
           "出库时间"
2158
         ];
2161
         ];
2159
         const filterVal = [
2162
         const filterVal = [
2163
+          "warehouse_out_time",
2160
           "good_name",
2164
           "good_name",
2161
           "good_type_id",
2165
           "good_type_id",
2162
           "unit",
2166
           "unit",

+ 62 - 62
src/xt_pages/user/components/PatientSidebar.vue ファイルの表示

207
             },
207
             },
208
           ]
208
           ]
209
         },
209
         },
210
-        {
211
-          name: '5',
212
-          label: '评估工具',
213
-          children: [
214
-            {
215
-              name: '5-1',
216
-              label: '跌倒评估'
217
-            },
218
-            {
219
-              name: '5-2',
220
-              label: '小儿跌倒风险评估'
221
-            },
222
-            {
223
-              name: '5-3',
224
-              label: '压疮风险评估'
225
-            },
226
-            {
227
-              name: '5-4',
228
-              label: 'OH压疮评估'
229
-            },
230
-            {
231
-              name: '5-5',
232
-              label: '日常生活能力评估'
233
-            },
234
-            {
235
-              name: '5-6',
236
-              label: '导管脱落风险评估'
237
-            },
238
-            {
239
-              name: '5-7',
240
-              label: 'RASS及疼痛评估'
241
-            },
242
-            {
243
-              name: '5-8',
244
-              label: '营养状况评估'
245
-            },
246
-            {
247
-              name: '5-9',
248
-              label: '约束告知单'
249
-            },
250
-            {
251
-              name: '5-10',
252
-              label: '心理评估'
253
-            },
254
-            {
255
-              name: '5-11',
256
-              label: '瘙痒评估'
257
-            },
258
-            {
259
-              name: '5-12',
260
-              label: '血液透析患者评估'
261
-            },
262
-            {
263
-              name: '5-13',
264
-              label: 'Glasgow昏迷评分量表'
265
-            },
266
-            {
267
-              name: '5-14',
268
-              label: '肌力评估表'
269
-            },
270
-          ]
271
-        },
210
+        // {
211
+        //   name: '5',
212
+        //   label: '评估工具',
213
+        //   children: [
214
+        //     {
215
+        //       name: '5-1',
216
+        //       label: '跌倒评估'
217
+        //     },
218
+        //     {
219
+        //       name: '5-2',
220
+        //       label: '小儿跌倒风险评估'
221
+        //     },
222
+        //     {
223
+        //       name: '5-3',
224
+        //       label: '压疮风险评估'
225
+        //     },
226
+        //     {
227
+        //       name: '5-4',
228
+        //       label: 'OH压疮评估'
229
+        //     },
230
+        //     {
231
+        //       name: '5-5',
232
+        //       label: '日常生活能力评估'
233
+        //     },
234
+        //     {
235
+        //       name: '5-6',
236
+        //       label: '导管脱落风险评估'
237
+        //     },
238
+        //     {
239
+        //       name: '5-7',
240
+        //       label: 'RASS及疼痛评估'
241
+        //     },
242
+        //     {
243
+        //       name: '5-8',
244
+        //       label: '营养状况评估'
245
+        //     },
246
+        //     {
247
+        //       name: '5-9',
248
+        //       label: '约束告知单'
249
+        //     },
250
+        //     {
251
+        //       name: '5-10',
252
+        //       label: '心理评估'
253
+        //     },
254
+        //     {
255
+        //       name: '5-11',
256
+        //       label: '瘙痒评估'
257
+        //     },
258
+        //     {
259
+        //       name: '5-12',
260
+        //       label: '血液透析患者评估'
261
+        //     },
262
+        //     {
263
+        //       name: '5-13',
264
+        //       label: 'Glasgow昏迷评分量表'
265
+        //     },
266
+        //     {
267
+        //       name: '5-14',
268
+        //       label: '肌力评估表'
269
+        //     },
270
+        //   ]
271
+        // },
272
         
272
         
273
       ],
273
       ],
274
       name:""
274
       name:""

+ 1 - 1
src/xt_pages/user/vascularAccess.vue ファイルの表示

459
         <el-button type="primary" @click="updatedVasularAccess('form')">保存</el-button>
459
         <el-button type="primary" @click="updatedVasularAccess('form')">保存</el-button>
460
      </span>
460
      </span>
461
      </el-dialog>
461
      </el-dialog>
462
-     <sitemap> </sitemap>
462
+     <!-- <sitemap> </sitemap> -->
463
     </div>
463
     </div>
464
 
464
 
465
      <multi-select-box
465
      <multi-select-box

+ 42 - 11
src/xt_pages/workforce/components/editTableData.vue ファイルの表示

66
               style="width: 100%; margin-right: 14px ;"
66
               style="width: 100%; margin-right: 14px ;"
67
           >
67
           >
68
             <el-table-column
68
             <el-table-column
69
-                prop="name"
70
                 label="患者名称"
69
                 label="患者名称"
71
                 align="center"
70
                 align="center"
72
             >
71
             >
72
+             <template slot-scope="scope">
73
+                <span v-if="scope.row.is_infectious == 2" style="color: red;">{{scope.row.name  }}</span>
74
+                <span v-if="scope.row.is_infectious != 2" >
75
+                  {{scope.row.name  }}
76
+                </span>
77
+             </template>
73
             </el-table-column>
78
             </el-table-column>
74
           </el-table>
79
           </el-table>
75
 
80
 
1914
         zone_name:"",
1919
         zone_name:"",
1915
         bed_name:"",
1920
         bed_name:"",
1916
         id:"",
1921
         id:"",
1922
+        contagions:[],
1917
       },
1923
       },
1918
       // 左侧患者名称表格数据
1924
       // 左侧患者名称表格数据
1919
       cur_info: {
1925
       cur_info: {
1921
         patient_id: 0,
1927
         patient_id: 0,
1922
         mode_name: "",
1928
         mode_name: "",
1923
         mode_id: 0,
1929
         mode_id: 0,
1930
+        contagions:[],
1924
       },
1931
       },
1925
       // 左侧透析模式
1932
       // 左侧透析模式
1926
       modes: [],
1933
       modes: [],
2494
       this.currentData.partition_type = row.zone_type;
2501
       this.currentData.partition_type = row.zone_type;
2495
       this.currentData.mode_id = this.cur_info.mode_id;
2502
       this.currentData.mode_id = this.cur_info.mode_id;
2496
       this.currentData.id = 0;
2503
       this.currentData.id = 0;
2497
-      this.currentData.contagions = [];
2504
+      this.currentData.contagions = this.cur_info.contagions;
2498
       this.currentData.patient_id = this.cur_info.patient_id;
2505
       this.currentData.patient_id = this.cur_info.patient_id;
2499
       this.currentData.patient = this.cur_info.patient_name;
2506
       this.currentData.patient = this.cur_info.patient_name;
2500
       this.setSchedule()
2507
       this.setSchedule()
3110
         patient_id : this.cur_info.patient_id,
3117
         patient_id : this.cur_info.patient_id,
3111
         patient_name : this.cur_info.patient_name,
3118
         patient_name : this.cur_info.patient_name,
3112
         mode_id : this.cur_info.mode_id,
3119
         mode_id : this.cur_info.mode_id,
3113
-        mode_name : this.cur_info.mode_name
3114
-      }
3115
-      // console.log('拖拽的内容',this.cur_drag_info);
3120
+        mode_name : this.cur_info.mode_name,
3121
+        contagions:this.cur_info.contagions,
3122
+      },
3123
+       console.log('拖拽的内容',this.cur_drag_info);
3116
     },
3124
     },
3117
     // 左侧选择病人(单击)
3125
     // 左侧选择病人(单击)
3118
     patientClick(row) {
3126
     patientClick(row) {
3127
+      console.log("row-222--2-2",row)
3119
       this.cur_info.patient_name = row.name;
3128
       this.cur_info.patient_name = row.name;
3120
       this.cur_info.patient_id = row.id;
3129
       this.cur_info.patient_id = row.id;
3130
+      var obj = {
3131
+        created_time:0,
3132
+        disease_id:2,
3133
+        id:0,
3134
+        patient_id:row.patient_id,
3135
+        status:1,
3136
+        updated_time:0
3137
+      }
3138
+      if(row.is_infectious==2){
3139
+        this.cur_info.contagions = []
3140
+        this.cur_info.contagions.push(obj)
3141
+      }else{
3142
+        this.cur_info.contagions = []
3143
+      }
3144
+     
3121
       this.patient_id_hover = row.id
3145
       this.patient_id_hover = row.id
3122
     },
3146
     },
3123
     // 选择透析模式
3147
     // 选择透析模式
3126
       this.cur_info.mode_id = row.id;
3150
       this.cur_info.mode_id = row.id;
3127
     },
3151
     },
3128
     setEditData(patients, modes, days, zones) {
3152
     setEditData(patients, modes, days, zones) {
3153
+      console.log("patients2oo2o2o2o",patients)
3129
       var date = new Date()
3154
       var date = new Date()
3130
       this.time = date
3155
       this.time = date
3131
       var year = date.getFullYear()
3156
       var year = date.getFullYear()
3396
                       that.currentData.patient_id = that.cur_drag_info.patient_id
3421
                       that.currentData.patient_id = that.cur_drag_info.patient_id
3397
                       that.currentData.patient = that.cur_drag_info.patient_name
3422
                       that.currentData.patient = that.cur_drag_info.patient_name
3398
                        that.currentData.contagions = that.cur_drag_info.contagions
3423
                        that.currentData.contagions = that.cur_drag_info.contagions
3399
-                        console.log( that.cur_drag_info.contagions)
3424
+                        console.log("中国hshshshshhs",that.cur_drag_info.contagions)
3400
 
3425
 
3401
-                        console.log( that.currentData.contagions)
3426
+                      
3402
                         that.setScheduleTwo(this.cur_drag_info.id);
3427
                         that.setScheduleTwo(this.cur_drag_info.id);
3403
                 }
3428
                 }
3404
               }else{ // 非同一天
3429
               }else{ // 非同一天
3405
                 if(row[key].patient_id == 0) { //空床位
3430
                 if(row[key].patient_id == 0) { //空床位
3406
                   this.currentData.mode_id = this.cur_drag_info.mode_id;
3431
                   this.currentData.mode_id = this.cur_drag_info.mode_id;
3407
                   this.currentData.id = 0;
3432
                   this.currentData.id = 0;
3408
-                  this.currentData.contagions = [];
3433
+                  this.currentData.contagions = this.cur_drag_info.contagions;
3409
                   this.currentData.patient_id = this.cur_drag_info.patient_id;
3434
                   this.currentData.patient_id = this.cur_drag_info.patient_id;
3410
                   this.currentData.patient = this.cur_drag_info.patient_name;
3435
                   this.currentData.patient = this.cur_drag_info.patient_name;
3411
                   this.setSchedule();
3436
                   this.setSchedule();
3412
                 }
3437
                 }
3413
               }
3438
               }
3414
             }else{
3439
             }else{
3440
+              console.log("wowowowowowowowow",this.cur_drag_info)
3415
               //接口提交排班数据
3441
               //接口提交排班数据
3416
               this.currentData.mode_id = this.cur_drag_info.mode_id;
3442
               this.currentData.mode_id = this.cur_drag_info.mode_id;
3417
               this.currentData.id = 0;
3443
               this.currentData.id = 0;
3418
-              this.currentData.contagions = [];
3444
+              this.currentData.contagions = this.cur_drag_info.contagions;
3419
               this.currentData.patient_id = this.cur_drag_info.patient_id;
3445
               this.currentData.patient_id = this.cur_drag_info.patient_id;
3420
               this.currentData.patient = this.cur_drag_info.patient_name;
3446
               this.currentData.patient = this.cur_drag_info.patient_name;
3421
               this.setSchedule();
3447
               this.setSchedule();
4957
           this.patient_id_hover = this.cur_info.patient_id;
4983
           this.patient_id_hover = this.cur_info.patient_id;
4958
           this.cur_info.patient_name = row[column.property].patient
4984
           this.cur_info.patient_name = row[column.property].patient
4959
           this.cur_info.mode_name = row[column.property].mode_name
4985
           this.cur_info.mode_name = row[column.property].mode_name
4960
-          // console.log('row的数据',row[column.property]);
4986
+          console.log('单击选中患者',row[column.property]);
4961
 
4987
 
4962
       } else {
4988
       } else {
4963
         var week = this.weekDay(column.property);
4989
         var week = this.weekDay(column.property);
5378
       }
5404
       }
5379
     },    
5405
     },    
5380
     setScheduleTwo(id_two) {
5406
     setScheduleTwo(id_two) {
5381
-      console.log("1112222222")
5407
+      console.log("1112222222",this.currentData.contagions.length)
5382
       var that = this;
5408
       var that = this;
5383
       // var submitFlag = true;
5409
       // var submitFlag = true;
5384
       // if (this.currentData.patient_id <= 0) {
5410
       // if (this.currentData.patient_id <= 0) {
5452
     },
5478
     },
5453
     // 排班成功调用的方法
5479
     // 排班成功调用的方法
5454
     setSchedule() {
5480
     setSchedule() {
5481
+      console.log("6666969696969699",this.currentData.contagions.length)
5455
       var that = this;
5482
       var that = this;
5456
       // var submitFlag = true;
5483
       // var submitFlag = true;
5457
       // if (this.currentData.patient_id <= 0) {
5484
       // if (this.currentData.patient_id <= 0) {
5477
       if (this.currentData.contagions.length > 0) {
5504
       if (this.currentData.contagions.length > 0) {
5478
         var cflag = false;
5505
         var cflag = false;
5479
         this.currentData.contagions.forEach(function (contagion) {
5506
         this.currentData.contagions.forEach(function (contagion) {
5507
+          console.log("woowowowowowow",that.currentData.partition_type)
5480
           if (contagion.disease_id == that.currentData.partition_type) {
5508
           if (contagion.disease_id == that.currentData.partition_type) {
5481
             cflag = true;
5509
             cflag = true;
5482
           }
5510
           }
5483
         });
5511
         });
5512
+      
5484
         if (!cflag) {
5513
         if (!cflag) {
5485
           this.$confirm(
5514
           this.$confirm(
5486
               "此患者有传染病,与此透析机不匹配,确定在此排班吗?",
5515
               "此患者有传染病,与此透析机不匹配,确定在此排班吗?",
5504
         } else {
5533
         } else {
5505
           this.CreateSchedule(this.currentData.patient_id, this.currentData);
5534
           this.CreateSchedule(this.currentData.patient_id, this.currentData);
5506
         }
5535
         }
5536
+        
5507
       } else if (that.currentData.partition_type > 1) {
5537
       } else if (that.currentData.partition_type > 1) {
5508
         this.$confirm(
5538
         this.$confirm(
5509
             "此患者没有传染病,与此透析机不匹配,确定在此排班吗?",
5539
             "此患者没有传染病,与此透析机不匹配,确定在此排班吗?",
5867
     this.partitions = this.partitionsProp;
5897
     this.partitions = this.partitionsProp;
5868
 
5898
 
5869
     var contagions = this.$store.getters.contagions;
5899
     var contagions = this.$store.getters.contagions;
5900
+ 
5870
     if (contagions.length > 0) {
5901
     if (contagions.length > 0) {
5871
       var that = this;
5902
       var that = this;
5872
       contagions.forEach(function (citem) {
5903
       contagions.forEach(function (citem) {