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,8 +153,8 @@
153 153
           <!--</el-button>-->
154 154
 
155 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 158
           </el-button>
159 159
         </template>
160 160
       </el-table-column>

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

@@ -165,8 +165,8 @@
165 165
 
166 166
 
167 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 170
           </el-button>
171 171
         </template>
172 172
       </el-table-column>

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

@@ -128,8 +128,8 @@
128 128
                     <!--</el-button>-->
129 129
 
130 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 133
                     </el-button>
134 134
                 </template>
135 135
             </el-table-column>
@@ -902,16 +902,16 @@ export default {
902 902
       },
903 903
       exportList(){
904 904
         import('@/vendor/Export2Excel').then(excel => {
905
-        
905
+
906 906
          for(let i=0;i<this.tableData.length;i++){
907 907
            for(let j=0;j<this.getDictionaryDataConfig('system','cost_classify').length;j++){
908 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 912
            for(let y=0;y<this.getDictionaryDataConfig('system','medical_insurance_level').length;y++){
913 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 917
            for(let a=0;a<this.departMentList.length;a++){
@@ -922,23 +922,23 @@ export default {
922 922
          }
923 923
           console.log("this.table",this.tableData)
924 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 927
          const data = this.formatJson(filterVal,this.tableData)
928
-     
928
+
929 929
          excel.export_json_to_excel({
930 930
            header: tHeader,
931 931
            data,
932 932
            filename: '项目信息'
933 933
          })
934 934
           this.downloadLoading = false
935
-    
935
+
936 936
         })
937 937
        },
938 938
        formatJson(filterVal, jsonData) {
939 939
         return jsonData.map(v => filterVal.map(j => v[j]))
940 940
        },
941
-     
941
+
942 942
     },
943 943
     created(){
944 944
       this.getlist();

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

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

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

@@ -389,7 +389,7 @@
389 389
                       style="padding-left:5px;border-left:1px solid #000;padding-left:5px"
390 390
                     >
391 391
                       医师签名:
392
-                      <span
392
+                      <!-- <span
393 393
                           v-if="
394 394
                         setAdminUserES(
395 395
                         record.prescription,
@@ -409,7 +409,41 @@
409 409
                           srcset=""
410 410
                           v-else
411 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 447
                     </td>
414 448
                   </tr>
415 449
                   <tr style="text-align:left">

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

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

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

@@ -42,12 +42,12 @@
42 42
 
43 43
        
44 44
       </div>
45
-      <!-- <div class="filter-container">
45
+      <div class="filter-container" v-if="org_id == 0 || org_id ==10101">
46 46
       <el-input style="width:200px" placeholder="请输入药品名称" v-model="keyword"></el-input>
47 47
        <el-button type="primary" @click="toSeachOne">搜索</el-button>
48 48
 
49 49
        
50
-      </div> -->
50
+      </div>
51 51
       <div class="cell clearfix">
52 52
         <label class="title">
53 53
           <span class="name">日期查询:</span>
@@ -1332,7 +1332,7 @@ export default {
1332 1332
          if(nameOne == '全部'){
1333 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 1338
     batchPrintActionOne: function() {

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

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

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

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

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

@@ -341,7 +341,7 @@
341 341
                 "
342 342
               >
343 343
                 医师签名:
344
-                <span v-if="setAdminUserES(prescription.creater) == ''">
344
+                <!-- <span v-if="setAdminUserES(prescription.creater) == ''">
345 345
                   {{ getAdminUser(prescription.creater) }}
346 346
                 </span>
347 347
                 <img
@@ -350,7 +350,18 @@
350 350
                   alt
351 351
                   srcset
352 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 365
               </td>
355 366
             </tr>
356 367
             <tr style="text-align: left">

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

@@ -2931,14 +2931,7 @@ export default {
2931 2931
             this.$message.error("请选择需要记账的患者")
2932 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 2935
           var that = this
2943 2936
           let obj = {
2944 2937
             patient_id: this.patientInfo.id,

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

@@ -305,9 +305,12 @@
305 305
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
306 306
                                             highlight-current-row>
307 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 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 314
                                       <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
312 315
                                           <template slot-scope="scope">
313 316
                                               <span>{{scope.row.drug_spec}}</span>
@@ -419,9 +422,12 @@
419 422
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
420 423
                                             highlight-current-row>
421 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 426
                                           <template slot-scope="scope">{{ scope.row.project_name }}</template>
424 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 431
                                       <el-table-column label="规格" width="60">
426 432
                                           <template slot-scope="scope">{{ scope.row.single_dose }}</template>
427 433
                                       </el-table-column>
@@ -433,7 +439,7 @@
433 439
                                             <span v-else> {{ scope.row.total }}</span> -->
434 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 444
                                           </template>
439 445
                                       </el-table-column>
@@ -531,13 +537,13 @@ import { uParseTime } from '@/utils/tools'
531 537
 import NextOrLastPrescription from './nextOrLastPrescription'
532 538
 import CallPrescription from './callPrescription'
533 539
 import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'
540
+import axios from 'axios'
534 541
 
535 542
 const moment = require('moment')
536 543
 
537 544
 export default {
538 545
   props: {
539 546
     zuobiao_drug:Array,
540
-    zuobiao_project:Array,
541 547
     drugs:Array,
542 548
     allDrugs:Array,
543 549
     advices_template:Array,
@@ -575,6 +581,7 @@ export default {
575 581
   },
576 582
   data() {
577 583
     return {
584
+      zuobiao_project:[],
578 585
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
579 586
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
580 587
       register10206: [
@@ -728,7 +735,41 @@ export default {
728 735
     }
729 736
   },
730 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 773
     changeClass(id) {
733 774
       this.tabProject = []
734 775
       if (id == 0) {
@@ -3608,6 +3649,7 @@ export default {
3608 3649
               first_letter:project[i].first_letter,
3609 3650
               bbx01:project[i].bbx01,
3610 3651
               zuobiao_stock_num:0,
3652
+              number:""
3611 3653
 
3612 3654
             }
3613 3655
             this.tabProject.push(obj)
@@ -3644,15 +3686,25 @@ export default {
3644 3686
               first_letter:good_info[i].first_letter,
3645 3687
               bbx01:good_info[i].bbx01,
3646 3688
               zuobiao_stock_num:0,
3689
+              number: good_info[i].good_number
3647 3690
 
3648 3691
             }
3649 3692
             this.tabProject.push(obj)
3650 3693
           }
3694
+
3695
+          this.allProject = this.tabProject
3696
+
3651 3697
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3652 3698
           if(this.org_id == 10206 ) {
3699
+            console.log("-=======")
3700
+            console.log(this.zuobiao_project)
3701
+            console.log(this.tabProject)
3702
+            console.log("-=======")
3653 3703
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3654 3704
               for (let b = 0; b < this.tabProject.length; b++) {
3655 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 3708
                   this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3657 3709
                 }
3658 3710
               }
@@ -3660,6 +3712,8 @@ export default {
3660 3712
           }
3661 3713
 
3662 3714
           this.allProject = this.tabProject
3715
+
3716
+
3663 3717
           // console.log('cccc',this.allProject);
3664 3718
         }
3665 3719
       })
@@ -3826,6 +3880,7 @@ export default {
3826 3880
     this.request_record_date = this.record_date
3827 3881
     // this.getInitData()
3828 3882
     //获取所有项目
3883
+    this.getzuobiao()
3829 3884
     this.getlist()
3830 3885
     //获取所以项目组套
3831 3886
     this.getAllProjectTeam()

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

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

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

@@ -137,9 +137,12 @@
137 137
                                                   highlight-current-row>
138 138
                                             <el-table-column type="selection" width="40"
139 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 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 146
                                           <el-table-column label="规格" width="60" v-if="org_id != 10206 && org_id != 0">
144 147
                                             <template slot-scope="scope">
145 148
                                                    <span
@@ -196,9 +199,12 @@
196 199
                                                       highlight-current-row>
197 200
                                                 <el-table-column type="selection" width="40"
198 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 203
                                                     <template slot-scope="scope">{{ scope.row.project_name }}</template>
201 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 208
                                                 <el-table-column label="规格" width="60">
203 209
                                                     <template slot-scope="scope">{{ scope.row.single_dose }}</template>
204 210
                                                 </el-table-column>
@@ -1164,8 +1170,13 @@
1164 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 1181
         this.prescriptions.push(obj)
1171 1182
 
@@ -1680,44 +1691,84 @@
1680 1691
 
1681 1692
                 //项目
1682 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 1774
                 // var preTime = nowTime
@@ -1743,6 +1794,10 @@
1743 1794
                 }
1744 1795
 
1745 1796
                 this.prescriptions.push(obj)
1797
+                console.log("!!!!!")
1798
+                console.log(this.prescriptions)
1799
+                console.log("!!!!!")
1800
+
1746 1801
               }
1747 1802
               this.curPrescriptions = this.prescriptions[0]
1748 1803
 
@@ -1756,8 +1811,18 @@
1756 1811
                 order_status: 0,
1757 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 1821
               this.prescriptions.push(obj)
1822
+              console.log("this.prescriptions")
1823
+              console.log(this.prescriptions)
1824
+              console.log("this.prescriptions")
1825
+
1761 1826
               this.curPrescriptions = this.prescriptions[0]
1762 1827
             }
1763 1828
           }
@@ -1783,7 +1848,8 @@
1783 1848
                 type: 2,
1784 1849
                 is_special_diseases: project[i].disease_directory,
1785 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 1855
               this.tabProject.push(obj)
@@ -1806,7 +1872,9 @@
1806 1872
                 type: 3,
1807 1873
                 is_special_diseases: good_info[i].is_special_diseases,
1808 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 1879
               this.tabProject.push(obj)
1812 1880
             }
@@ -2018,7 +2086,8 @@
2018 2086
                     groupno: prescription.advices[b].groupno,
2019 2087
                     frequency_type: prescription.advices[b].frequency_type,
2020 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 2093
                   tempAdvice.push(obj)
@@ -2100,7 +2169,13 @@
2100 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 2180
               this.prescriptions.push(obj)
2106 2181
               this.curPrescriptions = this.prescriptions[0]

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

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

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

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