Browse Source

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

csx 3 years ago
parent
commit
d73444a4e1

+ 1 - 1
package-lock.json View File

2769
     },
2769
     },
2770
     "crypto-js": {
2770
     "crypto-js": {
2771
       "version": "4.1.1",
2771
       "version": "4.1.1",
2772
-      "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz",
2772
+      "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz",
2773
       "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==",
2773
       "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==",
2774
       "dev": true
2774
       "dev": true
2775
     },
2775
     },

+ 17 - 15
src/xt_pages/data/components/consumables.vue View File

810
         })
810
         })
811
       },
811
       },
812
       goodInfoDialogComfirm: function(val) {
812
       goodInfoDialogComfirm: function(val) {
813
-
813
+        
814
         if (val.isCreated == 2) {
814
         if (val.isCreated == 2) {
815
           //修改
815
           //修改
816
           val['id'] = this.goodInfo.editGoodId;
816
           val['id'] = this.goodInfo.editGoodId;
958
             this.$message.error(response.data.msg);
958
             this.$message.error(response.data.msg);
959
             return false
959
             return false
960
           } else {
960
           } else {
961
-
961
+           
962
             for(let i=0;i<response.data.data.goodType.length;i++){
962
             for(let i=0;i<response.data.data.goodType.length;i++){
963
               this.goodTypeList.push(response.data.data.goodType[i])
963
               this.goodTypeList.push(response.data.data.goodType[i])
964
             }
964
             }
965
-
965
+ 
966
             for (let i = 0; i < response.data.data.goodType.length; i++) {
966
             for (let i = 0; i < response.data.data.goodType.length; i++) {
967
               if (response.data.data.goodType[i].type == 1) {
967
               if (response.data.data.goodType[i].type == 1) {
968
                 response.data.data.goodType[i].type_name = response.data.data.goodType[i].type_name + '(系统设定)'
968
                 response.data.data.goodType[i].type_name = response.data.data.goodType[i].type_name + '(系统设定)'
1498
        getInitializtion().then(response=>{
1498
        getInitializtion().then(response=>{
1499
          if(response.data.state == 1){
1499
          if(response.data.state == 1){
1500
            var goodKindList = response.data.data.goodKindList;
1500
            var goodKindList = response.data.data.goodKindList;
1501
-
1501
+           
1502
            this.goodKindList = goodKindList
1502
            this.goodKindList = goodKindList
1503
            var medicalInsuranceLevelList =  response.data.data.medicalInsuranceLevelList
1503
            var medicalInsuranceLevelList =  response.data.data.medicalInsuranceLevelList
1504
            console.log("医保等级",medicalInsuranceLevelList)
1504
            console.log("医保等级",medicalInsuranceLevelList)
1508
       },
1508
       },
1509
       exportList(){
1509
       exportList(){
1510
         import('@/vendor/Export2Excel').then(excel => {
1510
         import('@/vendor/Export2Excel').then(excel => {
1511
-         console.log("this.table",this.goodInfo.goodInfoData)
1512
-
1511
+         console.log("this.table",this.goodInfo.goodInfoDialog.formValue.goodType)
1512
+         
1513
          for(let i=0;i<this.goodInfo.goodInfoData.length;i++){
1513
          for(let i=0;i<this.goodInfo.goodInfoData.length;i++){
1514
            for(let j=0;j<this.goodKindList.length;j++){
1514
            for(let j=0;j<this.goodKindList.length;j++){
1515
               if(this.goodInfo.goodInfoData[i].good_kind == this.goodKindList[j].value){
1515
               if(this.goodInfo.goodInfoData[i].good_kind == this.goodKindList[j].value){
1517
               }
1517
               }
1518
            }
1518
            }
1519
            for(let z=0;z<this.goodInfo.goodInfoDialog.formValue.goodType.length;z++){
1519
            for(let z=0;z<this.goodInfo.goodInfoDialog.formValue.goodType.length;z++){
1520
-              if(this.goodInfo.goodInfoDialog.formValue.goodType[z].id == this.goodInfo.goodInfoData[i].good_type_id){
1520
+              if(this.goodInfo.goodInfoData[i].good_type_id == this.goodInfo.goodInfoDialog.formValue.goodType[z].id){
1521
+                
1521
                  this.goodInfo.goodInfoData[i].good_type_name = this.goodInfo.goodInfoDialog.formValue.goodType[z].type_name
1522
                  this.goodInfo.goodInfoData[i].good_type_name = this.goodInfo.goodInfoDialog.formValue.goodType[z].type_name
1522
               }
1523
               }
1523
            }
1524
            }
1533
                 this.goodInfo.goodInfoData[i].manufacturer_name =  this.manufacturers[s].manufacturer_name
1534
                 this.goodInfo.goodInfoData[i].manufacturer_name =  this.manufacturers[s].manufacturer_name
1534
              }
1535
              }
1535
            }
1536
            }
1536
-
1537
+          
1537
           for(let a=0;a<this.dealers.length;a++){
1538
           for(let a=0;a<this.dealers.length;a++){
1538
              if(this.dealers[a].id == this.goodInfo.goodInfoData[i].dealer){
1539
              if(this.dealers[a].id == this.goodInfo.goodInfoData[i].dealer){
1539
-                 this.goodInfo.goodInfoData[i].dealer_name = this.dealers[a].dealer_name
1540
-             }
1540
+                 this.goodInfo.goodInfoData[i].dealer_name = this.dealers[a].dealer_name 
1541
+             } 
1541
           }
1542
           }
1542
          }
1543
          }
1543
-
1544
+         console.log("hhhadhh233323232",this.goodInfo.goodInfoData)
1545
+       
1544
          const tHeader = ['耗材名称','耗材种类','耗材类型','医保等级','规格型号','生产厂商','单位','零价','库存警戒','经销商','最新进价','医保编码','社保目录编码']
1546
          const tHeader = ['耗材名称','耗材种类','耗材类型','医保等级','规格型号','生产厂商','单位','零价','库存警戒','经销商','最新进价','医保编码','社保目录编码']
1545
-         const filterVal = ['good_name', 'good_kind_name','good_type_name','medical_insurance_level_name','specification_name','manufacturer_name','packing_unit','packing_price','stock_warn_count','dealer_name','buy_price','medical_insurance_number','social_security_directory_code']
1546
-
1547
+         const filterVal = ['good_name', 'good_kind_name','good_type_name','medical_insurance_level_name','specification_name','manufacturer_name','packing_unit','packing_price','stock_warn_count','dealer_name','buy_price','medical_insurance_number','social_security_directory_code'] 
1548
+         
1547
          const data = this.formatJson(filterVal,this.goodInfo.goodInfoData)
1549
          const data = this.formatJson(filterVal,this.goodInfo.goodInfoData)
1548
-
1550
+     
1549
          excel.export_json_to_excel({
1551
          excel.export_json_to_excel({
1550
            header: tHeader,
1552
            header: tHeader,
1551
            data,
1553
            data,
1552
            filename: '耗材信息'
1554
            filename: '耗材信息'
1553
          })
1555
          })
1554
           this.downloadLoading = false
1556
           this.downloadLoading = false
1555
-
1557
+    
1556
         })
1558
         })
1557
        },
1559
        },
1558
        formatJson(filterVal, jsonData) {
1560
        formatJson(filterVal, jsonData) {

+ 32 - 26
src/xt_pages/data/components/drugs.vue View File

28
         </el-select>
28
         </el-select>
29
 
29
 
30
 
30
 
31
-        <span style="color: #909399;font-size:14px;">备案 : &nbsp;</span>
32
-        <el-select v-model="is_record" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeRecord">
31
+        <span style="color: #909399;font-size:14px;">是否停用 : &nbsp;</span>
32
+        <el-select v-model="is_use" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeRecord">
33
           <el-option
33
           <el-option
34
-            v-for="item in options"
34
+            v-for="item in optionsOne"
35
             :key="item.value"
35
             :key="item.value"
36
             :label="item.label"
36
             :label="item.label"
37
             :value="item.value">
37
             :value="item.value">
91
       </el-table-column>
91
       </el-table-column>
92
       <el-table-column prop="date" label="单位&规格" align="center">
92
       <el-table-column prop="date" label="单位&规格" align="center">
93
         <template slot-scope="scope">
93
         <template slot-scope="scope">
94
-          <!-- <div>{{scope.row.drug_spec}}</div> -->
95
           <div>
94
           <div>
96
             <span v-if="scope.row.min_unit != scope.row.dose_unit">{{scope.row.dose}}{{scope.row.dose_unit}}&nbsp;* &nbsp;</span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
95
             <span v-if="scope.row.min_unit != scope.row.dose_unit">{{scope.row.dose}}{{scope.row.dose_unit}}&nbsp;* &nbsp;</span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
97
           </div>
96
           </div>
98
         </template>
97
         </template>
99
       </el-table-column>
98
       </el-table-column>
100
-
99
+  
101
       <el-table-column prop="date" label="进货价" width="100" align="center">
100
       <el-table-column prop="date" label="进货价" width="100" align="center">
102
         <template slot-scope="scope">
101
         <template slot-scope="scope">
103
           <div>{{scope.row.last_price}}</div>
102
           <div>{{scope.row.last_price}}</div>
104
         </template>
103
         </template>
105
       </el-table-column>
104
       </el-table-column>
106
-      <!-- <el-table-column label="零售价" width="100" align="center">
107
-        <template slot-scope="scope">
108
-          <div>{{scope.row.retail_price}}</div>
109
-        </template>
110
-      </el-table-column> -->
105
+     
111
       <el-table-column label="拆零零售价" width="100" align="center">
106
       <el-table-column label="拆零零售价" width="100" align="center">
112
         <template slot-scope="scope">
107
         <template slot-scope="scope">
113
           <div>{{scope.row.min_price}}</div>
108
           <div>{{scope.row.min_price}}</div>
138
           <div>{{getDealer(scope.row.dealer)}}</div>
133
           <div>{{getDealer(scope.row.dealer)}}</div>
139
         </template>
134
         </template>
140
       </el-table-column>
135
       </el-table-column>
141
-      <!-- <el-table-column prop="date" label="备案日期" align="center" width="100">
136
+       <el-table-column prop="date" label="备案日期" align="center" width="100">
142
         <template slot-scope="scope">
137
         <template slot-scope="scope">
143
           <span>{{getTime(scope.row.record_date)}}</span>
138
           <span>{{getTime(scope.row.record_date)}}</span>
144
         </template>
139
         </template>
145
       </el-table-column>
140
       </el-table-column>
146
-      <el-table-column prop="date" label="药品备注" align="center" width="100">
141
+     <!-- <el-table-column prop="date" label="药品备注" align="center" width="100">
147
         <template slot-scope="scope">
142
         <template slot-scope="scope">
148
           <div>{{scope.row.drug_remark}}</div>
143
           <div>{{scope.row.drug_remark}}</div>
149
         </template>
144
         </template>
404
             value: '2',
399
             value: '2',
405
             label: '未备案'
400
             label: '未备案'
406
           }],
401
           }],
402
+         optionsOne: [
403
+          {
404
+            value: '0',
405
+            label: '全部'
406
+          }, {
407
+            value: '1',
408
+            label: '是'
409
+          }, {
410
+            value: '2',
411
+            label: '否'
412
+          }],
407
         value: '',
413
         value: '',
408
 
414
 
409
         dealer:[],
415
         dealer:[],
699
                  this.formValue.drug_classify = ""
705
                  this.formValue.drug_classify = ""
700
               }
706
               }
701
 
707
 
702
-
708
+              
703
 
709
 
704
               this.$refs.addDrugs.show(id, this.formValue)
710
               this.$refs.addDrugs.show(id, this.formValue)
705
 
711
 
964
            console.log("isHasMinUnit",isHasMinUnit)
970
            console.log("isHasMinUnit",isHasMinUnit)
965
           var isHasPackingUnit = header.includes('*包装单位')
971
           var isHasPackingUnit = header.includes('*包装单位')
966
           console.log("isHasPackingUnit",isHasPackingUnit)
972
           console.log("isHasPackingUnit",isHasPackingUnit)
967
-
973
+        
968
           var isHasDrugType =  header.includes('*药品类型');
974
           var isHasDrugType =  header.includes('*药品类型');
969
           console.log("isHasDrugType",isHasDrugType)
975
           console.log("isHasDrugType",isHasDrugType)
970
           var isHasDrugStockLimit =  header.includes('*库存警戒');
976
           var isHasDrugStockLimit =  header.includes('*库存警戒');
973
           console.log("isHasDrugOriginPlace",isHasDrugOriginPlace)
979
           console.log("isHasDrugOriginPlace",isHasDrugOriginPlace)
974
           var isHasDrugDosageForm = header.includes('*药品剂型');
980
           var isHasDrugDosageForm = header.includes('*药品剂型');
975
           console.log("isHasDrugDosageForm",isHasDrugDosageForm)
981
           console.log("isHasDrugDosageForm",isHasDrugDosageForm)
976
-
982
+         
977
           var isHasRetailPrice = header.includes('*拆零零售价');
983
           var isHasRetailPrice = header.includes('*拆零零售价');
978
           console.log("isHasRetailPrice",isHasRetailPrice)
984
           console.log("isHasRetailPrice",isHasRetailPrice)
979
           var isHasPackingPrice= header.includes('*包装零售价');
985
           var isHasPackingPrice= header.includes('*包装零售价');
980
           console.log("isHasLastPrice",isHasPackingPrice)
986
           console.log("isHasLastPrice",isHasPackingPrice)
981
           var isHasLastPrice = header.includes('*进货价');
987
           var isHasLastPrice = header.includes('*进货价');
982
           console.log("进货价",isHasLastPrice)
988
           console.log("进货价",isHasLastPrice)
983
-
989
+          
984
           var isHasDrugClassifye = header.includes('*药物分类');
990
           var isHasDrugClassifye = header.includes('*药物分类');
985
          console.log("isHasDrugClassifye",isHasDrugClassifye)
991
          console.log("isHasDrugClassifye",isHasDrugClassifye)
986
          var isHasManufacturer = header.includes('*生产厂商');
992
          var isHasManufacturer = header.includes('*生产厂商');
991
          console.log("isDrugDoseUnit",isDrugDoseUnit)
997
          console.log("isDrugDoseUnit",isDrugDoseUnit)
992
           if (!(isHasDrugName  && isHasDosage && isHasMaxUnit && isHasUnval && isHasMinUnit && isHasPackingUnit && isHasDrugType &&  isHasDrugStockLimit && isHasDrugOriginPlace &&
998
           if (!(isHasDrugName  && isHasDosage && isHasMaxUnit && isHasUnval && isHasMinUnit && isHasPackingUnit && isHasDrugType &&  isHasDrugStockLimit && isHasDrugOriginPlace &&
993
           isHasDrugDosageForm &&  isHasRetailPrice && isHasPackingPrice && isHasLastPrice && isHasDrugClassifye && isHasManufacturer && isHasDrugDose && isDrugDoseUnit)) {
999
           isHasDrugDosageForm &&  isHasRetailPrice && isHasPackingPrice && isHasLastPrice && isHasDrugClassifye && isHasManufacturer && isHasDrugDose && isDrugDoseUnit)) {
994
-
1000
+           
995
             this.dialogVisible = true;
1001
             this.dialogVisible = true;
996
             return
1002
             return
997
           }
1003
           }
1031
            }
1037
            }
1032
 
1038
 
1033
 
1039
 
1034
-
1040
+  
1035
           if (results[i]['*拆零'] === undefined) {
1041
           if (results[i]['*拆零'] === undefined) {
1036
                 obj['min_number'] = ''
1042
                 obj['min_number'] = ''
1037
               } else {
1043
               } else {
1409
           'drugs':tableData
1415
           'drugs':tableData
1410
         };
1416
         };
1411
         console.log("params222222222",params)
1417
         console.log("params222222222",params)
1412
-
1418
+        
1413
         postDrugInformation(params).then(response=>{
1419
         postDrugInformation(params).then(response=>{
1414
            if(response.data.state == 1){
1420
            if(response.data.state == 1){
1415
              var msg =  response.data.data.msg;
1421
              var msg =  response.data.data.msg;
1479
 
1485
 
1480
       exportList(){
1486
       exportList(){
1481
          import('@/vendor/Export2Excel').then(excel => {
1487
          import('@/vendor/Export2Excel').then(excel => {
1482
-
1483
-
1488
+         
1489
+        
1484
          console.log("this.table",this.list)
1490
          console.log("this.table",this.list)
1485
 
1491
 
1486
          for(let i=0;i<this.list.length;i++){
1492
          for(let i=0;i<this.list.length;i++){
1487
           for(let j=0;j<this.drugCategoryList.length;j++){
1493
           for(let j=0;j<this.drugCategoryList.length;j++){
1488
               if(this.list[i].drug_category == this.drugCategoryList[j].value){
1494
               if(this.list[i].drug_category == this.drugCategoryList[j].value){
1489
                  this.list[i].drug_category_name = this.drugCategoryList[j].name
1495
                  this.list[i].drug_category_name = this.drugCategoryList[j].name
1490
-              }
1496
+              }  
1491
           }
1497
           }
1492
            for(let z=0;z<this.drugDosageFormList.length;z++){
1498
            for(let z=0;z<this.drugDosageFormList.length;z++){
1493
               if(this.list[i].drug_dosage_form == this.drugDosageFormList[z].value){
1499
               if(this.list[i].drug_dosage_form == this.drugDosageFormList[z].value){
1519
          }
1525
          }
1520
 
1526
 
1521
          const tHeader = ['药品名称','药品规格','剂量','剂量单位','拆零','拆零单位','包装单位','药品类型','库存警戒','产地','药品剂型','拆零零售价','包装零售价','进货价','药物分类','默认单次用量','默认单次用量单位','生产厂商','经销商','医保编码','社保目录编码']
1527
          const tHeader = ['药品名称','药品规格','剂量','剂量单位','拆零','拆零单位','包装单位','药品类型','库存警戒','产地','药品剂型','拆零零售价','包装零售价','进货价','药物分类','默认单次用量','默认单次用量单位','生产厂商','经销商','医保编码','社保目录编码']
1522
-         const filterVal = ['drug_name', 'specification_name','dose','dose_unit','min_number','min_unit','max_unit','drug_category_name','drug_stock_limit','drug_origin_place','drug_dosage_form_name','min_price','retail_price','last_price','drug_classify_name','drug_dose','drug_dose_unit','manufacturer_name','dealer_name','medical_insurance_number','social_security_directory_code']
1523
-
1528
+         const filterVal = ['drug_name', 'specification_name','dose','dose_unit','min_number','min_unit','max_unit','drug_category_name','drug_stock_limit','drug_origin_place','drug_dosage_form_name','min_price','retail_price','last_price','drug_classify_name','drug_dose','drug_dose_unit_name','manufacturer_name','dealer_name','medical_insurance_number','social_security_directory_code'] 
1529
+         
1524
          const data = this.formatJson(filterVal,this.list)
1530
          const data = this.formatJson(filterVal,this.list)
1525
-
1531
+     
1526
          excel.export_json_to_excel({
1532
          excel.export_json_to_excel({
1527
            header: tHeader,
1533
            header: tHeader,
1528
            data,
1534
            data,
1529
            filename: '药品信息'
1535
            filename: '药品信息'
1530
          })
1536
          })
1531
           this.downloadLoading = false
1537
           this.downloadLoading = false
1532
-
1538
+    
1533
         })
1539
         })
1534
        },
1540
        },
1535
        formatJson(filterVal, jsonData) {
1541
        formatJson(filterVal, jsonData) {

+ 1 - 1
src/xt_pages/hospitalStation/checkTemplate/printOne.vue View File

147
                         if(it.type == 2){
147
                         if(it.type == 2){
148
                             if(it.project.cost_classify == 3){
148
                             if(it.project.cost_classify == 3){
149
                                 projectPrint.push(it)
149
                                 projectPrint.push(it)
150
-                                total += it.project.price
150
+                                total += (it.project.price*parseInt(it.project.count))
151
                             }
151
                             }
152
                         }
152
                         }
153
                   })
153
                   })

+ 2 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue View File

142
             let projectPrint = []
142
             let projectPrint = []
143
             let total = 0
143
             let total = 0
144
             this.advicePrint.map(item => {
144
             this.advicePrint.map(item => {
145
+              console.log("imte233232323232323223",item.project)
145
               if(item.project.length > 0){
146
               if(item.project.length > 0){
146
                   item.project.map(it => {
147
                   item.project.map(it => {
147
                         if(it.type == 2){
148
                         if(it.type == 2){
148
                             if(it.project.cost_classify == 3){
149
                             if(it.project.cost_classify == 3){
149
                                 projectPrint.push(it)
150
                                 projectPrint.push(it)
150
-                                total += it.project.price
151
+                                total += (it.project.price*parseInt(it.count))
151
                             }
152
                             }
152
                         }
153
                         }
153
                   })
154
                   })

+ 2 - 3
src/xt_pages/qcd/officesControlAnalysis/project.vue View File

261
         var normdata = response.data.data.normdata
261
         var normdata = response.data.data.normdata
262
         newArr = normdata
262
         newArr = normdata
263
         var bloodpressure = response.data.data.bloodPressure
263
         var bloodpressure = response.data.data.bloodPressure
264
-        // console.log("血压",bloodpressure)
264
+        
265
         for (let i = 0; i < bloodpressure.length; i++) {
265
         for (let i = 0; i < bloodpressure.length; i++) {
266
           if (bloodpressure[i].inspection_major == 0 && bloodpressure[i].inspection_minor == -1 && bloodpressure[i].is_status == 0) {
266
           if (bloodpressure[i].inspection_major == 0 && bloodpressure[i].inspection_minor == -1 && bloodpressure[i].is_status == 0) {
267
             bloodpressure[i].item_name = '收缩压'
267
             bloodpressure[i].item_name = '收缩压'
281
         var newarr = newArr.sort((a, b) => {
281
         var newarr = newArr.sort((a, b) => {
282
           return a.sort - b.sort
282
           return a.sort - b.sort
283
         })
283
         })
284
-        //  console.log("newarr",newarr)
285
         for (let i = 0; i < newarr.length; i++) {
284
         for (let i = 0; i < newarr.length; i++) {
286
           this.mode_type = normdata[0].inspection_minor
285
           this.mode_type = normdata[0].inspection_minor
287
         }
286
         }
824
       }
823
       }
825
       this.isLoading = true
824
       this.isLoading = true
826
 
825
 
827
-      // console.log("params",params)
826
+      console.log("params",params)
828
       getBloodPressureList(params).then(response => {
827
       getBloodPressureList(params).then(response => {
829
         if (response.data.state == 1) {
828
         if (response.data.state == 1) {
830
           this.isLoading = false
829
           this.isLoading = false

+ 2 - 1
src/xt_pages/stock/cancelStockOrder.vue View File

479
       const params = {
479
       const params = {
480
         ids: idStr
480
         ids: idStr
481
       };
481
       };
482
-
482
+      console.log("params233223232323232323",params)
483
+     
483
       this.$confirm("确认删除退库单记录?", "删除退库单记录", {
484
       this.$confirm("确认删除退库单记录?", "删除退库单记录", {
484
         confirmButtonText: "确定",
485
         confirmButtonText: "确定",
485
         cancelButtonText: "取消",
486
         cancelButtonText: "取消",

+ 5 - 5
src/xt_pages/stock/cancelStockOrderEdit.vue View File

28
         <el-table :data="recordInfo.recordData" :class="signAndWeighBoxPatients" style="width: 100%" border
28
         <el-table :data="recordInfo.recordData" :class="signAndWeighBoxPatients" style="width: 100%" border
29
              max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}">
29
              max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}">
30
 
30
 
31
-          <el-table-column align="center" width="320">
31
+          <el-table-column align="center" width="200">
32
              <template slot="header" slot-scope="scope">
32
              <template slot="header" slot-scope="scope">
33
               <span>耗材名称</span>
33
               <span>耗材名称</span>
34
             </template>
34
             </template>
42
                     placeholder="请输入耗材名称"
42
                     placeholder="请输入耗材名称"
43
                     @select="handleSelect"
43
                     @select="handleSelect"
44
                     @input="changeGoodName(scope.$index)"
44
                     @input="changeGoodName(scope.$index)"
45
-                    style="width:280px;"
45
+                    style="width:160px;"
46
                   >
46
                   >
47
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
47
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
48
                   <template slot-scope="{ item }">
48
                   <template slot-scope="{ item }">
49
-                    <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
49
+                    <div  style="widht:400px">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
50
                   </template>
50
                   </template>
51
                  </el-autocomplete>
51
                  </el-autocomplete>
52
             </template>
52
             </template>
514
               }
514
               }
515
               array[i].price = array[i].price.toString()
515
               array[i].price = array[i].price.toString()
516
             }
516
             }
517
-            console.log("hh2332322323",this.recordInfo.recordData)
517
+           
518
             for(let i=0;i<this.recordInfo.recordData.length;i++){
518
             for(let i=0;i<this.recordInfo.recordData.length;i++){
519
                if(this.recordInfo.recordData[i].good_id == 0){
519
                if(this.recordInfo.recordData[i].good_id == 0){
520
                   this.$message.error("耗材规格不能为空")
520
                   this.$message.error("耗材规格不能为空")
536
             const params = {
536
             const params = {
537
               'cancelStock': this.recordInfo.recordData
537
               'cancelStock': this.recordInfo.recordData
538
             }
538
             }
539
-            console.log("parasm23232",params)
539
+            
540
            
540
            
541
             editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer,this.form.dealer).then(response => {
541
             editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer,this.form.dealer).then(response => {
542
               if (response.data.state == 0) {
542
               if (response.data.state == 0) {

+ 3 - 48
src/xt_pages/stock/detail/stockInDetail.vue View File

73
       </div>
73
       </div>
74
     </div>
74
     </div>
75
 
75
 
76
-    
77
-
78
-    <!-- <div class="cell clearfix">
79
-      <label class="title"><span class="name">单据类型</span> : </label>
80
-      <el-select
81
-        size="small"
82
-        v-model="order_type"
83
-        clearable
84
-        placeholder="单据类型"
85
-        @change="changeType"
86
-      >
87
-        <el-option
88
-          v-for="item in orderTypeArr"
89
-          :key="item.value"
90
-          :label="item.label"
91
-          :value="item.value"
92
-        >
93
-        </el-option>
94
-      </el-select>
95
-    </div> -->
96
-
97
-    <!-- <div class="cell clearfix">
98
-      <label class="title"><span class="name">其它</span> : </label>
99
-      <el-select
100
-        size="small"
101
-        v-model="manufacturer_id"
102
-        clearable
103
-        placeholder="厂商"
104
-        @change="changeManufacturer"
105
-      >
106
-        <el-option
107
-          v-for="item in manufacturer"
108
-          :key="item.id"
109
-          :label="item.manufacturer_name"
110
-          :value="item.id"
111
-        >
112
-        </el-option>
113
-      </el-select>
114
-    </div> -->
115
-
116
     <el-row :gutter="12" style="margin-top: 10px">
76
     <el-row :gutter="12" style="margin-top: 10px">
117
       <el-table
77
       <el-table
118
         :data="cancelStockDate"
78
         :data="cancelStockDate"
151
           </template>
111
           </template>
152
         </el-table-column>
112
         </el-table-column>
153
 
113
 
154
-        <!-- <el-table-column label="单据类型" align="center">
155
-          <template slot-scope="scope">
156
-            {{ getTypeName(scope.row) }}
157
-          </template>
158
-        </el-table-column> -->
159
-
114
+    
160
         <el-table-column label="操作时间" align="center">
115
         <el-table-column label="操作时间" align="center">
161
           <template slot-scope="scope">
116
           <template slot-scope="scope">
162
             {{ getTime(scope.row.Warehousing.warehousing_time) }}
117
             {{ getTime(scope.row.Warehousing.warehousing_time) }}
475
       this.multipleSelection = val;
430
       this.multipleSelection = val;
476
     },
431
     },
477
     handleSizeChange(val) {
432
     handleSizeChange(val) {
433
+      console.log("val2332323223",val)
478
       this.limit = val;
434
       this.limit = val;
479
       this.GetCancelStock();
435
       this.GetCancelStock();
480
-      // this.getPrintStockGood()
481
     },
436
     },
482
     handleCurrentChange(val) {
437
     handleCurrentChange(val) {
438
+      console.log("888888",val)
483
       this.page = val;
439
       this.page = val;
484
       this.GetCancelStock();
440
       this.GetCancelStock();
485
-      // this.getPrintStockGood()
486
     },
441
     },
487
     startTimeChange(val) {
442
     startTimeChange(val) {
488
 
443
 

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

549
       this.$refs["tableForm"].validate(valid => {
549
       this.$refs["tableForm"].validate(valid => {
550
         if (valid) {
550
         if (valid) {
551
           const array = this.recordInfo.recordData;
551
           const array = this.recordInfo.recordData;
552
-          console.log("列表23323232323232",array)
552
+         
553
           let total = 0;
553
           let total = 0;
554
           for (let i = 0; i < array.length; i++) {
554
           for (let i = 0; i < array.length; i++) {
555
 
555
 

+ 36 - 8
src/xt_pages/stock/drugs/drugQueryPrint.vue View File

18
               <td style="line-height: 50px" width="100">药品类型</td>
18
               <td style="line-height: 50px" width="100">药品类型</td>
19
               <td style="line-height: 50px" width="150">药品名称</td>
19
               <td style="line-height: 50px" width="150">药品名称</td>
20
               <td style="line-height: 50px" width="150">规格型号&单位</td>
20
               <td style="line-height: 50px" width="150">规格型号&单位</td>
21
-              <td style="line-height: 50px" width="50">进货单价</td>
22
-              <td  style="line-height: 50px" width="50">厂家</td>
21
+              <td style="line-height: 50px" width="100">进货单价</td>
22
+              <td  style="line-height: 50px" width="200">厂家</td>
23
               <td style="line-height: 50px" width="80">入库数量</td>
23
               <td style="line-height: 50px" width="80">入库数量</td>
24
               <td style="line-height: 50px" width="80">出库数量</td>
24
               <td style="line-height: 50px" width="80">出库数量</td>
25
               <td style="line-height:50px" width="80">剩余库存量</td>    
25
               <td style="line-height:50px" width="80">剩余库存量</td>    
46
                 <span> {{getManufacturerList(item.manufacturer)}}</span>
46
                 <span> {{getManufacturerList(item.manufacturer)}}</span>
47
               </td>
47
               </td>
48
               <td>
48
               <td>
49
-                <span v-if="getWarehoseInfo(item.drug_warehouse_info)!=0">{{getWarehoseInfo(item.drug_warehouse_info)}}{{item.max_unit}}</span >
49
+                <span v-if="getWarehoseInfo(item.drug_warehouse_info)!=0">{{getWarehoseInfoOne(item.drug_warehouse_info,item.max_unit,item.min_unit,item.min_number)}}</span >
50
               </td>
50
               </td>
51
               <td>
51
               <td>
52
-                <!-- <span v-if="getWarehouseOutInfo(item.drug_warehouse_out,item.max_unit,item.min_unit,item.min_number)!=0">
53
-                  {{getWarehouseOutInfo(item.drug_warehouse_out,item.max_unit,item.min_unit,item.min_number)}}
54
-                </span> -->
55
                   {{getOutFlush(item.drug_warehouse_info,item.max_unit,item.min_unit,item.min_number,item.drug_cancel_stock_info)}}
52
                   {{getOutFlush(item.drug_warehouse_info,item.max_unit,item.min_unit,item.min_number,item.drug_cancel_stock_info)}}
56
               </td>
53
               </td>
57
               <td>
54
               <td>
260
              console.log("list99999",list)
257
              console.log("list99999",list)
261
              for(let i=0;i<list.length;i++){
258
              for(let i=0;i<list.length;i++){
262
                for(let j=0;j<list[i].drug_warehouse_info.length;j++){
259
                for(let j=0;j<list[i].drug_warehouse_info.length;j++){
263
-                 list[i].drug_warehouse_info[j].stock_max_number = list[i].min_number * list[i].drug_warehouse_info[j].stock_max_number
260
+                 if(list[i].max_unit == list[i].drug_warehouse_info[j].max_unit){
261
+                    list[i].drug_warehouse_info[j].stock_max_number = list[i].min_number * list[i].drug_warehouse_info[j].stock_max_number
262
+                    list[i].drug_warehouse_info[j].warehousing_count = list[i].min_number * list[i].drug_warehouse_info[j].warehousing_count
263
+                 } 
264
+                
264
                }
265
                }
265
                for(let y=0;y<list[i].drug_warehouse_out.length;y++){
266
                for(let y=0;y<list[i].drug_warehouse_out.length;y++){
266
                   if(list[i].drug_warehouse_out[y].count_unit == list[i].max_unit){
267
                   if(list[i].drug_warehouse_out[y].count_unit == list[i].max_unit){
441
        
442
        
442
         return total
443
         return total
443
       },
444
       },
445
+      getWarehoseInfoOne(arr,max_unit,min_unit,min_number){
446
+        var total = 0
447
+        var max_str=  ""
448
+         var min_str = ""
449
+        if (arr.length > 0) {
450
+          for(let i=0;i<arr.length;i++){
451
+            total += parseInt(arr[i].warehousing_count)
452
+          }
453
+        }
454
+        if (total < min_number){
455
+          min_str = total + min_unit
456
+        }
457
+        if (total == 0) {
458
+          min_str = ""
459
+          max_str = ""
460
+        }
461
+        if (total >=min_number) {
462
+           if(parseInt(total/min_number)!=0){
463
+              max_str = parseInt(total/min_number) + max_unit
464
+           }
465
+           if(total%min_number!=0){
466
+              min_str = total%min_number + min_unit
467
+           }
468
+
469
+        }
470
+        return max_str + min_str
471
+      },
444
       getOverFlushInfo(arr,max_unit,min_unit,min_number){
472
       getOverFlushInfo(arr,max_unit,min_unit,min_number){
445
        
473
        
446
          var max_str=  ""
474
          var max_str=  ""
507
         var over_count = 0
535
         var over_count = 0
508
         var cancel_count = 0
536
         var cancel_count = 0
509
         for(let i=0;i<info.length;i++){
537
         for(let i=0;i<info.length;i++){
510
-           total += (info[i].warehousing_count * min_number)
538
+           total += info[i].warehousing_count 
511
         }
539
         }
512
         
540
         
513
         for(let j=0;j<info.length;j++){
541
         for(let j=0;j<info.length;j++){

+ 6 - 1
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

197
         </el-table-column>
197
         </el-table-column>
198
         <el-table-column label="入库数量" align="center">
198
         <el-table-column label="入库数量" align="center">
199
           <template slot-scope="scope">
199
           <template slot-scope="scope">
200
-            {{scope.row.warehousing_count}}{{scope.row.drug.max_unit}}
200
+            {{scope.row.warehousing_count}}{{scope.row.max_unit}}
201
+          </template>
202
+        </el-table-column>
203
+        <el-table-column label="包装零售价" align="center">
204
+          <template slot-scope="scope">
205
+            {{scope.row.retail_price}}
201
           </template>
206
           </template>
202
         </el-table-column>
207
         </el-table-column>
203
         <el-table-column label="进货价" align="center">
208
         <el-table-column label="进货价" align="center">

+ 42 - 8
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue View File

28
                         style="width: 196px;" type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
28
                         style="width: 196px;" type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
29
                         value-format="yyyy-MM-dd"></el-date-picker>
29
                         value-format="yyyy-MM-dd"></el-date-picker>
30
          <div class="titleOne">制单人:{{this.$store.getters.xt_user.user.user_name}}</div>
30
          <div class="titleOne">制单人:{{this.$store.getters.xt_user.user.user_name}}</div>
31
-         <!-- <div class="titleOne">当前进货价合计:</div> -->
32
       </div>
31
       </div>
33
      
32
      
34
      
33
      
113
               </template>
112
               </template>
114
          </el-table-column>
113
          </el-table-column>
115
 
114
 
116
-         <el-table-column align="center" width="120">
115
+         <el-table-column align="center" width="200">
117
             <template slot="header" slot-scope="scope">
116
             <template slot="header" slot-scope="scope">
118
               <span>入库数量<span style="color: red">*</span></span>
117
               <span>入库数量<span style="color: red">*</span></span>
119
             </template>
118
             </template>
129
                   placeholder="请输入入库数量"
128
                   placeholder="请输入入库数量"
130
                   type="number"
129
                   type="number"
131
                   v-model="scope.row.warehousing_count"
130
                   v-model="scope.row.warehousing_count"
132
-                  style="width:80px"
131
+                  style="width:120px"
133
                 ></el-input>
132
                 ></el-input>
134
-                 {{scope.row.max_unit}}
133
+                 <!-- {{scope.row.max_unit}} -->
134
+                  <el-select v-model="scope.row.max_unit" filterable placeholder="请选择单位" style="width:80px">
135
+                    <el-option
136
+                      v-for="(option, index) in unitList"
137
+                      :key="index"
138
+                      :label="option.name"
139
+                      :value="option.name">
140
+                    </el-option>
141
+                  </el-select>
135
               </div>
142
               </div>
136
               </el-form-item>
143
               </el-form-item>
137
              
144
              
138
             </template>
145
             </template>
139
           </el-table-column>
146
           </el-table-column>
147
+
148
+          <el-table-column align="center" width="140">
149
+            <template slot="header" slot-scope="scope">
150
+              <span>包装零售价(元)<span style="color: red">*</span></span>
151
+            </template>
152
+            <template slot-scope="scope">
153
+              <el-form-item
154
+                :prop="'recordData.' + scope.$index + '.retail_price'"
155
+                :rules="tableRules.retail_price"
156
+                style="padding-top: 20px"
157
+              >
158
+                <el-input
159
+                  style="width:100px"
160
+                  placeholder="请输入包装零售价"
161
+                  type="number"
162
+                  v-model="scope.row.retail_price"
163
+                ></el-input>
164
+               
165
+              </el-form-item>
166
+            </template>
167
+          </el-table-column>
140
        
168
        
141
           <el-table-column align="center" width="120">
169
           <el-table-column align="center" width="120">
142
             <template slot="header" slot-scope="scope">
170
             <template slot="header" slot-scope="scope">
358
           expiry_date:[
386
           expiry_date:[
359
            {required:true,message:'有效日期不能为空',trigger:'blur'}
387
            {required:true,message:'有效日期不能为空',trigger:'blur'}
360
           ],
388
           ],
389
+          retail_price:[
390
+            {required:true,message:'请输入包装零售价',trigger:'blur'}
391
+          ]
361
         },
392
         },
362
         type: this.$route.query.type,
393
         type: this.$route.query.type,
363
         total: '',
394
         total: '',
419
         showTwo:false,
450
         showTwo:false,
420
         drugTypeList:[],
451
         drugTypeList:[],
421
         totalPrice:0,
452
         totalPrice:0,
453
+        unitList:[],
422
       }
454
       }
423
     },
455
     },
424
     methods: {
456
     methods: {
691
              if(this.recordInfo.recordData[i].dealer == ""){
723
              if(this.recordInfo.recordData[i].dealer == ""){
692
                 this.recordInfo.recordData[i].dealer = 0
724
                 this.recordInfo.recordData[i].dealer = 0
693
              }
725
              }
694
-               this.recordInfo.recordData[i].last_price = this.recordInfo.recordData[i].last_price.toString()
726
+              this.recordInfo.recordData[i].last_price = this.recordInfo.recordData[i].last_price.toString()
727
+              this.recordInfo.recordData[i].retail_price = this.recordInfo.recordData[i].retail_price.toString()
695
              if(this.recordInfo.recordData[i].dealer == ""){
728
              if(this.recordInfo.recordData[i].dealer == ""){
696
                 this.recordInfo.recordData[i].dealer = 0
729
                 this.recordInfo.recordData[i].dealer = 0
697
              }
730
              }
711
               'stockIn': this.recordInfo.recordData
744
               'stockIn': this.recordInfo.recordData
712
             }
745
             }
713
             console.log("params2222222",params)
746
             console.log("params2222222",params)
714
-            
747
+           
715
             postDrugWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
748
             postDrugWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
716
               if (response.data.state == 0) {
749
               if (response.data.state == 0) {
717
                 this.$message.error(response.data.msg)
750
                 this.$message.error(response.data.msg)
813
         this.currentIndex = val
846
         this.currentIndex = val
814
       },
847
       },
815
       handleSelect(val){
848
       handleSelect(val){
849
+         console.log("val233232323223",val)
816
          for(let i=0;i<this.recordInfo.recordData.length;i++){
850
          for(let i=0;i<this.recordInfo.recordData.length;i++){
817
            if(i == this.currentIndex){
851
            if(i == this.currentIndex){
818
              this.recordInfo.recordData[i].drug_id  = val.id
852
              this.recordInfo.recordData[i].drug_id  = val.id
820
              this.recordInfo.recordData[i].drug_type = val.drug_type
854
              this.recordInfo.recordData[i].drug_type = val.drug_type
821
              this.recordInfo.recordData[i].name  = val.dose +val.dose_unit+"*"+val.min_number+ val.min_unit+"/"+val.max_unit
855
              this.recordInfo.recordData[i].name  = val.dose +val.dose_unit+"*"+val.min_number+ val.min_unit+"/"+val.max_unit
822
              this.recordInfo.recordData[i].last_price = val.last_price
856
              this.recordInfo.recordData[i].last_price = val.last_price
857
+             this.recordInfo.recordData[i].retail_price = val.retail_price
823
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
858
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
824
              this.recordInfo.recordData[i].number =  val.number
859
              this.recordInfo.recordData[i].number =  val.number
825
              this.recordInfo.recordData[i].max_unit = val.max_unit
860
              this.recordInfo.recordData[i].max_unit = val.max_unit
875
       this.GetConfigInfo()
910
       this.GetConfigInfo()
876
       this.propForm.goodUnit = this.$store.getters.good_unit
911
       this.propForm.goodUnit = this.$store.getters.good_unit
877
       
912
       
878
-     
879
-    
913
+     this.unitList =  getDataConfig('hemodialysis','units')
880
     }
914
     }
881
 
915
 
882
   }
916
   }

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

37
 
37
 
38
       <div class="cell clearfix" style="margin-top: 10px">
38
       <div class="cell clearfix" style="margin-top: 10px">
39
         <el-button size="small" icon="el-icon-edit" @click="editRecord"
39
         <el-button size="small" icon="el-icon-edit" @click="editRecord"
40
-          >编辑222</el-button
40
+          >编辑</el-button
41
         >
41
         >
42
         <el-button size="small" icon="el-icon-delete" @click="deleteRecord"
42
         <el-button size="small" icon="el-icon-delete" @click="deleteRecord"
43
           >删除</el-button
43
           >删除</el-button

+ 60 - 74
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue View File

25
     </div>
25
     </div>
26
 
26
 
27
     <div class="app-container">
27
     <div class="app-container">
28
-      <!--<stock-in-dialog-->
29
-        <!--ref="dialog"-->
30
-        <!--:propForm="propForm"-->
31
-        <!--:visibility="isVisibility"-->
32
-        <!--v-on:dialog-comfirm="comfirm"-->
33
-        <!--v-on:dialog-cancle="cancle"-->
34
-      <!--&gt;</stock-in-dialog>-->
28
+    
35
       <drugs-stock-dialog
29
       <drugs-stock-dialog
36
         ref="dialog"
30
         ref="dialog"
37
         :propForm="propForm"
31
         :propForm="propForm"
58
         </el-date-picker>
52
         </el-date-picker>
59
       </div>
53
       </div>
60
 
54
 
61
-      <!-- <div class="cell clearfix">
62
-        <label class="title"><span class="name">经销商</span> : </label>
63
-        <el-select
64
-          size="small"
65
-          v-model="form.dealer"
66
-          clearable
67
-          placeholder="请选择经销商"
68
-        >
69
-          <el-option
70
-            v-for="(option, index) in dealer"
71
-            :key="index"
72
-            :label="option.dealer_name"
73
-            :value="option.id"
74
-          >
75
-          </el-option>
76
-        </el-select>
77
-      </div>
78
-
79
-      <div class="cell clearfix">
80
-        <label class="title"><span class="name">厂商</span> : </label>
81
-
82
-        <el-select
83
-          size="small"
84
-          v-model="form.manufacturer"
85
-          clearable
86
-          placeholder="请选择厂商"
87
-        >
88
-          <el-option
89
-            v-for="(option, index) in manufacturer"
90
-            :key="index"
91
-            :label="option.manufacturer_name"
92
-            :value="option.id"
93
-          >
94
-          </el-option>
95
-        </el-select>
96
-      </div> -->
97
-
98
-
99
-
55
+      
100
    <!-- 编辑入库单详情 -->
56
    <!-- 编辑入库单详情 -->
101
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
57
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
102
         <el-table
58
         <el-table
109
           v-loading="listLoading"
65
           v-loading="listLoading"
110
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
66
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
111
         >
67
         >
112
-          <el-table-column align="center" width="200">
68
+
69
+          <el-table-column align="center" width="200px">
113
             <template slot="header" slot-scope="scope">
70
             <template slot="header" slot-scope="scope">
114
               <span>药品名称<span style="color: red">*</span></span>
71
               <span>药品名称<span style="color: red">*</span></span>
115
             </template>
72
             </template>
116
 
73
 
117
             <template slot-scope="scope">
74
             <template slot-scope="scope">
118
-              <el-form-item style="padding-top: 20px">
75
+              <el-form-item style="padding-top: 15px">
119
                  <el-autocomplete
76
                  <el-autocomplete
120
                     class="checkSearch"
77
                     class="checkSearch"
121
                     popper-class="my-autocomplete"
78
                     popper-class="my-autocomplete"
126
                     @select="handleSelect"
83
                     @select="handleSelect"
127
                     @input="changeDrugName(scope.$index)"
84
                     @input="changeDrugName(scope.$index)"
128
                     style="width:160px;"
85
                     style="width:160px;"
86
+                    :disabled="drug_show"
129
                   >
87
                   >
130
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
88
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
131
                   <template slot-scope="{ item }">
89
                   <template slot-scope="{ item }">
132
-                    <div class="name">{{ item.drug_name + item.dose +  item.dose_unit +"*" +item.min_number + item.min_unit +"/" + item.max_unit + " "+item.manufacturer}}</div>
90
+                    <div class="name">{{ item.drug_name + item.dose + item.dose_unit + "*" +item.min_number + item.min_unit +"/" + item.max_unit + " "+item.manufacturer}}</div>
133
                   </template>
91
                   </template>
134
                  </el-autocomplete>
92
                  </el-autocomplete>
135
               </el-form-item>
93
               </el-form-item>
136
             </template>
94
             </template>
137
           </el-table-column>
95
           </el-table-column>
96
+       
138
          <el-table-column align="center" width="140">
97
          <el-table-column align="center" width="140">
139
             <template slot="header" slot-scope="scope">
98
             <template slot="header" slot-scope="scope">
140
               <span>药品类型</span>
99
               <span>药品类型</span>
177
                 </el-form-item>
136
                 </el-form-item>
178
               </template>
137
               </template>
179
          </el-table-column>
138
          </el-table-column>
180
-          <!-- <el-table-column align="center" width="140">
181
-            <template slot="header" slot-scope="scope" >
182
-              <span>批号</span>
183
-              </template>
184
-                <template slot-scope="scope">
185
-                  <el-form-item style="padding-top: 20px">
186
-                    <el-input
187
-                      placeholder="请输入批号"
188
-                      v-model="scope.row.batch_number"
189
-                    ></el-input>
190
-                  </el-form-item>
191
-                </template>
192
-          </el-table-column> -->
139
+       
193
                    
140
                    
194
-         <el-table-column align="center" width="120">
141
+         <el-table-column align="center" width="200">
195
             <template slot="header" slot-scope="scope">
142
             <template slot="header" slot-scope="scope">
196
               <span>入库数量<span style="color: red">*</span></span>
143
               <span>入库数量<span style="color: red">*</span></span>
197
             </template>
144
             </template>
209
                     v-model="scope.row.warehousing_count"
156
                     v-model="scope.row.warehousing_count"
210
                     style="width:80px"
157
                     style="width:80px"
211
                   ></el-input>
158
                   ></el-input>
212
-                  {{scope.row.max_unit}}
159
+                   <el-select v-model="scope.row.max_unit" filterable placeholder="请选择单位" style="width:80px">
160
+                    <el-option
161
+                      v-for="(option, index) in unitList"
162
+                      :key="index"
163
+                      :label="option.name"
164
+                      :value="option.name">
165
+                    </el-option>
166
+                  </el-select>
213
                 </div>
167
                 </div>
214
               </el-form-item>
168
               </el-form-item>
215
             </template>
169
             </template>
216
           </el-table-column>
170
           </el-table-column>
171
+          <el-table-column align="center" width="140">
172
+            <template slot="header" slot-scope="scope">
173
+              <span>包装零售价(元)<span style="color: red">*</span></span>
174
+            </template>
175
+            <template slot-scope="scope">
176
+              <el-form-item
177
+                :prop="'recordData.' + scope.$index + '.retail_price'"
178
+                :rules="tableRules.retail_price"
179
+                style="padding-top: 20px"
180
+              >
181
+                <el-input
182
+                  style="width:100px"
183
+                  placeholder="请输入包装零售价"
184
+                  type="number"
185
+                  v-model="scope.row.retail_price"
186
+                ></el-input>
187
+               
188
+              </el-form-item>
189
+            </template>
190
+          </el-table-column>
217
           <el-table-column width="120">
191
           <el-table-column width="120">
218
             <template slot="header" slot-scope="scope">
192
             <template slot="header" slot-scope="scope">
219
                 <span>进货单价(元)<span style="color: red">*</span></span>
193
                 <span>进货单价(元)<span style="color: red">*</span></span>
374
   GetAllConfig,
348
   GetAllConfig,
375
   GetAllDrugInfoByID,
349
   GetAllDrugInfoByID,
376
   getDrugWarehouseInfoList,
350
   getDrugWarehouseInfoList,
377
-  modifyDrugWarehouseInfo,
378
-  deleteDrugWarehouseInfo,
379
   DeleteDrugWarehouseInfoItem,
351
   DeleteDrugWarehouseInfoItem,
380
   EditDrugWarehouse
352
   EditDrugWarehouse
381
 } from "@/api/drug/drug_stock";
353
 } from "@/api/drug/drug_stock";
429
         batch_number:[
401
         batch_number:[
430
           {required:true,message:'批号不能为空',trigger:'blur'}
402
           {required:true,message:'批号不能为空',trigger:'blur'}
431
         ],
403
         ],
404
+        retail_price:[
405
+         {required:true,message:'请输入包装零售价',trigger:'blur'}
406
+        ]
432
       },
407
       },
433
 
408
 
434
       total: "",
409
       total: "",
460
       dealerList:[],
435
       dealerList:[],
461
       org_id:0,
436
       org_id:0,
462
       listLoading:false,
437
       listLoading:false,
438
+      unitList:[],
439
+      drug_show:false,
463
     };
440
     };
464
   },
441
   },
465
   methods: {
442
   methods: {
689
 
666
 
690
              this.recordInfo.recordData[i].last_price = this.recordInfo.recordData[i].last_price.toString()
667
              this.recordInfo.recordData[i].last_price = this.recordInfo.recordData[i].last_price.toString()
691
              this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].last_price.toString()
668
              this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].last_price.toString()
692
-            
669
+
670
+             this.recordInfo.recordData[i].retail_price = this.recordInfo.recordData[i].retail_price.toString()
671
+          
693
             for(let j=0;j<this.manufacturerList.length;j++){
672
             for(let j=0;j<this.manufacturerList.length;j++){
694
               if(this.recordInfo.recordData[i].manufacturer == this.manufacturerList[j].manufacturer_name){
673
               if(this.recordInfo.recordData[i].manufacturer == this.manufacturerList[j].manufacturer_name){
695
                  this.recordInfo.recordData[i].manufacturer = this.manufacturerList[j].id
674
                  this.recordInfo.recordData[i].manufacturer = this.manufacturerList[j].id
707
             stockIn: this.recordInfo.recordData
686
             stockIn: this.recordInfo.recordData
708
           };
687
           };
709
           console.log("params22222222222",params)
688
           console.log("params22222222222",params)
710
-         
689
+        
711
           EditDrugWarehouse(
690
           EditDrugWarehouse(
712
             params,
691
             params,
713
             this.warehousing_time,
692
             this.warehousing_time,
742
         } else {
721
         } else {
743
        
722
        
744
           var manufacturerList = response.data.data.manufacturerList
723
           var manufacturerList = response.data.data.manufacturerList
745
-          console.log("000000000000",response.data.data.info)
746
           this.manufacturerList = manufacturerList
724
           this.manufacturerList = manufacturerList
747
           var dealerList  = response.data.data.dealerList
725
           var dealerList  = response.data.data.dealerList
748
-          console.log("供应商232322332322332232323",this.dealerList)
726
+        
749
           this.dealerList = dealerList
727
           this.dealerList = dealerList
728
+          console.log("详情32332323232323232232323323232323232",response.data.data.info)
750
           for (let i = 0; i < response.data.data.info.length; i++) {
729
           for (let i = 0; i < response.data.data.info.length; i++) {
751
             response.data.data.info[i].product_date = this.getTime(
730
             response.data.data.info[i].product_date = this.getTime(
752
               response.data.data.info[i].product_date,
731
               response.data.data.info[i].product_date,
770
 
749
 
771
             response.data.data.info[i].last_price = response.data.data.info[i].price
750
             response.data.data.info[i].last_price = response.data.data.info[i].price
772
 
751
 
773
-            response.data.data.info[i].max_unit = response.data.data.info[i].drug.max_unit
774
-            
752
+            response.data.data.info[i].max_unit = response.data.data.info[i].max_unit
753
+
754
+            response.data.data.info[i].min_unit  = response.data.data.info[i].min_unit
755
+
775
             response.data.data.info[i].drug_type = response.data.data.info[i].drug.drug_type
756
             response.data.data.info[i].drug_type = response.data.data.info[i].drug.drug_type
776
 
757
 
777
            if(response.data.data.info[i].manufacturer == 0){
758
            if(response.data.data.info[i].manufacturer == 0){
807
             this.warehouse.warehousing_time,
788
             this.warehouse.warehousing_time,
808
             "{y}-{m}-{d}"
789
             "{y}-{m}-{d}"
809
           );
790
           );
810
-
811
-        
812
         }
791
         }
813
       });
792
       });
814
     },
793
     },
872
              }else{
851
              }else{
873
                this.recordInfo.recordData[i].last_price = val.last_price
852
                this.recordInfo.recordData[i].last_price = val.last_price
874
              }
853
              }
854
+             if(val.retail_price == 0){
855
+               this.recordInfo.recordData[i].retail_price = ""
856
+             }else{
857
+               this.recordInfo.recordData[i].retail_price = val.retail_price
858
+             }
875
            
859
            
876
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
860
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
877
              this.recordInfo.recordData[i].number = val.number
861
              this.recordInfo.recordData[i].number = val.number
896
     this.propForm.goodUnit = this.$store.getters.good_unit;
880
     this.propForm.goodUnit = this.$store.getters.good_unit;
897
     const order_id = this.$route.query.id;
881
     const order_id = this.$route.query.id;
898
     this.GetOrderDetail(order_id);
882
     this.GetOrderDetail(order_id);
883
+    this.unitList =  getDataConfig('hemodialysis','units')
899
   }
884
   }
900
 };
885
 };
901
 </script>
886
 </script>
931
 .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
916
 .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
932
   background: #6fb5fa;
917
   background: #6fb5fa;
933
 }
918
 }
919
+
934
 </style>
920
 </style>

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

775
     this.GetConfigInfo();
775
     this.GetConfigInfo();
776
     this.propForm.goodUnit = this.$store.getters.good_unit;
776
     this.propForm.goodUnit = this.$store.getters.good_unit;
777
     this.unitList =  getDataConfig('hemodialysis','units')
777
     this.unitList =  getDataConfig('hemodialysis','units')
778
-    console.log("单位",this.unitList)
778
+ 
779
   }
779
   }
780
 };
780
 };
781
 </script>
781
 </script>

+ 11 - 15
src/xt_pages/stock/drugs/inventory.vue View File

230
             if (keyword != undefined) {
230
             if (keyword != undefined) {
231
                 key = keyword
231
                 key = keyword
232
             }
232
             }
233
-            console.log("keyword23323232323223",keyword)
234
              var params = {
233
              var params = {
235
                 keyword:key,
234
                 keyword:key,
236
              }
235
              }
236
+            
237
             postSearchDrugWarehouseList(params).then(response => {
237
             postSearchDrugWarehouseList(params).then(response => {
238
             if (response.data.state == 1) {
238
             if (response.data.state == 1) {
239
             
239
             
282
            getDrugWarehouseInfoList(params).then(response=>{
282
            getDrugWarehouseInfoList(params).then(response=>{
283
              if(response.data.state == 1){
283
              if(response.data.state == 1){
284
                 var list =  response.data.data.list
284
                 var list =  response.data.data.list
285
-               console.log("表哥323322332232323",this.tableData)
286
                 for(let i=0;i<list.length;i++){
285
                 for(let i=0;i<list.length;i++){
287
                    list[i].drug_name = list[i].XtBaseDrug.drug_name
286
                    list[i].drug_name = list[i].XtBaseDrug.drug_name
288
                    list[i].specification_name = list[i].XtBaseDrug.dose +list[i].XtBaseDrug.dose_unit + "*"+list[i].XtBaseDrug.min_number +list[i].XtBaseDrug.min_unit+"/"+list[i].XtBaseDrug.max_unit
287
                    list[i].specification_name = list[i].XtBaseDrug.dose +list[i].XtBaseDrug.dose_unit + "*"+list[i].XtBaseDrug.min_number +list[i].XtBaseDrug.min_unit+"/"+list[i].XtBaseDrug.max_unit
330
                       }
329
                       }
331
                    }
330
                    }
332
                  }
331
                  }
333
-                console.log("newlist23233223323222323232332",newList)
332
+               
334
                 this.tableData = newList
333
                 this.tableData = newList
335
                 this.showSearch = false
334
                 this.showSearch = false
336
                 this.showTable = true
335
                 this.showTable = true
575
             arr.push(val[i].id)
574
             arr.push(val[i].id)
576
         }
575
         }
577
         var str = arr.join(",") 
576
         var str = arr.join(",") 
578
-        console.log("str",str)
579
         this.ids = str
577
         this.ids = str
580
         },
578
         },
581
       toCheck(){
579
       toCheck(){
592
             check_time:this.getTime(this.check_time),
590
             check_time:this.getTime(this.check_time),
593
             checker:this.checker,
591
             checker:this.checker,
594
          }
592
          }
595
-       console.log("params",params)
596
        SaveDrugCheckedInventory(params).then(response=>{
593
        SaveDrugCheckedInventory(params).then(response=>{
597
          if(response.data.state == 1){
594
          if(response.data.state == 1){
598
            this.$message.success("保存成功")
595
            this.$message.success("保存成功")
611
        getDrugInventoryDetail(id).then(response=>{
608
        getDrugInventoryDetail(id).then(response=>{
612
          if(response.data.state == 1){
609
          if(response.data.state == 1){
613
             var detail = response.data.data.detail
610
             var detail = response.data.data.detail
614
-            console.log("detial2323223",detail)
611
+            
615
             this.id = detail.id
612
             this.id = detail.id
616
             this.form.drug_id = detail.drug_id
613
             this.form.drug_id = detail.drug_id
617
             this.form.drug_name = detail.drug_name
614
             this.form.drug_name = detail.drug_name
659
           min_count:parseInt(this.form.min_count),
656
           min_count:parseInt(this.form.min_count),
660
           min_unit:this.form.min_unit,
657
           min_unit:this.form.min_unit,
661
        }
658
        }
662
-       console.log("params2222",params)
659
+    
663
       
660
       
664
       modifyInventory(params).then(response=>{
661
       modifyInventory(params).then(response=>{
665
          if(response.data.state == 1){
662
          if(response.data.state == 1){
692
         });   
689
         });   
693
      },
690
      },
694
     toMove(item,index){
691
     toMove(item,index){
695
-      console.log("index",item)
692
+      
696
        this.$confirm('此操作将移除药品整个批次, 是否继续?', '提示', {
693
        this.$confirm('此操作将移除药品整个批次, 是否继续?', '提示', {
697
           confirmButtonText: '确定',
694
           confirmButtonText: '确定',
698
           cancelButtonText: '取消',
695
           cancelButtonText: '取消',
701
           this.tableData.splice(index,1)
698
           this.tableData.splice(index,1)
702
           this.WarehouseList = []
699
           this.WarehouseList = []
703
           this.activeNames = [0,1,2,3,4,5,6,7,8,9,10]
700
           this.activeNames = [0,1,2,3,4,5,6,7,8,9,10]
704
-          console.log("hhhh233232",this.tableData)
701
+         
705
         }).catch(() => {
702
         }).catch(() => {
706
           this.loading = false
703
           this.loading = false
707
         });   
704
         });   
708
     },
705
     },
709
     toDelete(index,drug_id){
706
     toDelete(index,drug_id){
710
-      console.log("oo2o323323223",this.tableData)
707
+      
711
       for(let i=0;i<this.tableData.length;i++){
708
       for(let i=0;i<this.tableData.length;i++){
712
          if(drug_id == this.tableData[i].drug_id){
709
          if(drug_id == this.tableData[i].drug_id){
713
            this.tableData[i].child.splice(index,1)
710
            this.tableData[i].child.splice(index,1)
745
           getDrugBatchNumber(params).then(response=>{
742
           getDrugBatchNumber(params).then(response=>{
746
             if(response.data.state == 1){
743
             if(response.data.state == 1){
747
               var list = response.data.data.list
744
               var list = response.data.data.list
748
-              console.log("list2222",list)
749
               this.numberList = list
745
               this.numberList = list
750
             }
746
             }
751
           })
747
           })
754
          getDrugInventoryDetail(id).then(response=>{
750
          getDrugInventoryDetail(id).then(response=>{
755
           if(response.data.state == 1){
751
           if(response.data.state == 1){
756
             var detail = response.data.data.detail
752
             var detail = response.data.data.detail
757
-            console.log("detail22222222",detail)
758
             this.id = detail.id
753
             this.id = detail.id
759
             this.form.drug_id = detail.drug_id
754
             this.form.drug_id = detail.drug_id
760
             this.form.drug_name = detail.drug_name
755
             this.form.drug_name = detail.drug_name
783
              remark:this.remark,
778
              remark:this.remark,
784
              proof_count:parseInt(this.form.proof_count),
779
              proof_count:parseInt(this.form.proof_count),
785
            }
780
            }
786
-          console.log("params",params)
781
+         
787
          SaveDrugProofInventory(params).then(response=>{
782
          SaveDrugProofInventory(params).then(response=>{
788
             if(response.data.state == 1){
783
             if(response.data.state == 1){
789
               var inventory = response.data.data.inventory
784
               var inventory = response.data.data.inventory
790
-              console.log("inventory",inventory)
785
+             
791
               this.profdialogVisible = false
786
               this.profdialogVisible = false
792
               this.getlist()
787
               this.getlist()
793
             }
788
             }
808
       getDrugWarehouseInfoTotal(params).then(response=>{
803
       getDrugWarehouseInfoTotal(params).then(response=>{
809
          if(response.data.state == 1){
804
          if(response.data.state == 1){
810
            var list = response.data.data.list
805
            var list = response.data.data.list
811
-           console.log("list",list)
812
           
806
           
813
           var max_total = 0
807
           var max_total = 0
814
           var min_total = 0
808
           var min_total = 0
859
         if(response.data.state == 1){
853
         if(response.data.state == 1){
860
            var inventory = response.data.data.inventory
854
            var inventory = response.data.data.inventory
861
            this.$message.success("保存成功")
855
            this.$message.success("保存成功")
856
+           this.WarehouseList = []
862
            this.tableData = []
857
            this.tableData = []
858
+          
863
         }
859
         }
864
       })
860
       })
865
     }
861
     }

+ 35 - 4
src/xt_pages/stock/drugs/query.vue View File

107
         </el-table-column>
107
         </el-table-column>
108
         <el-table-column prop="drug_name" label="入库数量" align="center">
108
         <el-table-column prop="drug_name" label="入库数量" align="center">
109
            <template slot-scope="scope">
109
            <template slot-scope="scope">
110
-            <span v-if="getWarehoseInfo(scope.row.drug_warehouse_info)>0">{{getWarehoseInfo(scope.row.drug_warehouse_info)}}{{scope.row.min_unit}}</span>
110
+            <span v-if="getWarehoseInfo(scope.row.drug_warehouse_info)>0">
111
+              {{getWarehoseInfoOne(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}
112
+            </span>
111
            </template>
113
            </template>
112
         </el-table-column>
114
         </el-table-column>
113
         <el-table-column prop="drug_name" label="出库数量" align="center" v-if="showOne">
115
         <el-table-column prop="drug_name" label="出库数量" align="center" v-if="showOne">
191
     created() {
193
     created() {
192
       var start_time =  window.sessionStorage.getItem('start_time')
194
       var start_time =  window.sessionStorage.getItem('start_time')
193
       var end_time =  window.sessionStorage.getItem('end_time')
195
       var end_time =  window.sessionStorage.getItem('end_time')
194
-      console.log("start_time",start_time,end_time)
196
+     
195
       if(start_time !=null){
197
       if(start_time !=null){
196
         this.start_time = start_time
198
         this.start_time = start_time
197
       }
199
       }
278
         getDrugStockList(params).then(response=>{
280
         getDrugStockList(params).then(response=>{
279
           if(response.data.state == 1){
281
           if(response.data.state == 1){
280
              var list = response.data.data.list
282
              var list = response.data.data.list
281
-             console.log("list99999",list)
283
+           
282
              for(let i=0;i<list.length;i++){
284
              for(let i=0;i<list.length;i++){
283
                for(let j=0;j<list[i].drug_warehouse_info.length;j++){
285
                for(let j=0;j<list[i].drug_warehouse_info.length;j++){
284
                  if(list[i].max_unit == list[i].drug_warehouse_info[j].max_unit){
286
                  if(list[i].max_unit == list[i].drug_warehouse_info[j].max_unit){
468
            this.tableList[i].drug_type_name = this.getDrugType(this.tableList[i].drug_type)
470
            this.tableList[i].drug_type_name = this.getDrugType(this.tableList[i].drug_type)
469
            this.tableList[i].unit = this.tableList[i].dose + this.tableList[i].dose_unit +"*"+this.tableList[i].min_number+this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
471
            this.tableList[i].unit = this.tableList[i].dose + this.tableList[i].dose_unit +"*"+this.tableList[i].min_number+this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
470
            this.tableList[i].manufacturer_name = this.getManufacturerList(this.tableList[i].manufacturer)
472
            this.tableList[i].manufacturer_name = this.getManufacturerList(this.tableList[i].manufacturer)
471
-          this.tableList[i].inCount =  this.getWarehoseInfo(this.tableList[i].drug_warehouse_info)
473
+          this.tableList[i].inCount =  this.getWarehoseInfoOne(this.tableList[i].drug_warehouse_info,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
472
           if(this.end_time == 0){
474
           if(this.end_time == 0){
473
             this.tableList[i].outCount = this.getWarehouseOutInfo(this.tableList[i].drug_warehouse_out,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
475
             this.tableList[i].outCount = this.getWarehouseOutInfo(this.tableList[i].drug_warehouse_out,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
474
             this.tableList[i].overplusCount =  this.getOverFlushInfo(this.tableList[i].drug_warehouse_info,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
476
             this.tableList[i].overplusCount =  this.getOverFlushInfo(this.tableList[i].drug_warehouse_info,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
720
 
722
 
721
         return total
723
         return total
722
       },
724
       },
725
+
726
+      getWarehoseInfoOne(arr,max_unit,min_unit,min_number){
727
+        var total = 0
728
+        var max_str=  ""
729
+         var min_str = ""
730
+        if (arr.length > 0) {
731
+          for(let i=0;i<arr.length;i++){
732
+            total += parseInt(arr[i].warehousing_count)
733
+          }
734
+        }
735
+        if (total < min_number){
736
+          min_str = total + min_unit
737
+        }
738
+        if (total == 0) {
739
+          min_str = ""
740
+          max_str = ""
741
+        }
742
+        if (total >=min_number) {
743
+           if(parseInt(total/min_number)!=0){
744
+              max_str = parseInt(total/min_number) + max_unit
745
+           }
746
+           if(total%min_number!=0){
747
+              min_str = total%min_number + min_unit
748
+           }
749
+
750
+        }
751
+        return max_str + min_str
752
+      },
753
+      
723
       getOverFlushInfo(arr,max_unit,min_unit,min_number){
754
       getOverFlushInfo(arr,max_unit,min_unit,min_number){
724
 
755
 
725
          var max_str=  ""
756
          var max_str=  ""

+ 3 - 43
src/xt_pages/stock/stockInOrderEdit.vue View File

49
         >
49
         >
50
         </el-date-picker>
50
         </el-date-picker>
51
       </div>
51
       </div>
52
-
53
-      <!-- <div class="cell clearfix">
54
-        <label class="title"><span class="name">经销商</span> : </label>
55
-        <el-select
56
-          size="small"
57
-          v-model="form.dealer"
58
-          clearable
59
-          placeholder="请选择经销商"
60
-          style="width: 200px;"
61
-        >
62
-          <el-option
63
-            v-for="(option, index) in dealer"
64
-            :key="index"
65
-            :label="option.dealer_name"
66
-            :value="option.id"
67
-          >
68
-          </el-option>
69
-        </el-select>
70
-      </div> -->
71
-
72
-      <!-- <div class="cell clearfix">
73
-        <label class="title"><span class="name">厂商</span> : </label>
74
-
75
-        <el-select
76
-          size="small"
77
-          v-model="form.manufacturer"
78
-          clearable
79
-          placeholder="请选择厂商"
80
-          style="width: 200px;"
81
-        >
82
-          <el-option
83
-            v-for="(option, index) in manufacturer"
84
-            :key="index"
85
-            :label="option.manufacturer_name"
86
-            :value="option.id"
87
-          >
88
-          </el-option>
89
-        </el-select>
90
-      </div> -->
91
-
92
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
52
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
93
         <el-table
53
         <el-table
94
           id="oictable"
54
           id="oictable"
99
           max-height="450"
59
           max-height="450"
100
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
60
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
101
         > 
61
         > 
102
-         <el-table-column align="center" width="300">
62
+         <el-table-column align="center" width="200">
103
              <template slot="header" slot-scope="scope">
63
              <template slot="header" slot-scope="scope">
104
               <span>耗材名称</span>
64
               <span>耗材名称</span>
105
             </template>
65
             </template>
113
                     placeholder="请输入耗材名称"
73
                     placeholder="请输入耗材名称"
114
                     @select="handleSelect"
74
                     @select="handleSelect"
115
                     @input="changeGoodName(scope.$index)"
75
                     @input="changeGoodName(scope.$index)"
116
-                    style="width:250px;"
76
+                    style="width:150px;"
117
                   >
77
                   >
118
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
78
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
119
                   <template slot-scope="{ item }">
79
                   <template slot-scope="{ item }">
120
-                    <div class="name">{{ item.good_name +" " + item.specification_name + "  "+ item.manufacturer}}</div>
80
+                    <div style="width:400px">{{ item.good_name +" " + item.specification_name + "  "+ item.manufacturer}}</div>
121
                   </template>
81
                   </template>
122
                  </el-autocomplete>
82
                  </el-autocomplete>
123
             </template>
83
             </template>

+ 1 - 0
src/xt_pages/user/courseOfDisease.vue View File

269
           if (resp.state == 1) {
269
           if (resp.state == 1) {
270
             this.current_select_record = null
270
             this.current_select_record = null
271
             this.records = resp.data.records
271
             this.records = resp.data.records
272
+            console.log("records232322332323232323223",this.records)
272
             this.doctors = resp.data.doctors
273
             this.doctors = resp.data.doctors
273
 
274
 
274
           } else {
275
           } else {

+ 18 - 26
src/xt_pages/user/coursePrint.vue View File

23
               <div  style="width: 120px;text-align: left;display:inline-block;">{{"血透中心"}}</div>
23
               <div  style="width: 120px;text-align: left;display:inline-block;">{{"血透中心"}}</div>
24
             </div>
24
             </div>
25
 
25
 
26
-           <div style="flex:1;text-align: center;" v-if="org_id == 9671 || org_id == 10215" >
26
+            <div style="flex:1;text-align: center;" v-if="org_id == 9671 || org_id == 10215" >
27
               病案号:
27
               病案号:
28
-                <div  style="width: 120px;text-align: left;display:inline-block;">
29
-                  {{patient.dialysis_no?patient.dialysis_no:"/"}}
30
-                </div>
28
+              <div  style="width: 120px;text-align: left;display:inline-block;">
29
+                {{patient.dialysis_no?patient.dialysis_no:"/"}}
30
+              </div>
31
             </div>
31
             </div>
32
 
32
 
33
 
33
 
34
             <div style="flex:1;text-align: center;" v-if="org_id!=10215 && org_id!=9671" >
34
             <div style="flex:1;text-align: center;" v-if="org_id!=10215 && org_id!=9671" >
35
               透析号:
35
               透析号:
36
-                <div  style="width: 120px;text-align: left;display:inline-block;">
37
-                  {{patient.dialysis_no?patient.dialysis_no:"/"}}
38
-                </div>
36
+              <div  style="width: 120px;text-align: left;display:inline-block;">
37
+                {{patient.dialysis_no?patient.dialysis_no:"/"}}
38
+              </div>
39
             </div>
39
             </div>
40
 
40
 
41
             <div  style="flex:1;text-align: center;" v-if="org_id!=10215 && org_id!=9671">
41
             <div  style="flex:1;text-align: center;" v-if="org_id!=10215 && org_id!=9671">
42
               住院号:
42
               住院号:
43
               <div style="width: 100px;text-align: left;display:inline-block;">
43
               <div style="width: 100px;text-align: left;display:inline-block;">
44
-                 {{patient.admission_number?patient.admission_number:"/"}}
45
-            </div>
44
+                {{patient.admission_number?patient.admission_number:"/"}}
45
+              </div>
46
 
46
 
47
             </div>
47
             </div>
48
 
48
 
55
               <div>{{item.title}}</div>
55
               <div>{{item.title}}</div>
56
             </div>
56
             </div>
57
 
57
 
58
-             <div class="inline_block" style="width:100%;>
59
-              <div v-html="item.content" class="printP">{{item.content}}</div>
60
-            </div>
61
-          </div>
62
-
63
-          <!-- <div class="row" style="padding: 2px 0;line-height:24px;">
64
             <div class="inline_block" style="width:100%;">
58
             <div class="inline_block" style="width:100%;">
65
-              <div v-html="item.content" class="printP">{{item.content}}</div>
59
+              <div v-html="item.content" class="printP">
60
+                 
61
+              </div>
66
             </div>
62
             </div>
67
-          </div> -->
68
-
63
+          </div>
69
         </div>
64
         </div>
70
       </div>
65
       </div>
71
     </div>
66
     </div>
110
       var ids = this.$route.query.ids
105
       var ids = this.$route.query.ids
111
       var patient_id = parseInt(this.$route.query.patient_id)
106
       var patient_id = parseInt(this.$route.query.patient_id)
112
       var params = {
107
       var params = {
113
-          ids:ids,
114
-          patient_id:patient_id,
108
+        ids:ids,
109
+        patient_id:patient_id,
115
       }
110
       }
116
-      console.log("para2333223233223",params)
111
+   
117
       GetCoursePrintData(params).then(rs => {
112
       GetCoursePrintData(params).then(rs => {
118
         var resp = rs.data
113
         var resp = rs.data
119
         if (resp.state == 1) {
114
         if (resp.state == 1) {
120
           this.record = resp.data.record
115
           this.record = resp.data.record
121
-          console.log("h2232323223",this.record)
116
+         
122
           // for(let i=0;i<this.record.length;i++){
117
           // for(let i=0;i<this.record.length;i++){
123
           //   this.record[i].content = this.record[i].content.replace(new RegExp('<p>','g'),"<div>").replace(new RegExp('</p>','g'),"</div>")
118
           //   this.record[i].content = this.record[i].content.replace(new RegExp('<p>','g'),"<div>").replace(new RegExp('</p>','g'),"</div>")
124
           // }
119
           // }
125
-          console.log("h2232323223",this.record)
120
+  
126
           this.patient = resp.data.patient
121
           this.patient = resp.data.patient
127
 
122
 
128
           this.loading = false
123
           this.loading = false
319
   .printP{
314
   .printP{
320
     line-height: 20px;
315
     line-height: 20px;
321
     font-weight: bold;
316
     font-weight: bold;
322
-    font-size:16px;
323
-    color: black;
324
-    font-family: 宋体;
325
   }
317
   }
326
 </style>
318
 </style>
327
 
319
 

+ 15 - 14
src/xt_pages/workforce/remind_print.vue View File

64
 
64
 
65
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus ==1">
65
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus ==1">
66
                   <!-- <span v-if="org_id!=9987">
66
                   <!-- <span v-if="org_id!=9987">
67
-                     <span >
68
-                       <span v-if="org_id!=10131 && org_id!=10215 && org_id!=10233 && main_collection.prescription.dialyzer_perfusion_apparatus!=''">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span>
69
-
67
+                     <span > 
68
+                       <span v-if="org_id!=10131 && org_id!=10215 && org_id!=10233 && main_collection.prescription.dialyzer_perfusion_apparatus!=''">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
69
+                     
70
                        <span v-if="org_id==10131 || org_id==9671 || org_id == 10215 || org_id == 10233">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
70
                        <span v-if="org_id==10131 || org_id==9671 || org_id == 10215 || org_id == 10233">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
71
                       </span>
71
                       </span>
72
-                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
72
+                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span> 
73
                   </span>
73
                   </span>
74
                     {{main_collection.prescription.dialysis_dialyszers}}
74
                     {{main_collection.prescription.dialysis_dialyszers}}
75
                   <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>
75
                   <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>
76
                   <span v-if="main_collection.prescription.dialysis_irrigation!=''">{{main_collection.prescription.dialysis_irrigation}}</span> -->
76
                   <span v-if="main_collection.prescription.dialysis_irrigation!=''">{{main_collection.prescription.dialysis_irrigation}}</span> -->
77
-
77
+                  
78
                   <span v-if="main_collection.prescription.dialysis_dialyszers == ''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
78
                   <span v-if="main_collection.prescription.dialysis_dialyszers == ''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
79
                   <span v-if="main_collection.prescription.dialysis_dialyszers != ''">{{main_collection.prescription.dialysis_dialyszers}}</span>
79
                   <span v-if="main_collection.prescription.dialysis_dialyszers != ''">{{main_collection.prescription.dialysis_dialyszers}}</span>
80
 
80
 
90
                     (<span>{{main_collection.prescription.antioxidant_commodity_name}}</span>)
90
                     (<span>{{main_collection.prescription.antioxidant_commodity_name}}</span>)
91
                   </span>
91
                   </span>
92
                 </td>
92
                 </td>
93
+              
93
                 <td :width="td_1_width" v-if="printObj.anticoagulant_zongliang == 1">
94
                 <td :width="td_1_width" v-if="printObj.anticoagulant_zongliang == 1">
94
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
95
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
95
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
96
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
98
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
99
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
99
                   <span v-if="main_collection.dialysissolution.anticoagulant == 6">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
100
                   <span v-if="main_collection.dialysissolution.anticoagulant == 6">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
100
                   <span v-if="main_collection.dialysissolution.anticoagulant == 7">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
101
                   <span v-if="main_collection.dialysissolution.anticoagulant == 7">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
101
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
102
+                   <span v-if="main_collection.dialysissolution.anticoagulant == 8">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
102
                   <span v-if="main_collection.dialysissolution.anticoagulant == 9">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
103
                   <span v-if="main_collection.dialysissolution.anticoagulant == 9">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
103
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
104
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
104
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
105
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
174
               list[i].sort = list[i].number.sort
175
               list[i].sort = list[i].number.sort
175
            }
176
            }
176
            var arr = list.sort(this.compare('sort'))
177
            var arr = list.sort(this.compare('sort'))
177
-
178
+            
178
              this.scheduleData = arr
179
              this.scheduleData = arr
179
-
180
+            
180
              let a = response.data.data.day
181
              let a = response.data.data.day
181
               console.log("a",a)
182
               console.log("a",a)
182
               var myDate = new Date(a);
183
               var myDate = new Date(a);
211
           this.currentDate = str
212
           this.currentDate = str
212
           }
213
           }
213
        })
214
        })
214
-
215
-
215
+       
216
+      
216
     },
217
     },
217
     methods: {
218
     methods: {
218
       getAdvice:function(doctor_advice) {
219
       getAdvice:function(doctor_advice) {
292
 
293
 
293
           name = name + doctor_advice[i].advice_name + " " + drug_spec + " " + prescribing_number + " " + single_dose + " " + doctor_advice[i].delivery_way + " " + doctor_advice[i].execution_frequency + " " + doctor_advice[i].remark + "\n"
294
           name = name + doctor_advice[i].advice_name + " " + drug_spec + " " + prescribing_number + " " + single_dose + " " + doctor_advice[i].delivery_way + " " + doctor_advice[i].execution_frequency + " " + doctor_advice[i].remark + "\n"
294
 
295
 
295
-
296
+        
296
         }
297
         }
297
           return name
298
           return name
298
 
299
 
300
         }
301
         }
301
 
302
 
302
       },
303
       },
303
-
304
+     
304
       printAction: function() {
305
       printAction: function() {
305
         const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
306
         const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
306
 
307
 
405
         var name = ''
406
         var name = ''
406
         for (let i = 0; i < solution.length; i++) {
407
         for (let i = 0; i < solution.length; i++) {
407
           if (mode_id == solution[i].mode_id) {
408
           if (mode_id == solution[i].mode_id) {
408
-
409
+         
409
             name = solution[i].dialyzer_perfusion_apparatus
410
             name = solution[i].dialyzer_perfusion_apparatus
410
-
411
+            
411
           }
412
           }
412
         }
413
         }
413
         console.log('name', name)
414
         console.log('name', name)

+ 181 - 110
src/xt_pages/workforce/scheduleTablePrintOne.vue View File

45
                         <div>{{ item.Mon_M.patient }} </div>
45
                         <div>{{ item.Mon_M.patient }} </div>
46
                         <div v-if="item.Mon_M.mode_name != 'HD'">
46
                         <div v-if="item.Mon_M.mode_name != 'HD'">
47
                             {{ item.Mon_M.mode_name }}
47
                             {{ item.Mon_M.mode_name }}
48
-                     </div>
48
+                       </div>
49
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Mon_M.patient_id,item.Mon_M.mode_name)}}</div>
49
                     </span>
50
                     </span>
50
                 </td>
51
                 </td>
51
                 <td style="min-width:50px;">
52
                 <td style="min-width:50px;">
52
                     <span v-if="item.Mon_A.patient_id">
53
                     <span v-if="item.Mon_A.patient_id">
53
                         <div>{{ item.Mon_A.patient }} </div>
54
                         <div>{{ item.Mon_A.patient }} </div>
54
                         <div v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</div>
55
                         <div v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</div>
56
+                       <div v-if="item.zone_id>0">{{getDialyzer(item.Mon_A.patient_id,item.Mon_A.mode_name)}}</div>
55
                     </span>
57
                     </span>
56
                 </td>
58
                 </td>
57
                 <td style="min-width:50px;">
59
                 <td style="min-width:50px;">
58
                     <span v-if="item.Mon_N.patient_id">
60
                     <span v-if="item.Mon_N.patient_id">
59
                         <div>{{ item.Mon_N.patient }}</div>
61
                         <div>{{ item.Mon_N.patient }}</div>
60
                         <div v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</div>
62
                         <div v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</div>
63
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Mon_N.patient_id,item.Mon_N.mode_name)}}</div>
61
                     </span>
64
                     </span>
62
                 </td>
65
                 </td>
63
                 <td style="min-width:50px;">
66
                 <td style="min-width:50px;">
64
                     <span v-if="item.Tue_M.patient_id">
67
                     <span v-if="item.Tue_M.patient_id">
65
                         <div>{{ item.Tue_M.patient }}</div>
68
                         <div>{{ item.Tue_M.patient }}</div>
66
                         <div v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</div>
69
                         <div v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</div>
70
+                         <div v-if="item.zone_id>0">{{getDialyzer(item.Tue_M.patient_id,item.Tue_M.mode_name)}}</div>
67
                     </span>
71
                     </span>
68
                 </td>
72
                 </td>
69
                 <td style="min-width:50px;">
73
                 <td style="min-width:50px;">
70
                     <span v-if="item.Tue_A.patient_id">
74
                     <span v-if="item.Tue_A.patient_id">
71
                         <div>{{ item.Tue_A.patient }}</div>
75
                         <div>{{ item.Tue_A.patient }}</div>
72
                         <div v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</div>
76
                         <div v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</div>
77
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Tue_A.patient_id,item.Tue_A.mode_name)}}</div>
78
+
73
                     </span>
79
                     </span>
74
                 </td>
80
                 </td>
75
                 <td style="min-width:50px;">
81
                 <td style="min-width:50px;">
76
                     <span v-if="item.Tue_N.patient_id">
82
                     <span v-if="item.Tue_N.patient_id">
77
                         <div>{{ item.Tue_N.patient }}</div>
83
                         <div>{{ item.Tue_N.patient }}</div>
78
                         <div v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</div>
84
                         <div v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</div>
85
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Tue_N.patient_id,item.Tue_N.mode_name)}}</div>
79
                     </span>
86
                     </span>
80
                 </td>
87
                 </td>
81
                 <td style="min-width:50px;">
88
                 <td style="min-width:50px;">
82
                     <span v-if="item.Wed_M.patient_id">
89
                     <span v-if="item.Wed_M.patient_id">
83
                         <div>{{ item.Wed_M.patient }}</div>
90
                         <div>{{ item.Wed_M.patient }}</div>
84
                         <div v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</div>
91
                         <div v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</div>
92
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Wed_M.patient_id,item.Wed_M.mode_name)}}</div>
85
                     </span>
93
                     </span>
86
                 </td>
94
                 </td>
87
                 <td style="min-width:50px;">
95
                 <td style="min-width:50px;">
88
                     <span v-if="item.Wed_A.patient_id">
96
                     <span v-if="item.Wed_A.patient_id">
89
                         <div>{{ item.Wed_A.patient }}</div>
97
                         <div>{{ item.Wed_A.patient }}</div>
90
                         <div v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</div>
98
                         <div v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</div>
99
+                       <div v-if="item.zone_id>0">{{getDialyzer(item.Wed_A.patient_id,item.Wed_A.mode_name)}}</div>
91
                     </span>
100
                     </span>
92
                 </td>
101
                 </td>
93
-                <td style="min-width:50px;"> 
102
+                <td style="min-width:50px;">
94
                     <span v-if="item.Wed_N.patient_id">
103
                     <span v-if="item.Wed_N.patient_id">
95
                         <div>{{ item.Wed_N.patient }}</div>
104
                         <div>{{ item.Wed_N.patient }}</div>
96
                         <div v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</div>
105
                         <div v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</div>
106
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Wed_N.patient_id,item.Wed_N.mode_name)}}</div>
97
                     </span>
107
                     </span>
98
                 </td>
108
                 </td>
99
                 <td style="min-width:50px;">
109
                 <td style="min-width:50px;">
100
                     <span v-if="item.Thurs_M.patient_id">
110
                     <span v-if="item.Thurs_M.patient_id">
101
                         <div>{{ item.Thurs_M.patient }}</div>
111
                         <div>{{ item.Thurs_M.patient }}</div>
102
                         <div v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</div>
112
                         <div v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</div>
113
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Thurs_M.patient_id,item.Thurs_M.mode_name)}}</div>
103
                     </span>
114
                     </span>
104
                 </td>
115
                 </td>
105
                 <td style="min-width:50px;">
116
                 <td style="min-width:50px;">
106
                     <span v-if="item.Thurs_A.patient_id">
117
                     <span v-if="item.Thurs_A.patient_id">
107
                         <div>{{ item.Thurs_A.patient }}</div>
118
                         <div>{{ item.Thurs_A.patient }}</div>
108
                         <div v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</div>
119
                         <div v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</div>
120
+                       <div v-if="item.zone_id>0">{{getDialyzer(item.Thurs_A.patient_id,item.Thurs_A.mode_name)}}</div>
109
                     </span>
121
                     </span>
110
                 </td>
122
                 </td>
111
                 <td style="min-width:50px;">
123
                 <td style="min-width:50px;">
112
                     <span v-if="item.Thurs_N.patient_id">
124
                     <span v-if="item.Thurs_N.patient_id">
113
                         <div>{{ item.Thurs_N.patient }}</div>
125
                         <div>{{ item.Thurs_N.patient }}</div>
114
                         <div v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</div>
126
                         <div v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</div>
127
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Thurs_N.patient_id,item.Thurs_N.mode_name)}}</div>
115
                     </span>
128
                     </span>
116
                 </td>
129
                 </td>
117
                 <td style="min-width:50px;">
130
                 <td style="min-width:50px;">
118
                     <span v-if="item.Fri_M.patient_id">
131
                     <span v-if="item.Fri_M.patient_id">
119
                         <div>{{ item.Fri_M.patient }}</div>
132
                         <div>{{ item.Fri_M.patient }}</div>
120
                         <div v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</div>
133
                         <div v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</div>
134
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Fri_M.patient_id,item.Fri_M.mode_name)}}</div>
121
                     </span>
135
                     </span>
122
                 </td>
136
                 </td>
123
                 <td style="min-width:50px;">
137
                 <td style="min-width:50px;">
124
                     <span v-if="item.Fri_A.patient_id">
138
                     <span v-if="item.Fri_A.patient_id">
125
                         <div>{{ item.Fri_A.patient }}</div>
139
                         <div>{{ item.Fri_A.patient }}</div>
126
                         <div v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</div>
140
                         <div v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</div>
141
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Fri_A.patient_id,item.Fri_A.mode_name)}}</div>
127
                     </span>
142
                     </span>
128
                 </td>
143
                 </td>
129
                 <td style="min-width:50px;">
144
                 <td style="min-width:50px;">
130
                     <span v-if="item.Fri_N.patient_id">
145
                     <span v-if="item.Fri_N.patient_id">
131
                         <div>{{ item.Fri_N.patient }}</div>
146
                         <div>{{ item.Fri_N.patient }}</div>
132
-                        <div v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</div>
147
+                        <div v-if="item.Fri_N.mode_name != 'HD'">{{ item.Fri_N.mode_name }}</div>
148
+                       <div v-if="item.zone_id>0">{{getDialyzer(item.Fri_N.patient_id,item.Fri_N.mode_name)}}</div>
133
                     </span>
149
                     </span>
134
                 </td>
150
                 </td>
135
                 <td style="min-width:50px;">
151
                 <td style="min-width:50px;">
136
                     <span v-if="item.Sat_M.patient_id">
152
                     <span v-if="item.Sat_M.patient_id">
137
                         <div>{{ item.Sat_M.patient }}</div>
153
                         <div>{{ item.Sat_M.patient }}</div>
138
                         <div v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</div>
154
                         <div v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</div>
155
+                       <div v-if="item.zone_id>0">{{getDialyzer(item.Sat_M.patient_id,item.Sat_M.mode_name)}}</div>
139
                     </span>
156
                     </span>
140
                 </td>
157
                 </td>
141
                 <td style="min-width:50px;">
158
                 <td style="min-width:50px;">
142
                     <span v-if="item.Sat_A.patient_id">
159
                     <span v-if="item.Sat_A.patient_id">
143
                         <div>{{ item.Sat_A.patient }}</div>
160
                         <div>{{ item.Sat_A.patient }}</div>
144
                         <div v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</div>
161
                         <div v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</div>
162
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Sat_A.patient_id,item.Sat_A.mode_name)}}</div>
145
                     </span>
163
                     </span>
146
                 </td>
164
                 </td>
147
                 <td style="min-width:50px;">
165
                 <td style="min-width:50px;">
148
                     <span v-if="item.Sat_N.patient_id">
166
                     <span v-if="item.Sat_N.patient_id">
149
                         <div>{{ item.Sat_N.patient }}</div>
167
                         <div>{{ item.Sat_N.patient }}</div>
150
                         <div v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</div>
168
                         <div v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</div>
169
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Sat_N.patient_id,item.Sat_N.mode_name)}}</div>
151
                     </span>
170
                     </span>
152
                 </td>
171
                 </td>
153
                 <td style="min-width:50px;">
172
                 <td style="min-width:50px;">
154
                     <span v-if="item.Sun_M.patient_id">
173
                     <span v-if="item.Sun_M.patient_id">
155
                         <div>{{ item.Sun_M.patient }}</div>
174
                         <div>{{ item.Sun_M.patient }}</div>
156
                         <div v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }} </div>
175
                         <div v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }} </div>
157
-                        <div>{{getDialyzer(item.Sun_M.patient_id,item.Sun_M.mode_name)}}</div>
176
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Sun_M.patient_id,item.Sun_M.mode_name)}}</div>
158
                     </span>
177
                     </span>
159
                 </td>
178
                 </td>
160
                 <td style="min-width:50px;">
179
                 <td style="min-width:50px;">
161
                     <span v-if="item.Sun_A.patient_id">
180
                     <span v-if="item.Sun_A.patient_id">
162
                         <div>{{ item.Sun_A.patient }}</div>
181
                         <div>{{ item.Sun_A.patient }}</div>
163
                         <div v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }} </div>
182
                         <div v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }} </div>
164
-                        <div>{{getDialyzer(item.Sun_A.patient_id, item.Sun_A.mode_name)}}</div>
183
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Sun_A.patient_id, item.Sun_A.mode_name)}}</div>
184
+
165
                     </span>
185
                     </span>
166
                 </td>
186
                 </td>
167
                 <td style="min-width:50px;">
187
                 <td style="min-width:50px;">
168
                     <span v-if="item.Sun_N.patient_id">
188
                     <span v-if="item.Sun_N.patient_id">
169
                         <div>{{ item.Sun_N.patient }}</div>
189
                         <div>{{ item.Sun_N.patient }}</div>
170
                         <div v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }} </div>
190
                         <div v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }} </div>
171
-                        <div>{{getDialyzer(item.Sun_N.patient_id,item.Sun_N.mode_name)}}</div>
191
+                        <div v-if="item.zone_id>0">{{getDialyzer(item.Sun_N.patient_id,item.Sun_N.mode_name)}}</div>
172
                     </span>
192
                     </span>
173
                 </td>
193
                 </td>
174
                 <td>{{item.total}}</td>
194
                 <td>{{item.total}}</td>
215
     created(){
235
     created(){
216
         this.getAllZones()
236
         this.getAllZones()
217
         this.modeOptions = this.$store.getters.treatment_mode;
237
         this.modeOptions = this.$store.getters.treatment_mode;
218
-        this.partition_id = this.$route.query.partition_id   
238
+        this.partition_id = this.$route.query.partition_id
219
         this.getSolutionSchedule()
239
         this.getSolutionSchedule()
220
     },
240
     },
221
     methods:{
241
     methods:{
228
                 }
248
                 }
229
                 this.zones.push(...zones)
249
                 this.zones.push(...zones)
230
                 var strArr =  this.zoneIdList.join(",")
250
                 var strArr =  this.zoneIdList.join(",")
231
-                
251
+
232
                 this.strArr = strArr
252
                 this.strArr = strArr
233
                 this.getWeekPanels()
253
                 this.getWeekPanels()
234
                 //统计患者排班数量
254
                 //统计患者排班数量
277
                                 mode_id: 0,
297
                                 mode_id: 0,
278
                                 mode_name: '',
298
                                 mode_name: '',
279
                                 patient_id: 0,
299
                                 patient_id: 0,
280
-                                patient: ''
300
+                                patient: '',
301
+                                type:1
281
                             },
302
                             },
282
                             Mon_A: {
303
                             Mon_A: {
283
                                 schedule_id: 0,
304
                                 schedule_id: 0,
284
                                 mode_id: 0,
305
                                 mode_id: 0,
285
                                 mode_name: '',
306
                                 mode_name: '',
286
                                 patient_id: 0,
307
                                 patient_id: 0,
287
-                                patient: ''
308
+                                patient: '',
309
+                                type:1
288
                             },
310
                             },
289
                             Mon_N: {
311
                             Mon_N: {
290
                                 schedule_id: 0,
312
                                 schedule_id: 0,
291
                                 mode_id: 0,
313
                                 mode_id: 0,
292
                                 mode_name: '',
314
                                 mode_name: '',
293
                                 patient_id: 0,
315
                                 patient_id: 0,
294
-                                patient: ''
316
+                                patient: '',
317
+                                type:1
295
                             },
318
                             },
296
                             Tue_M: {
319
                             Tue_M: {
297
                                 schedule_id: 0,
320
                                 schedule_id: 0,
298
                                 mode_id: 0,
321
                                 mode_id: 0,
299
                                 mode_name: '',
322
                                 mode_name: '',
300
                                 patient_id: 0,
323
                                 patient_id: 0,
301
-                                patient: ''
324
+                                patient: '',
325
+                                type:1
302
                             },
326
                             },
303
                             Tue_A: {
327
                             Tue_A: {
304
                                 schedule_id: 0,
328
                                 schedule_id: 0,
305
                                 mode_id: 0,
329
                                 mode_id: 0,
306
                                 mode_name: '',
330
                                 mode_name: '',
307
                                 patient_id: 0,
331
                                 patient_id: 0,
308
-                                patient: ''
332
+                                patient: '',
333
+                                type:1
309
                             },
334
                             },
310
                             Tue_N: {
335
                             Tue_N: {
311
                                 schedule_id: 0,
336
                                 schedule_id: 0,
312
                                 mode_id: 0,
337
                                 mode_id: 0,
313
                                 mode_name: '',
338
                                 mode_name: '',
314
                                 patient_id: 0,
339
                                 patient_id: 0,
315
-                                patient: ''
340
+                                patient: '',
341
+                                type:1
316
                             },
342
                             },
317
                             Wed_M: {
343
                             Wed_M: {
318
                                 schedule_id: 0,
344
                                 schedule_id: 0,
319
                                 mode_id: 0,
345
                                 mode_id: 0,
320
                                 mode_name: '',
346
                                 mode_name: '',
321
                                 patient_id: 0,
347
                                 patient_id: 0,
322
-                                patient: ''
348
+                                patient: '',
349
+                                type:1
323
                             },
350
                             },
324
                             Wed_A: {
351
                             Wed_A: {
325
                                 schedule_id: 0,
352
                                 schedule_id: 0,
326
                                 mode_id: 0,
353
                                 mode_id: 0,
327
                                 mode_name: '',
354
                                 mode_name: '',
328
                                 patient_id: 0,
355
                                 patient_id: 0,
329
-                                patient: ''
356
+                                patient: '',
357
+                                type:1
330
                             },
358
                             },
331
                             Wed_N: {
359
                             Wed_N: {
332
                                 schedule_id: 0,
360
                                 schedule_id: 0,
333
                                 mode_id: 0,
361
                                 mode_id: 0,
334
                                 mode_name: '',
362
                                 mode_name: '',
335
                                 patient_id: 0,
363
                                 patient_id: 0,
336
-                                patient: ''
364
+                                patient: '',
365
+                                type:1
337
                             },
366
                             },
338
                             Thurs_M: {
367
                             Thurs_M: {
339
                                 schedule_id: 0,
368
                                 schedule_id: 0,
340
                                 mode_id: 0,
369
                                 mode_id: 0,
341
                                 mode_name: '',
370
                                 mode_name: '',
342
                                 patient_id: 0,
371
                                 patient_id: 0,
343
-                                patient: ''
372
+                                patient: '',
373
+                                type:1
344
                             },
374
                             },
345
                             Thurs_A: {
375
                             Thurs_A: {
346
                                 schedule_id: 0,
376
                                 schedule_id: 0,
347
                                 mode_id: 0,
377
                                 mode_id: 0,
348
                                 mode_name: '',
378
                                 mode_name: '',
349
                                 patient_id: 0,
379
                                 patient_id: 0,
350
-                                patient: ''
380
+                                patient: '',
381
+                                type:1
351
                             },
382
                             },
352
                             Thurs_N: {
383
                             Thurs_N: {
353
                                 schedule_id: 0,
384
                                 schedule_id: 0,
354
                                 mode_id: 0,
385
                                 mode_id: 0,
355
                                 mode_name: '',
386
                                 mode_name: '',
356
                                 patient_id: 0,
387
                                 patient_id: 0,
357
-                                patient: ''
388
+                                patient: '',
389
+                                type:1
358
                             },
390
                             },
359
                             Fri_M: {
391
                             Fri_M: {
360
                                 schedule_id: 0,
392
                                 schedule_id: 0,
361
                                 mode_id: 0,
393
                                 mode_id: 0,
362
                                 mode_name: '',
394
                                 mode_name: '',
363
                                 patient_id: 0,
395
                                 patient_id: 0,
364
-                                patient: ''
396
+                                patient: '',
397
+                                type:1
365
                             },
398
                             },
366
                             Fri_A: {
399
                             Fri_A: {
367
                                 schedule_id: 0,
400
                                 schedule_id: 0,
368
                                 mode_id: 0,
401
                                 mode_id: 0,
369
                                 mode_name: '',
402
                                 mode_name: '',
370
                                 patient_id: 0,
403
                                 patient_id: 0,
371
-                                patient: ''
404
+                                patient: '',
405
+                                type:1
372
                             },
406
                             },
373
                             Fri_N: {
407
                             Fri_N: {
374
                                 schedule_id: 0,
408
                                 schedule_id: 0,
375
                                 mode_id: 0,
409
                                 mode_id: 0,
376
                                 mode_name: '',
410
                                 mode_name: '',
377
                                 patient_id: 0,
411
                                 patient_id: 0,
378
-                                patient: ''
412
+                                patient: '',
413
+                                type:1
379
                             },
414
                             },
380
                             Sat_M: {
415
                             Sat_M: {
381
                                 schedule_id: 0,
416
                                 schedule_id: 0,
382
                                 mode_id: 0,
417
                                 mode_id: 0,
383
                                 mode_name: '',
418
                                 mode_name: '',
384
                                 patient_id: 0,
419
                                 patient_id: 0,
385
-                                patient: ''
420
+                                patient: '',
421
+                                type:1
386
                             },
422
                             },
387
                             Sat_A: {
423
                             Sat_A: {
388
                                 schedule_id: 0,
424
                                 schedule_id: 0,
389
                                 mode_id: 0,
425
                                 mode_id: 0,
390
                                 mode_name: '',
426
                                 mode_name: '',
391
                                 patient_id: 0,
427
                                 patient_id: 0,
392
-                                patient: ''
428
+                                patient: '',
429
+                                type:1
393
                             },
430
                             },
394
                             Sat_N: {
431
                             Sat_N: {
395
                                 schedule_id: 0,
432
                                 schedule_id: 0,
396
                                 mode_id: 0,
433
                                 mode_id: 0,
397
                                 mode_name: '',
434
                                 mode_name: '',
398
                                 patient_id: 0,
435
                                 patient_id: 0,
399
-                                patient: ''
436
+                                patient: '',
437
+                                type:1
400
                             },
438
                             },
401
                             Sun_A: {
439
                             Sun_A: {
402
                                 schedule_id: 0,
440
                                 schedule_id: 0,
403
                                 mode_id: 0,
441
                                 mode_id: 0,
404
                                 mode_name: '',
442
                                 mode_name: '',
405
                                 patient_id: 0,
443
                                 patient_id: 0,
406
-                                patient: ''
444
+                                patient: '',
445
+                                type:1
407
                             },
446
                             },
408
                             Sun_N: {
447
                             Sun_N: {
409
                                 schedule_id: 0,
448
                                 schedule_id: 0,
410
                                 mode_id: 0,
449
                                 mode_id: 0,
411
                                 mode_name: '',
450
                                 mode_name: '',
412
                                 patient_id: 0,
451
                                 patient_id: 0,
413
-                                patient: ''
452
+                                patient: '',
453
+                                type:1
414
                             },
454
                             },
415
                             Sun_M: {
455
                             Sun_M: {
416
                                 schedule_id: 0,
456
                                 schedule_id: 0,
417
                                 mode_id: 0,
457
                                 mode_id: 0,
418
                                 mode_name: '',
458
                                 mode_name: '',
419
                                 patient_id: 0,
459
                                 patient_id: 0,
420
-                                patient: ''
460
+                                patient: '',
461
+                                type:1
421
                             },
462
                             },
422
                             total: 0
463
                             total: 0
423
                             }
464
                             }
465
                     var theSchedules = response.data.data.schdules;
506
                     var theSchedules = response.data.data.schdules;
466
                     var that = this;
507
                     var that = this;
467
                     that.scheduleZone.forEach(function(zone, index) {
508
                     that.scheduleZone.forEach(function(zone, index) {
468
-                        
509
+
469
                         that.scheduleZone[index].Mon_M = {
510
                         that.scheduleZone[index].Mon_M = {
470
                             mode_id: 0,
511
                             mode_id: 0,
471
                             mode_name: "",
512
                             mode_name: "",
472
                             patient_id: 0,
513
                             patient_id: 0,
473
-                            patient: ""
514
+                            patient: "",
515
+                            type:1
474
                         };
516
                         };
475
                         that.scheduleZone[index].Mon_A = {
517
                         that.scheduleZone[index].Mon_A = {
476
                             mode_id: 0,
518
                             mode_id: 0,
477
                             mode_name: "",
519
                             mode_name: "",
478
                             patient_id: 0,
520
                             patient_id: 0,
479
-                            patient: ""
521
+                            patient: "",
522
+                            type:1
480
                         };
523
                         };
481
                         that.scheduleZone[index].Mon_N = {
524
                         that.scheduleZone[index].Mon_N = {
482
                             mode_id: 0,
525
                             mode_id: 0,
483
                             mode_name: "",
526
                             mode_name: "",
484
                             patient_id: 0,
527
                             patient_id: 0,
485
-                            patient: ""
528
+                            patient: "",
529
+                            type:1
486
                         };
530
                         };
487
                         that.scheduleZone[index].Tue_M = {
531
                         that.scheduleZone[index].Tue_M = {
488
                             mode_id: 0,
532
                             mode_id: 0,
489
                             mode_name: "",
533
                             mode_name: "",
490
                             patient_id: 0,
534
                             patient_id: 0,
491
-                            patient: ""
535
+                            patient: "",
536
+                            type:1
492
                         };
537
                         };
493
                         that.scheduleZone[index].Tue_A = {
538
                         that.scheduleZone[index].Tue_A = {
494
                             mode_id: 0,
539
                             mode_id: 0,
495
                             mode_name: "",
540
                             mode_name: "",
496
                             patient_id: 0,
541
                             patient_id: 0,
497
-                            patient: ""
542
+                            patient: "",
543
+                            type:1
498
                         };
544
                         };
499
                         that.scheduleZone[index].Tue_N = {
545
                         that.scheduleZone[index].Tue_N = {
500
                             mode_id: 0,
546
                             mode_id: 0,
501
                             mode_name: "",
547
                             mode_name: "",
502
                             patient_id: 0,
548
                             patient_id: 0,
503
-                            patient: ""
549
+                            patient: "",
550
+                            type:1
504
                         };
551
                         };
505
                         that.scheduleZone[index].Wed_M = {
552
                         that.scheduleZone[index].Wed_M = {
506
                             mode_id: 0,
553
                             mode_id: 0,
507
                             mode_name: "",
554
                             mode_name: "",
508
                             patient_id: 0,
555
                             patient_id: 0,
509
-                            patient: ""
556
+                            patient: "",
557
+                            type:1
510
                         };
558
                         };
511
                         that.scheduleZone[index].Wed_A = {
559
                         that.scheduleZone[index].Wed_A = {
512
                             mode_id: 0,
560
                             mode_id: 0,
513
                             mode_name: "",
561
                             mode_name: "",
514
                             patient_id: 0,
562
                             patient_id: 0,
515
-                            patient: ""
563
+                            patient: "",
564
+                            type:1
516
                         };
565
                         };
517
                         that.scheduleZone[index].Wed_N = {
566
                         that.scheduleZone[index].Wed_N = {
518
                             mode_id: 0,
567
                             mode_id: 0,
519
                             mode_name: "",
568
                             mode_name: "",
520
                             patient_id: 0,
569
                             patient_id: 0,
521
-                            patient: ""
570
+                            patient: "",
571
+                            type:1
522
                         };
572
                         };
523
                         that.scheduleZone[index].Thurs_M = {
573
                         that.scheduleZone[index].Thurs_M = {
524
                             mode_id: 0,
574
                             mode_id: 0,
525
                             mode_name: "",
575
                             mode_name: "",
526
                             patient_id: 0,
576
                             patient_id: 0,
527
-                            patient: ""
577
+                            patient: "",
578
+                            type:1
528
                         };
579
                         };
529
                         that.scheduleZone[index].Thurs_A = {
580
                         that.scheduleZone[index].Thurs_A = {
530
                             mode_id: 0,
581
                             mode_id: 0,
531
                             mode_name: "",
582
                             mode_name: "",
532
                             patient_id: 0,
583
                             patient_id: 0,
533
-                            patient: ""
584
+                            patient: "",
585
+                            type:1
534
                         };
586
                         };
535
                         that.scheduleZone[index].Thurs_N = {
587
                         that.scheduleZone[index].Thurs_N = {
536
                             mode_id: 0,
588
                             mode_id: 0,
537
                             mode_name: "",
589
                             mode_name: "",
538
                             patient_id: 0,
590
                             patient_id: 0,
539
-                            patient: ""
591
+                            patient: "",
592
+                            type:1
540
                         };
593
                         };
541
                         that.scheduleZone[index].Fri_M = {
594
                         that.scheduleZone[index].Fri_M = {
542
                             mode_id: 0,
595
                             mode_id: 0,
543
                             mode_name: "",
596
                             mode_name: "",
544
                             patient_id: 0,
597
                             patient_id: 0,
545
-                            patient: ""
598
+                            patient: "",
599
+                            type:1
546
                         };
600
                         };
547
                         that.scheduleZone[index].Fri_A = {
601
                         that.scheduleZone[index].Fri_A = {
548
                             mode_id: 0,
602
                             mode_id: 0,
549
                             mode_name: "",
603
                             mode_name: "",
550
                             patient_id: 0,
604
                             patient_id: 0,
551
-                            patient: ""
605
+                            patient: "",
606
+                            type:1
552
                         };
607
                         };
553
                         that.scheduleZone[index].Fri_N = {
608
                         that.scheduleZone[index].Fri_N = {
554
                             mode_id: 0,
609
                             mode_id: 0,
555
                             mode_name: "",
610
                             mode_name: "",
556
                             patient_id: 0,
611
                             patient_id: 0,
557
-                            patient: ""
612
+                            patient: "",
613
+                            type:1
558
                         };
614
                         };
559
                         that.scheduleZone[index].Sat_M = {
615
                         that.scheduleZone[index].Sat_M = {
560
                             mode_id: 0,
616
                             mode_id: 0,
561
                             mode_name: "",
617
                             mode_name: "",
562
                             patient_id: 0,
618
                             patient_id: 0,
563
-                            patient: ""
619
+                            patient: "",
620
+                            type:1
564
                         };
621
                         };
565
                         that.scheduleZone[index].Sat_A = {
622
                         that.scheduleZone[index].Sat_A = {
566
                             mode_id: 0,
623
                             mode_id: 0,
567
                             mode_name: "",
624
                             mode_name: "",
568
                             patient_id: 0,
625
                             patient_id: 0,
569
-                            patient: ""
626
+                            patient: "",
627
+                            type:1
570
                         };
628
                         };
571
                         that.scheduleZone[index].Sat_N = {
629
                         that.scheduleZone[index].Sat_N = {
572
                             mode_id: 0,
630
                             mode_id: 0,
573
                             mode_name: "",
631
                             mode_name: "",
574
                             patient_id: 0,
632
                             patient_id: 0,
575
-                            patient: ""
633
+                            patient: "",
634
+                            type:1
576
                         };
635
                         };
577
                         that.scheduleZone[index].Sun_A = {
636
                         that.scheduleZone[index].Sun_A = {
578
                             mode_id: 0,
637
                             mode_id: 0,
579
                             mode_name: "",
638
                             mode_name: "",
580
                             patient_id: 0,
639
                             patient_id: 0,
581
-                            patient: ""
640
+                            patient: "",
641
+                            type:1
582
                         };
642
                         };
583
                         that.scheduleZone[index].Sun_N = {
643
                         that.scheduleZone[index].Sun_N = {
584
                             mode_id: 0,
644
                             mode_id: 0,
585
                             mode_name: "",
645
                             mode_name: "",
586
                             patient_id: 0,
646
                             patient_id: 0,
587
-                            patient: ""
647
+                            patient: "",
648
+                            type:1
588
                         };
649
                         };
589
                         that.scheduleZone[index].Sun_M = {
650
                         that.scheduleZone[index].Sun_M = {
590
                             mode_id: 0,
651
                             mode_id: 0,
591
                             mode_name: "",
652
                             mode_name: "",
592
                             patient_id: 0,
653
                             patient_id: 0,
593
-                            patient: ""
654
+                            patient: "",
655
+                            type:1
594
                         };
656
                         };
595
                         that.scheduleZone[index].total = 0;
657
                         that.scheduleZone[index].total = 0;
596
-                        
658
+
597
                         if (response.data.data.schdules.length > 0) {
659
                         if (response.data.data.schdules.length > 0) {
598
                             theSchedules.forEach(function(schedule, sindex) {
660
                             theSchedules.forEach(function(schedule, sindex) {
599
 
661
 
614
                                         patient_id: schedule.patient_id,
676
                                         patient_id: schedule.patient_id,
615
                                         patient: schedule.patient,
677
                                         patient: schedule.patient,
616
                                         patient_contagions: schedule.patient_contagions,
678
                                         patient_contagions: schedule.patient_contagions,
617
-                                        mode_name:
618
-                                            typeof that.modeOptions[schedule.mode_id] ===
619
-                                            "undefined"
620
-                                            ? ""
621
-                                            : that.modeOptions[schedule.mode_id].name
679
+                                        mode_name:typeof that.modeOptions[schedule.mode_id] ==="undefined"? "": that.modeOptions[schedule.mode_id].name
622
                                         };
680
                                         };
623
                                         that.scheduleZone[index].total += 1;
681
                                         that.scheduleZone[index].total += 1;
624
-                                        
682
+
625
                                     }
683
                                     }
626
-                                    
684
+
627
                                 }
685
                                 }
628
-                                
686
+
629
                             });
687
                             });
630
                         }
688
                         }
631
-                       
689
+
632
                     });
690
                     });
633
-                    var newArr= [{"area":"总数","cut":0,"Fri_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Fri_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Fri_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Mon_A":{mode_id:0,mode_name:"",patient:"",patient_id:"1"},"Mon_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Mon_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"jihao_id":"","total":"","zone_id":"","zone_type":""}]
634
-                     
635
-                     
691
+                    var newArr= [{"area":"总数","cut":0,"Fri_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Fri_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Fri_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Mon_A":{mode_id:0,mode_name:"",patient:"",patient_id:"1",type:0},"Mon_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Mon_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"jihao_id":"","total":"","zone_id":"","zone_type":""}]
692
+
693
+
636
                      for(let i=0;i<newArr.length;i++){
694
                      for(let i=0;i<newArr.length;i++){
637
                        for(let j=0;j<this.scheduleCountList.length;j++){
695
                        for(let j=0;j<this.scheduleCountList.length;j++){
638
                             newArr[i].cut = this.total
696
                             newArr[i].cut = this.total
639
                          //礼拜一上午
697
                          //礼拜一上午
640
                           if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 1){
698
                           if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 1){
641
-                            
699
+
642
                               newArr[i].Mon_M.patient = this.scheduleCountList[j].Count
700
                               newArr[i].Mon_M.patient = this.scheduleCountList[j].Count
643
-                          } 
701
+                          }
644
                         //礼拜一下午
702
                         //礼拜一下午
645
                          if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 2){
703
                          if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 2){
646
-                           
704
+
647
                               newArr[i].Mon_A.patient = this.scheduleCountList[j].Count
705
                               newArr[i].Mon_A.patient = this.scheduleCountList[j].Count
648
-                          } 
706
+                          }
649
 
707
 
650
                          //礼拜一晚上
708
                          //礼拜一晚上
651
                          if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 3){
709
                          if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 3){
652
-                            
710
+
653
                               newArr[i].Mon_N.patient = this.scheduleCountList[j].Count
711
                               newArr[i].Mon_N.patient = this.scheduleCountList[j].Count
654
-                          } 
655
-                         
712
+                          }
713
+
656
                         //礼拜二上午
714
                         //礼拜二上午
657
                          if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 1){
715
                          if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 1){
658
-                            
716
+
659
                               newArr[i].Tue_M.patient = this.scheduleCountList[j].Count
717
                               newArr[i].Tue_M.patient = this.scheduleCountList[j].Count
660
-                          } 
718
+                          }
661
                          //礼拜二下午
719
                          //礼拜二下午
662
                          if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 2){
720
                          if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 2){
663
-                            
721
+
664
                               newArr[i].Tue_A.patient = this.scheduleCountList[j].Count
722
                               newArr[i].Tue_A.patient = this.scheduleCountList[j].Count
665
-                          } 
666
-                        
723
+                          }
724
+
667
                          //礼拜二晚上
725
                          //礼拜二晚上
668
                          if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 3){
726
                          if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 3){
669
-                            
727
+
670
                               newArr[i].Tue_N.patient = this.scheduleCountList[j].Count
728
                               newArr[i].Tue_N.patient = this.scheduleCountList[j].Count
671
-                          } 
729
+                          }
672
 
730
 
673
                          //礼拜三上午
731
                          //礼拜三上午
674
                          if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
732
                          if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
675
-                            
733
+
676
                               newArr[i].Wed_M.patient = this.scheduleCountList[j].Count
734
                               newArr[i].Wed_M.patient = this.scheduleCountList[j].Count
677
-                          } 
735
+                          }
678
 
736
 
679
                          //礼拜三下午
737
                          //礼拜三下午
680
                          if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
738
                          if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
681
-                            
739
+
682
                               newArr[i].Wed_A.patient = this.scheduleCountList[j].Count
740
                               newArr[i].Wed_A.patient = this.scheduleCountList[j].Count
683
                           }
741
                           }
684
 
742
 
685
                          //礼拜三晚上
743
                          //礼拜三晚上
686
                          if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 3){
744
                          if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 3){
687
-                            
745
+
688
                               newArr[i].Wed_N.patient = this.scheduleCountList[j].Count
746
                               newArr[i].Wed_N.patient = this.scheduleCountList[j].Count
689
                           }
747
                           }
690
 
748
 
692
 
750
 
693
                         //礼拜四上午
751
                         //礼拜四上午
694
                          if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 1){
752
                          if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 1){
695
-                            
753
+
696
                               newArr[i].Thurs_M.patient = this.scheduleCountList[j].Count
754
                               newArr[i].Thurs_M.patient = this.scheduleCountList[j].Count
697
-                          } 
755
+                          }
698
 
756
 
699
                          //礼拜四下午
757
                          //礼拜四下午
700
                          if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 2){
758
                          if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 2){
701
-                            
759
+
702
                               newArr[i].Thurs_A.patient = this.scheduleCountList[j].Count
760
                               newArr[i].Thurs_A.patient = this.scheduleCountList[j].Count
703
                           }
761
                           }
704
 
762
 
705
                          //礼拜四晚上
763
                          //礼拜四晚上
706
                          if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 3){
764
                          if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 3){
707
-                            
765
+
708
                               newArr[i].Thurs_N.patient = this.scheduleCountList[j].Count
766
                               newArr[i].Thurs_N.patient = this.scheduleCountList[j].Count
709
                           }
767
                           }
710
 
768
 
711
 
769
 
712
                         //礼拜五上午
770
                         //礼拜五上午
713
                          if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 1){
771
                          if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 1){
714
-                            
772
+
715
                               newArr[i].Fri_M.patient = this.scheduleCountList[j].Count
773
                               newArr[i].Fri_M.patient = this.scheduleCountList[j].Count
716
-                          } 
774
+                          }
717
 
775
 
718
                          //礼拜五下午
776
                          //礼拜五下午
719
                          if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 2){
777
                          if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 2){
720
-                            
778
+
721
                               newArr[i].Fri_A.patient = this.scheduleCountList[j].Count
779
                               newArr[i].Fri_A.patient = this.scheduleCountList[j].Count
722
                           }
780
                           }
723
 
781
 
724
                          //礼拜五晚上
782
                          //礼拜五晚上
725
                          if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 3){
783
                          if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 3){
726
-                            
784
+
727
                               newArr[i].Fri_N.patient = this.scheduleCountList[j].Count
785
                               newArr[i].Fri_N.patient = this.scheduleCountList[j].Count
728
                           }
786
                           }
729
 
787
 
730
 
788
 
731
                         //礼拜六上午
789
                         //礼拜六上午
732
                          if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 1){
790
                          if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 1){
733
-                            
791
+
734
                               newArr[i].Sat_M.patient = this.scheduleCountList[j].Count
792
                               newArr[i].Sat_M.patient = this.scheduleCountList[j].Count
735
-                          } 
793
+                          }
736
 
794
 
737
                          //礼拜六下午
795
                          //礼拜六下午
738
                          if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 2){
796
                          if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 2){
739
-                            
797
+
740
                               newArr[i].Sat_A.patient = this.scheduleCountList[j].Count
798
                               newArr[i].Sat_A.patient = this.scheduleCountList[j].Count
741
                           }
799
                           }
742
 
800
 
743
                          //礼拜六晚上
801
                          //礼拜六晚上
744
                          if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 3){
802
                          if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 3){
745
-                            
803
+
746
                               newArr[i].Sat_N.patient = this.scheduleCountList[j].Count
804
                               newArr[i].Sat_N.patient = this.scheduleCountList[j].Count
747
                           }
805
                           }
748
-                         
806
+
749
 
807
 
750
                           //礼拜日上午
808
                           //礼拜日上午
751
                          if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 1){
809
                          if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 1){
752
-                            
810
+
753
                               newArr[i].Sun_M.patient = this.scheduleCountList[j].Count
811
                               newArr[i].Sun_M.patient = this.scheduleCountList[j].Count
754
-                          } 
812
+                          }
755
 
813
 
756
                          //礼拜日下午
814
                          //礼拜日下午
757
                          if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 2){
815
                          if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 2){
758
-                            
816
+
759
                               newArr[i].Sun_A.patient = this.scheduleCountList[j].Count
817
                               newArr[i].Sun_A.patient = this.scheduleCountList[j].Count
760
                           }
818
                           }
761
 
819
 
762
                          //礼拜日晚上
820
                          //礼拜日晚上
763
                          if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 3){
821
                          if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 3){
764
-                            
822
+
765
                               newArr[i].Sun_N.patient = this.scheduleCountList[j].Count
823
                               newArr[i].Sun_N.patient = this.scheduleCountList[j].Count
766
                           }
824
                           }
767
 
825
 
771
                     console.log("newArr222222222",newArr)
829
                     console.log("newArr222222222",newArr)
772
                     that.scheduleZone.push(...newArr)
830
                     that.scheduleZone.push(...newArr)
773
                     console.log('总数据77777777777',that.scheduleZone)
831
                     console.log('总数据77777777777',that.scheduleZone)
774
-                    
832
+
775
                 } else {
833
                 } else {
776
                     this.$message.error("网络错误");
834
                     this.$message.error("网络错误");
777
                     return false;
835
                     return false;
841
                if(response.data.state == 1){
899
                if(response.data.state == 1){
842
                   var list = response.data.data.list
900
                   var list = response.data.data.list
843
                   console.log("list22222",list)
901
                   console.log("list22222",list)
844
-                  
902
+
845
                   this.scheduleCountList = list
903
                   this.scheduleCountList = list
846
                   var total = response.data.data.total
904
                   var total = response.data.data.total
847
                   console.log("totalw222",total)
905
                   console.log("totalw222",total)
848
                   this.total = total
906
                   this.total = total
849
                }
907
                }
850
-           }) 
908
+           })
851
         },
909
         },
852
         getSolutionSchedule(){
910
         getSolutionSchedule(){
853
           getSolutionSchedule().then(response=>{
911
           getSolutionSchedule().then(response=>{
942
                  if(solution[i].mode_id == 29){
1000
                  if(solution[i].mode_id == 29){
943
                     solution[i].mode_name = "PE"
1001
                     solution[i].mode_name = "PE"
944
                  }
1002
                  }
1003
+                 if(solution[i].solution!=undefined){
1004
+                    solution[i].dialysis_dialyszers = solution[i].solution.dialysis_dialyszers
1005
+                    solution[i].dialysis_irrigation = solution[i].solution.dialysis_irrigation
1006
+                    solution[i].dialyzer_perfusion_apparatus = solution[i].solution.dialyzer_perfusion_apparatus
1007
+                 }
1008
+
945
                }
1009
                }
946
                this.solutionList = solution
1010
                this.solutionList = solution
947
-             }  
948
-          })  
1011
+             }
1012
+          })
949
         },
1013
         },
950
         getDialyzer(patient_id,mode){
1014
         getDialyzer(patient_id,mode){
951
           var diazers = ""
1015
           var diazers = ""
1016
+          var irrigation = ""
952
           for(let i=0;i<this.solutionList.length;i++){
1017
           for(let i=0;i<this.solutionList.length;i++){
1018
+            if(patient_id == 0){
1019
+              return ""
1020
+            }  
953
             if(patient_id == this.solutionList[i].patient_id && mode == this.solutionList[i].mode_name){
1021
             if(patient_id == this.solutionList[i].patient_id && mode == this.solutionList[i].mode_name){
954
                if(this.solutionList[i].dialyzer_perfusion_apparatus!=""){
1022
                if(this.solutionList[i].dialyzer_perfusion_apparatus!=""){
955
                  diazers = this.solutionList[i].dialyzer_perfusion_apparatus
1023
                  diazers = this.solutionList[i].dialyzer_perfusion_apparatus
1024
+                 irrigation = this.solutionList[i].dialysis_irrigation
956
                }else{
1025
                }else{
957
                  diazers = this.solutionList[i].dialysis_dialyszers
1026
                  diazers = this.solutionList[i].dialysis_dialyszers
958
-                 if(this.solutionList[i].dialysis_dialyszers == ""){
959
-                    diazers = this.solutionList[i].dialysis_irrigation
960
-                 }
1027
+                 irrigation = this.solutionList[i].dialysis_irrigation
961
                
1028
                
962
                }
1029
                }
963
-               
1030
+
964
             }
1031
             }
965
           }
1032
           }
966
-          return diazers
1033
+          if(irrigation!=""){
1034
+             return diazers + "/" + irrigation
1035
+          }else{
1036
+            return diazers 
1037
+          }
967
         }
1038
         }
968
     }
1039
     }
969
 }
1040
 }
975
     text-align: center;
1046
     text-align: center;
976
     padding: 5px;
1047
     padding: 5px;
977
 }
1048
 }
978
-</style>
1049
+</style>