Browse Source

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

see999 3 years ago
parent
commit
26dbb173be

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

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

+ 8 - 0
src/api/schedule.js View File

237
     params: params
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 View File

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 },
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
       // 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 }
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
       20: {
498
       20: {
499
-        id: 19,
499
+        id: 20,
500
         name: 'UF',
500
         name: 'UF',
501
         dialysis_duration: 1,
501
         dialysis_duration: 1,
502
         replacement_way: 1,
502
         replacement_way: 1,

+ 54 - 91
src/xt_pages/data/components/drugs.vue View File

47
     <div style="display:flex; align-items:center;margin-bottom:10px;">
47
     <div style="display:flex; align-items:center;margin-bottom:10px;">
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>-->
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
         <el-button type="primary" size="small"  @click="GDYBBatchPutOnRecord()">批量备案</el-button>
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
                  style="margin-left:15px">
51
                  style="margin-left:15px">
52
           <el-button
52
           <el-button
53
             class="filter-item"
53
             class="filter-item"
89
           </div>
89
           </div>
90
         </template>
90
         </template>
91
       </el-table-column>
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
       <el-table-column prop="date" label="进货价" width="100" align="center">
93
       <el-table-column prop="date" label="进货价" width="100" align="center">
103
         <template slot-scope="scope">
94
         <template slot-scope="scope">
104
           <div>{{scope.row.last_price}}</div>
95
           <div>{{scope.row.last_price}}</div>
937
 
928
 
938
           var isHasDrugName = header.includes('*药品名称');
929
           var isHasDrugName = header.includes('*药品名称');
939
           console.log("isHasDrugName",isHasDrugName)
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
           var isHasDosage =  header.includes('*剂量')
931
           var isHasDosage =  header.includes('*剂量')
945
           console.log("isHasDosage",isHasDosage)
932
           console.log("isHasDosage",isHasDosage)
946
-
947
           var isHasMaxUnit= header.includes('*剂量单位');
933
           var isHasMaxUnit= header.includes('*剂量单位');
948
           console.log("isHasMaxUnit",isHasMaxUnit)
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
           var isHasPackingUnit = header.includes('*包装单位')
939
           var isHasPackingUnit = header.includes('*包装单位')
950
           console.log("isHasPackingUnit",isHasPackingUnit)
940
           console.log("isHasPackingUnit",isHasPackingUnit)
941
+        
951
           var isHasDrugType =  header.includes('*药品类型');
942
           var isHasDrugType =  header.includes('*药品类型');
952
           console.log("isHasDrugType",isHasDrugType)
943
           console.log("isHasDrugType",isHasDrugType)
953
           var isHasDrugStockLimit =  header.includes('*库存警戒');
944
           var isHasDrugStockLimit =  header.includes('*库存警戒');
956
           console.log("isHasDrugOriginPlace",isHasDrugOriginPlace)
947
           console.log("isHasDrugOriginPlace",isHasDrugOriginPlace)
957
           var isHasDrugDosageForm = header.includes('*药品剂型');
948
           var isHasDrugDosageForm = header.includes('*药品剂型');
958
           console.log("isHasDrugDosageForm",isHasDrugDosageForm)
949
           console.log("isHasDrugDosageForm",isHasDrugDosageForm)
959
-
960
-          var isHasUnitMatrixing= header.includes("*单位换算");
961
-          console.log("isHasUnitMatrixing",isHasUnitMatrixing)
950
+         
962
           var isHasRetailPrice = header.includes('*拆零零售价');
951
           var isHasRetailPrice = header.includes('*拆零零售价');
963
           console.log("isHasRetailPrice",isHasRetailPrice)
952
           console.log("isHasRetailPrice",isHasRetailPrice)
964
-          var isHasLastPrice = header.includes('*进货价');
965
           var isHasPackingPrice= header.includes('*包装零售价');
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
           var isHasDrugClassifye = header.includes('*药物分类');
958
           var isHasDrugClassifye = header.includes('*药物分类');
968
          console.log("isHasDrugClassifye",isHasDrugClassifye)
959
          console.log("isHasDrugClassifye",isHasDrugClassifye)
969
          var isHasManufacturer = header.includes('*生产厂商');
960
          var isHasManufacturer = header.includes('*生产厂商');
972
         console.log("isHasDrugDose",isHasDrugDose)
963
         console.log("isHasDrugDose",isHasDrugDose)
973
          var isDrugDoseUnit = header.includes('*默认单次用量单位');
964
          var isDrugDoseUnit = header.includes('*默认单次用量单位');
974
          console.log("isDrugDoseUnit",isDrugDoseUnit)
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
             this.dialogVisible = true;
969
             this.dialogVisible = true;
978
             return
970
             return
979
           }
971
           }
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
               } else {
993
               } else {
1019
             if (key == '*剂量') {
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
            if (results[i]['*剂量单位'] === undefined) {
999
            if (results[i]['*剂量单位'] === undefined) {
1025
-                obj['max_unit'] = ''
1000
+                obj['dose_unit'] = ''
1026
               } else {
1001
               } else {
1027
            if (key == '*剂量单位') {
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
               } else {
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
               } else {
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
               } else {
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
             if (results[i]['*药品类型'] === undefined) {
1034
             if (results[i]['*药品类型'] === undefined) {
1068
                 obj['drug_type'] = ''
1035
                 obj['drug_type'] = ''
1069
               } else {
1036
               } else {
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
           if (results[i]['*拆零零售价'] === undefined) {
1069
           if (results[i]['*拆零零售价'] === undefined) {
1125
                 obj['retail_price'] = ''
1070
                 obj['retail_price'] = ''
1126
               } else {
1071
               } else {
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
            if (results[i]['限制性用药'] === undefined) {
1159
            if (results[i]['限制性用药'] === undefined) {
1199
                 obj['lmt_used_flag'] = ''
1160
                 obj['lmt_used_flag'] = ''
1200
               } else {
1161
               } else {
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
        let params = {
1382
        let params = {
1420
           'drugs':tableData
1383
           'drugs':tableData
1421
         };
1384
         };
1422
         console.log("params222222222",params)
1385
         console.log("params222222222",params)
1423
-
1386
+        
1424
         postDrugInformation(params).then(response=>{
1387
         postDrugInformation(params).then(response=>{
1425
            if(response.data.state == 1){
1388
            if(response.data.state == 1){
1426
              var msg =  response.data.data.msg;
1389
              var msg =  response.data.data.msg;

+ 4 - 6
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue View File

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

+ 1 - 0
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

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

+ 16 - 12
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

286
                                         </el-table-column>
286
                                         </el-table-column>
287
                                         <el-table-column label="库存" width="60">
287
                                         <el-table-column label="库存" width="60">
288
                                             <template slot-scope="scope">
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
                                                 <span v-else> {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}</span>
293
                                                 <span v-else> {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}</span>
294
                                             </template>
294
                                             </template>
295
                                         </el-table-column>
295
                                         </el-table-column>
382
                                         </el-table-column>
382
                                         </el-table-column>
383
                                         <el-table-column label="库存" width="40">
383
                                         <el-table-column label="库存" width="40">
384
                                             <template slot-scope="scope">
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
                                                 <span v-else> {{ scope.row.total }}</span>
388
                                                 <span v-else> {{ scope.row.total }}</span>
389
                                             </template>
389
                                             </template>
390
                                         </el-table-column>
390
                                         </el-table-column>
776
             if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
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
               if (project_month_prescriptions.project[a].type == 2) {
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
                 obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
780
                 obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
781
                 obj['project_name'] = project_month_prescriptions.project[a].project.project_name
781
                 obj['project_name'] = project_month_prescriptions.project[a].project.project_name
782
                 obj['project'] = project_month_prescriptions.project[a].project
782
                 obj['project'] = project_month_prescriptions.project[a].project
1111
                     }
1111
                     }
1112
 
1112
 
1113
                     if (prescription.project[b].type == 2) {
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
                       obj['medical_code'] = prescription.project[b].project.medical_code
1115
                       obj['medical_code'] = prescription.project[b].project.medical_code
1116
                       obj['project_name'] = prescription.project[b].project.project_name
1116
                       obj['project_name'] = prescription.project[b].project.project_name
1117
                       obj['project'] = prescription.project[b].project
1117
                       obj['project'] = prescription.project[b].project
1118
 
1118
 
1119
                     } else if (prescription.project[b].type == 3) {
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
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1123
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1122
                       obj['project_name'] = prescription.project[b].good_info.good_name
1124
                       obj['project_name'] = prescription.project[b].good_info.good_name
1123
                       obj['good_info'] = prescription.project[b].good_info
1125
                       obj['good_info'] = prescription.project[b].good_info
1231
                     }
1233
                     }
1232
 
1234
 
1233
                     if (prescription.project[b].type == 2) {
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
                       obj['medical_code'] = prescription.project[b].project.medical_code
1237
                       obj['medical_code'] = prescription.project[b].project.medical_code
1236
                       obj['project_name'] = prescription.project[b].project.project_name
1238
                       obj['project_name'] = prescription.project[b].project.project_name
1237
                       obj['project'] = prescription.project[b].project
1239
                       obj['project'] = prescription.project[b].project
1238
 
1240
 
1239
                     } else if (prescription.project[b].type == 3) {
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
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1245
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1242
                       obj['project_name'] = prescription.project[b].good_info.good_name
1246
                       obj['project_name'] = prescription.project[b].good_info.good_name
1243
                       obj['good_info'] = prescription.project[b].good_info
1247
                       obj['good_info'] = prescription.project[b].good_info

+ 1 - 1
src/xt_pages/hospitalStation/components/prescriptionTable.vue View File

137
       </el-table-column>
137
       </el-table-column>
138
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
138
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
139
         <template slot-scope="scope">{{scope.row.type ==
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
         </template>
141
         </template>
142
       </el-table-column>
142
       </el-table-column>
143
       <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
143
       <el-table-column align="center" prop="single_dose" width="80" label="单次用量">

+ 45 - 33
src/xt_pages/hospitalStation/doctorDesk.vue View File

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

+ 1 - 1
src/xt_pages/hospitalStation/template/printThree.vue View File

31
               <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
31
               <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
32
               <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
32
               <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
33
               <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
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
               <!-- <div>地址:{{item.patient.home_address}}</div> -->
35
               <!-- <div>地址:{{item.patient.home_address}}</div> -->
36
               <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
36
               <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
37
           </div>
37
           </div>

+ 1 - 1
src/xt_pages/hospitalStation/treatTemplate/printTwo.vue View File

29
             <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
29
             <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
30
             <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
30
             <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
31
             <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
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
             <!-- <div>地址:{{item.patient.home_address}}</div> -->
33
             <!-- <div>地址:{{item.patient.home_address}}</div> -->
34
             <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
34
             <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
35
         </div>
35
         </div>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

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

+ 3 - 3
src/xt_pages/outpatientDoctorStation/template/printFive.vue View File

9
               <div><span style="font-size:20px;font-weight:bold;">No</span><div class="underLine" style="width:120px;"></div></div>
9
               <div><span style="font-size:20px;font-weight:bold;">No</span><div class="underLine" style="width:120px;"></div></div>
10
               <div style="display:flex;">
10
               <div style="display:flex;">
11
                   <div style="display: flex;flex-direction: column-reverse;">开具日期</div>
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
               </div>
15
               </div>
16
           </div>
16
           </div>
17
           <div class="basicCell">
17
           <div class="basicCell">

+ 70 - 24
src/xt_pages/outpatientRecord/outpatientRecord.vue View File

27
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
27
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
28
                       v-loading="patientLoading"
28
                       v-loading="patientLoading"
29
                       highlight-current-row>
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
                 <el-table-column align="center" prop="name" label="流水号">
31
                 <el-table-column align="center" prop="name" label="流水号">
39
                     <template slot-scope="scope">{{scope.row.record.trt_dcla_detl_sn}}</template>
32
                     <template slot-scope="scope">{{scope.row.record.trt_dcla_detl_sn}}</template>
40
                 </el-table-column>
33
                 </el-table-column>
102
                     </template>
95
                     </template>
103
                 </el-table-column>
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
                     <template slot-scope="scope">
99
                     <template slot-scope="scope">
107
                         <el-select  filterable style="width:100%;" v-model="scope.row.record.sick_type" placeholder="请选择">
100
                         <el-select  filterable style="width:100%;" v-model="scope.row.record.sick_type" placeholder="请选择">
108
                             <el-option
101
                             <el-option
121
                             <span @click="putOnRecord(1,scope.row)">备案</span>
114
                             <span @click="putOnRecord(1,scope.row)">备案</span>
122
                         </el-button>
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
                     </template>
120
                     </template>
128
                 </el-table-column>
121
                 </el-table-column>
129
             </el-table>
122
             </el-table>
130
 
123
 
131
             <el-dialog title="备案" :visible.sync="dialogFormVisible">
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
                         <el-select v-model="insutype_value" placeholder="请选择" style="width: 200px;">
127
                         <el-select v-model="insutype_value" placeholder="请选择" style="width: 200px;">
135
                             <el-option
128
                             <el-option
136
                                     v-for="item in insutypes"
129
                                     v-for="item in insutypes"
140
                             </el-option>
133
                             </el-option>
141
                         </el-select>
134
                         </el-select>
142
                     </el-form-item>
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
                 </el-form>
178
                 </el-form>
144
                 <div slot="footer" class="dialog-footer">
179
                 <div slot="footer" class="dialog-footer">
145
                     <el-button @click="dialogFormVisible = false">取 消</el-button>
180
                     <el-button @click="dialogFormVisible = false">取 消</el-button>
178
     data() {
213
     data() {
179
       return {
214
       return {
180
         is_put_on_record:0,
215
         is_put_on_record:0,
216
+        start_date:'',
217
+        end_date:"",
218
+        check_date:"",
181
         datas: [
219
         datas: [
182
           {
220
           {
183
             id: 0,
221
             id: 0,
282
         this.keywords = "";
320
         this.keywords = "";
283
         this.getList()
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
       getGdybPatientInfo(){
324
       getGdybPatientInfo(){
296
         let params ={
325
         let params ={
297
           id_card_no:this.currentObject.id_card_no,
326
           id_card_no:this.currentObject.id_card_no,
449
           return
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
         let params = {
495
         let params = {
453
           record_type: 0,
496
           record_type: 0,
454
           patient_id: this.currentObject.id,
497
           patient_id: this.currentObject.id,
455
           insutype: this.insutype_value,
498
           insutype: this.insutype_value,
499
+          start_time: this.start_date,
500
+          end_time: this.end_date,
501
+          check_time: this.check_date,
456
           psn_no: this.psn_no,
502
           psn_no: this.psn_no,
457
           sick_id: this.currentObject.record.sick_type,
503
           sick_id: this.currentObject.record.sick_type,
458
           doctor_id: this.currentObject.record.doctor_id,
504
           doctor_id: this.currentObject.record.doctor_id,

+ 143 - 38
src/xt_pages/qcd/basicInformationAnalysis.vue View File

129
               <div class="borderBox">
129
               <div class="borderBox">
130
                <div v-for="(item,index) in modetype" :key="index">
130
                <div v-for="(item,index) in modetype" :key="index">
131
                  <span v-if="item.mode_id == 'HD'">
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
                   </span>
134
                   </span>
135
                   <span v-if="item.mode_id == 'HDF'">
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
                   </span>
138
                   </span>
139
                   <span v-if="item.mode_id == 'HD+HP'">
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
                   </span>
142
                   </span>
143
                   <span v-if="item.mode_id == 'HP'">
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
                   </span>
146
                   </span>
147
                   <span v-if="item.mode_id == 'HF'">
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
                   </span>
150
                   </span>
151
                   <span v-if="item.mode_id == 'SCUF'">
151
                   <span v-if="item.mode_id == 'SCUF'">
152
                     <p>SCUF:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
152
                     <p>SCUF:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
153
                     <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
153
                     <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
154
                   </span>
154
                   </span>
155
                   <span v-if="item.mode_id == 'IUF'">
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
                   </span>
158
                   </span>
159
                   <span v-if="item.mode_id == 'HFHD'">
159
                   <span v-if="item.mode_id == 'HFHD'">
160
                     <p>HFHD:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
160
                     <p>HFHD:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
161
                     <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
161
                     <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
162
                   </span>
162
                   </span>
163
                   <span v-if="item.mode_id == 'HFHD+HP'">
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
                   </span>
166
                   </span>
167
                   <span v-if="item.mode_id == 'PHF'">
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
                   </span>
170
                   </span>
171
                    <span v-if="item.mode_id == 'HFR'">
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
                   </span>
174
                   </span>
175
                   <span v-if="item.mode_id == 'HDF+HP'">
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
                   </span>
178
                   </span>
179
                   <span v-if="item.mode_id == 'HFHD+HP'">
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
                   </span>
182
                   </span>
183
                    <span v-if="item.mode_id == '腹水回输'">
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
                   </span>
186
                   </span>
187
                    <span v-if="item.mode_id == 'HD前置换'">
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
                    </span>
190
                    </span>
191
                     <span v-if="item.mode_id == 'HD后置换'">
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
                    </span>
194
                    </span>
195
                     <span v-if="item.mode_id == 'HDF前置换'">
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
                    </span>
198
                    </span>
199
                     <span v-if="item.mode_id == 'HDF后置换'">
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
                    </span>
202
                    </span>
203
                    <span v-if="item.mode_id == 'IUF+HD'">
203
                    <span v-if="item.mode_id == 'IUF+HD'">
204
                       <p>IUF+HD:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
204
                       <p>IUF+HD:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
205
                       <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
205
                       <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
206
                   </span>
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
                   </span>
257
                   </span>
211
                </div>
258
                </div>
212
               </div>
259
               </div>
725
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
772
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
726
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
773
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
727
        console.log("本月最后一天",timeEnd)
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
       if(state == 0){
781
       if(state == 0){
730
        //统计透析总量
782
        //统计透析总量
756
         // console.log("结束时间",endDate)
808
         // console.log("结束时间",endDate)
757
          var endunitx = Date.parse(endDate)/1000
809
          var endunitx = Date.parse(endDate)/1000
758
         // console.log("日期时间搓",endunitx)
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
         this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
816
         this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
761
          //统计转归状态
817
          //统计转归状态
786
         // console.log("结束时间",endDate)
842
         // console.log("结束时间",endDate)
787
          var endunitx = Date.parse(endDate)/1000
843
          var endunitx = Date.parse(endDate)/1000
788
         // console.log("日期时间搓",endunitx)
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
         this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
850
         this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
791
          //统计转归状态
851
          //统计转归状态
817
         // console.log("结束时间",endDate)
877
         // console.log("结束时间",endDate)
818
          var endunitx = Date.parse(endDate)/1000
878
          var endunitx = Date.parse(endDate)/1000
819
         // console.log("日期时间搓",endunitx)
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
         this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
885
         this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
822
          //统计转归状态
886
          //统计转归状态
854
       getDialysisModeType(startDate,endDate,lapsetoType,sourceType).then(response=>{
918
       getDialysisModeType(startDate,endDate,lapsetoType,sourceType).then(response=>{
855
          if(response.data.state == 1){
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
           var total =  response.data.data.total
924
           var total =  response.data.data.total
861
           console.log("total",total)
925
           console.log("total",total)
862
           this.total = total.count
926
           this.total = total.count
864
           // console.log("数据",this.modetype)
928
           // console.log("数据",this.modetype)
865
           var modedate = response.data.data.modetype
929
           var modedate = response.data.data.modetype
866
           for(let i=0;i<modedate.length;i++){
930
           for(let i=0;i<modedate.length;i++){
931
+            if(modedate[i].mode_id == 0){
932
+              modedate[i].mode_id = "未知"
933
+            }
867
             if(modedate[i].mode_id == 1){
934
             if(modedate[i].mode_id == 1){
868
                modedate[i].mode_id = "HD"
935
                modedate[i].mode_id = "HD"
869
             }
936
             }
921
            if(modedate[i].mode_id == 19){
988
            if(modedate[i].mode_id == 19){
922
                modedate[i].mode_id = "IUF+HD"
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
             // this.modesData.xAxis.push(modedate[i].mode_id)
1029
             // this.modesData.xAxis.push(modedate[i].mode_id)
925
             // this.modesData.series.push(((modedate[i].count/total)*100).toFixed(1))
1030
             // this.modesData.series.push(((modedate[i].count/total)*100).toFixed(1))
926
           }
1031
           }

+ 17 - 17
src/xt_pages/qcd/treatmentControlAnalysis/components/TimeAll.vue View File

86
         ></el-table-column>
86
         ></el-table-column>
87
       </el-table>
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
     </div>
101
     </div>
102
   </div>
102
   </div>
103
 </template>
103
 </template>
296
       geStatistics(this.listQuery).then(response=>{
296
       geStatistics(this.listQuery).then(response=>{
297
 
297
 
298
         if(response.data.state === 1){
298
         if(response.data.state === 1){
299
+          this.tableData = []
299
           var statistics =  response.data.data.statistics
300
           var statistics =  response.data.data.statistics
300
           var treatinfo = response.data.data.treatinfo
301
           var treatinfo = response.data.data.treatinfo
301
           this.total =  response.data.data.total
302
           this.total =  response.data.data.total
310
                 }
311
                 }
311
             })
312
             })
312
          let list = Object.values(dataInfo)
313
          let list = Object.values(dataInfo)
313
-      
314
+
314
          list.map(item=>{
315
          list.map(item=>{
315
            for(let i=0;i<statistics.length;i++){
316
            for(let i=0;i<statistics.length;i++){
316
              if(item.date == statistics[i].date){
317
              if(item.date == statistics[i].date){
333
               dd[dtd[index].date][dtd[index].mode_id] = dtd[index];
334
               dd[dtd[index].date][dtd[index].mode_id] = dtd[index];
334
             }
335
             }
335
           }
336
           }
336
-          
337
+
337
           for (const key in dd) {
338
           for (const key in dd) {
338
             var total = 0;
339
             var total = 0;
339
             for (const mkey in this.modeOptions) {
340
             for (const mkey in this.modeOptions) {
340
               if (mkey in dd[key]) {
341
               if (mkey in dd[key]) {
341
-               
342
+
342
                 console.log(this.modeOptions[mkey].name)
343
                 console.log(this.modeOptions[mkey].name)
343
                 dd[key][mkey].mode = this.modeOptions[mkey].name;
344
                 dd[key][mkey].mode = this.modeOptions[mkey].name;
344
                 var number = parseInt(dd[key][mkey].number);
345
                 var number = parseInt(dd[key][mkey].number);
355
                 };
356
                 };
356
               }
357
               }
357
             }
358
             }
358
-            this.tableData = []
359
             this.tableData.push({ date: key, data: dd[key], total: total });
359
             this.tableData.push({ date: key, data: dd[key], total: total });
360
           }
360
           }
361
         }
361
         }
362
        })
362
        })
363
     },
363
     },
364
- 
364
+
365
   },
365
   },
366
   created(){
366
   created(){
367
     this.modeOptions = this.$store.getters.treatment_mode;
367
     this.modeOptions = this.$store.getters.treatment_mode;

+ 12 - 7
src/xt_pages/stock/detail/print.vue View File

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

+ 58 - 37
src/xt_pages/stock/detail/stockOutDetail.vue View File

126
         </el-table-column>
126
         </el-table-column>
127
         <el-table-column label="出货价" align="center">
127
         <el-table-column label="出货价" align="center">
128
           <template slot-scope="scope">
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
           </template>
131
           </template>
131
         </el-table-column>
132
         </el-table-column>
132
         <el-table-column label="数量" align="center">
133
         <el-table-column label="数量" align="center">
199
     }
200
     }
200
     window.sessionStorage.removeItem('start')
201
     window.sessionStorage.removeItem('start')
201
     window.sessionStorage.removeItem('end')  
202
     window.sessionStorage.removeItem('end')  
203
+    this.getGoodDetailPrintList()
202
     this.GetCancelStock();
204
     this.GetCancelStock();
203
     this.GetConfigInfo();
205
     this.GetConfigInfo();
204
     this.fetchAllAdminUsers();
206
     this.fetchAllAdminUsers();
205
     this.goodUnit = this.$store.getters.good_unit
207
     this.goodUnit = this.$store.getters.good_unit
206
     var org_id = this.$store.getters.xt_user.org.id
208
     var org_id = this.$store.getters.xt_user.org.id
207
     this.orgId = org_id
209
     this.orgId = org_id
208
-    this.getGoodDetailPrintList()
210
+    
209
     
211
     
210
   },
212
   },
211
   data() {
213
   data() {
366
             total += response.data.data.list[i].price * response.data.data.list[i].count
368
             total += response.data.data.list[i].price * response.data.data.list[i].count
367
             obj["is_total"] = 0;
369
             obj["is_total"] = 0;
368
             this.cancelStockDate.push(obj);
370
             this.cancelStockDate.push(obj);
369
-            
370
           }
371
           }
372
+          
371
           this.tableDataList = response.data.data.list
373
           this.tableDataList = response.data.data.list
374
+           console.log("耗材出库数据323323323232232323232",this.tableDataList)
372
           this.cancelStockDate.push({
375
           this.cancelStockDate.push({
373
             warehouse_out_order_number: "合计",
376
             warehouse_out_order_number: "合计",
374
             is_total: 1,
377
             is_total: 1,
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
      calCount(stock) {
651
      calCount(stock) {
649
         let total = 0
652
         let total = 0
650
         var array = []
653
         var array = []
679
         }
682
         }
680
         return Math.floor(amountPrice* 100) / 100
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
       getTotal: function(price, total) {
685
       getTotal: function(price, total) {
692
         var m = 0, r1, r2
686
         var m = 0, r1, r2
693
         var s1 = price.toString()
687
         var s1 = price.toString()
741
         this.tableOut[i].good_name = this.tableOut[i].good_name
735
         this.tableOut[i].good_name = this.tableOut[i].good_name
742
         this.tableOut[i].specification_name = this.tableOut[i].specification_name
736
         this.tableOut[i].specification_name = this.tableOut[i].specification_name
743
         this.tableOut[i].packing_unit = this.tableOut[i].packing_unit
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
         this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
745
         this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
746
        }
746
        }
747
        import('@/vendor/Export2Excel').then(excel => {
747
        import('@/vendor/Export2Excel').then(excel => {
748
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
748
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
749
+
749
        const filterVal = ['index','good_name', 'specification_name', 'packing_unit','out_count','packing_price','total_price','remark']
750
        const filterVal = ['index','good_name', 'specification_name', 'packing_unit','out_count','packing_price','total_price','remark']
750
 
751
 
751
        const data = this.formatJson(filterVal, this.tableOut)
752
        const data = this.formatJson(filterVal, this.tableOut)
752
-       
753
+       console.log("date2332323232",data)
754
+      
753
         excel.export_json_to_excel({
755
         excel.export_json_to_excel({
754
            header: tHeader,
756
            header: tHeader,
755
            data,
757
            data,
770
           this.tableDataList[i].time = this.getTime(this.tableDataList[i].WarehouseOut.warehouse_out_time)
772
           this.tableDataList[i].time = this.getTime(this.tableDataList[i].WarehouseOut.warehouse_out_time)
771
           this.tableDataList[i].user_name = this.getXuserName(this.tableDataList[i].WarehouseOut.creater)
773
           this.tableDataList[i].user_name = this.getXuserName(this.tableDataList[i].WarehouseOut.creater)
772
           this.tableDataList[i].out_count = this.tableDataList[i].count
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
         obj.total_price = total.toFixed(2)
785
         obj.total_price = total.toFixed(2)
777
         this.tableDataList.push(obj)
786
         this.tableDataList.push(obj)
820
       getGoodDetailPrintList(params).then(response=>{
829
       getGoodDetailPrintList(params).then(response=>{
821
         if(response.data.state == 1){
830
         if(response.data.state == 1){
822
           var list = response.data.data.list
831
           var list = response.data.data.list
832
+        
823
           this.tableOut = list
833
           this.tableOut = list
824
           var stockTotal = response.data.data.stockTotal
834
           var stockTotal = response.data.data.stockTotal
835
+          console.log("list88888888888888888888",stockTotal)
825
           this.stockTotal = stockTotal
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
 </script>
852
 </script>

+ 94 - 39
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

153
           </template>
153
           </template>
154
         </el-table-column>
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
         <el-table-column label="操作时间" align="center">
157
         <el-table-column label="操作时间" align="center">
164
           <template slot-scope="scope">
158
           <template slot-scope="scope">
165
            <span>{{getTime(scope.row.ctime)}}</span>
159
            <span>{{getTime(scope.row.ctime)}}</span>
172
         </el-table-column>
166
         </el-table-column>
173
         <el-table-column label="出货价" align="center">
167
         <el-table-column label="出货价" align="center">
174
           <template slot-scope="scope">
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
           </template>
171
           </template>
177
         </el-table-column>
172
         </el-table-column>
178
         <el-table-column label="数量" align="center">
173
         <el-table-column label="数量" align="center">
429
           for(let i=0;i<order.length;i++){
424
           for(let i=0;i<order.length;i++){
430
              order[i].specification_name  = order[i].dose + order[i].dose_unit + "*" + order[i].min_number +  order[i].min_unit + "/" + order[i].max_unit
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
              order[i].is_total = 0
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
            order.push({
437
            order.push({
436
             warehouse_out_order_number: "合计",
438
             warehouse_out_order_number: "合计",
437
             is_total: 1,
439
             is_total: 1,
443
           for(let i=0;i<order.length;i++){
445
           for(let i=0;i<order.length;i++){
444
             order[i].total_price = order[i].total_price.toFixed(2)
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
           this.tableData = order
450
           this.tableData = order
449
            let objInfo = {}
451
            let objInfo = {}
450
           order.forEach((item,index)=>{
452
           order.forEach((item,index)=>{
451
              let { drug_id } = item
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
           let list = Object.values(objInfo);
493
           let list = Object.values(objInfo);
471
           
494
           
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
           this.tableList = list 
516
           this.tableList = list 
493
           var total = response.data.data.total
517
           var total = response.data.data.total
494
           this.total = total
518
           this.total = total
517
         }
541
         }
518
         for(let i=0;i<this.tablePrint.length;i++){
542
         for(let i=0;i<this.tablePrint.length;i++){
519
            if(this.org_id == 9671 || this.org_id == 9919 ){
543
            if(this.org_id == 9671 || this.org_id == 9919 ){
544
+           
520
              this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
545
              this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
521
              this.tablePrint[i].total_price = this.getCountSenven(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
546
              this.tablePrint[i].total_price = this.getCountSenven(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
522
              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
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
               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
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
               this.tablePrint[i].total = this.getTotalPriceOne(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].price) 
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
        console.log("列表数据333333333",this.tablePrint)
556
        console.log("列表数据333333333",this.tablePrint)
534
-    
557
+      
535
        import('@/vendor/Export2Excel').then(excel => {
558
        import('@/vendor/Export2Excel').then(excel => {
536
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','备注']
559
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','备注']
537
        const filterVal = ['index','drug_name', 'unit', 'min_unit','count','price','total_price','remark']
560
        const filterVal = ['index','drug_name', 'unit', 'min_unit','count','price','total_price','remark']
567
         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
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
         this.tableData[i].time = this.getTime(this.tableData[i].ctime)
591
         this.tableData[i].time = this.getTime(this.tableData[i].ctime)
569
         this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)
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
        let obj = {'index':'合计','total_price':0.00}
603
        let obj = {'index':'合计','total_price':0.00}
574
        for(let i=0;i<this.tableData.length;i++){
604
        for(let i=0;i<this.tableData.length;i++){
627
             var list = response.data.data.list
657
             var list = response.data.data.list
628
             console.log("药品出库详情",list)
658
             console.log("药品出库详情",list)
629
             let objInfo = {}
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
               let { drug_id } = item
684
               let { drug_id } = item
632
               if(!objInfo[drug_id]){
685
               if(!objInfo[drug_id]){
633
                 objInfo[drug_id] = {
686
                 objInfo[drug_id] = {
648
                 }
701
                 }
649
               }
702
               }
650
             })
703
             })
704
+            }
705
+           
651
             let newArr = Object.values(objInfo);
706
             let newArr = Object.values(objInfo);
652
             for(let i=0;i<newArr.length;i++){
707
             for(let i=0;i<newArr.length;i++){
653
               for(let j=0;j<list.length;j++){
708
               for(let j=0;j<list.length;j++){
720
         return total*min_price
775
         return total*min_price
721
       },
776
       },
722
       getCountSix(drug_id,val){
777
       getCountSix(drug_id,val){
723
-        console.log("val233232",val)
778
+     
724
         var count = 0 
779
         var count = 0 
725
         for(let i=0;i<val.length;i++){
780
         for(let i=0;i<val.length;i++){
726
           count+= val[i].count
781
           count+= val[i].count

+ 2 - 2
src/xt_pages/stock/drugs/drugOutOrderPrint.vue View File

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

+ 3 - 0
src/xt_pages/stock/stockPrint.vue View File

14
                     <div class="order_title_panl">
14
                     <div class="order_title_panl">
15
                         <span class="main_title">耗材管理查询表</span>
15
                         <span class="main_title">耗材管理查询表</span>
16
                     </div>
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
                     <div style="text-align:right;margin-bottom:20px;font-size: 18px;">
20
                     <div style="text-align:right;margin-bottom:20px;font-size: 18px;">
18
                       打印时间:{{time_now}}
21
                       打印时间:{{time_now}}
19
                     </div>
22
                     </div>

+ 15 - 12
src/xt_pages/stock/stockQuery.vue View File

108
        </el-table-column>
108
        </el-table-column>
109
        <el-table-column label="出库数量" align="center" v-if="showOne">
109
        <el-table-column label="出库数量" align="center" v-if="showOne">
110
          <template slot-scope="scope">
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
             <span>
112
             <span>
113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
114
             </span>
114
             </span>
116
           <span v-else>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span>
116
           <span v-else>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span>
117
          </template>
117
          </template>
118
        </el-table-column>
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
          <template slot-scope="scope">
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
             {{getOverFlushInfo(scope.row.xt_warehouse_info)}}
123
             {{getOverFlushInfo(scope.row.xt_warehouse_info)}}
130
           </span>
124
           </span>
131
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
125
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
132
          </template>
126
          </template>
133
        </el-table-column>
127
        </el-table-column>
134
-
128
+        
129
+    
135
       <el-table-column label="剩余库存量" align="center" v-if="showFour">
130
       <el-table-column label="剩余库存量" align="center" v-if="showFour">
136
          <template slot-scope="scope">
131
          <template slot-scope="scope">
137
           <span>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
132
           <span>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
138
          </template>
133
          </template>
139
        </el-table-column>
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
        <el-table-column label="操作" align="center" width="260px">
143
        <el-table-column label="操作" align="center" width="260px">
141
           <template slot-scope="scope">
144
           <template slot-scope="scope">
142
               <el-button
145
               <el-button
447
           }
450
           }
448
           if(this.end_time !=""){
451
           if(this.end_time !=""){
449
             this.showThree = false
452
             this.showThree = false
453
+            this.showOne = false
450
             this.showTwo = true
454
             this.showTwo = true
451
             console.log("hh3223322323",this.showTwo)
455
             console.log("hh3223322323",this.showTwo)
452
-            this.showOne = false
453
             this.showFour = true
456
             this.showFour = true
454
           }
457
           }
455
           var list = response.data.data.list
458
           var list = response.data.data.list

+ 13 - 13
src/xt_pages/user/templateSummary.vue View File

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

+ 29 - 11
src/xt_pages/workforce/template.vue View File

103
 
103
 
104
 
104
 
105
         <el-button size="small" icon="el-icon-setting" type="primary" @click="setScheduleTemplateAction">设置模板</el-button>
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
       </div>
107
       </div>
108
       <!-- </el-col> -->
108
       <!-- </el-col> -->
109
     </div>
109
     </div>
117
                           :patients="patients"></template-table>
117
                           :patients="patients"></template-table>
118
         </el-tab-pane>
118
         </el-tab-pane>
119
         <el-tab-pane name="first" :disabled="template_mode.mode == 0">
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
           <template-table :editable="true" :device_numbers="device_numbers" :template="first_template"
125
           <template-table :editable="true" :device_numbers="device_numbers" :template="first_template"
122
                           :patients="patients" @cancel_sch="refresh"></template-table>
126
                           :patients="patients" @cancel_sch="refresh"></template-table>
123
         </el-tab-pane>
127
         </el-tab-pane>
124
 
128
 
125
         <el-tab-pane name="second" :disabled="template_mode.mode != 2">
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
           <template-table :editable="true" :device_numbers="device_numbers" :template="second_template"
134
           <template-table :editable="true" :device_numbers="device_numbers" :template="second_template"
128
                           :patients="patients" @cancel_sch="refresh"></template-table>
135
                           :patients="patients" @cancel_sch="refresh"></template-table>
129
         </el-tab-pane>
136
         </el-tab-pane>
135
 
142
 
136
      <el-dialog title="同步排班" width="600px" :visible.sync="newVisible">
143
      <el-dialog title="同步排班" width="600px" :visible.sync="newVisible">
137
             <el-form :model="form"  ref="form" label-width="90px" :rules="rules">
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
                 </el-form-item>
148
                 </el-form-item>
142
                 <el-form-item label="同步到 :">
149
                 <el-form-item label="同步到 :">
143
                   <el-select v-model="form.copyWeek" placeholder="请选择" required  prop="copyWeek">
150
                   <el-select v-model="form.copyWeek" placeholder="请选择" required  prop="copyWeek">
164
   import TemplateTable from './components/template_table'
171
   import TemplateTable from './components/template_table'
165
   import { getTemplateInitData } from '@/api/schedule_template/patient'
172
   import { getTemplateInitData } from '@/api/schedule_template/patient'
166
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
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
   import ScheduleTemplateUploadExcel from './components/scheduleTemplateUploadExcel/index'
175
   import ScheduleTemplateUploadExcel from './components/scheduleTemplateUploadExcel/index'
169
   import { generateLog } from '@/api/config'
176
   import { generateLog } from '@/api/config'
170
 
177
 
241
         },
248
         },
242
         rules: {
249
         rules: {
243
           copyWeek: [{ required: true, message: "请选择同步时间段", trigger: "blur" }],
250
           copyWeek: [{ required: true, message: "请选择同步时间段", trigger: "blur" }],
244
-        }
251
+        },
252
+        schedule:{},
245
       }
253
       }
246
     },
254
     },
247
     created() {
255
     created() {
256
+      this.getPatientScheduleTemplate()
248
       let year = new Date().getFullYear()
257
       let year = new Date().getFullYear()
249
      let month = new Date().getMonth() + 1
258
      let month = new Date().getMonth() + 1
250
      let date = new Date().getDate()
259
      let date = new Date().getDate()
251
      this.weekNum = this.getYearWeek(year,month,date)
260
      this.weekNum = this.getYearWeek(year,month,date)
252
      this.todayDate=this.formatDate(new Date())
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
      for (var i = 0; i <= 9; i++) {
264
      for (var i = 0; i <= 9; i++) {
256
        this.setDate1(this.addDate(this.currentDate, 7))
265
        this.setDate1(this.addDate(this.currentDate, 7))
259
      for(let i = 0; i < this.weekList.length; i++){
268
      for(let i = 0; i < this.weekList.length; i++){
260
          if(this.weekNum + i + 1 <= 53){
269
          if(this.weekNum + i + 1 <= 53){
261
              let num = this.weekNum + i 
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
              this.typeOptions.push({value:i,label:str})
272
              this.typeOptions.push({value:i,label:str})
264
             let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
273
             let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
265
             this.timeOptions.push({value:i,label:stt})
274
             this.timeOptions.push({value:i,label:stt})
266
         }else{
275
         }else{
267
 
276
 
268
             newNum++
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
             this.typeOptions.push({value:i,label:str})
279
             this.typeOptions.push({value:i,label:str})
271
             let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
280
             let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
272
             this.timeOptions.push({value:i,label:stt})
281
             this.timeOptions.push({value:i,label:stt})
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 View File

26
   // }
26
   // }
27
   // return
27
   // return
28
   // 线上注释
28
   // 线上注释
29
-
30
   NProgress.start()
29
   NProgress.start()
31
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
32
   // alert('path:' + to.path)
31
   // alert('path:' + to.path)