Przeglądaj źródła

11月14日 库存扣减更新

XMLWAN 3 lat temu
rodzic
commit
716ab75e65

+ 31 - 12
package-lock.json Wyświetl plik

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
     },
4757
         "ansi-regex": {
4757
         "ansi-regex": {
4758
           "version": "2.1.1",
4758
           "version": "2.1.1",
4759
           "bundled": true,
4759
           "bundled": true,
4760
-          "dev": true
4760
+          "dev": true,
4761
+          "optional": true
4761
         },
4762
         },
4762
         "aproba": {
4763
         "aproba": {
4763
           "version": "1.2.0",
4764
           "version": "1.2.0",
4780
         "balanced-match": {
4781
         "balanced-match": {
4781
           "version": "1.0.0",
4782
           "version": "1.0.0",
4782
           "bundled": true,
4783
           "bundled": true,
4783
-          "dev": true
4784
+          "dev": true,
4785
+          "optional": true
4784
         },
4786
         },
4785
         "brace-expansion": {
4787
         "brace-expansion": {
4786
           "version": "1.1.11",
4788
           "version": "1.1.11",
4787
           "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
4789
           "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
4788
           "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
4790
           "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
4789
           "dev": true,
4791
           "dev": true,
4792
+          "optional": true,
4790
           "requires": {
4793
           "requires": {
4791
             "balanced-match": "^1.0.0",
4794
             "balanced-match": "^1.0.0",
4792
             "concat-map": "0.0.1"
4795
             "concat-map": "0.0.1"
4802
         "code-point-at": {
4805
         "code-point-at": {
4803
           "version": "1.1.0",
4806
           "version": "1.1.0",
4804
           "bundled": true,
4807
           "bundled": true,
4805
-          "dev": true
4808
+          "dev": true,
4809
+          "optional": true
4806
         },
4810
         },
4807
         "concat-map": {
4811
         "concat-map": {
4808
           "version": "0.0.1",
4812
           "version": "0.0.1",
4809
           "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
4813
           "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
4810
           "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
4814
           "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
4811
-          "dev": true
4815
+          "dev": true,
4816
+          "optional": true
4812
         },
4817
         },
4813
         "console-control-strings": {
4818
         "console-control-strings": {
4814
           "version": "1.1.0",
4819
           "version": "1.1.0",
4815
           "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
4820
           "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
4816
           "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
4821
           "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
4817
-          "dev": true
4822
+          "dev": true,
4823
+          "optional": true
4818
         },
4824
         },
4819
         "core-util-is": {
4825
         "core-util-is": {
4820
           "version": "1.0.2",
4826
           "version": "1.0.2",
4944
         "inherits": {
4950
         "inherits": {
4945
           "version": "2.0.3",
4951
           "version": "2.0.3",
4946
           "bundled": true,
4952
           "bundled": true,
4947
-          "dev": true
4953
+          "dev": true,
4954
+          "optional": true
4948
         },
4955
         },
4949
         "ini": {
4956
         "ini": {
4950
           "version": "1.3.5",
4957
           "version": "1.3.5",
4958
           "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
4965
           "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
4959
           "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
4966
           "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
4960
           "dev": true,
4967
           "dev": true,
4968
+          "optional": true,
4961
           "requires": {
4969
           "requires": {
4962
             "number-is-nan": "^1.0.0"
4970
             "number-is-nan": "^1.0.0"
4963
           }
4971
           }
4974
           "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
4982
           "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
4975
           "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
4983
           "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
4976
           "dev": true,
4984
           "dev": true,
4985
+          "optional": true,
4977
           "requires": {
4986
           "requires": {
4978
             "brace-expansion": "^1.1.7"
4987
             "brace-expansion": "^1.1.7"
4979
           }
4988
           }
4981
         "minimist": {
4990
         "minimist": {
4982
           "version": "0.0.8",
4991
           "version": "0.0.8",
4983
           "bundled": true,
4992
           "bundled": true,
4984
-          "dev": true
4993
+          "dev": true,
4994
+          "optional": true
4985
         },
4995
         },
4986
         "minipass": {
4996
         "minipass": {
4987
           "version": "2.3.5",
4997
           "version": "2.3.5",
4988
           "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
4998
           "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
4989
           "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
4999
           "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
4990
           "dev": true,
5000
           "dev": true,
5001
+          "optional": true,
4991
           "requires": {
5002
           "requires": {
4992
             "safe-buffer": "^5.1.2",
5003
             "safe-buffer": "^5.1.2",
4993
             "yallist": "^3.0.0"
5004
             "yallist": "^3.0.0"
5008
           "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
5019
           "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
5009
           "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
5020
           "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
5010
           "dev": true,
5021
           "dev": true,
5022
+          "optional": true,
5011
           "requires": {
5023
           "requires": {
5012
             "minimist": "0.0.8"
5024
             "minimist": "0.0.8"
5013
           }
5025
           }
5095
         "number-is-nan": {
5107
         "number-is-nan": {
5096
           "version": "1.0.1",
5108
           "version": "1.0.1",
5097
           "bundled": true,
5109
           "bundled": true,
5098
-          "dev": true
5110
+          "dev": true,
5111
+          "optional": true
5099
         },
5112
         },
5100
         "object-assign": {
5113
         "object-assign": {
5101
           "version": "4.1.1",
5114
           "version": "4.1.1",
5109
           "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
5122
           "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
5110
           "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
5123
           "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
5111
           "dev": true,
5124
           "dev": true,
5125
+          "optional": true,
5112
           "requires": {
5126
           "requires": {
5113
             "wrappy": "1"
5127
             "wrappy": "1"
5114
           }
5128
           }
5203
         "safe-buffer": {
5217
         "safe-buffer": {
5204
           "version": "5.1.2",
5218
           "version": "5.1.2",
5205
           "bundled": true,
5219
           "bundled": true,
5206
-          "dev": true
5220
+          "dev": true,
5221
+          "optional": true
5207
         },
5222
         },
5208
         "safer-buffer": {
5223
         "safer-buffer": {
5209
           "version": "2.1.2",
5224
           "version": "2.1.2",
5245
           "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5260
           "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5246
           "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5261
           "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5247
           "dev": true,
5262
           "dev": true,
5263
+          "optional": true,
5248
           "requires": {
5264
           "requires": {
5249
             "code-point-at": "^1.0.0",
5265
             "code-point-at": "^1.0.0",
5250
             "is-fullwidth-code-point": "^1.0.0",
5266
             "is-fullwidth-code-point": "^1.0.0",
5266
           "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5282
           "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5267
           "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5283
           "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5268
           "dev": true,
5284
           "dev": true,
5285
+          "optional": true,
5269
           "requires": {
5286
           "requires": {
5270
             "ansi-regex": "^2.0.0"
5287
             "ansi-regex": "^2.0.0"
5271
           }
5288
           }
5313
         "wrappy": {
5330
         "wrappy": {
5314
           "version": "1.0.2",
5331
           "version": "1.0.2",
5315
           "bundled": true,
5332
           "bundled": true,
5316
-          "dev": true
5333
+          "dev": true,
5334
+          "optional": true
5317
         },
5335
         },
5318
         "yallist": {
5336
         "yallist": {
5319
           "version": "3.0.3",
5337
           "version": "3.0.3",
5320
           "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
5338
           "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
5321
           "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
5339
           "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
5322
-          "dev": true
5340
+          "dev": true,
5341
+          "optional": true
5323
         }
5342
         }
5324
       }
5343
       }
5325
     },
5344
     },

+ 8 - 6
src/xt_pages/data/components/consumables.vue Wyświetl plik

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)
1511
+         console.log("this.table",this.goodInfo.goodInfoDialog.formValue.goodType)
1512
          
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){
1516
-                 this.goodInfo.goodInfoData[i].good_kind_name = this.goodKindList[i].name
1516
+                 this.goodInfo.goodInfoData[i].good_kind_name = this.goodKindList[j].name
1517
               }
1517
               }
1518
            }
1518
            }
1519
-           for(let z=0;z<this.goodInfo.goodInfoDialog.formValue.goodType;z++){
1520
-              if(this.goodInfo.goodInfoDialog.formValue[z].id == this.goodInfo.goodInfoData[i].good_type_id){
1521
-                 this.goodInfo.goodInfoData[i].good_type_name = this.goodInfo.goodInfoDialog.formValue[z].name
1519
+           for(let z=0;z<this.goodInfo.goodInfoDialog.formValue.goodType.length;z++){
1520
+              if(this.goodInfo.goodInfoData[i].good_type_id == this.goodInfo.goodInfoDialog.formValue.goodType[z].id){
1521
+                
1522
+                 this.goodInfo.goodInfoData[i].good_type_name = this.goodInfo.goodInfoDialog.formValue.goodType[z].type_name
1522
               }
1523
               }
1523
            }
1524
            }
1524
 
1525
 
1540
              } 
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'] 
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'] 
1546
          
1548
          

+ 24 - 12
src/xt_pages/data/components/drugs.vue Wyświetl plik

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>
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:[],
1509
                this.list[i].dealer_name = this.dealer[s].dealer_name
1515
                this.list[i].dealer_name = this.dealer[s].dealer_name
1510
              }
1516
              }
1511
            }
1517
            }
1518
+           for(let b=0;b<this.getDataConfig('hemodialysis','units').length;b++){
1519
+             if(this.list[i].drug_dose_unit == this.getDataConfig('hemodialysis','units')[b].id){
1520
+               this.list[i].drug_dose_unit_name = this.getDataConfig('hemodialysis','units')[b].name
1521
+
1522
+             }
1523
+           }
1512
           this.list[i].specification_name = this.list[i].dose + this.list[i].dose_unit + this.list[i].min_number + this.list[i].min_unit + "/"+this.list[i].max_unit
1524
           this.list[i].specification_name = this.list[i].dose + this.list[i].dose_unit + this.list[i].min_number + this.list[i].min_unit + "/"+this.list[i].max_unit
1513
          }
1525
          }
1514
 
1526
 
1515
          const tHeader = ['药品名称','药品规格','剂量','剂量单位','拆零','拆零单位','包装单位','药品类型','库存警戒','产地','药品剂型','拆零零售价','包装零售价','进货价','药物分类','默认单次用量','默认单次用量单位','生产厂商','经销商','医保编码','社保目录编码']
1527
          const tHeader = ['药品名称','药品规格','剂量','剂量单位','拆零','拆零单位','包装单位','药品类型','库存警戒','产地','药品剂型','拆零零售价','包装零售价','进货价','药物分类','默认单次用量','默认单次用量单位','生产厂商','经销商','医保编码','社保目录编码']
1516
-         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'] 
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'] 
1517
          
1529
          
1518
          const data = this.formatJson(filterVal,this.list)
1530
          const data = this.formatJson(filterVal,this.list)
1519
      
1531
      

+ 1 - 1
src/xt_pages/hospitalStation/checkTemplate/printOne.vue Wyświetl plik

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 Wyświetl plik

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 Wyświetl plik

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

+ 3 - 3
src/xt_pages/stock/cancelStockOrderEdit.vue Wyświetl plik

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>

+ 3 - 48
src/xt_pages/stock/detail/stockInDetail.vue Wyświetl plik

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 Wyświetl plik

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 Wyświetl plik

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 Wyświetl plik

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 Wyświetl plik

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 Wyświetl plik

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 Wyświetl plik

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 Wyświetl plik

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>

+ 35 - 4
src/xt_pages/stock/drugs/query.vue Wyświetl plik

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 Wyświetl plik

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 Wyświetl plik

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 {

+ 12 - 11
src/xt_pages/workforce/remind_print.vue Wyświetl plik

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.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
95
-                  <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
96
-                  <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
97
-                  <span v-if="main_collection.prescription.anticoagulant == 4">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
98
-                  <span v-if="main_collection.prescription.anticoagulant == 5">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
99
-                  <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
100
-                  <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
101
-                   <span v-if="main_collection.prescription.anticoagulant == 8">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
102
-                  <span v-if="main_collection.prescription.anticoagulant == 9">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
103
-                  <span v-if="main_collection.prescription.anticoagulant == 10">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
104
-                  <span v-if="main_collection.prescription.anticoagulant == 11">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
95
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
96
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
97
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
98
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">{{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>
100
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">{{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>
102
+                   <span v-if="main_collection.dialysissolution.anticoagulant == 8">{{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>
104
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{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>
105
                 </td>
106
                 </td>
106
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
107
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
107
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>
108
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>

+ 181 - 110
src/xt_pages/workforce/scheduleTablePrintOne.vue Wyświetl plik

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>