Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 year ago
parent
commit
5732c995d8

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

153
           <!--</el-button>-->
153
           <!--</el-button>-->
154
 
154
 
155
           <el-button type="primary" size="small" >
155
           <el-button type="primary" size="small" >
156
-            <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
157
-            <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
156
+            <span   @click="putOnRecord(scope.row.id)" >目录对照</span>
157
+            <span  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
158
           </el-button>
158
           </el-button>
159
         </template>
159
         </template>
160
       </el-table-column>
160
       </el-table-column>

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

165
 
165
 
166
 
166
 
167
           <el-button type="primary" size="small" icon="el-icon-refresh-left">
167
           <el-button type="primary" size="small" icon="el-icon-refresh-left">
168
-            <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
169
-            <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
168
+            <span  @click="putOnRecord(scope.row.id)" >目录对照</span>
169
+            <span  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
170
           </el-button>
170
           </el-button>
171
         </template>
171
         </template>
172
       </el-table-column>
172
       </el-table-column>

+ 10 - 10
src/xt_pages/data/components/project.vue View File

128
                     <!--</el-button>-->
128
                     <!--</el-button>-->
129
 
129
 
130
                     <el-button type="primary" size="small" icon="el-icon-refresh-left">
130
                     <el-button type="primary" size="small" icon="el-icon-refresh-left">
131
-                        <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
132
-                        <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
131
+                        <span  @click="putOnRecord(scope.row.id)" >目录对照</span>
132
+                        <span  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
133
                     </el-button>
133
                     </el-button>
134
                 </template>
134
                 </template>
135
             </el-table-column>
135
             </el-table-column>
902
       },
902
       },
903
       exportList(){
903
       exportList(){
904
         import('@/vendor/Export2Excel').then(excel => {
904
         import('@/vendor/Export2Excel').then(excel => {
905
-        
905
+
906
          for(let i=0;i<this.tableData.length;i++){
906
          for(let i=0;i<this.tableData.length;i++){
907
            for(let j=0;j<this.getDictionaryDataConfig('system','cost_classify').length;j++){
907
            for(let j=0;j<this.getDictionaryDataConfig('system','cost_classify').length;j++){
908
               if(this.tableData[i].cost_classify == this.getDictionaryDataConfig('system','cost_classify')[j].id){
908
               if(this.tableData[i].cost_classify == this.getDictionaryDataConfig('system','cost_classify')[j].id){
909
-                 this.tableData[i].cost_classify_name = this.getDictionaryDataConfig('system','cost_classify')[j].name 
909
+                 this.tableData[i].cost_classify_name = this.getDictionaryDataConfig('system','cost_classify')[j].name
910
               }
910
               }
911
            }
911
            }
912
            for(let y=0;y<this.getDictionaryDataConfig('system','medical_insurance_level').length;y++){
912
            for(let y=0;y<this.getDictionaryDataConfig('system','medical_insurance_level').length;y++){
913
               if(this.tableData[i].medical_coverage == this.getDictionaryDataConfig('system','medical_insurance_level')[y].id){
913
               if(this.tableData[i].medical_coverage == this.getDictionaryDataConfig('system','medical_insurance_level')[y].id){
914
-                 this.tableData[i].medical_coverage_name = this.getDictionaryDataConfig('system','medical_insurance_level')[y].name 
914
+                 this.tableData[i].medical_coverage_name = this.getDictionaryDataConfig('system','medical_insurance_level')[y].name
915
               }
915
               }
916
            }
916
            }
917
            for(let a=0;a<this.departMentList.length;a++){
917
            for(let a=0;a<this.departMentList.length;a++){
922
          }
922
          }
923
           console.log("this.table",this.tableData)
923
           console.log("this.table",this.tableData)
924
          const tHeader = ['项目名称','零价','单位','费用类别','执行科室','医保等级','国家编码','社保目录编码']
924
          const tHeader = ['项目名称','零价','单位','费用类别','执行科室','医保等级','国家编码','社保目录编码']
925
-         const filterVal = ['project_name', 'price','unit','cost_classify_name','executive_section_name','medical_coverage_name','medical_code','social_security_directory_code'] 
926
-         
925
+         const filterVal = ['project_name', 'price','unit','cost_classify_name','executive_section_name','medical_coverage_name','medical_code','social_security_directory_code']
926
+
927
          const data = this.formatJson(filterVal,this.tableData)
927
          const data = this.formatJson(filterVal,this.tableData)
928
-     
928
+
929
          excel.export_json_to_excel({
929
          excel.export_json_to_excel({
930
            header: tHeader,
930
            header: tHeader,
931
            data,
931
            data,
932
            filename: '项目信息'
932
            filename: '项目信息'
933
          })
933
          })
934
           this.downloadLoading = false
934
           this.downloadLoading = false
935
-    
935
+
936
         })
936
         })
937
        },
937
        },
938
        formatJson(filterVal, jsonData) {
938
        formatJson(filterVal, jsonData) {
939
         return jsonData.map(v => filterVal.map(j => v[j]))
939
         return jsonData.map(v => filterVal.map(j => v[j]))
940
        },
940
        },
941
-     
941
+
942
     },
942
     },
943
     created(){
943
     created(){
944
       this.getlist();
944
       this.getlist();

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

750
                         >
750
                         >
751
                          
751
                          
752
 
752
 
753
-                          <span v-if="org_id==10223">
753
+                          <span v-if="org_id==10265">
754
                               {{
754
                               {{
755
                             record.prescription.replacement_total
755
                             record.prescription.replacement_total
756
                               ? record.prescription.replacement_total
756
                               ? record.prescription.replacement_total
757
                               : "/"
757
                               : "/"
758
                            }}
758
                            }}
759
                           </span>
759
                           </span>
760
-                          <span v-if="org_id!=10223">
760
+                          <span v-if="org_id!=10265">
761
                             {{
761
                             {{
762
                             record.prescription &&
762
                             record.prescription &&
763
                             record.prescription.displace_liqui_value
763
                             record.prescription.displace_liqui_value

+ 36 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue View File

389
                       style="padding-left:5px;border-left:1px solid #000;padding-left:5px"
389
                       style="padding-left:5px;border-left:1px solid #000;padding-left:5px"
390
                     >
390
                     >
391
                       医师签名:
391
                       医师签名:
392
-                      <span
392
+                      <!-- <span
393
                           v-if="
393
                           v-if="
394
                         setAdminUserES(
394
                         setAdminUserES(
395
                         record.prescription,
395
                         record.prescription,
409
                           srcset=""
409
                           srcset=""
410
                           v-else
410
                           v-else
411
                           style="height: 30px;"
411
                           style="height: 30px;"
412
-                        />
412
+                        /> -->
413
+                        <span
414
+                            v-if="
415
+                              !record.advices ||
416
+                                typeof record.advices[0] == 'undefined' ||
417
+                                typeof record.advices[0][0] == 'undefined'
418
+                            "
419
+                          ></span>
420
+                          <span
421
+                            v-else-if="
422
+                              setAdminUserES(
423
+                                record.advices[0][0],
424
+                                'advice_doctor'
425
+                              ) == ''
426
+                            "
427
+                            >{{
428
+                              getAdminUser(
429
+                                record.advices[0][0],
430
+                                "advice_doctor"
431
+                              )
432
+                            }}</span
433
+                          >
434
+                          <img
435
+                            :src="
436
+                              setAdminUserES(
437
+                                record.advices[0][0],
438
+                                'advice_doctor'
439
+                              )
440
+                            "
441
+                            alt=""
442
+                            srcset=""
443
+                            v-else
444
+                             style="height: 30px;"
445
+                          />
446
+                    </span>
413
                     </td>
447
                     </td>
414
                   </tr>
448
                   </tr>
415
                   <tr style="text-align:left">
449
                   <tr style="text-align:left">

+ 2 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

2099
         });
2099
         });
2100
       }else if (this.org_template_info.template_id == 199 ) {
2100
       }else if (this.org_template_info.template_id == 199 ) {
2101
         printJS({
2101
         printJS({
2102
-          printable: "dialysis-print-box-64",
2102
+          printable: "dialysis-print-box-1",
2103
           type: "html",
2103
           type: "html",
2104
-          style: style12,
2104
+          style: style2,
2105
           scanStyles: false,
2105
           scanStyles: false,
2106
         });
2106
         });
2107
        
2107
        

+ 3 - 3
src/xt_pages/dialysis/newDoctorAdvice.vue View File

42
 
42
 
43
        
43
        
44
       </div>
44
       </div>
45
-      <!-- <div class="filter-container">
45
+      <div class="filter-container" v-if="org_id == 0 || org_id ==10101">
46
       <el-input style="width:200px" placeholder="请输入药品名称" v-model="keyword"></el-input>
46
       <el-input style="width:200px" placeholder="请输入药品名称" v-model="keyword"></el-input>
47
        <el-button type="primary" @click="toSeachOne">搜索</el-button>
47
        <el-button type="primary" @click="toSeachOne">搜索</el-button>
48
 
48
 
49
        
49
        
50
-      </div> -->
50
+      </div>
51
       <div class="cell clearfix">
51
       <div class="cell clearfix">
52
         <label class="title">
52
         <label class="title">
53
           <span class="name">日期查询:</span>
53
           <span class="name">日期查询:</span>
1332
          if(nameOne == '全部'){
1332
          if(nameOne == '全部'){
1333
           nameOne = ""
1333
           nameOne = ""
1334
         }
1334
         }
1335
-      this.$router.push({ path: "/dialysis/signPrint",query:{time: new Date(this.time).getTime(),delivery_way:name,execution_frequency:nameOne,patient_id:this.patient_id} });
1335
+      this.$router.push({ path: "/dialysis/signPrint",query:{time: new Date(this.time).getTime(),delivery_way:name,execution_frequency:nameOne,patient_id:this.patient_id,keyword:this.keyword} });
1336
 
1336
 
1337
     },
1337
     },
1338
     batchPrintActionOne: function() {
1338
     batchPrintActionOne: function() {

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

134
             delivery_way:this.delivery_way,
134
             delivery_way:this.delivery_way,
135
             execution_frequency:this.execution_frequency,
135
             execution_frequency:this.execution_frequency,
136
             patient_id:this.$route.query.patient_id,
136
             patient_id:this.$route.query.patient_id,
137
+            keyword:this.$route.query.keyword,
137
             }).then(rs => {
138
             }).then(rs => {
138
                 var resp = rs.data
139
                 var resp = rs.data
139
                 if (resp.state == 1) {
140
                 if (resp.state == 1) {

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

762
                         class="under_line"
762
                         class="under_line"
763
                         style="width: 70px; text-align: center"
763
                         style="width: 70px; text-align: center"
764
                       >
764
                       >
765
-                      <span v-if="org_id==10223"> {{
765
+                      <span v-if="org_id ==10265"> {{
766
                           prescription.replacement_total
766
                           prescription.replacement_total
767
                             ? prescription.replacement_total
767
                             ? prescription.replacement_total
768
                             : "/"
768
                             : "/"
769
                         }}
769
                         }}
770
                         </span> 
770
                         </span> 
771
-                        <span v-if="org_id!=10223"> {{
771
+                        <span v-if="org_id!=10265"> {{
772
                           prescription.displace_liqui_value
772
                           prescription.displace_liqui_value
773
                             ? prescription.displace_liqui_value
773
                             ? prescription.displace_liqui_value
774
                             : "/"
774
                             : "/"

+ 13 - 2
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue View File

341
                 "
341
                 "
342
               >
342
               >
343
                 医师签名:
343
                 医师签名:
344
-                <span v-if="setAdminUserES(prescription.creater) == ''">
344
+                <!-- <span v-if="setAdminUserES(prescription.creater) == ''">
345
                   {{ getAdminUser(prescription.creater) }}
345
                   {{ getAdminUser(prescription.creater) }}
346
                 </span>
346
                 </span>
347
                 <img
347
                 <img
350
                   alt
350
                   alt
351
                   srcset
351
                   srcset
352
                   v-else
352
                   v-else
353
-                />
353
+                /> -->
354
+                <span
355
+                style="display: inline-block; width: 100px; text-align: left"
356
+              >
357
+                &nbsp;
358
+                <span v-if="doctorForm.url === ''">{{
359
+                  doctorForm.doctor
360
+                }}</span>
361
+                <span v-if="doctorForm.url !== ''">
362
+                  <img class="es-img" :src="doctorForm.url" />
363
+                </span>
364
+              </span>
354
               </td>
365
               </td>
355
             </tr>
366
             </tr>
356
             <tr style="text-align: left">
367
             <tr style="text-align: left">

+ 1 - 8
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

2931
             this.$message.error("请选择需要记账的患者")
2931
             this.$message.error("请选择需要记账的患者")
2932
             return
2932
             return
2933
           }
2933
           }
2934
-          if (this.prescriptions.length == 0) {
2935
-            this.$message.error("处方不能为空")
2936
-            return
2937
-          }
2938
-          if (this.form.diagnosis.length == 0) {
2939
-            this.$message.error("诊断不能为空")
2940
-            return
2941
-          }
2934
+
2942
           var that = this
2935
           var that = this
2943
           let obj = {
2936
           let obj = {
2944
             patient_id: this.patientInfo.id,
2937
             patient_id: this.patientInfo.id,

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

305
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
305
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
306
                                             highlight-current-row>
306
                                             highlight-current-row>
307
                                       <el-table-column type="selection" width="40" align="center"></el-table-column>
307
                                       <el-table-column type="selection" width="40" align="center"></el-table-column>
308
-                                      <el-table-column label="名称">
309
-                                          <template slot-scope="scope">{{ scope.row.drug_name }}</template>
308
+                                      <el-table-column label="名称"  v-if="org_id != 10206">
309
+                                          <template slot-scope="scope">{{ scope.row.drug_name}}</template>
310
                                       </el-table-column>
310
                                       </el-table-column>
311
+                                    <el-table-column label="名称"  v-if="org_id == 10206">
312
+                                      <template slot-scope="scope">{{ scope.row.drug_name}} {{scope.row.number}}</template>
313
+                                    </el-table-column>
311
                                       <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
314
                                       <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
312
                                           <template slot-scope="scope">
315
                                           <template slot-scope="scope">
313
                                               <span>{{scope.row.drug_spec}}</span>
316
                                               <span>{{scope.row.drug_spec}}</span>
419
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
422
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
420
                                             highlight-current-row>
423
                                             highlight-current-row>
421
                                       <el-table-column type="selection" width="40" align="center"></el-table-column>
424
                                       <el-table-column type="selection" width="40" align="center"></el-table-column>
422
-                                      <el-table-column prop="name" label="名称">
425
+                                      <el-table-column prop="name" label="名称" v-if="org_id != 10206">
423
                                           <template slot-scope="scope">{{ scope.row.project_name }}</template>
426
                                           <template slot-scope="scope">{{ scope.row.project_name }}</template>
424
                                       </el-table-column>
427
                                       </el-table-column>
428
+                                    <el-table-column prop="name" label="名称" v-if="org_id == 10206">
429
+                                      <template slot-scope="scope">{{ scope.row.project_name }}{{scope.row.number}}</template>
430
+                                    </el-table-column>
425
                                       <el-table-column label="规格" width="60">
431
                                       <el-table-column label="规格" width="60">
426
                                           <template slot-scope="scope">{{ scope.row.single_dose }}</template>
432
                                           <template slot-scope="scope">{{ scope.row.single_dose }}</template>
427
                                       </el-table-column>
433
                                       </el-table-column>
433
                                             <span v-else> {{ scope.row.total }}</span> -->
439
                                             <span v-else> {{ scope.row.total }}</span> -->
434
                                             <span v-if="org_id != 10206 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
440
                                             <span v-if="org_id != 10206 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
435
 <!--                                            //针对坐标系统的库存数据-->
441
 <!--                                            //针对坐标系统的库存数据-->
436
-                                            <span v-if="org_id == 10206 && scope.row.type == 3">{{scope.row.good_info.zuobiao_stock_num}}</span>
442
+                                            <span v-if="org_id == 10206 && scope.row.type == 3">{{scope.row.zuobiao_stock_num}}</span>
437
 
443
 
438
                                           </template>
444
                                           </template>
439
                                       </el-table-column>
445
                                       </el-table-column>
531
 import NextOrLastPrescription from './nextOrLastPrescription'
537
 import NextOrLastPrescription from './nextOrLastPrescription'
532
 import CallPrescription from './callPrescription'
538
 import CallPrescription from './callPrescription'
533
 import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'
539
 import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'
540
+import axios from 'axios'
534
 
541
 
535
 const moment = require('moment')
542
 const moment = require('moment')
536
 
543
 
537
 export default {
544
 export default {
538
   props: {
545
   props: {
539
     zuobiao_drug:Array,
546
     zuobiao_drug:Array,
540
-    zuobiao_project:Array,
541
     drugs:Array,
547
     drugs:Array,
542
     allDrugs:Array,
548
     allDrugs:Array,
543
     advices_template:Array,
549
     advices_template:Array,
575
   },
581
   },
576
   data() {
582
   data() {
577
     return {
583
     return {
584
+      zuobiao_project:[],
578
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
585
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
579
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
586
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
580
       register10206: [
587
       register10206: [
728
     }
735
     }
729
   },
736
   },
730
   methods: {
737
   methods: {
738
+    getzuobiao(){
739
+      if(this.org_id == 10206){
740
+        var that = this
741
+        axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
742
+
743
+        })
744
+          .then(function(response) {
745
+            if (response.data.state == 0) {
746
+              that.$message.error(response.data.msg)
747
+              that.loadingtwo = false
748
+              return false
749
+            } else {
750
+              if (response.data.data.failed_code == -10) {
751
+                that.$confirm(response.data.data.msg, '医保错误信息', {
752
+                  confirmButtonText: '确 定',
753
+                  type: 'warning'
754
+                }).then(() => {
755
+
756
+                }).catch(() => {
757
+                })
758
+
759
+              } else {
760
+                // that.zuobiao_drug  = response.data.data.drug
761
+                that.zuobiao_project  = response.data.data.project
762
+
763
+
764
+              }
765
+            }
766
+          })
767
+          .catch(function(error) {
768
+          })
769
+      }
770
+
731
 
771
 
772
+    },
732
     changeClass(id) {
773
     changeClass(id) {
733
       this.tabProject = []
774
       this.tabProject = []
734
       if (id == 0) {
775
       if (id == 0) {
3608
               first_letter:project[i].first_letter,
3649
               first_letter:project[i].first_letter,
3609
               bbx01:project[i].bbx01,
3650
               bbx01:project[i].bbx01,
3610
               zuobiao_stock_num:0,
3651
               zuobiao_stock_num:0,
3652
+              number:""
3611
 
3653
 
3612
             }
3654
             }
3613
             this.tabProject.push(obj)
3655
             this.tabProject.push(obj)
3644
               first_letter:good_info[i].first_letter,
3686
               first_letter:good_info[i].first_letter,
3645
               bbx01:good_info[i].bbx01,
3687
               bbx01:good_info[i].bbx01,
3646
               zuobiao_stock_num:0,
3688
               zuobiao_stock_num:0,
3689
+              number: good_info[i].good_number
3647
 
3690
 
3648
             }
3691
             }
3649
             this.tabProject.push(obj)
3692
             this.tabProject.push(obj)
3650
           }
3693
           }
3694
+
3695
+          this.allProject = this.tabProject
3696
+
3651
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3697
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3652
           if(this.org_id == 10206 ) {
3698
           if(this.org_id == 10206 ) {
3699
+            console.log("-=======")
3700
+            console.log(this.zuobiao_project)
3701
+            console.log(this.tabProject)
3702
+            console.log("-=======")
3653
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3703
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3654
               for (let b = 0; b < this.tabProject.length; b++) {
3704
               for (let b = 0; b < this.tabProject.length; b++) {
3655
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3705
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3706
+                  console.log( this.zuobiao_project[i].lsqty)
3707
+                  console.log( this.tabProject[b].zuobiao_stock_num)
3656
                   this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3708
                   this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3657
                 }
3709
                 }
3658
               }
3710
               }
3660
           }
3712
           }
3661
 
3713
 
3662
           this.allProject = this.tabProject
3714
           this.allProject = this.tabProject
3715
+
3716
+
3663
           // console.log('cccc',this.allProject);
3717
           // console.log('cccc',this.allProject);
3664
         }
3718
         }
3665
       })
3719
       })
3826
     this.request_record_date = this.record_date
3880
     this.request_record_date = this.record_date
3827
     // this.getInitData()
3881
     // this.getInitData()
3828
     //获取所有项目
3882
     //获取所有项目
3883
+    this.getzuobiao()
3829
     this.getlist()
3884
     this.getlist()
3830
     //获取所以项目组套
3885
     //获取所以项目组套
3831
     this.getAllProjectTeam()
3886
     this.getAllProjectTeam()

+ 3 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue View File

45
             highlight-current-row
45
             highlight-current-row
46
             ref="tab"
46
             ref="tab"
47
           >
47
           >
48
+            <el-table-column type="index" align="center" label="序号" width="60">
49
+            </el-table-column>
48
             <el-table-column prop="name" label="姓名">
50
             <el-table-column prop="name" label="姓名">
49
               <template slot-scope="scope"
51
               <template slot-scope="scope"
50
                 >{{ scope.row.name }}({{ scope.row.dialysis_no }})</template
52
                 >{{ scope.row.name }}({{ scope.row.dialysis_no }})</template
106
         </el-pagination>
108
         </el-pagination>
107
       </div>
109
       </div>
108
     </div>
110
     </div>
109
-    
111
+
110
   </div>
112
   </div>
111
 </template>
113
 </template>
112
 
114
 

+ 118 - 43
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue View File

137
                                                   highlight-current-row>
137
                                                   highlight-current-row>
138
                                             <el-table-column type="selection" width="40"
138
                                             <el-table-column type="selection" width="40"
139
                                                              align="center"></el-table-column>
139
                                                              align="center"></el-table-column>
140
-                                            <el-table-column label="名称">
141
-                                                <template slot-scope="scope">{{ scope.row.drug_name }}</template>
140
+                                            <el-table-column label="名称" v-if="org_id == 10206  || org_id == 0">
141
+                                                <template slot-scope="scope">{{ scope.row.drug_name }}{{scope.row.number?"("+scope.row.number+")":""}}</template>
142
                                             </el-table-column>
142
                                             </el-table-column>
143
+                                          <el-table-column label="名称" v-if="org_id != 10206 && org_id != 0">
144
+                                            <template slot-scope="scope">{{ scope.row.drug_name }}</template>
145
+                                          </el-table-column>
143
                                           <el-table-column label="规格" width="60" v-if="org_id != 10206 && org_id != 0">
146
                                           <el-table-column label="规格" width="60" v-if="org_id != 10206 && org_id != 0">
144
                                             <template slot-scope="scope">
147
                                             <template slot-scope="scope">
145
                                                    <span
148
                                                    <span
196
                                                       highlight-current-row>
199
                                                       highlight-current-row>
197
                                                 <el-table-column type="selection" width="40"
200
                                                 <el-table-column type="selection" width="40"
198
                                                                  align="center"></el-table-column>
201
                                                                  align="center"></el-table-column>
199
-                                                <el-table-column prop="name" label="名称">
202
+                                                <el-table-column prop="name" label="名称" v-if="org_id != 10206 && org_id != 0">
200
                                                     <template slot-scope="scope">{{ scope.row.project_name }}</template>
203
                                                     <template slot-scope="scope">{{ scope.row.project_name }}</template>
201
                                                 </el-table-column>
204
                                                 </el-table-column>
205
+                                              <el-table-column prop="name" label="名称" v-if="org_id == 10206 || org_id == 0">
206
+                                                <template slot-scope="scope">{{ scope.row.project_name }}{{scope.row.number?"("+scope.row.number+")":""}}</template>
207
+                                              </el-table-column>
202
                                                 <el-table-column label="规格" width="60">
208
                                                 <el-table-column label="规格" width="60">
203
                                                     <template slot-scope="scope">{{ scope.row.single_dose }}</template>
209
                                                     <template slot-scope="scope">{{ scope.row.single_dose }}</template>
204
                                                 </el-table-column>
210
                                                 </el-table-column>
1164
           // pre_time: nowTime
1170
           // pre_time: nowTime
1165
 
1171
 
1166
         }
1172
         }
1173
+        if(this.org_id == 10206) {
1174
+          obj.med_type = 12
1175
+        }else{
1176
+          obj.med_type = 14
1167
 
1177
 
1168
-        obj.med_type = 14
1178
+
1179
+        }
1169
 
1180
 
1170
         this.prescriptions.push(obj)
1181
         this.prescriptions.push(obj)
1171
 
1182
 
1680
 
1691
 
1681
                 //项目
1692
                 //项目
1682
                 for (let b = 0; b < prescription.project.length; b++) {
1693
                 for (let b = 0; b < prescription.project.length; b++) {
1683
-                  if(prescription.project!=null && (prescription.project[b].good_info.good_status.startsWith('停用') == false && prescription.project[b].project.medical_status!=1)){
1694
+                  if(prescription.project!=null && (prescription.project[b].good_info.good_status.startsWith('停用') == false )) {
1695
+
1696
+                    if (this.org_id == 10206 || this.org_id == 0) {
1697
+                      let obj = {
1698
+                        id: prescription.project[b].id,
1699
+                        project_id: prescription.project[b].project_id,
1700
+                        project_name: prescription.project[b].project.project_name,
1701
+                        statistical_classification: prescription.project[b].project.statistical_classification,
1702
+                        single_dose: prescription.project[b].single_dose,
1703
+                        delivery_way: prescription.project[b].delivery_way,
1704
+                        execution_frequency: prescription.project[b].execution_frequency,
1705
+                        number_days: prescription.project[b].day,
1706
+                        total: prescription.project[b].count.toString(),
1707
+                        price: prescription.project[b].price,
1708
+                        remark: prescription.project[b].remark,
1709
+                        medical_code: prescription.project[b].project.medical_code,
1710
+                        type: prescription.project[b].type,
1711
+                        frequency_type: prescription.project[b].frequency_type,
1712
+                        day_count: prescription.project[b].day_count,
1713
+                        week_day: prescription.project[b].week_day
1684
 
1714
 
1685
-                  let obj = {
1686
-                    id: prescription.project[b].id,
1687
-                    project_id: prescription.project[b].project_id,
1688
-                    project_name: prescription.project[b].project.project_name,
1689
-                    statistical_classification: prescription.project[b].project.statistical_classification,
1690
-                    single_dose: prescription.project[b].single_dose,
1691
-                    delivery_way: prescription.project[b].delivery_way,
1692
-                    execution_frequency: prescription.project[b].execution_frequency,
1693
-                    number_days: prescription.project[b].day,
1694
-                    total: prescription.project[b].count.toString(),
1695
-                    price: prescription.project[b].price,
1696
-                    remark: prescription.project[b].remark,
1697
-                    medical_code: prescription.project[b].project.medical_code,
1698
-                    type: prescription.project[b].type,
1699
-                    frequency_type: prescription.project[b].frequency_type,
1700
-                    day_count: prescription.project[b].day_count,
1701
-                    week_day: prescription.project[b].week_day
1715
+                      }
1702
 
1716
 
1703
-                  }
1717
+                      if (prescription.project[b].type == 2) {
1718
+                        obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1719
+                        obj['medical_code'] = prescription.project[b].project.medical_code
1720
+                        obj['project_name'] = prescription.project[b].project.project_name
1721
+                        obj['project'] = prescription.project[b].project
1722
+                        obj['unit'] = prescription.project[b].unit
1723
+                      } else if (prescription.project[b].type == 3) {
1724
+                        obj['statistical_classification'] = ''
1725
+                        obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1726
+                        obj['project_name'] = prescription.project[b].good_info.good_name
1727
+                        obj['good_info'] = prescription.project[b].good_info
1728
+                        obj['unit'] = prescription.project[b].good_info.packing_unit
1729
+                      }
1730
+                      tempProject.push(obj)
1731
+                    }else{
1732
+                      if( prescription.project[b].project.medical_status!=1){
1733
+                        let obj = {
1734
+                          id: prescription.project[b].id,
1735
+                          project_id: prescription.project[b].project_id,
1736
+                          project_name: prescription.project[b].project.project_name,
1737
+                          statistical_classification: prescription.project[b].project.statistical_classification,
1738
+                          single_dose: prescription.project[b].single_dose,
1739
+                          delivery_way: prescription.project[b].delivery_way,
1740
+                          execution_frequency: prescription.project[b].execution_frequency,
1741
+                          number_days: prescription.project[b].day,
1742
+                          total: prescription.project[b].count.toString(),
1743
+                          price: prescription.project[b].price,
1744
+                          remark: prescription.project[b].remark,
1745
+                          medical_code: prescription.project[b].project.medical_code,
1746
+                          type: prescription.project[b].type,
1747
+                          frequency_type: prescription.project[b].frequency_type,
1748
+                          day_count: prescription.project[b].day_count,
1749
+                          week_day: prescription.project[b].week_day
1750
+
1751
+                        }
1752
+
1753
+                        if (prescription.project[b].type == 2) {
1754
+                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1755
+                          obj['medical_code'] = prescription.project[b].project.medical_code
1756
+                          obj['project_name'] = prescription.project[b].project.project_name
1757
+                          obj['project'] = prescription.project[b].project
1758
+                          obj['unit'] = prescription.project[b].unit
1759
+                        } else if (prescription.project[b].type == 3) {
1760
+                          obj['statistical_classification'] = ''
1761
+                          obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1762
+                          obj['project_name'] = prescription.project[b].good_info.good_name
1763
+                          obj['good_info'] = prescription.project[b].good_info
1764
+                          obj['unit'] = prescription.project[b].good_info.packing_unit
1765
+                        }
1766
+                        tempProject.push(obj)
1704
 
1767
 
1705
-                  if (prescription.project[b].type == 2) {
1706
-                    obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1707
-                    obj['medical_code'] = prescription.project[b].project.medical_code
1708
-                    obj['project_name'] = prescription.project[b].project.project_name
1709
-                    obj['project'] = prescription.project[b].project
1710
-                    obj['unit'] = prescription.project[b].unit
1711
-                  } else if (prescription.project[b].type == 3) {
1712
-                    obj['statistical_classification'] = ''
1713
-                    obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1714
-                    obj['project_name'] = prescription.project[b].good_info.good_name
1715
-                    obj['good_info'] = prescription.project[b].good_info
1716
-                    obj['unit'] = prescription.project[b].good_info.packing_unit
1717
-                  }
1718
-                  tempProject.push(obj)
1719
-                  }
1768
+                      }
1720
 
1769
 
1770
+                    }
1771
+                  }
1721
                 }
1772
                 }
1722
 
1773
 
1723
                 // var preTime = nowTime
1774
                 // var preTime = nowTime
1743
                 }
1794
                 }
1744
 
1795
 
1745
                 this.prescriptions.push(obj)
1796
                 this.prescriptions.push(obj)
1797
+                console.log("!!!!!")
1798
+                console.log(this.prescriptions)
1799
+                console.log("!!!!!")
1800
+
1746
               }
1801
               }
1747
               this.curPrescriptions = this.prescriptions[0]
1802
               this.curPrescriptions = this.prescriptions[0]
1748
 
1803
 
1756
                 order_status: 0,
1811
                 order_status: 0,
1757
                 med_type: ''
1812
                 med_type: ''
1758
               }
1813
               }
1759
-              obj.med_type = 14
1814
+              if(this.org_id == 10206) {
1815
+                obj.med_type = 12
1816
+              }else{
1817
+                obj.med_type = 14
1818
+
1819
+
1820
+              }
1760
               this.prescriptions.push(obj)
1821
               this.prescriptions.push(obj)
1822
+              console.log("this.prescriptions")
1823
+              console.log(this.prescriptions)
1824
+              console.log("this.prescriptions")
1825
+
1761
               this.curPrescriptions = this.prescriptions[0]
1826
               this.curPrescriptions = this.prescriptions[0]
1762
             }
1827
             }
1763
           }
1828
           }
1783
                 type: 2,
1848
                 type: 2,
1784
                 is_special_diseases: project[i].disease_directory,
1849
                 is_special_diseases: project[i].disease_directory,
1785
                 project: project[i],
1850
                 project: project[i],
1786
-                first_letter:project[i].first_letter
1851
+                first_letter:project[i].first_letter,
1852
+                number: "",
1787
               }
1853
               }
1788
 
1854
 
1789
               this.tabProject.push(obj)
1855
               this.tabProject.push(obj)
1806
                 type: 3,
1872
                 type: 3,
1807
                 is_special_diseases: good_info[i].is_special_diseases,
1873
                 is_special_diseases: good_info[i].is_special_diseases,
1808
                 good_info: good_info[i],
1874
                 good_info: good_info[i],
1809
-                first_letter:good_info[i].first_letter
1875
+                first_letter:good_info[i].first_letter,
1876
+                number: good_info[i].good_number,
1877
+
1810
               }
1878
               }
1811
               this.tabProject.push(obj)
1879
               this.tabProject.push(obj)
1812
             }
1880
             }
2018
                     groupno: prescription.advices[b].groupno,
2086
                     groupno: prescription.advices[b].groupno,
2019
                     frequency_type: prescription.advices[b].frequency_type,
2087
                     frequency_type: prescription.advices[b].frequency_type,
2020
                     day_count: prescription.advices[b].day_count,
2088
                     day_count: prescription.advices[b].day_count,
2021
-                    week_day: prescription.advices[b].week_day
2089
+                    week_day: prescription.advices[b].week_day,
2090
+
2022
 
2091
 
2023
                   }
2092
                   }
2024
                   tempAdvice.push(obj)
2093
                   tempAdvice.push(obj)
2100
                 med_type: ''
2169
                 med_type: ''
2101
               }
2170
               }
2102
 
2171
 
2103
-              obj.med_type = 14
2172
+              if(this.org_id == 10206) {
2173
+                obj.med_type = 12
2174
+              }else{
2175
+                obj.med_type = 14
2176
+
2177
+
2178
+              }
2104
 
2179
 
2105
               this.prescriptions.push(obj)
2180
               this.prescriptions.push(obj)
2106
               this.curPrescriptions = this.prescriptions[0]
2181
               this.curPrescriptions = this.prescriptions[0]

+ 2 - 2
src/xt_pages/role/admin.vue View File

25
         >医药师登记</el-button>
25
         >医药师登记</el-button>
26
 
26
 
27
 
27
 
28
-        <el-button
28
+        <!-- <el-button
29
           type="primary"
29
           type="primary"
30
           size="small"
30
           size="small"
31
           icon="el-icon-circle-plus-outline"
31
           icon="el-icon-circle-plus-outline"
32
           style="float:left"
32
           style="float:left"
33
           @click="toJiaBan">加班</el-button>
33
           @click="toJiaBan">加班</el-button>
34
-       
34
+        -->
35
 
35
 
36
          <!-- <el-button
36
          <!-- <el-button
37
           type="primary"
37
           type="primary"

+ 16 - 5
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

588
     },
588
     },
589
 
589
 
590
      exportList(){
590
      exportList(){
591
-       
592
         
591
         
592
+        
593
+       
593
         for(let i=0;i<this.tablePrint.length;i++){
594
         for(let i=0;i<this.tablePrint.length;i++){
594
           this.tablePrint[i].index = i+1
595
           this.tablePrint[i].index = i+1
595
           this.tablePrint[i].ctime = this.getTime(this.tablePrint[i].ctime)
596
           this.tablePrint[i].ctime = this.getTime(this.tablePrint[i].ctime)
611
               this.tablePrint[i].total = this.getTotalPriceOne(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
612
               this.tablePrint[i].total = this.getTotalPriceOne(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
612
            }
613
            }
613
         }
614
         }
614
-
615
-
615
+        console.log("wowowoowowowowo",this.tablePrint)
616
+       
617
+       
618
+       
616
        import('@/vendor/Export2Excel').then(excel => {
619
        import('@/vendor/Export2Excel').then(excel => {
617
        const tHeader = ['序号','药品名称', '规格型号','生产厂商','进销商', '单位','数量','单价','总价','出库时间','备注']
620
        const tHeader = ['序号','药品名称', '规格型号','生产厂商','进销商', '单位','数量','单价','总价','出库时间','备注']
618
        if(this.org_id == 9919){
621
        if(this.org_id == 9919){
819
         if(response.data.state == 1){
822
         if(response.data.state == 1){
820
             var list = response.data.data.list
823
             var list = response.data.data.list
821
             console.log("很粗扣扣我噢噢",list)
824
             console.log("很粗扣扣我噢噢",list)
825
+           
822
             this.dealerList = response.data.data.dealerList
826
             this.dealerList = response.data.data.dealerList
823
             this.manufacturerList = response.data.data.manufacturerList
827
             this.manufacturerList = response.data.data.manufacturerList
824
             let objInfo = {}
828
             let objInfo = {}
882
                 }
886
                 }
883
               }
887
               }
884
             }
888
             }
889
+
890
+           console.log("newArrwowowowowoowowowowowowow",newArr)
885
            this.tablePrint = newArr
891
            this.tablePrint = newArr
886
 
892
 
887
         }
893
         }
893
         var min_str = ""
899
         var min_str = ""
894
         for(let i=0;i<arr.length;i++){
900
         for(let i=0;i<arr.length;i++){
895
           if(arr[i].count_unit == max_unit){
901
           if(arr[i].count_unit == max_unit){
896
-            arr[i].count = arr[i].count * min_number
902
+            arr[i].count_one = 0
903
+            arr[i].count_one = arr[i].count * min_number
904
+          }else{
905
+            arr[i].count_one = arr[i].count
897
           }
906
           }
898
         }
907
         }
899
         for(let i=0;i<arr.length;i++){
908
         for(let i=0;i<arr.length;i++){
900
-          total+= arr[i].count
909
+          total+= arr[i].count_one
901
         }
910
         }
902
 
911
 
903
        if(total<min_number){
912
        if(total<min_number){
915
         return str + min_str
924
         return str + min_str
916
       },
925
       },
917
       getTotalPrice(arr,max_unit,min_number,min_price){
926
       getTotalPrice(arr,max_unit,min_number,min_price){
927
+        console.log("arrwoowowow",arr)
928
+      
918
         var total = 0
929
         var total = 0
919
         for(let i=0;i<arr.length;i++){
930
         for(let i=0;i<arr.length;i++){
920
           if(arr[i].count_unit == max_unit){
931
           if(arr[i].count_unit == max_unit){