Ver código fonte

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

see999 3 anos atrás
pai
commit
26dbb173be

+ 1 - 0
src/api/dialysis.js Ver arquivo

@@ -208,6 +208,7 @@ export function postAssessmentBeforeDislysis(params) {
208 208
 }
209 209
 
210 210
 export function postTreatmentsummary(params) {
211
+  console.log('param223322323', params)
211 212
   return request({
212 213
     url: '/api/dialysis/treatmentsummary',
213 214
     method: 'Post',

+ 8 - 0
src/api/schedule.js Ver arquivo

@@ -237,3 +237,11 @@ export function synchroSchedule(params) {
237 237
     params: params
238 238
   })
239 239
 }
240
+
241
+export function getPatientScheduleTemplate(params) {
242
+  return request({
243
+    url: '/api/schedule/getpatientscheduletemplate',
244
+    method: 'get',
245
+    params: params
246
+  })
247
+}

+ 1 - 1
src/store/modules/globalConfig.js Ver arquivo

@@ -496,7 +496,7 @@ const global_config = {
496 496
       // 17: { id: 17, name: 'HDF前置换', dialysis_duration: 1, replacement_way: 1, hemodialysis_machine: 2, blood_filter: 1, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 },
497 497
       // 18: { id: 18, name: 'HDF后置换', dialysis_duration: 1, replacement_way: 1, hemodialysis_machine: 2, blood_filter: 1, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 }
498 498
       20: {
499
-        id: 19,
499
+        id: 20,
500 500
         name: 'UF',
501 501
         dialysis_duration: 1,
502 502
         replacement_way: 1,

+ 54 - 91
src/xt_pages/data/components/drugs.vue Ver arquivo

@@ -47,7 +47,7 @@
47 47
     <div style="display:flex; align-items:center;margin-bottom:10px;">
48 48
         <!--<el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 ||  this.$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>-->
49 49
         <el-button type="primary" size="small"  @click="GDYBBatchPutOnRecord()">批量备案</el-button>
50
-        <el-link target="_blank" href="https://kuyi.shengws.com/drugTemplate.xlsx" :underline="false"
50
+        <el-link target="_blank" href="https://kuyi.shengws.com/drugsTemplate.xlsx" :underline="false"
51 51
                  style="margin-left:15px">
52 52
           <el-button
53 53
             class="filter-item"
@@ -89,16 +89,7 @@
89 89
           </div>
90 90
         </template>
91 91
       </el-table-column>
92
-      <!-- <el-table-column prop="date" label="最大单位" width="60" align="center">
93
-        <template slot-scope="scope">
94
-          <div>{{scope.row.max_unit}}</div>
95
-        </template>
96
-      </el-table-column>
97
-      <el-table-column label="最小单位" width="60" align="center">
98
-        <template slot-scope="scope">
99
-          <div>{{scope.row.min_unit}}</div>
100
-        </template>
101
-      </el-table-column> -->
92
+  
102 93
       <el-table-column prop="date" label="进货价" width="100" align="center">
103 94
         <template slot-scope="scope">
104 95
           <div>{{scope.row.last_price}}</div>
@@ -937,17 +928,17 @@
937 928
 
938 929
           var isHasDrugName = header.includes('*药品名称');
939 930
           console.log("isHasDrugName",isHasDrugName)
940
-          var isHasUnval = header.includes('*拆零');
941
-          console.log("isHasUnval",isHasUnval)
942
-          var isHasMinUnit= header.includes('*拆零单位');
943
-           console.log("isHasMinUnit",isHasMinUnit)
944 931
           var isHasDosage =  header.includes('*剂量')
945 932
           console.log("isHasDosage",isHasDosage)
946
-
947 933
           var isHasMaxUnit= header.includes('*剂量单位');
948 934
           console.log("isHasMaxUnit",isHasMaxUnit)
935
+            var isHasUnval = header.includes('*拆零');
936
+          console.log("isHasUnval",isHasUnval)
937
+          var isHasMinUnit= header.includes('*拆零单位');
938
+           console.log("isHasMinUnit",isHasMinUnit)
949 939
           var isHasPackingUnit = header.includes('*包装单位')
950 940
           console.log("isHasPackingUnit",isHasPackingUnit)
941
+        
951 942
           var isHasDrugType =  header.includes('*药品类型');
952 943
           console.log("isHasDrugType",isHasDrugType)
953 944
           var isHasDrugStockLimit =  header.includes('*库存警戒');
@@ -956,14 +947,14 @@
956 947
           console.log("isHasDrugOriginPlace",isHasDrugOriginPlace)
957 948
           var isHasDrugDosageForm = header.includes('*药品剂型');
958 949
           console.log("isHasDrugDosageForm",isHasDrugDosageForm)
959
-
960
-          var isHasUnitMatrixing= header.includes("*单位换算");
961
-          console.log("isHasUnitMatrixing",isHasUnitMatrixing)
950
+         
962 951
           var isHasRetailPrice = header.includes('*拆零零售价');
963 952
           console.log("isHasRetailPrice",isHasRetailPrice)
964
-          var isHasLastPrice = header.includes('*进货价');
965 953
           var isHasPackingPrice= header.includes('*包装零售价');
966
-         console.log("isHasLastPrice",isHasLastPrice)
954
+          console.log("isHasLastPrice",isHasPackingPrice)
955
+          var isHasLastPrice = header.includes('*进货价');
956
+          console.log("进货价",isHasLastPrice)
957
+          
967 958
           var isHasDrugClassifye = header.includes('*药物分类');
968 959
          console.log("isHasDrugClassifye",isHasDrugClassifye)
969 960
          var isHasManufacturer = header.includes('*生产厂商');
@@ -972,8 +963,9 @@
972 963
         console.log("isHasDrugDose",isHasDrugDose)
973 964
          var isDrugDoseUnit = header.includes('*默认单次用量单位');
974 965
          console.log("isDrugDoseUnit",isDrugDoseUnit)
975
-          if (!(isHasDrugName  && isHasUnval && isHasDrugType && isHasDrugStockLimit && isHasDrugOriginPlace && isHasDrugDosageForm && isHasMaxUnit &&  isHasMinUnit && isHasUnitMatrixing &&  isHasRetailPrice && isHasLastPrice && isHasPackingPrice && isHasDrugClassifye && isHasManufacturer && isHasDrugDose && isDrugDoseUnit && isHasDosage && isHasPackingUnit)) {
976
-            console.log("分区222222222222222222222222222222")
966
+          if (!(isHasDrugName  && isHasDosage && isHasMaxUnit && isHasUnval && isHasMinUnit && isHasPackingUnit && isHasDrugType &&  isHasDrugStockLimit && isHasDrugOriginPlace &&
967
+          isHasDrugDosageForm &&  isHasRetailPrice && isHasPackingPrice && isHasLastPrice && isHasDrugClassifye && isHasManufacturer && isHasDrugDose && isDrugDoseUnit)) {
968
+           
977 969
             this.dialogVisible = true;
978 970
             return
979 971
           }
@@ -996,74 +988,49 @@
996 988
            }
997 989
 
998 990
 
999
-          if (results[i]['*拆零'] === undefined) {
1000
-                obj['min_number'] = ''
1001
-              } else {
1002
-           if (key == '*拆零') {
1003
-               obj['min_number'] = results[i][key].replace(/\s/g,"")
1004
-              }
1005
-           }
1006
-
1007
-           if (results[i]['*拆零单位'] === undefined) {
1008
-                obj['min_unit'] = ''
1009
-              } else {
1010
-           if (key == '*拆零单位') {
1011
-               obj['min_unit'] = results[i][key].replace(/\s/g,"")
1012
-              }
1013
-           }
1014
-
1015
-
1016
-            if (results[i]['*剂量'] === undefined) {
1017
-                obj['dosage'] = ''
991
+          if (results[i]['*剂量'] === undefined) {
992
+                obj['dose'] = ''
1018 993
               } else {
1019 994
             if (key == '*剂量') {
1020
-                obj['dosage'] = results[i][key].replace(/\s/g,"")
995
+                obj['dose'] = results[i][key].replace(/\s/g,"")
1021 996
               }
1022 997
            }
1023 998
 
1024 999
            if (results[i]['*剂量单位'] === undefined) {
1025
-                obj['max_unit'] = ''
1000
+                obj['dose_unit'] = ''
1026 1001
               } else {
1027 1002
            if (key == '*剂量单位') {
1028
-               obj['max_unit'] = results[i][key].replace(/\s/g,"")
1029
-              }
1030
-           }
1031
-
1032
-            if (results[i]['*包装单位'] === undefined) {
1033
-                obj['packing_unit'] = ''
1034
-              } else {
1035
-           if (key == '*包装单位') {
1036
-               obj['packing_unit'] = results[i][key].replace(/\s/g,"")
1003
+               obj['dose_unit'] = results[i][key].replace(/\s/g,"")
1037 1004
               }
1038 1005
            }
1039 1006
 
1040 1007
 
1041
-          if (results[i]['默认给药途径'] === undefined) {
1042
-                obj['delivery_way'] = ''
1008
+  
1009
+          if (results[i]['*拆零'] === undefined) {
1010
+                obj['min_number'] = ''
1043 1011
               } else {
1044
-           if (key == '默认给药途径') {
1045
-               obj['delivery_way'] = results[i][key].replace(/\s/g,"")
1012
+           if (key == '*拆零') {
1013
+               obj['min_number'] = results[i][key].replace(/\s/g,"")
1046 1014
               }
1047 1015
            }
1048 1016
 
1049
-           if (results[i]['默认执行频率'] === undefined) {
1050
-                obj['execution_frequency'] = ''
1017
+           if (results[i]['*拆零单位'] === undefined) {
1018
+                obj['min_unit'] = ''
1051 1019
               } else {
1052
-           if (key == '默认执行频率') {
1053
-               obj['execution_frequency'] = results[i][key].replace(/\s/g,"")
1020
+           if (key == '*拆零单位') {
1021
+               obj['min_unit'] = results[i][key].replace(/\s/g,"")
1054 1022
               }
1055 1023
            }
1056 1024
 
1057
-          if (results[i]['默认开药天数'] === undefined) {
1058
-                obj['drug_day'] = ''
1025
+
1026
+            if (results[i]['*包装单位'] === undefined) {
1027
+                obj['max_unit'] = ''
1059 1028
               } else {
1060
-           if (key == '默认开药天数') {
1061
-               obj['drug_day'] = results[i][key].replace(/\s/g,"")
1029
+           if (key == '*包装单位') {
1030
+               obj['max_unit'] = results[i][key].replace(/\s/g,"")
1062 1031
               }
1063 1032
            }
1064 1033
 
1065
-
1066
-
1067 1034
             if (results[i]['*药品类型'] === undefined) {
1068 1035
                 obj['drug_type'] = ''
1069 1036
               } else {
@@ -1099,28 +1066,6 @@
1099 1066
            }
1100 1067
 
1101 1068
 
1102
-            if (results[i]['*医保等级'] === undefined) {
1103
-                obj['medical_insurance_level'] = ''
1104
-              } else {
1105
-           if (key == '*医保等级') {
1106
-               obj['medical_insurance_level'] = results[i][key].replace(/\s/g,"")
1107
-              }
1108
-           }
1109
-
1110
-
1111
-
1112
-
1113
-            if (results[i]['*单位换算'] === undefined) {
1114
-                obj['unit_matrixing'] = ''
1115
-              } else {
1116
-           if (key == '*单位换算') {
1117
-               obj['unit_matrixing'] = results[i][key].replace(/\s/g,"")
1118
-              }
1119
-           }
1120
-
1121
-
1122
-
1123
-
1124 1069
           if (results[i]['*拆零零售价'] === undefined) {
1125 1070
                 obj['retail_price'] = ''
1126 1071
               } else {
@@ -1195,6 +1140,22 @@
1195 1140
               }
1196 1141
            }
1197 1142
 
1143
+            if (results[i]['默认给药途径'] === undefined) {
1144
+                obj['delivery_way'] = ''
1145
+              } else {
1146
+            if (key == '经销商') {
1147
+                obj['delivery_way'] = results[i][key].replace(/\s/g,"")
1148
+              }
1149
+           }
1150
+
1151
+              if (results[i]['默认执行频率'] === undefined) {
1152
+                obj['execution_frequency'] = ''
1153
+              } else {
1154
+            if (key == '默认执行频率') {
1155
+                obj['execution_frequency'] = results[i][key].replace(/\s/g,"")
1156
+              }
1157
+           }
1158
+
1198 1159
            if (results[i]['限制性用药'] === undefined) {
1199 1160
                 obj['lmt_used_flag'] = ''
1200 1161
               } else {
@@ -1415,12 +1376,14 @@
1415 1376
 
1416 1377
         }
1417 1378
        }
1418
-
1379
+       for(let i=0;i<tableData.length;i++){
1380
+          tableData[i].dose = parseInt(tableData[i].dose)
1381
+       }
1419 1382
        let params = {
1420 1383
           'drugs':tableData
1421 1384
         };
1422 1385
         console.log("params222222222",params)
1423
-
1386
+        
1424 1387
         postDrugInformation(params).then(response=>{
1425 1388
            if(response.data.state == 1){
1426 1389
              var msg =  response.data.data.msg;

+ 4 - 6
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue Ver arquivo

@@ -184,11 +184,11 @@ export default {
184 184
     show(record,date) {
185 185
       this.isVisibility = true
186 186
       this.record = record
187
-      console.log(111111111111111,date)
187
+      
188 188
       if(date){
189 189
         this.date = date
190 190
         this.record_date = uParseTime(this.date, '{y}-{m}-{d}')
191
-        console.log(22222222222,this.record_date)
191
+       
192 192
       }
193 193
       
194 194
       console.log('治疗小结', record)
@@ -320,16 +320,14 @@ export default {
320 320
       })
321 321
     },
322 322
     getPermission() {
323
-      request
324
-        .get('/api/func_per/get', {
323
+      request.get('/api/func_per/get', {
325 324
           params: {
326 325
             create_url: '/api/dialysis/treatmentsummary?mode=1',
327 326
             modify_url: '/api/dialysis/treatmentsummary?mode=2',
328 327
             modify_other_url: '/api/dialysis/treatmentsummary?mode=3',
329 328
             module: 9
330 329
           }
331
-        })
332
-        .then(res => {
330
+        }).then(res => {
333 331
           if (res.data.state == 0) {
334 332
             this.hasPermission = false
335 333
           } else if (res.data.state == 1) {

+ 1 - 0
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Ver arquivo

@@ -535,6 +535,7 @@ export default {
535 535
             console.log('project_config',)
536 536
             if(project_config.is_open == 1){
537 537
               this.project = resp.data.project
538
+              console.log( this.project)
538 539
               let projectArr = []
539 540
               this.project.map(item => {
540 541
                 resp.data.hisAdvices.map(it => {

+ 16 - 12
src/xt_pages/hospitalStation/components/deskPrescription.vue Ver arquivo

@@ -286,10 +286,10 @@
286 286
                                         </el-table-column>
287 287
                                         <el-table-column label="库存" width="60">
288 288
                                             <template slot-scope="scope">
289
-                         <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 ">
290
-                             <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
291
-                             <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
292
-                          </span>
289
+                                          <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 ">
290
+                                              <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
291
+                                              <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
292
+                                            </span>
293 293
                                                 <span v-else> {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}</span>
294 294
                                             </template>
295 295
                                         </el-table-column>
@@ -382,9 +382,9 @@
382 382
                                         </el-table-column>
383 383
                                         <el-table-column label="库存" width="40">
384 384
                                             <template slot-scope="scope">
385
-                         <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10088">
386
-                            {{scope.row.stock_count}}
387
-                        </span>
385
+                                                <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10088">
386
+                                                    {{scope.row.stock_count}}
387
+                                                </span>
388 388
                                                 <span v-else> {{ scope.row.total }}</span>
389 389
                                             </template>
390 390
                                         </el-table-column>
@@ -776,7 +776,7 @@
776 776
             if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
777 777
 
778 778
               if (project_month_prescriptions.project[a].type == 2) {
779
-                obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
779
+                obj['statistical_classification'] = ''
780 780
                 obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
781 781
                 obj['project_name'] = project_month_prescriptions.project[a].project.project_name
782 782
                 obj['project'] = project_month_prescriptions.project[a].project
@@ -1111,13 +1111,15 @@
1111 1111
                     }
1112 1112
 
1113 1113
                     if (prescription.project[b].type == 2) {
1114
-                      obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1114
+                      obj['statistical_classification'] = prescription.project[b].team.project_team
1115 1115
                       obj['medical_code'] = prescription.project[b].project.medical_code
1116 1116
                       obj['project_name'] = prescription.project[b].project.project_name
1117 1117
                       obj['project'] = prescription.project[b].project
1118 1118
 
1119 1119
                     } else if (prescription.project[b].type == 3) {
1120
-                      obj['statistical_classification'] = ''
1120
+                      if(prescription.project[b].team_id > 0){
1121
+                        obj['statistical_classification'] = prescription.project[b].team.project_team
1122
+                      }
1121 1123
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1122 1124
                       obj['project_name'] = prescription.project[b].good_info.good_name
1123 1125
                       obj['good_info'] = prescription.project[b].good_info
@@ -1231,13 +1233,15 @@
1231 1233
                     }
1232 1234
 
1233 1235
                     if (prescription.project[b].type == 2) {
1234
-                      obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1236
+                      obj['statistical_classification'] = prescription.project[b].team.project_team
1235 1237
                       obj['medical_code'] = prescription.project[b].project.medical_code
1236 1238
                       obj['project_name'] = prescription.project[b].project.project_name
1237 1239
                       obj['project'] = prescription.project[b].project
1238 1240
 
1239 1241
                     } else if (prescription.project[b].type == 3) {
1240
-                      obj['statistical_classification'] = ''
1242
+                      if(prescription.project[b].team_id > 0){
1243
+                        obj['statistical_classification'] = prescription.project[b].team.project_team
1244
+                      }
1241 1245
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1242 1246
                       obj['project_name'] = prescription.project[b].good_info.good_name
1243 1247
                       obj['good_info'] = prescription.project[b].good_info

+ 1 - 1
src/xt_pages/hospitalStation/components/prescriptionTable.vue Ver arquivo

@@ -137,7 +137,7 @@
137 137
       </el-table-column>
138 138
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
139 139
         <template slot-scope="scope">{{scope.row.type ==
140
-          2?getGroup(scope.row.statistical_classification):'耗材'}}
140
+          2?scope.row.statistical_classification:scope.row.statistical_classification}}
141 141
         </template>
142 142
       </el-table-column>
143 143
       <el-table-column align="center" prop="single_dose" width="80" label="单次用量">

+ 45 - 33
src/xt_pages/hospitalStation/doctorDesk.vue Ver arquivo

@@ -107,8 +107,11 @@
107 107
                 </div>
108 108
                 <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
109 109
                 <!--v-if="titleType == '处方'" style="flex:1;"></desk-prescription>-->
110
-                <desk-prescription v-on:setData="setData" :diagnoses="diagnoses" :loading="isloading"
111
-                                   :sick="sick" :record_date="record_date"
110
+                <desk-prescription v-on:setData="setData"
111
+                                   :diagnoses="diagnoses"
112
+                                   :loading="isloading"
113
+                                   :sick="sick"
114
+                                   :record_date="record_date"
112 115
                                    :drugs="drugs"
113 116
                                    :allDrugs="allDrugs"
114 117
                                    :advices_template="advices_template"
@@ -747,13 +750,14 @@
747 750
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
748 751
             if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
749 752
               if (project_month_prescriptions.project[a].type == 2) {
750
-                obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
753
+                obj['statistical_classification'] = ''
751 754
                 obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
752 755
                 obj['project_name'] = project_month_prescriptions.project[a].project.project_name
753 756
                 obj['project'] = project_month_prescriptions.project[a].project
754 757
 
755 758
               } else if (project_month_prescriptions.project[a].type == 3) {
756 759
                 obj['statistical_classification'] = ''
760
+
757 761
                 obj['medical_code'] = project_month_prescriptions.project[a].good_info.medical_insurance_number
758 762
                 obj['project_name'] = project_month_prescriptions.project[a].good_info.good_name
759 763
                 obj['good_info'] = project_month_prescriptions.project[a].good_info
@@ -1193,7 +1197,6 @@
1193 1197
                     id: prescription.project[b].id,
1194 1198
                     project_id: prescription.project[b].project_id,
1195 1199
                     project_name: prescription.project[b].project.project_name,
1196
-                    statistical_classification: prescription.project[b].project.statistical_classification,
1197 1200
                     single_dose: prescription.project[b].single_dose,
1198 1201
                     delivery_way: prescription.project[b].delivery_way,
1199 1202
                     execution_frequency: prescription.project[b].execution_frequency,
@@ -1208,13 +1211,18 @@
1208 1211
                   }
1209 1212
 
1210 1213
                   if (prescription.project[b].type == 2) {
1211
-                    obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1214
+                    console.log("prescription.project[b].team.project_team:")
1215
+                    console.log(prescription.project[b].team.project_team)
1216
+                    obj['statistical_classification'] = prescription.project[b].team.project_team
1212 1217
                     obj['medical_code'] = prescription.project[b].project.medical_code
1213 1218
                     obj['project_name'] = prescription.project[b].project.project_name
1214 1219
                     obj['project'] = prescription.project[b].project
1215 1220
 
1216 1221
                   } else if (prescription.project[b].type == 3) {
1217
-                    obj['statistical_classification'] = ''
1222
+                    if(prescription.project[b].team_id > 0){
1223
+                      obj['statistical_classification'] = prescription.project[b].team.project_team
1224
+
1225
+                    }
1218 1226
                     obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1219 1227
                     obj['project_name'] = prescription.project[b].good_info.good_name
1220 1228
                     obj['good_info'] = prescription.project[b].good_info
@@ -1328,7 +1336,6 @@
1328 1336
                       id: 0,
1329 1337
                       project_id: prescription.project[b].project_id,
1330 1338
                       project_name: prescription.project[b].project.project_name,
1331
-                      statistical_classification: prescription.project[b].project.statistical_classification,
1332 1339
                       single_dose: prescription.project[b].single_dose,
1333 1340
                       delivery_way: prescription.project[b].delivery_way,
1334 1341
                       execution_frequency: prescription.project[b].execution_frequency,
@@ -1342,7 +1349,7 @@
1342 1349
                     }
1343 1350
 
1344 1351
                     if (prescription.project[b].type == 2) {
1345
-                      obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1352
+                      obj['statistical_classification'] = ""
1346 1353
                       obj['medical_code'] = prescription.project[b].project.medical_code
1347 1354
                       obj['project_name'] = prescription.project[b].project.project_name
1348 1355
                       obj['price'] = prescription.project[b].project.price
@@ -1587,7 +1594,6 @@
1587 1594
                           id: prescription.project[b].id,
1588 1595
                           project_id: prescription.project[b].project_id,
1589 1596
                           project_name: prescription.project[b].project.project_name,
1590
-                          statistical_classification: prescription.project[b].project.statistical_classification,
1591 1597
                           single_dose: prescription.project[b].single_dose,
1592 1598
                           delivery_way: prescription.project[b].delivery_way,
1593 1599
                           execution_frequency: prescription.project[b].execution_frequency,
@@ -1601,13 +1607,16 @@
1601 1607
                         }
1602 1608
 
1603 1609
                         if (prescription.project[b].type == 2) {
1604
-                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1610
+                          obj['statistical_classification'] = prescription.project[b].team.project_team
1605 1611
                           obj['medical_code'] = prescription.project[b].project.medical_code
1606 1612
                           obj['project_name'] = prescription.project[b].project.project_name
1607 1613
                           obj['project'] = prescription.project[b].project
1608 1614
 
1609 1615
                         } else if (prescription.project[b].type == 3) {
1610
-                          obj['statistical_classification'] = ''
1616
+                          if(prescription.project[b].team_id > 0){
1617
+                            obj['statistical_classification'] = prescription.project[b].team.project_team
1618
+
1619
+                          }
1611 1620
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1612 1621
                           obj['project_name'] = prescription.project[b].good_info.good_name
1613 1622
                           obj['good_info'] = prescription.project[b].good_info
@@ -1723,7 +1732,6 @@
1723 1732
                             id: 0,
1724 1733
                             project_id: prescription.project[b].project_id,
1725 1734
                             project_name: prescription.project[b].project.project_name,
1726
-                            statistical_classification: prescription.project[b].project.statistical_classification,
1727 1735
                             single_dose: prescription.project[b].single_dose,
1728 1736
                             delivery_way: prescription.project[b].delivery_way,
1729 1737
                             execution_frequency: prescription.project[b].execution_frequency,
@@ -1737,7 +1745,7 @@
1737 1745
                           }
1738 1746
 
1739 1747
                           if (prescription.project[b].type == 2) {
1740
-                            obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1748
+                            obj['statistical_classification'] = ""
1741 1749
                             obj['medical_code'] = prescription.project[b].project.medical_code
1742 1750
                             obj['project_name'] = prescription.project[b].project.project_name
1743 1751
                             obj['price'] = prescription.project[b].project.price
@@ -2063,7 +2071,6 @@
2063 2071
                           id: prescription.project[b].id,
2064 2072
                           project_id: prescription.project[b].project_id,
2065 2073
                           project_name: prescription.project[b].project.project_name,
2066
-                          statistical_classification: prescription.project[b].project.statistical_classification,
2067 2074
                           single_dose: prescription.project[b].single_dose,
2068 2075
                           delivery_way: prescription.project[b].delivery_way,
2069 2076
                           execution_frequency: prescription.project[b].execution_frequency,
@@ -2077,13 +2084,16 @@
2077 2084
                         }
2078 2085
 
2079 2086
                         if (prescription.project[b].type == 2) {
2080
-                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2087
+                          obj['statistical_classification'] = prescription.project[b].team.project_team
2081 2088
                           obj['medical_code'] = prescription.project[b].project.medical_code
2082 2089
                           obj['project_name'] = prescription.project[b].project.project_name
2083 2090
                           obj['project'] = prescription.project[b].project
2084 2091
 
2085 2092
                         } else if (prescription.project[b].type == 3) {
2086
-                          obj['statistical_classification'] = ''
2093
+                          if(prescription.project[b].team_id > 0){
2094
+                            obj['statistical_classification'] = prescription.project[b].team.project_team
2095
+
2096
+                          }
2087 2097
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2088 2098
                           obj['project_name'] = prescription.project[b].good_info.good_name
2089 2099
                           obj['good_info'] = prescription.project[b].good_info
@@ -2190,7 +2200,6 @@
2190 2200
                             id: 0,
2191 2201
                             project_id: prescription.project[b].project_id,
2192 2202
                             project_name: prescription.project[b].project.project_name,
2193
-                            statistical_classification: prescription.project[b].project.statistical_classification,
2194 2203
                             single_dose: prescription.project[b].single_dose,
2195 2204
                             delivery_way: prescription.project[b].delivery_way,
2196 2205
                             execution_frequency: prescription.project[b].execution_frequency,
@@ -2203,7 +2212,7 @@
2203 2212
                           }
2204 2213
 
2205 2214
                           if (prescription.project[b].type == 2) {
2206
-                            obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2215
+                            obj['statistical_classification'] =""
2207 2216
                             obj['medical_code'] = prescription.project[b].project.medical_code
2208 2217
                             obj['project_name'] = prescription.project[b].project.project_name
2209 2218
                             obj['price'] = prescription.project[b].project.price
@@ -2519,7 +2528,6 @@
2519 2528
                         id: prescription.project[b].id,
2520 2529
                         project_id: prescription.project[b].project_id,
2521 2530
                         project_name: prescription.project[b].project.project_name,
2522
-                        statistical_classification: prescription.project[b].project.statistical_classification,
2523 2531
                         single_dose: prescription.project[b].single_dose,
2524 2532
                         delivery_way: prescription.project[b].delivery_way,
2525 2533
                         execution_frequency: prescription.project[b].execution_frequency,
@@ -2533,13 +2541,16 @@
2533 2541
                       }
2534 2542
 
2535 2543
                       if (prescription.project[b].type == 2) {
2536
-                        obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2544
+                        obj['statistical_classification'] = prescription.project[b].team.project_team
2537 2545
                         obj['medical_code'] = prescription.project[b].project.medical_code
2538 2546
                         obj['project_name'] = prescription.project[b].project.project_name
2539 2547
                         obj['project'] = prescription.project[b].project
2540 2548
 
2541 2549
                       } else if (prescription.project[b].type == 3) {
2542
-                        obj['statistical_classification'] = ''
2550
+                        if(prescription.project[b].team_id > 0){
2551
+                          obj['statistical_classification'] = prescription.project[b].team.project_team
2552
+
2553
+                        }
2543 2554
                         obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2544 2555
                         obj['project_name'] = prescription.project[b].good_info.good_name
2545 2556
                         obj['good_info'] = prescription.project[b].good_info
@@ -2645,7 +2656,6 @@
2645 2656
                           id: 0,
2646 2657
                           project_id: prescription.project[b].project_id,
2647 2658
                           project_name: prescription.project[b].project.project_name,
2648
-                          statistical_classification: prescription.project[b].project.statistical_classification,
2649 2659
                           single_dose: prescription.project[b].single_dose,
2650 2660
                           delivery_way: prescription.project[b].delivery_way,
2651 2661
                           execution_frequency: prescription.project[b].execution_frequency,
@@ -2658,7 +2668,7 @@
2658 2668
                         }
2659 2669
 
2660 2670
                         if (prescription.project[b].type == 2) {
2661
-                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2671
+                          obj['statistical_classification'] = ''
2662 2672
                           obj['medical_code'] = prescription.project[b].project.medical_code
2663 2673
                           obj['project_name'] = prescription.project[b].project.project_name
2664 2674
                           obj['price'] = prescription.project[b].project.price
@@ -3034,7 +3044,6 @@
3034 3044
                           id: prescription.project[b].id,
3035 3045
                           project_id: prescription.project[b].project_id,
3036 3046
                           project_name: prescription.project[b].project.project_name,
3037
-                          statistical_classification: prescription.project[b].project.statistical_classification,
3038 3047
                           single_dose: prescription.project[b].single_dose,
3039 3048
                           delivery_way: prescription.project[b].delivery_way,
3040 3049
                           execution_frequency: prescription.project[b].execution_frequency,
@@ -3048,13 +3057,16 @@
3048 3057
                         }
3049 3058
 
3050 3059
                         if (prescription.project[b].type == 2) {
3051
-                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3060
+                          obj['statistical_classification'] = prescription.project[b].team.project_team
3052 3061
                           obj['medical_code'] = prescription.project[b].project.medical_code
3053 3062
                           obj['project_name'] = prescription.project[b].project.project_name
3054 3063
                           obj['project'] = prescription.project[b].project
3055 3064
 
3056 3065
                         } else if (prescription.project[b].type == 3) {
3057
-                          obj['statistical_classification'] = ''
3066
+                          if(prescription.project[b].team_id > 0){
3067
+                            obj['statistical_classification'] = prescription.project[b].team.project_team
3068
+
3069
+                          }
3058 3070
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3059 3071
                           obj['project_name'] = prescription.project[b].good_info.good_name
3060 3072
                           obj['good_info'] = prescription.project[b].good_info
@@ -3167,7 +3179,6 @@
3167 3179
                             id: 0,
3168 3180
                             project_id: prescription.project[b].project_id,
3169 3181
                             project_name: prescription.project[b].project.project_name,
3170
-                            statistical_classification: prescription.project[b].project.statistical_classification,
3171 3182
                             single_dose: prescription.project[b].single_dose,
3172 3183
                             delivery_way: prescription.project[b].delivery_way,
3173 3184
                             execution_frequency: prescription.project[b].execution_frequency,
@@ -3180,7 +3191,7 @@
3180 3191
                           }
3181 3192
 
3182 3193
                           if (prescription.project[b].type == 2) {
3183
-                            obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3194
+                            obj['statistical_classification'] = ""
3184 3195
                             obj['medical_code'] = prescription.project[b].project.medical_code
3185 3196
                             obj['project_name'] = prescription.project[b].project.project_name
3186 3197
                             obj['price'] = prescription.project[b].project.price
@@ -3463,7 +3474,6 @@
3463 3474
                           id: prescription.project[b].id,
3464 3475
                           project_id: prescription.project[b].project_id,
3465 3476
                           project_name: prescription.project[b].project.project_name,
3466
-                          statistical_classification: prescription.project[b].project.statistical_classification,
3467 3477
                           single_dose: prescription.project[b].single_dose,
3468 3478
                           delivery_way: prescription.project[b].delivery_way,
3469 3479
                           execution_frequency: prescription.project[b].execution_frequency,
@@ -3477,13 +3487,16 @@
3477 3487
                         }
3478 3488
 
3479 3489
                         if (prescription.project[b].type == 2) {
3480
-                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3490
+                          obj['statistical_classification'] = prescription.project[b].team.project_team
3481 3491
                           obj['medical_code'] = prescription.project[b].project.medical_code
3482 3492
                           obj['project_name'] = prescription.project[b].project.project_name
3483 3493
                           obj['project'] = prescription.project[b].project
3484 3494
 
3485 3495
                         } else if (prescription.project[b].type == 3) {
3486
-                          obj['statistical_classification'] = ''
3496
+                          if(prescription.project[b].team_id > 0){
3497
+                            obj['statistical_classification'] = prescription.project[b].team.project_team
3498
+
3499
+                          }
3487 3500
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3488 3501
                           obj['project_name'] = prescription.project[b].good_info.good_name
3489 3502
                           obj['good_info'] = prescription.project[b].good_info
@@ -3597,7 +3610,6 @@
3597 3610
                             id: 0,
3598 3611
                             project_id: prescription.project[b].project_id,
3599 3612
                             project_name: prescription.project[b].project.project_name,
3600
-                            statistical_classification: prescription.project[b].project.statistical_classification,
3601 3613
                             single_dose: prescription.project[b].single_dose,
3602 3614
                             delivery_way: prescription.project[b].delivery_way,
3603 3615
                             execution_frequency: prescription.project[b].execution_frequency,
@@ -3610,7 +3622,7 @@
3610 3622
                           }
3611 3623
 
3612 3624
                           if (prescription.project[b].type == 2) {
3613
-                            obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3625
+                            obj['statistical_classification'] = ""
3614 3626
                             obj['medical_code'] = prescription.project[b].project.medical_code
3615 3627
                             obj['project_name'] = prescription.project[b].project.project_name
3616 3628
                             obj['price'] = prescription.project[b].project.price

+ 1 - 1
src/xt_pages/hospitalStation/template/printThree.vue Ver arquivo

@@ -31,7 +31,7 @@
31 31
               <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
32 32
               <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
33 33
               <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
34
-              <div style="margin-bottom: 10px;display:flex;">开具日期:<span class="under_line">{{getTime(item.pre_time) ? getTime(item.pre_time).split(' ')[0] : ''}}</span></div>
34
+              <div style="margin-bottom: 10px;display:flex;">开具日期:<span class="under_line">{{getTime(item.record_date) ? getTime(item.record_date).split(' ')[0] : ''}}</span></div>
35 35
               <!-- <div>地址:{{item.patient.home_address}}</div> -->
36 36
               <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
37 37
           </div>

+ 1 - 1
src/xt_pages/hospitalStation/treatTemplate/printTwo.vue Ver arquivo

@@ -29,7 +29,7 @@
29 29
             <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
30 30
             <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
31 31
             <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
32
-            <div style="margin-bottom: 10px;display:flex;">开具日期:<span class="under_line">{{getTime(item.pre_time) ? getTime(item.pre_time).split(' ')[0] : ''}}</span></div>
32
+            <div style="margin-bottom: 10px;display:flex;">开具日期:<span class="under_line">{{getTime(item.record_date) ? getTime(item.record_date).split(' ')[0] : ''}}</span></div>
33 33
             <!-- <div>地址:{{item.patient.home_address}}</div> -->
34 34
             <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
35 35
         </div>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Ver arquivo

@@ -486,7 +486,7 @@
486 486
   import { uParseTime } from '@/utils/tools'
487 487
   import NextOrLastPrescription from './nextOrLastPrescription'
488 488
   import CallPrescription from './callPrescription'
489
-  import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'
489
+  import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'    
490 490
 
491 491
   const moment = require('moment')
492 492
 

+ 3 - 3
src/xt_pages/outpatientDoctorStation/template/printFive.vue Ver arquivo

@@ -9,9 +9,9 @@
9 9
               <div><span style="font-size:20px;font-weight:bold;">No</span><div class="underLine" style="width:120px;"></div></div>
10 10
               <div style="display:flex;">
11 11
                   <div style="display: flex;flex-direction: column-reverse;">开具日期</div>
12
-                  <div class="underLine" style="width:60px;">{{getTime(item.ctime)?getTime(item.ctime).split(' ')[0].slice(0,4):""}}</div><div style="display: flex;flex-direction: column-reverse;">年</div>
13
-                  <div class="underLine" style="width:60px;">{{getTime(item.ctime)?getTime(item.ctime).split(' ')[0].slice(5,7):""}}</div><div style="display: flex;flex-direction: column-reverse;">月</div>
14
-                  <div class="underLine" style="width:60px;">{{getTime(item.ctime)?getTime(item.ctime).split(' ')[0].slice(8,11):""}}</div><div style="display: flex;flex-direction: column-reverse;">日</div>
12
+                  <div class="underLine" style="width:60px;">{{getTime(item.record_date)?getTime(item.record_date).split(' ')[0].slice(0,4):""}}</div><div style="display: flex;flex-direction: column-reverse;">年</div>
13
+                  <div class="underLine" style="width:60px;">{{getTime(item.record_date)?getTime(item.record_date).split(' ')[0].slice(5,7):""}}</div><div style="display: flex;flex-direction: column-reverse;">月</div>
14
+                  <div class="underLine" style="width:60px;">{{getTime(item.record_date)?getTime(item.record_date).split(' ')[0].slice(8,11):""}}</div><div style="display: flex;flex-direction: column-reverse;">日</div>
15 15
               </div>
16 16
           </div>
17 17
           <div class="basicCell">

+ 70 - 24
src/xt_pages/outpatientRecord/outpatientRecord.vue Ver arquivo

@@ -27,14 +27,7 @@
27 27
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
28 28
                       v-loading="patientLoading"
29 29
                       highlight-current-row>
30
-                <el-table-column
31
-                        prop="date"
32
-                        label="序号"
33
-                        width="60"
34
-                        align="center"
35
-                        type="index"
36
-                >
37
-                </el-table-column>
30
+
38 31
                 <el-table-column align="center" prop="name" label="流水号">
39 32
                     <template slot-scope="scope">{{scope.row.record.trt_dcla_detl_sn}}</template>
40 33
                 </el-table-column>
@@ -102,7 +95,7 @@
102 95
                     </template>
103 96
                 </el-table-column>
104 97
 
105
-                <el-table-column align="center" prop="name" label="疾病类型">
98
+                <el-table-column align="center" prop="name" label="疾病类型" width="100">
106 99
                     <template slot-scope="scope">
107 100
                         <el-select  filterable style="width:100%;" v-model="scope.row.record.sick_type" placeholder="请选择">
108 101
                             <el-option
@@ -121,16 +114,16 @@
121 114
                             <span @click="putOnRecord(1,scope.row)">备案</span>
122 115
                         </el-button>
123 116
 
124
-                        <el-button type="danger" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 1" >
125
-                            <span @click="putOnRecord(2,scope.row)">撤消</span>
126
-                        </el-button>
117
+<!--                        <el-button type="danger" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 1" >-->
118
+<!--                            <span @click="putOnRecord(2,scope.row)">撤消</span>-->
119
+<!--                        </el-button>-->
127 120
                     </template>
128 121
                 </el-table-column>
129 122
             </el-table>
130 123
 
131 124
             <el-dialog title="备案" :visible.sync="dialogFormVisible">
132
-                <el-form :model="form" label-width="100px">
133
-                    <el-form-item label="险种类型" :label-width="formLabelWidth">
125
+                <el-form  label-width="100px">
126
+                    <el-form-item label="险种类型" >
134 127
                         <el-select v-model="insutype_value" placeholder="请选择" style="width: 200px;">
135 128
                             <el-option
136 129
                                     v-for="item in insutypes"
@@ -140,6 +133,48 @@
140 133
                             </el-option>
141 134
                         </el-select>
142 135
                     </el-form-item>
136
+
137
+                  <el-form-item label="医院鉴定日期" >
138
+                    <el-date-picker
139
+                        v-model="check_date"
140
+                        prefix-icon="el-icon-date"
141
+                        :editable="false"
142
+                        style="width: 100%;"
143
+                        type="date"
144
+                        placeholder="选择开始时间"
145
+                        align="right"
146
+                        format="yyyy-MM-dd"
147
+                        value-format="yyyy-MM-dd">
148
+                    </el-date-picker>
149
+
150
+                  </el-form-item>
151
+                  <el-form-item label="开始时间" >
152
+                    <el-date-picker
153
+                        v-model="start_date"
154
+                        prefix-icon="el-icon-date"
155
+                        :editable="false"
156
+                        style="width: 100%;"
157
+                        type="date"
158
+                        placeholder="选择开始时间"
159
+                        align="right"
160
+                        format="yyyy-MM-dd"
161
+                        value-format="yyyy-MM-dd">
162
+                    </el-date-picker>
163
+                  </el-form-item>
164
+
165
+                  <el-form-item label="结束时间" >
166
+                    <el-date-picker
167
+                        v-model="end_date"
168
+                        prefix-icon="el-icon-date"
169
+                        :editable="false"
170
+                        style="width: 100%;"
171
+                        type="date"
172
+                        placeholder="选择结束时间"
173
+                        align="right"
174
+                        format="yyyy-MM-dd"
175
+                        value-format="yyyy-MM-dd">
176
+                    </el-date-picker>
177
+                  </el-form-item>
143 178
                 </el-form>
144 179
                 <div slot="footer" class="dialog-footer">
145 180
                     <el-button @click="dialogFormVisible = false">取 消</el-button>
@@ -178,6 +213,9 @@
178 213
     data() {
179 214
       return {
180 215
         is_put_on_record:0,
216
+        start_date:'',
217
+        end_date:"",
218
+        check_date:"",
181 219
         datas: [
182 220
           {
183 221
             id: 0,
@@ -282,16 +320,7 @@
282 320
         this.keywords = "";
283 321
         this.getList()
284 322
       },
285
-      getName(value){
286
-        console.log(value);
287
-        for(let i = 0; i < this.insutype_arr.length; i++){
288
-          console.log(this.insutype_arr[i].value);
289
-          if(this.insutype_arr[i].value == value){
290
-            return this.insutype_arr[i].label
291
-          }
292
-        }
293
-        return "未知"
294
-      },
323
+
295 324
       getGdybPatientInfo(){
296 325
         let params ={
297 326
           id_card_no:this.currentObject.id_card_no,
@@ -449,10 +478,27 @@
449 478
           return
450 479
         }
451 480
 
481
+        if(this.start_date == '' || this.start_date  == 0){
482
+          this.$message.error("请选择开始时间");
483
+          return
484
+        }
485
+
486
+        if(this.end_date == '' || this.end_date  == 0){
487
+          this.$message.error("请选择结束时间");
488
+          return
489
+        }
490
+        if(this.check_date == '' || this.check_date  == 0){
491
+          this.$message.error("请选择鉴定时间");
492
+          return
493
+        }
494
+
452 495
         let params = {
453 496
           record_type: 0,
454 497
           patient_id: this.currentObject.id,
455 498
           insutype: this.insutype_value,
499
+          start_time: this.start_date,
500
+          end_time: this.end_date,
501
+          check_time: this.check_date,
456 502
           psn_no: this.psn_no,
457 503
           sick_id: this.currentObject.record.sick_type,
458 504
           doctor_id: this.currentObject.record.doctor_id,

+ 143 - 38
src/xt_pages/qcd/basicInformationAnalysis.vue Ver arquivo

@@ -129,84 +129,131 @@
129 129
               <div class="borderBox">
130 130
                <div v-for="(item,index) in modetype" :key="index">
131 131
                  <span v-if="item.mode_id == 'HD'">
132
-                    <p>HD:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
133
-                    <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
132
+                    <p>HD:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
133
+                    <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
134 134
                   </span>
135 135
                   <span v-if="item.mode_id == 'HDF'">
136
-                    <p>HDF:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
137
-                    <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
136
+                    <p>HDF:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
137
+                    <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
138 138
                   </span>
139 139
                   <span v-if="item.mode_id == 'HD+HP'">
140
-                    <p>HD+HP:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
141
-                    <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
140
+                    <p>HD+HP:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
141
+                    <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
142 142
                   </span>
143 143
                   <span v-if="item.mode_id == 'HP'">
144
-                    <p>HP:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
145
-                    <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
144
+                    <p>HP:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
145
+                    <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
146 146
                   </span>
147 147
                   <span v-if="item.mode_id == 'HF'">
148
-                    <p>HF:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
149
-                    <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
148
+                    <p>HF:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
149
+                    <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
150 150
                   </span>
151 151
                   <span v-if="item.mode_id == 'SCUF'">
152 152
                     <p>SCUF:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
153 153
                     <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
154 154
                   </span>
155 155
                   <span v-if="item.mode_id == 'IUF'">
156
-                    <p>IUF:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
157
-                    <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
156
+                    <p>IUF:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
157
+                    <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
158 158
                   </span>
159 159
                   <span v-if="item.mode_id == 'HFHD'">
160 160
                     <p>HFHD:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
161 161
                     <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
162 162
                   </span>
163 163
                   <span v-if="item.mode_id == 'HFHD+HP'">
164
-                    <p>HFHD+HP:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
165
-                    <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
164
+                    <p>HFHD+HP:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
165
+                    <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
166 166
                   </span>
167 167
                   <span v-if="item.mode_id == 'PHF'">
168
-                    <p>PHF:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
169
-                    <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
168
+                    <p>PHF:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
169
+                    <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
170 170
                   </span>
171 171
                    <span v-if="item.mode_id == 'HFR'">
172
-                    <p>HFR:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
173
-                    <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
172
+                    <p>HFR:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
173
+                    <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
174 174
                   </span>
175 175
                   <span v-if="item.mode_id == 'HDF+HP'">
176
-                    <p>HDF+HP:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
177
-                    <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
176
+                    <p>HDF+HP:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
177
+                    <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
178 178
                   </span>
179 179
                   <span v-if="item.mode_id == 'HFHD+HP'">
180
-                      <p>HFHD+HP:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
181
-                      <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
180
+                      <p>HFHD+HP:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
181
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
182 182
                   </span>
183 183
                    <span v-if="item.mode_id == '腹水回输'">
184
-                      <p>腹水回输:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
185
-                      <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
184
+                      <p>腹水回输:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
185
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
186 186
                   </span>
187 187
                    <span v-if="item.mode_id == 'HD前置换'">
188
-                      <p>HD前置换:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
189
-                      <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
188
+                      <p>HD前置换:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
189
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
190 190
                    </span>
191 191
                     <span v-if="item.mode_id == 'HD后置换'">
192
-                      <p>HD后置换:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
193
-                      <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
192
+                      <p>HD后置换:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
193
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
194 194
                    </span>
195 195
                     <span v-if="item.mode_id == 'HDF前置换'">
196
-                      <p>HDF前置换:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
197
-                      <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
196
+                      <p>HDF前置换:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
197
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
198 198
                    </span>
199 199
                     <span v-if="item.mode_id == 'HDF后置换'">
200
-                      <p>HDF后置换:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
201
-                      <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
200
+                      <p>HDF后置换:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
201
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
202 202
                    </span>
203 203
                    <span v-if="item.mode_id == 'IUF+HD'">
204 204
                       <p>IUF+HD:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
205 205
                       <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
206 206
                   </span>
207
-                  <span v-if="item.mode_id == 'CVVHDF'">
208
-                      <p>IUF+HD:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
209
-                      <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
207
+
208
+                 <span v-if="item.mode_id == 'IU'">
209
+                      <p>IU:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
210
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
211
+                  </span>
212
+
213
+                  <span v-if="item.mode_id == 'HD+'">
214
+                      <p>HD+:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
215
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
216
+                  </span>
217
+
218
+                 <span v-if="item.mode_id == '血浆胆红素吸附+HDF'">
219
+                      <p>血浆胆红素吸附+HDF:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
220
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
221
+                  </span>
222
+
223
+                 <span v-if="item.mode_id == '血浆胆红素吸附'">
224
+                      <p>血浆胆红素吸附:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
225
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
226
+                  </span>
227
+
228
+                 <span v-if="item.mode_id == 'I-HDF'">
229
+                      <p>I-HDF:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
230
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
231
+                  </span>
232
+
233
+                 <span v-if="item.mode_id == 'HD高通'">
234
+                      <p>HD高通:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
235
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
236
+                  </span>
237
+
238
+                 <span v-if="item.mode_id == 'CVVH'">
239
+                      <p>CVVH:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
240
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
241
+                  </span>
242
+
243
+                 <span v-if="item.mode_id == 'CVVHD'">
244
+                      <p>CVVHD:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
245
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
246
+                  </span>
247
+
248
+
249
+                 <span v-if="item.mode_id == 'CVVHDF'">
250
+                      <p>CVVHDF:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
251
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
252
+                  </span>
253
+
254
+                 <span v-if="item.mode_id == '未知'">
255
+                      <p>未知:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
256
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
210 257
                   </span>
211 258
                </div>
212 259
               </div>
@@ -725,6 +772,11 @@ export default {
725 772
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
726 773
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
727 774
        console.log("本月最后一天",timeEnd)
775
+
776
+      this.startDate  = startDate
777
+      this.endDate = endDate
778
+      this.listQuery.start_time = startDate
779
+      this.listQuery.end_time = endDate
728 780
       //本月
729 781
       if(state == 0){
730 782
        //统计透析总量
@@ -756,6 +808,10 @@ export default {
756 808
         // console.log("结束时间",endDate)
757 809
          var endunitx = Date.parse(endDate)/1000
758 810
         // console.log("日期时间搓",endunitx)
811
+        this.startDate  = startDate
812
+        this.endDate = endDate
813
+        this.listQuery.start_time = startDate
814
+        this.listQuery.end_time = endDate
759 815
          //统计透析总量
760 816
         this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
761 817
          //统计转归状态
@@ -786,6 +842,10 @@ export default {
786 842
         // console.log("结束时间",endDate)
787 843
          var endunitx = Date.parse(endDate)/1000
788 844
         // console.log("日期时间搓",endunitx)
845
+       this.startDate  = startDate
846
+       this.endDate = endDate
847
+       this.listQuery.start_time = startDate
848
+       this.listQuery.end_time = endDate
789 849
          //统计透析总量
790 850
         this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
791 851
          //统计转归状态
@@ -817,6 +877,10 @@ export default {
817 877
         // console.log("结束时间",endDate)
818 878
          var endunitx = Date.parse(endDate)/1000
819 879
         // console.log("日期时间搓",endunitx)
880
+       this.startDate  = startDate
881
+       this.endDate = endDate
882
+       this.listQuery.start_time = startDate
883
+       this.listQuery.end_time = endDate
820 884
          //统计透析总量
821 885
         this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
822 886
          //统计转归状态
@@ -854,9 +918,9 @@ export default {
854 918
       getDialysisModeType(startDate,endDate,lapsetoType,sourceType).then(response=>{
855 919
          if(response.data.state == 1){
856 920
 
857
-          var modetype =  response.data.data.modetype
858
-          console.log("modetype",modetype)
859
-          this.modetype = modetype
921
+          // var modetype =  response.data.data.modetype
922
+          // console.log("modetype",modetype)
923
+
860 924
           var total =  response.data.data.total
861 925
           console.log("total",total)
862 926
           this.total = total.count
@@ -864,6 +928,9 @@ export default {
864 928
           // console.log("数据",this.modetype)
865 929
           var modedate = response.data.data.modetype
866 930
           for(let i=0;i<modedate.length;i++){
931
+            if(modedate[i].mode_id == 0){
932
+              modedate[i].mode_id = "未知"
933
+            }
867 934
             if(modedate[i].mode_id == 1){
868 935
                modedate[i].mode_id = "HD"
869 936
             }
@@ -921,6 +988,44 @@ export default {
921 988
            if(modedate[i].mode_id == 19){
922 989
                modedate[i].mode_id = "IUF+HD"
923 990
             }
991
+
992
+            if(modedate[i].mode_id == 20){
993
+              modedate[i].mode_id = "IU"
994
+            }
995
+
996
+            if(modedate[i].mode_id == 21){
997
+              modedate[i].mode_id = "HD+"
998
+            }
999
+
1000
+            if(modedate[i].mode_id == 22){
1001
+              modedate[i].mode_id = "血浆胆红素吸附+HDF"
1002
+            }
1003
+
1004
+            if(modedate[i].mode_id == 23){
1005
+              modedate[i].mode_id = "血浆胆红素吸附"
1006
+            }
1007
+
1008
+            if(modedate[i].mode_id == 24){
1009
+              modedate[i].mode_id = "I-HDF"
1010
+            }
1011
+
1012
+            if(modedate[i].mode_id == 25){
1013
+              modedate[i].mode_id = "HD高通"
1014
+            }
1015
+
1016
+            if(modedate[i].mode_id == 26){
1017
+              modedate[i].mode_id = "CVVH"
1018
+            }
1019
+
1020
+            if(modedate[i].mode_id == 27){
1021
+              modedate[i].mode_id = "CVVHD"
1022
+            }
1023
+
1024
+            if(modedate[i].mode_id == 28){
1025
+              modedate[i].mode_id = "CVVHDF"
1026
+            }
1027
+            this.modetype = modedate
1028
+
924 1029
             // this.modesData.xAxis.push(modedate[i].mode_id)
925 1030
             // this.modesData.series.push(((modedate[i].count/total)*100).toFixed(1))
926 1031
           }

+ 17 - 17
src/xt_pages/qcd/treatmentControlAnalysis/components/TimeAll.vue Ver arquivo

@@ -86,18 +86,18 @@
86 86
         ></el-table-column>
87 87
       </el-table>
88 88
 
89
-      <el-pagination
90
-        align="right"
91
-        @size-change="handleSizeChange"
92
-        @current-change="handleCurrentChange"
93
-        :current-page="listQuery.page"
94
-        :page-sizes="[20, 40, 60, 80,100]"
95
-        :page-size="10"
96
-        background
97
-        style="margin-top:20px;"
98
-        layout="total, sizes, prev, pager, next, jumper"
99
-        :total="total"
100
-      ></el-pagination>
89
+<!--      <el-pagination-->
90
+<!--        align="right"-->
91
+<!--        @size-change="handleSizeChange"-->
92
+<!--        @current-change="handleCurrentChange"-->
93
+<!--        :current-page="listQuery.page"-->
94
+<!--        :page-sizes="[20, 40, 60, 80,100]"-->
95
+<!--        :page-size="10"-->
96
+<!--        background-->
97
+<!--        style="margin-top:20px;"-->
98
+<!--        layout="total, sizes, prev, pager, next, jumper"-->
99
+<!--        :total="total"-->
100
+<!--      ></el-pagination>-->
101 101
     </div>
102 102
   </div>
103 103
 </template>
@@ -296,6 +296,7 @@ export default {
296 296
       geStatistics(this.listQuery).then(response=>{
297 297
 
298 298
         if(response.data.state === 1){
299
+          this.tableData = []
299 300
           var statistics =  response.data.data.statistics
300 301
           var treatinfo = response.data.data.treatinfo
301 302
           this.total =  response.data.data.total
@@ -310,7 +311,7 @@ export default {
310 311
                 }
311 312
             })
312 313
          let list = Object.values(dataInfo)
313
-      
314
+
314 315
          list.map(item=>{
315 316
            for(let i=0;i<statistics.length;i++){
316 317
              if(item.date == statistics[i].date){
@@ -333,12 +334,12 @@ export default {
333 334
               dd[dtd[index].date][dtd[index].mode_id] = dtd[index];
334 335
             }
335 336
           }
336
-          
337
+
337 338
           for (const key in dd) {
338 339
             var total = 0;
339 340
             for (const mkey in this.modeOptions) {
340 341
               if (mkey in dd[key]) {
341
-               
342
+
342 343
                 console.log(this.modeOptions[mkey].name)
343 344
                 dd[key][mkey].mode = this.modeOptions[mkey].name;
344 345
                 var number = parseInt(dd[key][mkey].number);
@@ -355,13 +356,12 @@ export default {
355 356
                 };
356 357
               }
357 358
             }
358
-            this.tableData = []
359 359
             this.tableData.push({ date: key, data: dd[key], total: total });
360 360
           }
361 361
         }
362 362
        })
363 363
     },
364
- 
364
+
365 365
   },
366 366
   created(){
367 367
     this.modeOptions = this.$store.getters.treatment_mode;

+ 12 - 7
src/xt_pages/stock/detail/print.vue Ver arquivo

@@ -42,11 +42,9 @@
42 42
                 {{index+1}}
43 43
               </td>
44 44
               <td style="line-height: 50px">
45
-                <!-- <span>{{item.GoodInfo.good_name}}</span> -->
46 45
                 {{item.good_name}}
47 46
               </td>
48 47
               <td style="line-height: 50px">
49
-                <!-- <span>{{item.GoodInfo.specification_name}}</span> -->
50 48
                 {{item.specification_name}}
51 49
               </td>
52 50
              
@@ -60,18 +58,24 @@
60 58
                 <span v-if="type == 4"> {{ item.count }}</span>
61 59
               </td>
62 60
               <td style="line-height: 50px">
63
-                <!-- <span>{{item.GoodInfo.packing_unit}}</span> -->
64 61
                 {{item.packing_unit}}
65 62
               </td>
66 63
               <td style="line-height:50px">
67 64
                 <span v-if="type == 1"> {{ item.price }}</span>
68
-                <span v-if="type == 2"> {{ item.packing_price }}</span>
65
+                <span v-if="type == 2"> 
66
+                  <span v-if="org_id == 9919 || org_id == 9671">{{ item.buy_price }}</span>  
67
+                  <span v-else>
68
+                    {{ item.packing_price }} 
69
+                  </span>  
70
+                </span>
69 71
                  <span v-if="type == 4"> {{ item.price }}</span>
70 72
               </td>
71 73
               <td style="line-height:50px">
72 74
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
73 75
                 <span v-if="type == 2">
74
-                  <span v-if="org_id == 3907 || org_id ==9919">{{(getStockCount(item.good_id) * item.packing_price).toFixed(2) }}</span>
76
+                  <span v-if="org_id == 3907 || org_id ==9919 || org_id == 9671">
77
+                     {{(getStockCount(item.good_id) * item.buy_price).toFixed(2) }}
78
+                  </span>
75 79
                   <span v-else>{{(item.count * item.packing_price).toFixed(2)}}</span>
76 80
                 </span>
77 81
                 <span v-if="type == 4">{{(item.count * item.price).toFixed(2)}}</span>
@@ -93,7 +97,7 @@
93 97
               <td style="line-height: 50px"  width="80">
94 98
                 <span v-if="type == 1">{{getWareInfoTotal().toFixed(2)}}</span> 
95 99
                 <span v-if="type == 2">
96
-                  <span v-if="org_id == 3907 || org_id == 9919">{{getWareOutTotalOne().toFixed(2)}}</span>
100
+                  <span v-if="org_id == 3907 || org_id == 9919 || org_id == 9671">{{getWareOutTotalOne().toFixed(2)}}</span>
97 101
                   <span v-else> {{getWareOutTotal().toFixed(2)}}</span>
98 102
                  </span> 
99 103
                 <span v-if="type == 4">{{getWareOutTotal().toFixed(2)}}</span> 
@@ -402,9 +406,10 @@
402 406
        return total
403 407
      },
404 408
      getWareOutTotalOne(){
409
+       console.log("数据23332323",this.stockDatas)
405 410
        var total = 0
406 411
        for(let i=0;i<this.stockDatas.length;i++){
407
-         total+= this.getStockCount(this.stockDatas[i].good_id) * this.stockDatas[i].packing_price
412
+         total+= this.getStockCount(this.stockDatas[i].good_id) * this.stockDatas[i].buy_price
408 413
        }
409 414
        return total
410 415
      }

+ 58 - 37
src/xt_pages/stock/detail/stockOutDetail.vue Ver arquivo

@@ -126,7 +126,8 @@
126 126
         </el-table-column>
127 127
         <el-table-column label="出货价" align="center">
128 128
           <template slot-scope="scope">
129
-            {{ scope.row.price }}
129
+            <span v-if="scope.row.is_total == 0 && (orgId == 9919 || orgId == 9671)">{{scope.row.GoodInfo.buy_price}}</span>
130
+            <span v-else> {{ scope.row.price }} </span>
130 131
           </template>
131 132
         </el-table-column>
132 133
         <el-table-column label="数量" align="center">
@@ -199,13 +200,14 @@ export default {
199 200
     }
200 201
     window.sessionStorage.removeItem('start')
201 202
     window.sessionStorage.removeItem('end')  
203
+    this.getGoodDetailPrintList()
202 204
     this.GetCancelStock();
203 205
     this.GetConfigInfo();
204 206
     this.fetchAllAdminUsers();
205 207
     this.goodUnit = this.$store.getters.good_unit
206 208
     var org_id = this.$store.getters.xt_user.org.id
207 209
     this.orgId = org_id
208
-    this.getGoodDetailPrintList()
210
+    
209 211
     
210 212
   },
211 213
   data() {
@@ -366,9 +368,10 @@ export default {
366 368
             total += response.data.data.list[i].price * response.data.data.list[i].count
367 369
             obj["is_total"] = 0;
368 370
             this.cancelStockDate.push(obj);
369
-            
370 371
           }
372
+          
371 373
           this.tableDataList = response.data.data.list
374
+           console.log("耗材出库数据323323323232232323232",this.tableDataList)
372 375
           this.cancelStockDate.push({
373 376
             warehouse_out_order_number: "合计",
374 377
             is_total: 1,
@@ -624,27 +627,27 @@ export default {
624 627
         }
625 628
       });
626 629
     },
627
-    getPrintStockGood(){
628
-      const params = {
629
-        start_time:this.start_time,
630
-        end_time:this.end_time,
631
-        type:3,
632
-      }
633
-      getPrintStockGood(params).then(response=>{
634
-          if(response.data.state == 1){
635
-            var stockTotal =  response.data.data.stockTotal
630
+    // getPrintStockGood(){
631
+    //   const params = {
632
+    //     start_time:this.start_time,
633
+    //     end_time:this.end_time,
634
+    //     type:3,
635
+    //   }
636
+    //   getPrintStockGood(params).then(response=>{
637
+    //       if(response.data.state == 1){
638
+    //         var stockTotal =  response.data.data.stockTotal
636 639
           
637
-            this.stockTotal = stockTotal
638
-            var list =  response.data.data.list
639
-            this.tableList = []
640
-            for(let i=0;i<list.length;i++){
641
-              if (list[i].query_warehouseout_info.length > 0) {
642
-                this.tableList.push(list[i])
643
-              }
644
-            }
645
-          }
646
-      })
647
-    },
640
+    //         this.stockTotal = stockTotal
641
+    //         var list =  response.data.data.list
642
+    //         this.tableList = []
643
+    //         for(let i=0;i<list.length;i++){
644
+    //           if (list[i].query_warehouseout_info.length > 0) {
645
+    //             this.tableList.push(list[i])
646
+    //           }
647
+    //         }
648
+    //       }
649
+    //   })
650
+    // },
648 651
      calCount(stock) {
649 652
         let total = 0
650 653
         var array = []
@@ -679,15 +682,6 @@ export default {
679 682
         }
680 683
         return Math.floor(amountPrice* 100) / 100
681 684
       },
682
-      getStockCount(id){
683
-        var count = ""
684
-        for(let i=0;i<this.stockTotal.length;i++){
685
-            if(id == this.stockTotal[i].good_id){
686
-              count = this.stockTotal[i].count
687
-            }
688
-        }
689
-        return count
690
-      },
691 685
       getTotal: function(price, total) {
692 686
         var m = 0, r1, r2
693 687
         var s1 = price.toString()
@@ -741,15 +735,23 @@ export default {
741 735
         this.tableOut[i].good_name = this.tableOut[i].good_name
742 736
         this.tableOut[i].specification_name = this.tableOut[i].specification_name
743 737
         this.tableOut[i].packing_unit = this.tableOut[i].packing_unit
744
-        this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].packing_price).toFixed(2)
738
+        if(this.orgId == 9919 || this.orgId == 9671){
739
+          this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].buy_price).toFixed(2)
740
+          this.tableOut[i].packing_price = this.tableOut[i].buy_price
741
+        }else{
742
+          this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].packing_price).toFixed(2)
743
+        }
744
+      
745 745
         this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
746 746
        }
747 747
        import('@/vendor/Export2Excel').then(excel => {
748 748
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
749
+
749 750
        const filterVal = ['index','good_name', 'specification_name', 'packing_unit','out_count','packing_price','total_price','remark']
750 751
 
751 752
        const data = this.formatJson(filterVal, this.tableOut)
752
-       
753
+       console.log("date2332323232",data)
754
+      
753 755
         excel.export_json_to_excel({
754 756
            header: tHeader,
755 757
            data,
@@ -770,8 +772,15 @@ export default {
770 772
           this.tableDataList[i].time = this.getTime(this.tableDataList[i].WarehouseOut.warehouse_out_time)
771 773
           this.tableDataList[i].user_name = this.getXuserName(this.tableDataList[i].WarehouseOut.creater)
772 774
           this.tableDataList[i].out_count = this.tableDataList[i].count
773
-          this.tableDataList[i].total_price = (this.tableDataList[i].count * this.tableDataList[i].price).toFixed(2)
774
-          total += this.tableDataList[i].count * this.tableDataList[i].price
775
+          if(this.orgId == 9919 || this.orgId == 9671){
776
+             this.tableDataList[i].total_price = (this.tableDataList[i].count * this.tableDataList[i].GoodInfo.buy_price).toFixed(2)
777
+             total += this.tableDataList[i].count * this.tableDataList[i].buy_price
778
+          }else{
779
+            this.tableDataList[i].total_price = (this.tableDataList[i].count * this.tableDataList[i].price).toFixed(2)
780
+            total += this.tableDataList[i].count * this.tableDataList[i].price
781
+          }
782
+         
783
+         
775 784
         }
776 785
         obj.total_price = total.toFixed(2)
777 786
         this.tableDataList.push(obj)
@@ -820,12 +829,24 @@ export default {
820 829
       getGoodDetailPrintList(params).then(response=>{
821 830
         if(response.data.state == 1){
822 831
           var list = response.data.data.list
832
+        
823 833
           this.tableOut = list
824 834
           var stockTotal = response.data.data.stockTotal
835
+          console.log("list88888888888888888888",stockTotal)
825 836
           this.stockTotal = stockTotal
826 837
         }
827 838
       })
828
-     } 
839
+     },
840
+     getStockCount(id){
841
+     
842
+        var count = ""
843
+        for(let i=0;i<this.stockTotal.length;i++){
844
+            if(id == this.stockTotal[i].good_id){
845
+              count = this.stockTotal[i].count
846
+            }
847
+        }
848
+        return count
849
+    }, 
829 850
   }
830 851
 };
831 852
 </script>

+ 94 - 39
src/xt_pages/stock/drugs/components/drugOutDetail.vue Ver arquivo

@@ -153,13 +153,7 @@
153 153
           </template>
154 154
         </el-table-column>
155 155
 
156
-        <!-- <el-table-column label="单据类型" align="center">
157
-          <template slot-scope="scope">
158
-            <span v-if="scope.row.type == 1">药品出库单</span>
159
-            <span v-if="scope.row.type == 2">其他</span>
160
-          </template>
161
-        </el-table-column> -->
162
-
156
+       
163 157
         <el-table-column label="操作时间" align="center">
164 158
           <template slot-scope="scope">
165 159
            <span>{{getTime(scope.row.ctime)}}</span>
@@ -172,7 +166,8 @@
172 166
         </el-table-column>
173 167
         <el-table-column label="出货价" align="center">
174 168
           <template slot-scope="scope">
175
-           {{scope.row.price}}
169
+           <span v-if="org_id == 9919 || org_id == 9671">{{scope.row.last_price}} </span> 
170
+           <span v-else>{{scope.row.price}}</span>
176 171
           </template>
177 172
         </el-table-column>
178 173
         <el-table-column label="数量" align="center">
@@ -429,9 +424,16 @@ export default {
429 424
           for(let i=0;i<order.length;i++){
430 425
              order[i].specification_name  = order[i].dose + order[i].dose_unit + "*" + order[i].min_number +  order[i].min_unit + "/" + order[i].max_unit
431 426
              order[i].is_total = 0
432
-             order[i].total_price = order[i].count * order[i].price
433
-             total_price += order[i].count * order[i].price
427
+             if(this.org_id == 9919 || this.org_id == 9671){
428
+               order[i].total_price = order[i].count * order[i].last_price
429
+               total_price += order[i].count * order[i].last_price
430
+             }else{
431
+                order[i].total_price = order[i].count * order[i].price
432
+                total_price += order[i].count * order[i].price
433
+             }
434
+            
434 435
           }
436
+          console.log("total_price23322332232332323232",order)
435 437
            order.push({
436 438
             warehouse_out_order_number: "合计",
437 439
             is_total: 1,
@@ -443,29 +445,50 @@ export default {
443 445
           for(let i=0;i<order.length;i++){
444 446
             order[i].total_price = order[i].total_price.toFixed(2)
445 447
           }
446
-        //  this.drugTypeList = response.data.data.drugTypeList
447
-          
448
+       
449
+          console.log("order232233232232323232332",order)
448 450
           this.tableData = order
449 451
            let objInfo = {}
450 452
           order.forEach((item,index)=>{
451 453
              let { drug_id } = item
452
-             if(!objInfo[drug_id]){
453
-               objInfo[drug_id] = {
454
-                 drug_id,
455
-                 child:[],
456
-                 drug_name:item.drug_name,
457
-                 drug_spec:item.drug_spec,
458
-                 min_unit:item.min_unit,
459
-                 count:0,
460
-                 price:item.price,
461
-                 remark:item.remark,
462
-                 total_price:0.0,
463
-                 dose:item.dose,
464
-                 dose_unit:item.dose_unit,
465
-                 min_number:item.min_number,
466
-                 max_unit:item.max_unit
467
-               }
454
+             if(this.org_id == 9671 || this.org_id == 9919){
455
+              if(!objInfo[drug_id]){
456
+                objInfo[drug_id] = {
457
+                  drug_id,
458
+                  child:[],
459
+                  drug_name:item.drug_name,
460
+                  drug_spec:item.drug_spec,
461
+                  min_unit:item.min_unit,
462
+                  count:0,
463
+                  price:item.last_price,
464
+                  remark:item.remark,
465
+                  total_price:0.0,
466
+                  dose:item.dose,
467
+                  dose_unit:item.dose_unit,
468
+                  min_number:item.min_number,
469
+                  max_unit:item.max_unit
470
+                }
471
+              }
472
+             }else{
473
+               if(!objInfo[drug_id]){
474
+                objInfo[drug_id] = {
475
+                  drug_id,
476
+                  child:[],
477
+                  drug_name:item.drug_name,
478
+                  drug_spec:item.drug_spec,
479
+                  min_unit:item.min_unit,
480
+                  count:0,
481
+                  price:item.price,
482
+                  remark:item.remark,
483
+                  total_price:0.0,
484
+                  dose:item.dose,
485
+                  dose_unit:item.dose_unit,
486
+                  min_number:item.min_number,
487
+                  max_unit:item.max_unit
488
+                }
489
+              }
468 490
              }
491
+            
469 492
           })
470 493
           let list = Object.values(objInfo);
471 494
           
@@ -485,10 +508,11 @@ export default {
485 508
               }
486 509
             }
487 510
           }
488
-          for(let i=0;i<list.length;i++){
489
-             list[i].total_price = list[i].count * list[i].price
490
-          }
491
-       
511
+
512
+           for(let i=0;i<list.length;i++){
513
+              list[i].total_price = list[i].count * list[i].price
514
+            }
515
+        
492 516
           this.tableList = list 
493 517
           var total = response.data.data.total
494 518
           this.total = total
@@ -517,6 +541,7 @@ export default {
517 541
         }
518 542
         for(let i=0;i<this.tablePrint.length;i++){
519 543
            if(this.org_id == 9671 || this.org_id == 9919 ){
544
+           
520 545
              this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
521 546
              this.tablePrint[i].total_price = this.getCountSenven(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
522 547
              this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
@@ -527,11 +552,9 @@ export default {
527 552
               this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
528 553
               this.tablePrint[i].total = this.getTotalPriceOne(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].price) 
529 554
            }
530
-         
531
-          
532 555
         }
533 556
        console.log("列表数据333333333",this.tablePrint)
534
-    
557
+      
535 558
        import('@/vendor/Export2Excel').then(excel => {
536 559
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','备注']
537 560
        const filterVal = ['index','drug_name', 'unit', 'min_unit','count','price','total_price','remark']
@@ -567,8 +590,15 @@ export default {
567 590
         this.tableData[i].specification_name = this.tableData[i].dose + this.tableData[i].dose_unit +"*" + this.tableData[i].min_number + this.tableData[i].min_unit +  "/" + this.tableData[i].max_unit
568 591
         this.tableData[i].time = this.getTime(this.tableData[i].ctime)
569 592
         this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)
570
-        this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
571
-        this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
593
+        if(this.org_id == 9671 || this.org_id == 9919){
594
+          this.tableData[i].total = (this.tableData[i].count * this.tableData[i].last_price)
595
+          this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].last_price)
596
+        }else{
597
+          this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
598
+          this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
599
+        }
600
+      
601
+       
572 602
        }
573 603
        let obj = {'index':'合计','total_price':0.00}
574 604
        for(let i=0;i<this.tableData.length;i++){
@@ -627,7 +657,30 @@ export default {
627 657
             var list = response.data.data.list
628 658
             console.log("药品出库详情",list)
629 659
             let objInfo = {}
630
-            list.forEach((item,index)=>{
660
+            if(this.org_id == 9671 || this.org_id == 9919){
661
+              list.forEach((item,index)=>{
662
+              let { drug_id } = item
663
+              if(!objInfo[drug_id]){
664
+                objInfo[drug_id] = {
665
+                  drug_id,
666
+                  child:[],
667
+                  drug_name:item.XtBaseDrug.drug_name,
668
+                  drug_spec:item.XtBaseDrug.drug_spec,
669
+                  min_unit:item.XtBaseDrug.min_unit,
670
+                  count:0,
671
+                  price:item.XtBaseDrug.last_price,
672
+                  remark:item.XtBaseDrug.remark,
673
+                  total_price:"",
674
+                  dose:item.XtBaseDrug.dose,
675
+                  dose_unit:item.XtBaseDrug.dose_unit,
676
+                  min_number:item.XtBaseDrug.min_number,
677
+                  max_unit:item.XtBaseDrug.max_unit,
678
+                  min_price:item.XtBaseDrug.min_price,
679
+                }
680
+              }
681
+            })
682
+            }else{
683
+               list.forEach((item,index)=>{
631 684
               let { drug_id } = item
632 685
               if(!objInfo[drug_id]){
633 686
                 objInfo[drug_id] = {
@@ -648,6 +701,8 @@ export default {
648 701
                 }
649 702
               }
650 703
             })
704
+            }
705
+           
651 706
             let newArr = Object.values(objInfo);
652 707
             for(let i=0;i<newArr.length;i++){
653 708
               for(let j=0;j<list.length;j++){
@@ -720,7 +775,7 @@ export default {
720 775
         return total*min_price
721 776
       },
722 777
       getCountSix(drug_id,val){
723
-        console.log("val233232",val)
778
+     
724 779
         var count = 0 
725 780
         for(let i=0;i<val.length;i++){
726 781
           count+= val[i].count

+ 2 - 2
src/xt_pages/stock/drugs/drugOutOrderPrint.vue Ver arquivo

@@ -279,7 +279,7 @@
279 279
         return str + min_str
280 280
       },
281 281
       getCountOne(arr,max_unit,min_unit,min_number){
282
-        console.log("arr2332332233232",arr)
282
+       
283 283
         var total = 0
284 284
         var str = ""
285 285
         var min_str = ""
@@ -295,7 +295,7 @@
295 295
         for(let i=0;i<arr.length;i++){
296 296
           total+= parseInt(arr[i].total_count)
297 297
         }
298
-       console.log("total233223232323",total,min_number)
298
+     
299 299
         return total
300 300
       },
301 301
       getTotalPrice(arr,max_unit,min_number,min_price){

+ 3 - 0
src/xt_pages/stock/stockPrint.vue Ver arquivo

@@ -14,6 +14,9 @@
14 14
                     <div class="order_title_panl">
15 15
                         <span class="main_title">耗材管理查询表</span>
16 16
                     </div>
17
+                    <div style="text-align:left;margin-bottom:20px;font-size: 18px;margin-bottom:-30px" v-if="org_id == 3907 || org_id == 9671">
18
+                      <span v-if="end_time!=''">查询日期:{{start_time}} ~</span>  {{end_time}}
19
+                    </div>
17 20
                     <div style="text-align:right;margin-bottom:20px;font-size: 18px;">
18 21
                       打印时间:{{time_now}}
19 22
                     </div>

+ 15 - 12
src/xt_pages/stock/stockQuery.vue Ver arquivo

@@ -108,7 +108,7 @@
108 108
        </el-table-column>
109 109
        <el-table-column label="出库数量" align="center" v-if="showOne">
110 110
          <template slot-scope="scope">
111
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id ==  10088 || org_id == 10191">
111
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id ==  10088 || org_id == 10191 || org_id == 9919">
112 112
             <span>
113 113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
114 114
             </span>
@@ -116,27 +116,30 @@
116 116
           <span v-else>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span>
117 117
          </template>
118 118
        </el-table-column>
119
-
120
-       <el-table-column label="出库数量" align="center" v-if="showTwo">
121
-         <template slot-scope="scope">
122
-          <span>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span>
123
-         </template>
124
-       </el-table-column>
125
-
126
-       <el-table-column label="剩余库存量" align="center" v-if="showThree">
119
+      
120
+        <el-table-column label="剩余库存量" align="center" v-if="showThree">
127 121
          <template slot-scope="scope">
128
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088 || org_id == 10191">
122
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088 || org_id == 10191 || org_id == 9919">
129 123
             {{getOverFlushInfo(scope.row.xt_warehouse_info)}}
130 124
           </span>
131 125
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
132 126
          </template>
133 127
        </el-table-column>
134
-
128
+        
129
+    
135 130
       <el-table-column label="剩余库存量" align="center" v-if="showFour">
136 131
          <template slot-scope="scope">
137 132
           <span>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
138 133
          </template>
139 134
        </el-table-column>
135
+
136
+       <el-table-column label="出库数量" align="center" v-if="showTwo">
137
+         <template slot-scope="scope">
138
+          <span>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span>
139
+         </template>
140
+       </el-table-column>
141
+
142
+
140 143
        <el-table-column label="操作" align="center" width="260px">
141 144
           <template slot-scope="scope">
142 145
               <el-button
@@ -447,9 +450,9 @@ export default {
447 450
           }
448 451
           if(this.end_time !=""){
449 452
             this.showThree = false
453
+            this.showOne = false
450 454
             this.showTwo = true
451 455
             console.log("hh3223322323",this.showTwo)
452
-            this.showOne = false
453 456
             this.showFour = true
454 457
           }
455 458
           var list = response.data.data.list

+ 13 - 13
src/xt_pages/user/templateSummary.vue Ver arquivo

@@ -331,7 +331,7 @@
331 331
                                 v-bind:r_content="form.template_plan_content">
332 332
                         </editor>
333 333
                     </keep-alive>
334
-                    
334
+
335 335
                   </el-row> -->
336 336
                   <el-row>
337 337
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
@@ -672,7 +672,7 @@
672 672
               <el-form-item>
673 673
                 <span>选择检验检查时间:</span>
674 674
                 <div>
675
-                
675
+
676 676
                  <el-form-item label="时间:">
677 677
                    <el-radio-group style="padding: 10px;"  v-model="radio" @change="changeRadio">
678 678
                       <el-radio :label="1">月份</el-radio>
@@ -966,8 +966,8 @@
966 966
       }
967 967
     },
968 968
     created() {
969
-     
970
-      console.log("this.$store.getters.xt_user.user.id",this.$store.getters.xt_user.user.id)
969
+
970
+      // console.log("this.$store.getters.xt_user.user.id",this.$store.getters.xt_user.user.id)
971 971
       this.patient_id = this.$route.params && this.$route.params.id
972 972
       var now = new Date()
973 973
       this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
@@ -1003,7 +1003,7 @@
1003 1003
         })
1004 1004
 
1005 1005
       this.anticoagulantList = arrFour
1006
-      console.log("抗凝剂量",this.anticoagulantList)
1006
+      // console.log("抗凝剂量",this.anticoagulantList)
1007 1007
       var endtime= moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD")
1008 1008
       console.log("endtime",endtime)
1009 1009
       this.getlist()
@@ -1013,7 +1013,7 @@
1013 1013
     },
1014 1014
     methods: {
1015 1015
       getTime(val) {
1016
-         console.log("val2322332322323223",val)
1016
+         // console.log("val2322332322323223",val)
1017 1017
          if(val == "" || val == undefined){
1018 1018
           return ""
1019 1019
          }else {
@@ -1207,7 +1207,7 @@
1207 1207
               end_time = moment().month(2).endOf('month').format("YYYY-MM-DD")
1208 1208
             }
1209 1209
             if(this.quartype == 2){
1210
-              start_time = moment().month(3).startOf('month').format("YYYY-MM-DD")   
1210
+              start_time = moment().month(3).startOf('month').format("YYYY-MM-DD")
1211 1211
               end_time = moment().month(5).endOf('month').format("YYYY-MM-DD")
1212 1212
             }
1213 1213
             if(this.quartype == 3){
@@ -1219,8 +1219,8 @@
1219 1219
               end_time = moment().month(11).endOf('month').format("YYYY-MM-DD")
1220 1220
             }
1221 1221
           }
1222
-         
1223
-        
1222
+
1223
+
1224 1224
           console.log("start_time",start_time)
1225 1225
           console.log("end_time",end_time)
1226 1226
           var params = {
@@ -1350,7 +1350,7 @@
1350 1350
         console.log("年",year)
1351 1351
         var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
1352 1352
         console.log("月",this.$refs)
1353
-      
1353
+
1354 1354
 
1355 1355
          var params = {
1356 1356
             title:this.form.title,
@@ -1425,7 +1425,7 @@
1425 1425
         })
1426 1426
       },
1427 1427
       getTemplateSummaryList(){
1428
-        
1428
+
1429 1429
           var params = {
1430 1430
             patient_id:this.patient_id,
1431 1431
             start_time:this.start_time,
@@ -1646,8 +1646,8 @@
1646 1646
             inspect_date:this.projectIndate,
1647 1647
          }
1648 1648
          console.log("parawm232323223",params)
1649
-        
1650
-       
1649
+
1650
+
1651 1651
         UpdateTemplateSummary(params).then(response=>{
1652 1652
           if(response.data.state == 1){
1653 1653
             var list = response.data.data.list

+ 29 - 11
src/xt_pages/workforce/template.vue Ver arquivo

@@ -103,7 +103,7 @@
103 103
 
104 104
 
105 105
         <el-button size="small" icon="el-icon-setting" type="primary" @click="setScheduleTemplateAction">设置模板</el-button>
106
-        <!-- <el-button size="small" icon="el-icon-setting" type="primary" @click="setData">同步数据</el-button> -->
106
+        <el-button size="small" icon="el-icon-setting" type="primary" @click="setData">同步数据</el-button>
107 107
       </div>
108 108
       <!-- </el-col> -->
109 109
     </div>
@@ -117,13 +117,20 @@
117 117
                           :patients="patients"></template-table>
118 118
         </el-tab-pane>
119 119
         <el-tab-pane name="first" :disabled="template_mode.mode == 0">
120
-          <span slot="label"> 第一周 </span>
120
+          <span slot="label"> 模板一
121
+            <span v-if="schedule.mode ==1">(本周)</span>
122
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>
123
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>
124
+          </span>
121 125
           <template-table :editable="true" :device_numbers="device_numbers" :template="first_template"
122 126
                           :patients="patients" @cancel_sch="refresh"></template-table>
123 127
         </el-tab-pane>
124 128
 
125 129
         <el-tab-pane name="second" :disabled="template_mode.mode != 2">
126
-          <span slot="label"> 第二周 </span>
130
+          <span slot="label"> 模板二
131
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(本周)</span>
132
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(下一周)</span>
133
+           </span>
127 134
           <template-table :editable="true" :device_numbers="device_numbers" :template="second_template"
128 135
                           :patients="patients" @cancel_sch="refresh"></template-table>
129 136
         </el-tab-pane>
@@ -135,9 +142,9 @@
135 142
 
136 143
      <el-dialog title="同步排班" width="600px" :visible.sync="newVisible">
137 144
             <el-form :model="form"  ref="form" label-width="90px" :rules="rules">
138
-                <el-form-item label="同步周次:">
139
-                   <el-radio v-model="form.firstWeek" label="1">第一周</el-radio>
140
-                   <el-radio v-model="form.firstWeek" label="2">第二周</el-radio>
145
+                <el-form-item label="同步模板:">
146
+                   <el-radio v-model="form.firstWeek" label="1">模板一</el-radio>
147
+                   <el-radio v-model="form.firstWeek" label="2">模板二</el-radio>
141 148
                 </el-form-item>
142 149
                 <el-form-item label="同步到 :">
143 150
                   <el-select v-model="form.copyWeek" placeholder="请选择" required  prop="copyWeek">
@@ -164,7 +171,7 @@
164 171
   import TemplateTable from './components/template_table'
165 172
   import { getTemplateInitData } from '@/api/schedule_template/patient'
166 173
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
167
-  import { exportScheduleTemplate, getWeekPanels,initDate,synchroSchedule } from '@/api/schedule'
174
+  import { exportScheduleTemplate, getWeekPanels,initDate,synchroSchedule,getPatientScheduleTemplate } from '@/api/schedule'
168 175
   import ScheduleTemplateUploadExcel from './components/scheduleTemplateUploadExcel/index'
169 176
   import { generateLog } from '@/api/config'
170 177
 
@@ -241,16 +248,18 @@
241 248
         },
242 249
         rules: {
243 250
           copyWeek: [{ required: true, message: "请选择同步时间段", trigger: "blur" }],
244
-        }
251
+        },
252
+        schedule:{},
245 253
       }
246 254
     },
247 255
     created() {
256
+      this.getPatientScheduleTemplate()
248 257
       let year = new Date().getFullYear()
249 258
      let month = new Date().getMonth() + 1
250 259
      let date = new Date().getDate()
251 260
      this.weekNum = this.getYearWeek(year,month,date)
252 261
      this.todayDate=this.formatDate(new Date())
253
-     this.setDate(new Date())
262
+     this.setDate(new Date(new Date().setDate((new Date().getDate()-7))))
254 263
 
255 264
      for (var i = 0; i <= 9; i++) {
256 265
        this.setDate1(this.addDate(this.currentDate, 7))
@@ -259,14 +268,14 @@
259 268
      for(let i = 0; i < this.weekList.length; i++){
260 269
          if(this.weekNum + i + 1 <= 53){
261 270
              let num = this.weekNum + i 
262
-            let str = this.weekList[i][0] + '~' + this.weekList[i][6] + '(' + num + ')'
271
+            let str = this.weekList[i][0] + '~' + this.weekList[i][6] 
263 272
              this.typeOptions.push({value:i,label:str})
264 273
             let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
265 274
             this.timeOptions.push({value:i,label:stt})
266 275
         }else{
267 276
 
268 277
             newNum++
269
-            let str = this.weekList[i][0] + '~' + this.weekList[i][6] + '(' + newNum + ')'
278
+            let str = this.weekList[i][0] + '~' + this.weekList[i][6] 
270 279
             this.typeOptions.push({value:i,label:str})
271 280
             let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
272 281
             this.timeOptions.push({value:i,label:stt})
@@ -2768,6 +2777,15 @@
2768 2777
           }
2769 2778
         })
2770 2779
  
2780
+      },
2781
+      getPatientScheduleTemplate(){
2782
+        getPatientScheduleTemplate().then(response=>{
2783
+           if(response.data.state == 1){
2784
+             var schedule = response.data.data.schedule 
2785
+             console.log("schedule",schedule)
2786
+             this.schedule = schedule
2787
+           }
2788
+        })
2771 2789
       }
2772 2790
     }
2773 2791
   }

+ 0 - 1
src/xt_permission.js Ver arquivo

@@ -26,7 +26,6 @@ router.beforeEach((to, from, next) => {
26 26
   // }
27 27
   // return
28 28
   // 线上注释
29
-
30 29
   NProgress.start()
31 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
32 31
   // alert('path:' + to.path)