Browse Source

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

陈少旭 1 week ago
parent
commit
49a92a035c

+ 31 - 12
package-lock.json View File

2114
       }
2114
       }
2115
     },
2115
     },
2116
     "caniuse-db": {
2116
     "caniuse-db": {
2117
-      "version": "1.0.30001718",
2118
-      "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001718.tgz",
2119
-      "integrity": "sha512-XJRbbI1T9yUmA3mqXSmN2Zn7LAoUSvQd//XymssqZcsBI+sR1j87ZPbPQcJsAsR/MKhpa4ZSOs0wf1DDjbUcfQ==",
2117
+      "version": "1.0.30001720",
2118
+      "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001720.tgz",
2119
+      "integrity": "sha512-mLSrTF00L/GGGpaNlm1SM/TjhI9ZMKyjDQkA7i1hNsRS6s5bvDrjwub/eVymxoO0FBazwEGsBJTiOA4LX5nZmQ==",
2120
       "dev": true
2120
       "dev": true
2121
     },
2121
     },
2122
     "caniuse-lite": {
2122
     "caniuse-lite": {
2123
-      "version": "1.0.30001718",
2124
-      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001718.tgz",
2125
-      "integrity": "sha512-AflseV1ahcSunK53NfEs9gFWgOEmzr0f+kaMFA4xiLZlr9Hzt7HxcSpIFcnNCUkz6R6dWKa54rUz3HUmI3nVcw==",
2123
+      "version": "1.0.30001720",
2124
+      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001720.tgz",
2125
+      "integrity": "sha512-Ec/2yV2nNPwb4DnTANEV99ZWwm3ZWfdlfkQbWSDDt+PsXEVYwlhPH8tdMaPunYTKKmz7AnHi2oNEi1GcmKCD8g==",
2126
       "dev": true
2126
       "dev": true
2127
     },
2127
     },
2128
     "canvg": {
2128
     "canvg": {
3875
       "dev": true
3875
       "dev": true
3876
     },
3876
     },
3877
     "electron-to-chromium": {
3877
     "electron-to-chromium": {
3878
-      "version": "1.5.159",
3879
-      "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.159.tgz",
3880
-      "integrity": "sha512-CEvHptWAMV5p6GJ0Lq8aheyvVbfzVrv5mmidu1D3pidoVNkB3tTBsTMVtPJ+rzRK5oV229mCLz9Zj/hNvU8GBA==",
3878
+      "version": "1.5.161",
3879
+      "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.161.tgz",
3880
+      "integrity": "sha512-hwtetwfKNZo/UlwHIVBlKZVdy7o8bIZxxKs0Mv/ROPiQQQmDgdm5a+KvKtBsxM8ZjFzTaCeLoodZ8jiBE3o9rA==",
3881
       "dev": true
3881
       "dev": true
3882
     },
3882
     },
3883
     "elegant-spinner": {
3883
     "elegant-spinner": {
3993
       }
3993
       }
3994
     },
3994
     },
3995
     "es-abstract": {
3995
     "es-abstract": {
3996
-      "version": "1.23.10",
3997
-      "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.10.tgz",
3998
-      "integrity": "sha512-MtUbM072wlJNyeYAe0mhzrD+M6DIJa96CZAOBBrhDbgKnB4MApIKefcyAB1eOdYn8cUNZgvwBvEzdoAYsxgEIw==",
3996
+      "version": "1.24.0",
3997
+      "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz",
3998
+      "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==",
3999
       "dev": true,
3999
       "dev": true,
4000
       "requires": {
4000
       "requires": {
4001
         "array-buffer-byte-length": "^1.0.2",
4001
         "array-buffer-byte-length": "^1.0.2",
4025
         "is-array-buffer": "^3.0.5",
4025
         "is-array-buffer": "^3.0.5",
4026
         "is-callable": "^1.2.7",
4026
         "is-callable": "^1.2.7",
4027
         "is-data-view": "^1.0.2",
4027
         "is-data-view": "^1.0.2",
4028
+        "is-negative-zero": "^2.0.3",
4028
         "is-regex": "^1.2.1",
4029
         "is-regex": "^1.2.1",
4030
+        "is-set": "^2.0.3",
4029
         "is-shared-array-buffer": "^1.0.4",
4031
         "is-shared-array-buffer": "^1.0.4",
4030
         "is-string": "^1.1.1",
4032
         "is-string": "^1.1.1",
4031
         "is-typed-array": "^1.1.15",
4033
         "is-typed-array": "^1.1.15",
4040
         "safe-push-apply": "^1.0.0",
4042
         "safe-push-apply": "^1.0.0",
4041
         "safe-regex-test": "^1.1.0",
4043
         "safe-regex-test": "^1.1.0",
4042
         "set-proto": "^1.0.0",
4044
         "set-proto": "^1.0.0",
4045
+        "stop-iteration-iterator": "^1.1.0",
4043
         "string.prototype.trim": "^1.2.10",
4046
         "string.prototype.trim": "^1.2.10",
4044
         "string.prototype.trimend": "^1.0.9",
4047
         "string.prototype.trimend": "^1.0.9",
4045
         "string.prototype.trimstart": "^1.0.8",
4048
         "string.prototype.trimstart": "^1.0.8",
6674
       "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",
6677
       "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",
6675
       "dev": true
6678
       "dev": true
6676
     },
6679
     },
6680
+    "is-negative-zero": {
6681
+      "version": "2.0.3",
6682
+      "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz",
6683
+      "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==",
6684
+      "dev": true
6685
+    },
6677
     "is-number": {
6686
     "is-number": {
6678
       "version": "3.0.0",
6687
       "version": "3.0.0",
6679
       "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
6688
       "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
13672
         "readable-stream": "^2.0.1"
13681
         "readable-stream": "^2.0.1"
13673
       }
13682
       }
13674
     },
13683
     },
13684
+    "stop-iteration-iterator": {
13685
+      "version": "1.1.0",
13686
+      "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz",
13687
+      "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==",
13688
+      "dev": true,
13689
+      "requires": {
13690
+        "es-errors": "^1.3.0",
13691
+        "internal-slot": "^1.1.0"
13692
+      }
13693
+    },
13675
     "stream-browserify": {
13694
     "stream-browserify": {
13676
       "version": "2.0.2",
13695
       "version": "2.0.2",
13677
       "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz",
13696
       "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz",

+ 10 - 0
src/api/dialysis.js View File

590
     method:"Get",
590
     method:"Get",
591
     params:params,
591
     params:params,
592
   })
592
   })
593
+}
594
+
595
+
596
+export function getBedNumberList(params){
597
+  console.log("099999999999999990",params)
598
+  return request({
599
+    url:"/api/schedule/getbednumberlist",
600
+    method:"Get",
601
+    params:params,
602
+  })
593
 }
603
 }

+ 29 - 25
src/xt_pages/Pharmacy/DrugDispensing.vue View File

965
           return;
965
           return;
966
         }
966
         }
967
         if (index === 7) {
967
         if (index === 7) {
968
-          // 单位裁切
969
-          data.forEach((el, index) => {
970
-            dose_unit.push(this.getDose_unit(el.total));
971
-          });
972
 
968
 
973
-          dose_unit = this.unique_unit(dose_unit);
974
-          console.log(dose_unit,'dose_unit')
975
-          // // 数据合计
976
-          data.forEach((el, index) => {
977
-            if (this.getDose_unit(el.total) === dose_unit[0]) {
978
-              unit_1.push(parseInt(el.total));
979
-            }
980
-            if (this.getDose_unit(el.total) === dose_unit[1]) {
981
-              unit_2.push(parseInt(el.total));
969
+          if(data!=unll && data.length>0){
970
+            // 单位裁切
971
+            data.forEach((el, index) => {
972
+                    dose_unit.push(this.getDose_unit(el.total));
973
+                  });
974
+
975
+                  dose_unit = this.unique_unit(dose_unit);
976
+                  console.log(dose_unit,'dose_unit')
977
+                  // // 数据合计
978
+                  data.forEach((el, index) => {
979
+                    if (this.getDose_unit(el.total) === dose_unit[0]) {
980
+                      unit_1.push(parseInt(el.total));
981
+                    }
982
+                    if (this.getDose_unit(el.total) === dose_unit[1]) {
983
+                      unit_2.push(parseInt(el.total));
984
+                    }
985
+                  });
986
+                  unit_1 = eval(unit_1.join("+"));
987
+                  unit_2 = eval(unit_2.join("+"));
988
+
989
+                  if (dose_unit[0] == undefined) {
990
+                    sums[index] = "";
991
+                  } else if (dose_unit[1] == undefined || unit_2 == undefined) {
992
+                    sums[index] = `${unit_1}${dose_unit[0]}`;
993
+                  } else {
994
+                    sums[index] = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
995
+                  }
996
+                  return;
982
             }
997
             }
983
-          });
984
-          unit_1 = eval(unit_1.join("+"));
985
-          unit_2 = eval(unit_2.join("+"));
986
-
987
-          if (dose_unit[0] == undefined) {
988
-            sums[index] = "";
989
-          } else if (dose_unit[1] == undefined || unit_2 == undefined) {
990
-            sums[index] = `${unit_1}${dose_unit[0]}`;
991
-          } else {
992
-            sums[index] = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
993
-          }
994
-          return;
998
+            
995
         }
999
         }
996
       });
1000
       });
997
 
1001
 

+ 8 - 0
src/xt_pages/dialysis/PatientBox.vue View File

120
             </span>
120
             </span>
121
           </span>
121
           </span>
122
         </p>
122
         </p>
123
+        <p>
124
+          <span v-if="$store.getters.xt_user.org.id==10777 || $store.getters.xt_user.org.id==0">
125
+              处方脱水量:
126
+            <span v-if=" schedule.prescription && schedule.prescription.prescription_water > 0">
127
+               <span> {{schedule.prescription? schedule.prescription.prescription_water: ""}}L</span>
128
+            </span>
129
+          </span>
130
+        </p>
123
         <p>
131
         <p>
124
            <span  v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
132
            <span  v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
125
              抗凝剂:
133
              抗凝剂:

+ 5 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_eightysix.vue View File

638
                         <div class="inline_block" style=" flex: 2">
638
                         <div class="inline_block" style=" flex: 2">
639
                           血管通路:
639
                           血管通路:
640
                           <div class="under_line" style="width: 70%; text-align: center" >
640
                           <div class="under_line" style="width: 70%; text-align: center" >
641
+
641
                             {{
642
                             {{
642
-                              record.assessment_before_dislysis &&
643
-                              record.assessment_before_dislysis.blood_access_part_id
644
-                                ? record.assessment_before_dislysis.blood_access_part_id : ''
643
+                              record.prescription &&
644
+                              record.prescription.blood_access_part_id
645
+                                ? record.prescription.blood_access_part_id : ''
645
                             }}
646
                             }}
646
-                            {{QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id) }}
647
+                            {{QueryPartById(record.prescription.blood_access) }}
647
                           </div>
648
                           </div>
648
                         </div>             
649
                         </div>             
649
                         <div class="inline_block" style=" flex: 1">
650
                         <div class="inline_block" style=" flex: 1">

+ 40 - 2
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

87
 
87
 
88
           <el-col :span="8">
88
           <el-col :span="8">
89
             <el-form-item label="透析机型号" :prop="isName('透析机型号')"
89
             <el-form-item label="透析机型号" :prop="isName('透析机型号')"
90
-              :rules="isCheckmust('透析机型号')" v-if="isShow('透析机型号')">
90
+              :rules="isCheckmust('透析机型号')">
91
               <el-select v-model="assessmentBeforeDislysis.machine_type">
91
               <el-select v-model="assessmentBeforeDislysis.machine_type">
92
                 <el-option :key="0" label="请选择" :value="0"></el-option>
92
                 <el-option :key="0" label="请选择" :value="0"></el-option>
93
 
93
 
861
   import axios from 'axios'
861
   import axios from 'axios'
862
   import multiSelectBox from './MultiSelectBox'
862
   import multiSelectBox from './MultiSelectBox'
863
   import { getDataConfig } from '@/utils/data'
863
   import { getDataConfig } from '@/utils/data'
864
-  import { postAssessmentBeforeDislysis, CreateDryWeight,saveInformation } from '@/api/dialysis'
864
+  import { postAssessmentBeforeDislysis, CreateDryWeight,saveInformation,getBedNumberList } from '@/api/dialysis'
865
   import store from '@/store'
865
   import store from '@/store'
866
   import { uParseTime } from '@/utils/tools'
866
   import { uParseTime } from '@/utils/tools'
867
   import { parseTime } from '@/utils'
867
   import { parseTime } from '@/utils'
1137
         }
1137
         }
1138
         return false
1138
         return false
1139
       },
1139
       },
1140
+      getBedNumberList(){
1141
+          var patient_id = ""
1142
+         if(this.patient.id != undefined && this.patient.id >0){
1143
+            patient_id =  parseInt(this.$route.query.patient_id) 
1144
+          }
1145
+          if(this.patient.id == 'undefined' || this.patient.id ==0){
1146
+          
1147
+             patient_id = parseInt(this.$route.query.patient_id) 
1148
+          }
1149
+          if(this.$route.query.patient_id == undefined || this.$route.query.patient_id == 0 ){
1150
+             
1151
+              patient_id = this.patient.id
1152
+          }
1153
+
1154
+          var params = {
1155
+            patient_id:patient_id,
1156
+            record_date:this.record_date,
1157
+          }
1158
+          console.log("params----",params)
1159
+          getBedNumberList(params).then(response=>{
1160
+             if(response.data.state == 1){
1161
+               var number = response.data.data.number
1162
+               if(number!=undefined){
1163
+                if(this.assessmentBeforeDislysis.machine_type == ""){
1164
+                  this.assessmentBeforeDislysis.machine_type = number.number_type
1165
+                }
1166
+                 
1167
+               }
1168
+             }
1169
+          })
1170
+       
1171
+      },
1140
 
1172
 
1141
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation,lastAssessment,record_date) {
1173
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation,lastAssessment,record_date) {
1174
+          
1175
+       
1176
+
1177
+        if(this.$store.getters.xt_user.template_info.org_id == 10777 || this.$store.getters.xt_user.template_info.org_id == 0){
1178
+           this.getBedNumberList()
1179
+        }
1142
 
1180
 
1143
         let filedList = store.getters.xt_user.fileds;
1181
         let filedList = store.getters.xt_user.fileds;
1144
 
1182
 

+ 41 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

3017
             } else if (schedual.schedule_type == 3) {
3017
             } else if (schedual.schedule_type == 3) {
3018
               this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
3018
               this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
3019
             }
3019
             }
3020
+           }else if(this.$store.getters.xt_user.org.id == 10777){
3021
+              if (schedual.schedule_type == 1) {
3022
+              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
3023
+            } else if (schedual.schedule_type == 2) {
3024
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:30'
3025
+            } else if (schedual.schedule_type == 3) {
3026
+              this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
3027
+            }
3020
            }else if(this.$store.getters.xt_user.org.id == 10440){
3028
            }else if(this.$store.getters.xt_user.org.id == 10440){
3021
               if (schedual.schedule_type == 1) {
3029
               if (schedual.schedule_type == 1) {
3022
               this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
3030
               this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
5311
          if(response.data.state == 1){
5319
          if(response.data.state == 1){
5312
           var patientBefor = response.data.data.patientBefor
5320
           var patientBefor = response.data.data.patientBefor
5313
           var prescription = response.data.data.prescription
5321
           var prescription = response.data.data.prescription
5322
+          var access  = response.data.data.access
5323
+          console.log("accesss====",access)
5324
+
5325
+
5314
           if(patientBefor!=undefined){
5326
           if(patientBefor!=undefined){
5315
 
5327
 
5316
             if(this.$store.getters.xt_user.template_info.org_id == 10727  ||this.$store.getters.xt_user.template_info.org_id == 10740 ||this.$store.getters.xt_user.template_info.org_id == 10742||this.$store.getters.xt_user.template_info.org_id == 10745||this.$store.getters.xt_user.template_info.org_id == 10751||this.$store.getters.xt_user.template_info.org_id == 10697||this.$store.getters.xt_user.template_info.org_id == 10757||this.$store.getters.xt_user.template_info.org_id == 10768){
5328
             if(this.$store.getters.xt_user.template_info.org_id == 10727  ||this.$store.getters.xt_user.template_info.org_id == 10740 ||this.$store.getters.xt_user.template_info.org_id == 10742||this.$store.getters.xt_user.template_info.org_id == 10745||this.$store.getters.xt_user.template_info.org_id == 10751||this.$store.getters.xt_user.template_info.org_id == 10697||this.$store.getters.xt_user.template_info.org_id == 10757||this.$store.getters.xt_user.template_info.org_id == 10768){
5354
             this.dialysisPrescription.prescription_water = prescription.prescription_water
5366
             this.dialysisPrescription.prescription_water = prescription.prescription_water
5355
           }
5367
           }
5356
 
5368
 
5369
+
5370
+         
5371
+          if(this.$store.getters.xt_user.template_info.org_id == 10777 || this.$store.getters.xt_user.template_info.org_id == 10164){
5372
+             
5373
+            if (access!=undefined) {
5374
+             var blood_access =  this.getBloodAceess(access.blood_access_part_opera_id)
5375
+             if(this.dialysisPrescription.blood_access == ""){
5376
+              this.dialysisPrescription.blood_access = blood_access
5377
+             }
5378
+             if(this.dialysisPrescription.blood_access_part_id == "" ){
5379
+               this.dialysisPrescription.blood_access_part_id = access.blood_access_part_id
5380
+             }
5381
+            
5382
+  
5383
+            }
5384
+          }
5385
+
5386
+        
5387
+          
5357
          }
5388
          }
5358
       })
5389
       })
5359
     },
5390
     },
5391
+    getBloodAceess(name){
5392
+      console.log("blood_access_option",this.blood_access_option)
5393
+      var id =0 
5394
+      for(let i=0;i<this.blood_access_option.length;i++){
5395
+         if(name === this.blood_access_option[i].name){
5396
+            id = this.blood_access_option[i].id
5397
+         }
5398
+      }
5399
+      return id
5400
+    },
5360
     getPatientDialysisSolution(){
5401
     getPatientDialysisSolution(){
5361
         var params = {
5402
         var params = {
5362
           patient_id:patient_id,
5403
           patient_id:patient_id,

+ 21 - 3
src/xt_pages/dialysis/template/DialysisPrintOrdereightsix.vue View File

592
                       <div class="inline_block" style="flex: 2">
592
                       <div class="inline_block" style="flex: 2">
593
                         血管通路:
593
                         血管通路:
594
                         <div class="under_line" style="width: 60%; text-align: center">
594
                         <div class="under_line" style="width: 60%; text-align: center">
595
-                          {{ predialysis.blood_access_part_id }}
596
-                          {{ predialysis.blood_access_part_opera_name }}
595
+                          <!-- {{ predialysis.blood_access_part_id }}
596
+                          {{ predialysis.blood_access_part_opera_name }} -->
597
+                           {{ prescription.blood_access_part_id }}
598
+                           {{getBloodAceess(prescription.blood_access)}}
599
+                          
597
                         </div>
600
                         </div>
598
                       </div>
601
                       </div>
599
                       <div class="inline_block" style="flex: 1">
602
                       <div class="inline_block" style="flex: 1">
1932
         },
1935
         },
1933
         org_id: 0,
1936
         org_id: 0,
1934
         projectsOne: [],
1937
         projectsOne: [],
1938
+        blood_access_option:[],
1935
       };
1939
       };
1936
     },
1940
     },
1937
     methods: {
1941
     methods: {
3102
         }else{
3106
         }else{
3103
           this.$message.success('核对完成')
3107
           this.$message.success('核对完成')
3104
         }
3108
         }
3105
-      }
3109
+      },
3110
+      getBloodAceess(id){
3111
+        console.log("blood_access_option",this.blood_access_option)
3112
+        var name = ""
3113
+        for(let i=0;i<this.blood_access_option.length;i++){
3114
+          if(id === this.blood_access_option[i].id){
3115
+              name = this.blood_access_option[i].name
3116
+          }
3117
+        }
3118
+        return  name
3119
+     },
3106
     },
3120
     },
3107
     watch: {
3121
     watch: {
3108
       "patientInfo.gender": function () {
3122
       "patientInfo.gender": function () {
3135
   
3149
   
3136
     },
3150
     },
3137
     created() {
3151
     created() {
3152
+      this.blood_access_option = getDataConfig(
3153
+          'hemodialysis',
3154
+          'vascular_access_desc'
3155
+      )
3138
       console.log('dddddd',this.$parent.childResponse);
3156
       console.log('dddddd',this.$parent.childResponse);
3139
       this.way_arr = getDataConfig("hemodialysis", "way");
3157
       this.way_arr = getDataConfig("hemodialysis", "way");
3140
       this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
3158
       this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");

+ 4 - 0
src/xt_pages/management/components/ManageForm.vue View File

657
         this.form.revers_mode = 0;
657
         this.form.revers_mode = 0;
658
       }
658
       }
659
 
659
 
660
+      if(this.form.zone_id == ""){
661
+         this.form.zone_id = 0
662
+      }
663
+
660
       this.$refs[formName].validate(valid => {
664
       this.$refs[formName].validate(valid => {
661
         if (valid) {
665
         if (valid) {
662
           SaveManageInfo(this.form).then(response => {
666
           SaveManageInfo(this.form).then(response => {

+ 20 - 0
src/xt_pages/user/vascularAccess.vue View File

32
             <span>{{scope.row.other_vascular}}</span>
32
             <span>{{scope.row.other_vascular}}</span>
33
          </template>
33
          </template>
34
       </el-table-column>
34
       </el-table-column>
35
+      
36
+      <el-table-column prop="date" label="启用状态" width="120" align="center">
37
+          <template slot-scope="scope">
38
+             {{ getUserStatus(scope.row.user_status)}}
39
+          </template>
40
+      </el-table-column>
41
+      
35
       <el-table-column prop="date" label="首次启用日期" width="120" align="center">
42
       <el-table-column prop="date" label="首次启用日期" width="120" align="center">
36
           <template slot-scope="scope">
43
           <template slot-scope="scope">
37
             <span>{{ getTime(scope.row.first_start_time)}}</span>
44
             <span>{{ getTime(scope.row.first_start_time)}}</span>
570
       }
577
       }
571
     },
578
     },
572
     methods: {
579
     methods: {
580
+      getUserStatus(val){
581
+        var name = ""
582
+        if(val == 1){
583
+           name ="启用"
584
+        }
585
+        if(val == 2){
586
+           name ="停用"
587
+        }
588
+        if(val == 3){
589
+           name ="备用"
590
+        }
591
+        return name
592
+      },
573
       clickuseradvicecell(row, column, cell, event) {
593
       clickuseradvicecell(row, column, cell, event) {
574
       },
594
       },
575
       onTranPatient: function(tranPatient) {
595
       onTranPatient: function(tranPatient) {

+ 33 - 15
src/xt_pages/workforce/appointment.vue View File

842
       // }
842
       // }
843
 
843
 
844
       if(this.schedule_type!=0 || this.partition_id != 0 || this.week_date !=''){
844
       if(this.schedule_type!=0 || this.partition_id != 0 || this.week_date !=''){
845
+
845
         this.export_file_step_twos()
846
         this.export_file_step_twos()
846
       }else{
847
       }else{
847
         this.export_file_step_two()
848
         this.export_file_step_two()
851
       // this.export_file_step_twos()
852
       // this.export_file_step_twos()
852
     },
853
     },
853
     export_file_step_two: function(){
854
     export_file_step_two: function(){
854
-
855
+    
855
       this.downloadLoading = true
856
       this.downloadLoading = true
856
       import('@/vendor/Export2Excel').then(excel => {
857
       import('@/vendor/Export2Excel').then(excel => {
857
         const filterVal = [
858
         const filterVal = [
970
 
971
 
971
     },
972
     },
972
     export_file_step_twos: function(){
973
     export_file_step_twos: function(){
974
+
975
+      console.log("this.export_type00000000000000",this.tableList)
973
       this.downloadLoading = true
976
       this.downloadLoading = true
974
       import('@/vendor/Export2Excel').then(excel => {
977
       import('@/vendor/Export2Excel').then(excel => {
975
         const filterVal = [
978
         const filterVal = [
1017
             }
1020
             }
1018
             i++
1021
             i++
1019
           }
1022
           }
1023
+          console.log("lsit--------------------",list)
1024
+          console.log("表格-------------------",this.tableList)
1025
+
1020
           if(this.week_date!= '' || this.schedule_type!=0){
1026
           if(this.week_date!= '' || this.schedule_type!=0){
1021
             if(this.week_date=='周一' &&this.schedule_type==0 ){
1027
             if(this.week_date=='周一' &&this.schedule_type==0 ){
1022
               multiHeader=[['区号', '机号', '周一' + "(" + this.days[0] + ")", '', '']]
1028
               multiHeader=[['区号', '机号', '周一' + "(" + this.days[0] + ")", '', '']]
1156
               header = ['', '', '晚上']
1162
               header = ['', '', '晚上']
1157
               merges = ['A1:A2', 'B1:B2', 'C1']
1163
               merges = ['A1:A2', 'B1:B2', 'C1']
1158
             }
1164
             }
1159
-          }
1160
-          else{
1165
+          }else{
1161
             multiHeader = [['区号', '机号', '周一' + "(" + this.days[0] + ")", '', '', '周二' + "(" + this.days[1] + ")", '', '', '周三' + "(" + this.days[2] + ")", '', '', '周四' + "(" + this.days[3] + ")", '', '', '周五' + "(" + this.days[4] + ")", '', '', '周六' + "(" + this.days[5] + ")", '', '', '周日' + "(" + this.days[6] + ")", '', '' ]]
1166
             multiHeader = [['区号', '机号', '周一' + "(" + this.days[0] + ")", '', '', '周二' + "(" + this.days[1] + ")", '', '', '周三' + "(" + this.days[2] + ")", '', '', '周四' + "(" + this.days[3] + ")", '', '', '周五' + "(" + this.days[4] + ")", '', '', '周六' + "(" + this.days[5] + ")", '', '', '周日' + "(" + this.days[6] + ")", '', '' ]]
1162
             header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
1167
             header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
1163
             merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1']
1168
             merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1']
1164
           }
1169
           }
1165
 
1170
 
1166
-          var data = []
1171
+          
1167
 
1172
 
1173
+          var data = []
1174
+          console.log("this.tableList=--------------------",this.tableList)
1168
           this.tableList.map(item => {
1175
           this.tableList.map(item => {
1169
             data.push(Object.values(item))
1176
             data.push(Object.values(item))
1170
           })
1177
           })
1171
 
1178
 
1172
           const filename = '排班模版'
1179
           const filename = '排班模版'
1173
 
1180
 
1174
-          console.log('333333333',data),
1181
+          console.log('333333333',data)
1182
+
1183
+          // return false
1175
           excel.export_json_to_excel3({
1184
           excel.export_json_to_excel3({
1176
 
1185
 
1177
             multiHeader,
1186
             multiHeader,
3933
         partition_id: this.partition_id,
3942
         partition_id: this.partition_id,
3934
         schedule_type: this.schedule_type
3943
         schedule_type: this.schedule_type
3935
       }
3944
       }
3936
-      // console.log("params32323232323223", params)
3945
+      console.log("日本params32323232323223", params)
3937
       getThreeWeekList(params).then(response => {
3946
       getThreeWeekList(params).then(response => {
3938
         if (response.data.state == 1) {
3947
         if (response.data.state == 1) {
3939
           var partitions = response.data.data.partitions
3948
           var partitions = response.data.data.partitions
4239
 
4248
 
4240
           var lastend = this.getTimestamp(last_end) - 28800
4249
           var lastend = this.getTimestamp(last_end) - 28800
4241
           console.log("week",this.export_type)
4250
           console.log("week",this.export_type)
4251
+          console.log("activeName",this.activeName)
4242
           if (this.export_type == 0) {
4252
           if (this.export_type == 0) {
4243
             for (let i = 0; i < scheduleList.length; i++) {
4253
             for (let i = 0; i < scheduleList.length; i++) {
4254
+              
4244
               if(this.activeName=='thisWeek'){
4255
               if(this.activeName=='thisWeek'){
4245
                 if (scheduleList[i].schedule_date >= start && scheduleList[i].schedule_date <= end) {
4256
                 if (scheduleList[i].schedule_date >= start && scheduleList[i].schedule_date <= end) {
4246
                  var weekday= this.changeWeekType(scheduleList[i].schedule_week)
4257
                  var weekday= this.changeWeekType(scheduleList[i].schedule_week)
4258
+                 console.log("---------------",this.schedule_type)
4259
+                 console.log("partition_id------",this.partition_id)
4260
+                 console.log("week_date----",this.week_date)
4247
                  if(this.schedule_type!=0 || this.partition_id != 0 || this.week_date !=''){
4261
                  if(this.schedule_type!=0 || this.partition_id != 0 || this.week_date !=''){
4248
                     if(this.schedule_type==scheduleList[i].schedule_type &&
4262
                     if(this.schedule_type==scheduleList[i].schedule_type &&
4249
                       this.partition_id==scheduleList[i].partition_id &&weekday==this.week_date){
4263
                       this.partition_id==scheduleList[i].partition_id &&weekday==this.week_date){
4288
                       week.push(scheduleList[i])
4302
                       week.push(scheduleList[i])
4289
                     }
4303
                     }
4290
                   }else{
4304
                   }else{
4305
+                    console.log("999999999999999999999999",week)
4291
                     week.push(scheduleList[i])
4306
                     week.push(scheduleList[i])
4292
                   }
4307
                   }
4293
                 }
4308
                 }
4305
                 }
4320
                 }
4306
               }
4321
               }
4307
             }
4322
             }
4323
+
4324
+            // week.push(scheduleList[i])
4308
           }
4325
           }
4309
 
4326
 
4310
           if (this.export_type == 1) {
4327
           if (this.export_type == 1) {
4311
             week = scheduleList
4328
             week = scheduleList
4312
           }
4329
           }
4313
-          console.log("list")
4314
-          console.log(list)
4315
-          console.log("week")
4316
-          console.log(week)
4317
-          console.log(week2)
4318
-
4330
+          // console.log("list")
4331
+          // console.log(list)
4332
+          // console.log("week")
4333
+          // console.log(week)
4334
+          // console.log(week2)
4335
+           
4336
+          console.log("weiiiiiiiiiiiiiiiiiiiiiiiiiiiiii",week)
4319
           if (week.length > 0) {
4337
           if (week.length > 0) {
4320
             // console.log('qqqqqqqqq',list);
4338
             // console.log('qqqqqqqqq',list);
4321
             // console.log('wwwwwwwww',week);
4339
             // console.log('wwwwwwwww',week);
4808
               }
4826
               }
4809
             }
4827
             }
4810
           }
4828
           }
4811
-          console.log('xxxxxx',list);
4829
+          console.log('德国=================================xxxxxx',list);
4812
           this.tableList = list
4830
           this.tableList = list
4813
           this.start_time = ""
4831
           this.start_time = ""
4814
           this.end_time = ""
4832
           this.end_time = ""
4817
     },
4835
     },
4818
 
4836
 
4819
     changePartition(val) {
4837
     changePartition(val) {
4820
-      console.log('666666',val);
4838
+      console.log('中国----------------------------666666',val ==0);
4821
       this.partition_id = val
4839
       this.partition_id = val
4822
       if(val==0){
4840
       if(val==0){
4823
-        // console.log('llllll');
4841
+         console.log('llllll');
4824
           this.getThreeWeekList()
4842
           this.getThreeWeekList()
4825
       }else{
4843
       }else{
4826
         // console.log('oooooo');
4844
         // console.log('oooooo');

+ 2 - 0
src/xt_pages/workforce/components/tableData.vue View File

3212
 
3212
 
3213
           });
3213
           });
3214
 
3214
 
3215
+          console.log("source_scheduleZone---------------",this.source_scheduleZone)
3216
+
3215
           this.source_scheduleZone = this.scheduleZone
3217
           this.source_scheduleZone = this.scheduleZone
3216
 
3218
 
3217
         } else {
3219
         } else {