瀏覽代碼

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

see999 3 年之前
父節點
當前提交
d2a10462a4
共有 28 個文件被更改,包括 5629 次插入5415 次删除
  1. 1 1
      src/utils/request.js
  2. 1 1
      src/xt_pages/hospitalStation/components/ChargePrescriptionTable.vue
  3. 2954 2958
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  4. 2 2
      src/xt_pages/hospitalStation/components/inquiriesDetail.vue
  5. 1 1
      src/xt_pages/hospitalStation/components/newPrescriptionTable.vue
  6. 5 5
      src/xt_pages/hospitalStation/outpatientChargesManagement.vue
  7. 3 3
      src/xt_pages/hospitalStation/print.vue
  8. 370 301
      src/xt_pages/hospitalStation/template/printFive.vue
  9. 14 10
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  10. 1 2
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue
  11. 31 30
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  12. 3 3
      src/xt_pages/outpatientRecord/outpatientRecord.vue
  13. 1056 1060
      src/xt_pages/qcd/officesControlAnalysis/project.vue
  14. 493 481
      src/xt_pages/qcd/officesControlAnalysis/time.vue
  15. 535 493
      src/xt_pages/qcd/patientControlAnalysis.vue
  16. 67 15
      src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue
  17. 2 1
      src/xt_pages/stock/cancelStockOrderEdit.vue
  18. 4 2
      src/xt_pages/stock/drugs/cancelDrugStockOrderAdd.vue
  19. 3 2
      src/xt_pages/stock/drugs/components/drugOutDetail.vue
  20. 19 2
      src/xt_pages/stock/drugs/drugStockInOrderEdit.vue
  21. 5 4
      src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue
  22. 3 3
      src/xt_pages/stock/drugs/query.vue
  23. 3 3
      src/xt_pages/stock/stockQuery.vue
  24. 22 23
      src/xt_pages/user/hospitalSummaryPrint.vue
  25. 16 2
      src/xt_pages/workforce/components/nextTableWeeks.vue
  26. 12 6
      src/xt_pages/workforce/next_remind_print.vue
  27. 1 1
      src/xt_pages/workforce/remind_print.vue
  28. 2 0
      src/xt_pages/workforce/remind_print_setting.vue

+ 1 - 1
src/utils/request.js 查看文件

6
 // create an axios instance
6
 // create an axios instance
7
 const service = axios.create({
7
 const service = axios.create({
8
   baseURL: process.env.BASE_API, // api的base_url
8
   baseURL: process.env.BASE_API, // api的base_url
9
-  timeout: 30000, // request timeout
9
+  timeout: 60000, // request timeout
10
   withCredentials: true
10
   withCredentials: true
11
 })
11
 })
12
 
12
 

+ 1 - 1
src/xt_pages/hospitalStation/components/ChargePrescriptionTable.vue 查看文件

123
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
123
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
124
       </el-table-column>
124
       </el-table-column>
125
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
125
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
126
-        <template slot-scope="scope">{{scope.row.type == 2 ?getGroup(scope.row.statistical_classification):'耗材'}}</template>
126
+        <template slot-scope="scope">{{scope.row.statistical_classification}}</template>
127
       </el-table-column>
127
       </el-table-column>
128
       <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
128
       <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
129
         <template slot-scope="scope">{{scope.row.single_dose}}{{scope.row.unit}}</template>
129
         <template slot-scope="scope">{{scope.row.single_dose}}{{scope.row.unit}}</template>

文件差異過大導致無法顯示
+ 2954 - 2958
src/xt_pages/hospitalStation/components/deskPrescription.vue


+ 2 - 2
src/xt_pages/hospitalStation/components/inquiriesDetail.vue 查看文件

296
                   unit:prescription.project[b].project.unit,
296
                   unit:prescription.project[b].project.unit,
297
                 };
297
                 };
298
                 if(prescription.project[b].type == 2){
298
                 if(prescription.project[b].type == 2){
299
-                  obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
299
+                  obj['statistical_classification'] =  prescription.project[b].team.project_team
300
                   obj['medical_code'] =  prescription.project[b].project.medical_code
300
                   obj['medical_code'] =  prescription.project[b].project.medical_code
301
                   obj['project_name'] =  prescription.project[b].project.project_name
301
                   obj['project_name'] =  prescription.project[b].project.project_name
302
                   obj['type'] =  2
302
                   obj['type'] =  2
304
 
304
 
305
 
305
 
306
                 }else if(prescription.project[b].type == 3){
306
                 }else if(prescription.project[b].type == 3){
307
-                  obj['statistical_classification'] = ""
307
+                  obj['statistical_classification'] = prescription.project[b].team.project_team
308
                   obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
308
                   obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
309
                   obj['project_name'] =  prescription.project[b].good_info.good_name
309
                   obj['project_name'] =  prescription.project[b].good_info.good_name
310
                   obj['type'] =  3
310
                   obj['type'] =  3

+ 1 - 1
src/xt_pages/hospitalStation/components/newPrescriptionTable.vue 查看文件

63
       </el-table-column>
63
       </el-table-column>
64
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
64
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
65
         <template slot-scope="scope">
65
         <template slot-scope="scope">
66
-          <div>{{scope.row.type == 2?getGroup(scope.row.statistical_classification):"耗材"}}</div>
66
+          <div>{{scope.row.statistical_classification}}</div>
67
         </template>
67
         </template>
68
       </el-table-column>
68
       </el-table-column>
69
       <el-table-column align="center" prop="single_dose" width="100" label="单次用量">
69
       <el-table-column align="center" prop="single_dose" width="100" label="单次用量">

+ 5 - 5
src/xt_pages/hospitalStation/outpatientChargesManagement.vue 查看文件

832
 
832
 
833
                 }
833
                 }
834
                 if (prescription.project[b].type == 2) {
834
                 if (prescription.project[b].type == 2) {
835
-                  obj['statistical_classification'] = prescription.project[b].project.statistical_classification
835
+                  obj['statistical_classification'] = prescription.project[b].team.project_team
836
                   obj['medical_code'] = prescription.project[b].project.medical_code
836
                   obj['medical_code'] = prescription.project[b].project.medical_code
837
                   obj['project_name'] = prescription.project[b].project.project_name
837
                   obj['project_name'] = prescription.project[b].project.project_name
838
                   obj['spec'] = ""
838
                   obj['spec'] = ""
839
                   obj['name_id'] = 0
839
                   obj['name_id'] = 0
840
 
840
 
841
                 } else if (prescription.project[b].type == 3) {
841
                 } else if (prescription.project[b].type == 3) {
842
-                  obj['statistical_classification'] = ''
842
+                  obj['statistical_classification'] = prescription.project[b].team.project_team
843
                   obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
843
                   obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
844
                   obj['project_name'] = prescription.project[b].good_info.good_name
844
                   obj['project_name'] = prescription.project[b].good_info.good_name
845
                   obj['spec'] = prescription.project[b].good_info.specification_name
845
                   obj['spec'] = prescription.project[b].good_info.specification_name
2581
             if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
2581
             if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
2582
 
2582
 
2583
               if (project_month_prescriptions.project[a].type == 2) {
2583
               if (project_month_prescriptions.project[a].type == 2) {
2584
-                obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
2584
+                obj['statistical_classification'] = ''
2585
                 obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
2585
                 obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
2586
                 obj['project_name'] = project_month_prescriptions.project[a].project.project_name
2586
                 obj['project_name'] = project_month_prescriptions.project[a].project.project_name
2587
                 obj['type'] = 2
2587
                 obj['type'] = 2
2813
                 }
2813
                 }
2814
 
2814
 
2815
                 if (prescription.project[b].type == 2) {
2815
                 if (prescription.project[b].type == 2) {
2816
-                  obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2816
+                  obj['statistical_classification'] = prescription.project[b].team.project_team
2817
                   obj['medical_code'] = prescription.project[b].project.medical_code
2817
                   obj['medical_code'] = prescription.project[b].project.medical_code
2818
                   obj['project_name'] = prescription.project[b].project.project_name
2818
                   obj['project_name'] = prescription.project[b].project.project_name
2819
                   obj['spec'] = ""
2819
                   obj['spec'] = ""
2821
 
2821
 
2822
 
2822
 
2823
                 } else if (prescription.project[b].type == 3) {
2823
                 } else if (prescription.project[b].type == 3) {
2824
-                  obj['statistical_classification'] = ''
2824
+                  obj['statistical_classification'] = prescription.project[b].team.project_team
2825
                   obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2825
                   obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2826
                   obj['project_name'] = prescription.project[b].good_info.good_name
2826
                   obj['project_name'] = prescription.project[b].good_info.good_name
2827
                   obj['spec'] = prescription.project[b].good_info.specification_name
2827
                   obj['spec'] = prescription.project[b].good_info.specification_name

+ 3 - 3
src/xt_pages/hospitalStation/print.vue 查看文件

16
             <div v-if="org_id != 10138">
16
             <div v-if="org_id != 10138">
17
                 <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17
                 <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
                 <printFour v-if="org_id == 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
18
                 <printFour v-if="org_id == 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
19
-                <printFive v-if="org_id == 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>
19
+                <printFive v-if="org_id == 10215 || org_id == 0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>
20
             </div>
20
             </div>
21
             <div v-else>
21
             <div v-else>
22
                 <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
22
                 <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
382
     .dialysisPage::-webkit-scrollbar {
382
     .dialysisPage::-webkit-scrollbar {
383
         height: 15px;
383
         height: 15px;
384
     }
384
     }
385
-    
386
-    
385
+
386
+
387
 
387
 
388
     .el-date-editor{
388
     .el-date-editor{
389
     .el-input__inner{
389
     .el-input__inner{

+ 370 - 301
src/xt_pages/hospitalStation/template/printFive.vue 查看文件

2
   <div id='prescriptionPrint'>
2
   <div id='prescriptionPrint'>
3
     <div v-for="(item,index) in advicePrint" :key="index">
3
     <div v-for="(item,index) in advicePrint" :key="index">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle" v-if="prescriptions[0].med_type == '1111'">{{orgname}}第一类精神处方笺</div>
6
-          <div class="printTitle"  v-if="prescriptions[0].med_type == '1112'">{{orgname}}第二类精神处方笺</div>
7
-          <div class="printTitle" v-if="prescriptions[0].med_type != '1111' && prescriptions[0].med_type != '1112'">{{orgname}}处方笺</div>
8
-          <div class="NoCell">
9
-              <div><span style="font-size:20px;font-weight:bold;">No</span><div class="underLine" style="width:120px;">{{ (item.prescription_number + (index + 1)).substring(item.prescription_number.length-6) }}</div></div>
10
-              <div style="display:flex;">
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>
15
-              </div>
5
+        <div  style="float: right" v-if="item.med_type == '1111'">精一</div>
6
+        <div  style="float: right" v-if="item.med_type == '1112'">精二</div>
7
+        <div  style="float: right"
8
+             v-if="item.med_type != '1111' && item.med_type != '1112'">普通
9
+        </div>
10
+
11
+        <div class="printTitle">{{ orgname }}处方笺</div>
12
+        <div class="NoCell">
13
+          <div><span style="font-size:20px;font-weight:bold;">No</span>
14
+            <div class="underLine" style="width:120px;">
15
+              {{ (item.prescription_number + (index + 1)).substring(item.prescription_number.length - 6) }}
16
+            </div>
16
           </div>
17
           </div>
17
-          <div class="basicCell">
18
-              <span>透析号</span>
19
-              <span class="underLine" style="width:100px;">{{ item.patient.dialysis_no ? item.patient.dialysis_no : '' }}</span>
20
-              <span>治疗区</span>
21
-              <span class="underLine" style="width:100px;">{{item.info?getDepart(item.info.departments):''}}</span>
22
-              <span>费别</span>
23
-              <span class="underLine" style="width:100px;"></span>
18
+          <div style="display:flex;">
19
+            <div style="display: flex;flex-direction: column-reverse;">开具日期</div>
20
+            <div class="underLine" style="width:60px;">
21
+              {{ getTime(item.ctime) ? getTime(item.ctime).split(' ')[0].slice(0, 4) : '' }}
22
+            </div>
23
+            <div style="display: flex;flex-direction: column-reverse;">年</div>
24
+            <div class="underLine" style="width:60px;">
25
+              {{ getTime(item.ctime) ? getTime(item.ctime).split(' ')[0].slice(5, 7) : '' }}
26
+            </div>
27
+            <div style="display: flex;flex-direction: column-reverse;">月</div>
28
+            <div class="underLine" style="width:60px;">
29
+              {{ getTime(item.ctime) ? getTime(item.ctime).split(' ')[0].slice(8, 11) : '' }}
30
+            </div>
31
+            <div style="display: flex;flex-direction: column-reverse;">日</div>
24
           </div>
32
           </div>
25
-          <div class="basicCell">
26
-              <span>姓名</span>
27
-              <span class="underLine" style="width:100px;">{{item.patient.name?item.patient.name:""}}</span>
28
-              <span>性别</span>
29
-              <span class="underLine" style="width:60px;">
33
+        </div>
34
+        <div class="basicCell">
35
+          <span>透析号</span>
36
+          <span class="underLine" style="width:100px;">{{
37
+              item.patient.dialysis_no ? item.patient.dialysis_no : ''
38
+            }}</span>
39
+          <span>治疗区</span>
40
+          <span class="underLine" style="width:100px;">{{ item.info ? getDepart(item.info.departments) : '' }}</span>
41
+          <span>费别</span>
42
+          <span class="underLine" style="width:100px;"></span>
43
+        </div>
44
+        <div class="basicCell">
45
+          <span>姓名</span>
46
+          <span class="underLine" style="width:100px;">{{ item.patient.name ? item.patient.name : '' }}</span>
47
+          <span>性别</span>
48
+          <span class="underLine" style="width:60px;">
30
                 <span v-if="item.patient.gender == 1">男</span>
49
                 <span v-if="item.patient.gender == 1">男</span>
31
                 <span v-if="item.patient.gender == 2">女</span>
50
                 <span v-if="item.patient.gender == 2">女</span>
32
               </span>
51
               </span>
33
-              <span>年龄</span>
34
-              <span class="underLine" style="width:60px;">{{getAge(item.patient)?getAge(item.patient):""}}岁</span>
35
-              <span>电话</span>
36
-              <span class="underLine" style="width:120px;">{{item.patient.phone}}</span>
52
+          <span>年龄</span>
53
+          <span class="underLine" style="width:60px;">{{ getAge(item.patient) ? getAge(item.patient) : '' }}岁</span>
54
+          <span>电话</span>
55
+          <span class="underLine" style="width:120px;">{{ item.patient.phone }}</span>
56
+        </div>
57
+        <div class="basicCell" style="margin-bottom:30px;">
58
+          <span>临床诊断</span>
59
+          <span class="underLine"
60
+                style="width:100%;flex:1;text-align:left;padding-left:10px;">{{ getDiagnosis(item.info.diagnosis) }}</span>
61
+        </div>
62
+        <div class="prescriptionBox" style="border-top: 1px solid #000;border-bottom: 1px solid #000;">
63
+          <div class="Rp">Rp:</div>
64
+          <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
65
+            <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
66
+            <div class="drugsOne"><span style="font-weight:bold;">{{
67
+                index + 1 + '.'
68
+              }}</span>{{ it.advice_name ? it.advice_name : '' }}&nbsp;&nbsp;<span
69
+                v-if="it.drug.min_unit != it.drug.dose_unit">{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span>{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{ it.drug.max_unit }}&nbsp;×&nbsp;
70
+              {{ it.prescribing_number }}{{ it.prescribing_number_unit }}
71
+            </div>
72
+            <div style="margin-left:100px;">
73
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span>&nbsp;&nbsp;<span>{{ it.execution_frequency }}&nbsp;{{ it.delivery_way }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
74
+            </div>
37
           </div>
75
           </div>
38
-          <div class="basicCell" style="margin-bottom:30px;">
39
-              <span>临床诊断</span>
40
-              <span class="underLine" style="width:100%;flex:1;text-align:left;padding-left:10px;">{{getDiagnosis(item.info.diagnosis)}}</span>
76
+          <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
77
+            <div class="drugsOne">{{ it.item_name ? it.item_name : '' }}:&nbsp;{{ it.price }}元/{{ it.count }}次</div>
41
           </div>
78
           </div>
42
-          <div class="prescriptionBox" style="border-top: 1px solid #000;border-bottom: 1px solid #000;">
43
-              <div class="Rp">Rp:</div>
44
-              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
45
-                  <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
46
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
47
-                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
48
-              </div>
49
-              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
50
-                <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
51
-               </div>
52
-
53
-              <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
54
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.type == 2?getProjectName(it.project_id)?getProjectName(it.project_id):"":it.good_info.good_name}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
55
-                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
56
-              </div>
57
-              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
58
-                <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price.toFixed(2)}}元/{{it.count}}次</div>
59
-               </div>
60
-               <div style="text-align:center;" >(以下空白)</div>
61
 
79
 
80
+          <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
81
+            <div class="drugsOne"><span style="font-weight:bold;">{{
82
+                index + 1 + '.'
83
+              }}</span>{{ it.type == 2 ? getProjectName(it.project_id) ? getProjectName(it.project_id) : '' : it.good_info.good_name }}&nbsp;&nbsp;{{ it.single_dose }}{{ it.single_dose_unit }}&nbsp;×&nbsp;
84
+              {{ it.count }}{{ unit }}
85
+            </div>
86
+            <div style="margin-left:100px;">
87
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span>&nbsp;&nbsp;<span>{{ it.delivery_way }}</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
88
+            </div>
89
+          </div>
90
+          <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
91
+            <div class="drugsOne">
92
+              {{ it.project_id ? it.project_id : '' }}:&nbsp;{{ it.price.toFixed(2) }}元/{{ it.count }}次
93
+            </div>
94
+          </div>
95
+          <div style="text-align:center;">(以下空白)</div>
96
+
97
+        </div>
98
+        <div class="NoCell" style="margin-top:20px;">
99
+          <div style="display:flex;">
100
+            <span>医师</span>
101
+            <span class="underLine" style="width:100px;">{{ item.doctor ? item.doctor : '' }}</span>
102
+          </div>
103
+          <div style="display:flex;">
104
+            <span>金额</span>
105
+            <span class="underLine" style="width:100px;"></span>
62
           </div>
106
           </div>
63
-          <div class="NoCell" style="margin-top:20px;">
64
-              <div style="display:flex;">
65
-                <span>医师</span>
66
-                <span class="underLine" style="width:100px;">{{item.doctor?item.doctor:""}}</span>
67
-              </div>
68
-              <div style="display:flex;">
69
-                <span>金额</span>
70
-                <span class="underLine" style="width:100px;"></span>
71
-              </div>
107
+        </div>
108
+        <div class="NoCell">
109
+          <div style="display:flex;">
110
+            <span>药师(审核、核对、发药)</span>
111
+            <span class="underLine" style="width:100px;"></span>
72
           </div>
112
           </div>
73
-          <div class="NoCell">
74
-              <div style="display:flex;">
75
-                <span>药师(审核、核对、发药)</span>
76
-                <span class="underLine" style="width:100px;"></span>
77
-              </div>
78
-              <div style="display:flex;">
79
-                <span>调配</span>
80
-                <span class="underLine" style="width:100px;"></span>
81
-              </div>
113
+          <div style="display:flex;">
114
+            <span>调配</span>
115
+            <span class="underLine" style="width:100px;"></span>
82
           </div>
116
           </div>
83
-          <div style="page-break-after:always"></div>
117
+        </div>
118
+        <div style="page-break-after:always"></div>
84
       </div>
119
       </div>
85
     </div>
120
     </div>
86
 
121
 
90
 </template>
125
 </template>
91
 <script>
126
 <script>
92
 import { jsGetAge, uParseTime } from '@/utils/tools'
127
 import { jsGetAge, uParseTime } from '@/utils/tools'
93
-import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
94
-import {getInitData} from "@/api/his/his"
128
+import { getAllDoctorList, getHisPatientDetail, getPrescriptionPrint } from '@/api/project/project'
129
+import { getInitData } from '@/api/his/his'
130
+
95
 export default {
131
 export default {
96
-    props:{
97
-      patient_id:Number,
98
-      record_date:String,
99
-      prescription_id:Number,
100
-      ids:String
132
+  props: {
133
+    patient_id: Number,
134
+    record_date: String,
135
+    prescription_id: Number,
136
+    ids: String
137
+  },
138
+  data() {
139
+    return {
140
+      doctorList: [],
141
+      advicePrint: {},
142
+      patient: {},
143
+      tableData: [],
144
+      prescriptionInfo: [],
145
+      hisPatient: {},
146
+      department: [],
147
+      prescriptions: [],
148
+      projectList: [],
149
+      orgname: '',
150
+      diagnoses: [],
151
+      org_id: 0
152
+    }
153
+  },
154
+  methods: {
155
+    getAge(patient) {
156
+      var thisLen = patient.id_card_no.length
157
+      var birth = ''
158
+      if (thisLen == 15) {
159
+        birth = '19' + patient.id_card_no.substr(6, 6)
160
+      } else {
161
+        birth = patient.id_card_no.substr(6, 8)
162
+      }
163
+      var births =
164
+          birth.substr(0, 4) +
165
+          '-' +
166
+          birth.substr(4, 2) +
167
+          '-' +
168
+          birth.substr(6, 2)
169
+      return jsGetAge(births, '-')
170
+
101
     },
171
     },
102
-    data(){
103
-      return {
104
-        doctorList:[],
105
-        advicePrint:{},
106
-        patient:{},
107
-        tableData:[],
108
-        prescriptionInfo:[],
109
-        hisPatient:{},
110
-        department:[],
111
-        prescriptions:[],
112
-        projectList:[],
113
-        orgname:"",
114
-        diagnoses:[],
115
-        org_id: 0
172
+
173
+    getAllDoctorList() {
174
+      getAllDoctorList().then(response => {
175
+        if (response.data.state == 1) {
176
+          var doctor = response.data.data.doctor
177
+
178
+          this.doctorList = doctor
179
+        }
180
+      })
181
+    },
182
+
183
+    getDoctor(id) {
184
+      var name = ''
185
+      for (let i = 0; i < this.doctorList.length; i++) {
186
+        if (id == this.doctorList[i].admin_user_id) {
187
+          name = this.doctorList[i].user_name
188
+        }
116
       }
189
       }
190
+      return name
117
     },
191
     },
118
-   methods:{
119
-     getAge(patient){
120
-       var thisLen = patient.id_card_no.length
121
-       var birth = ''
122
-       if (thisLen == 15) {
123
-         birth = '19' + patient.id_card_no.substr(6, 6)
124
-       } else {
125
-         birth = patient.id_card_no.substr(6, 8)
126
-       }
127
-       var births =
128
-         birth.substr(0, 4) +
129
-         '-' +
130
-         birth.substr(4, 2) +
131
-         '-' +
132
-         birth.substr(6, 2)
133
-       return jsGetAge(births, '-')
134
-
135
-     },
136
-
137
-     getAllDoctorList(){
138
-      getAllDoctorList().then(response=>{
139
-        if(response.data.state == 1){
140
-               var doctor =  response.data.data.doctor
141
-
142
-               this.doctorList = doctor
143
-             }
144
-         })
145
-     },
146
-
147
-      getDoctor(id){
148
-        var name = ""
149
-        for(let i=0;i<this.doctorList.length;i++){
150
-          if(id == this.doctorList[i].admin_user_id){
151
-              name = this.doctorList[i].user_name
152
-          }
192
+    getTime(value, temp) {
193
+      if (value != undefined) {
194
+        return uParseTime(value, temp)
195
+      }
196
+      return ''
197
+    },
198
+    getPrescriptionPrint() {
199
+      var params = {
200
+        // patient_id:this.patient_id,
201
+        // record_date:this.record_date,
202
+        // prescription_id:this.prescription_id,
203
+        patient_id: this.patient_id,
204
+        record_date: this.record_date,
205
+        prescription_id: this.prescription_id,
206
+        ids: this.ids
207
+      }
208
+      console.log('params', params)
209
+      getPrescriptionPrint(params).then(response => {
210
+        if (response.data.state == 1) {
211
+          var advicePrint = response.data.data.advicePrint
212
+          console.log('adviceprint9999', advicePrint)
213
+          this.advicePrint = advicePrint
214
+          this.prescriptions = advicePrint
215
+          console.log('处方222222', this.prescriptions)
216
+          var hisPatient = response.data.data.hisPatient
217
+          console.log('hisPatient', hisPatient)
218
+          this.hisPatient = hisPatient
219
+          var projectlist = response.data.data.projectlist
220
+          console.log('所有项目列表', projectlist)
221
+          this.projectList = projectlist
153
         }
222
         }
154
-        return name
155
-      },
156
-      getTime(value, temp) {
157
-        if (value != undefined) {
158
-            return uParseTime(value, temp)
223
+      })
224
+    },
225
+    getHisPatientDetail() {
226
+      const params = {
227
+        patient_id: this.patient_id
228
+      }
229
+      getHisPatientDetail(params).then(response => {
230
+        if (response.data.state == 1) {
231
+          var hisPatient = response.data.data.hisPatient
232
+          console.log('挂号病人', hisPatient)
233
+          this.hisPatient = hisPatient
159
         }
234
         }
160
-        return ''
161
-     },
162
-       getPrescriptionPrint(){
163
-         var params = {
164
-          // patient_id:this.patient_id,
165
-          // record_date:this.record_date,
166
-          // prescription_id:this.prescription_id,
167
-          patient_id:this.patient_id,
168
-          record_date:this.record_date,
169
-          prescription_id:this.prescription_id,
170
-          ids:this.ids
235
+      })
236
+    },
237
+    getInitData() {
238
+      getInitData().then(response => {
239
+        if (response.data.state == 1) {
240
+          this.department = response.data.data.department
241
+          this.diagnoses = response.data.data.diagnose
242
+          console.log('争端', this.diagnoses)
171
         }
243
         }
172
-        console.log("params",params)
173
-       getPrescriptionPrint(params).then(response=>{
174
-         if(response.data.state == 1){
175
-            var advicePrint =  response.data.data.advicePrint
176
-            console.log("adviceprint9999",advicePrint)
177
-            this.advicePrint = advicePrint
178
-            this.prescriptions = advicePrint
179
-            console.log("处方222222",this.prescriptions)
180
-            var hisPatient = response.data.data.hisPatient
181
-            console.log("hisPatient",hisPatient)
182
-            this.hisPatient = hisPatient
183
-            var projectlist =  response.data.data.projectlist
184
-            console.log("所有项目列表",projectlist)
185
-            this.projectList = projectlist
186
-          }
187
-       })
188
-     },
189
-     getHisPatientDetail(){
190
-          const params = {
191
-              patient_id:this.patient_id
192
-          }
193
-       getHisPatientDetail(params).then(response=>{
194
-          if(response.data.state == 1){
195
-             var hisPatient =  response.data.data.hisPatient
196
-             console.log("挂号病人",hisPatient)
197
-             this.hisPatient = hisPatient
198
-          }
199
-       })
200
-     },
201
-     getInitData(){
202
-       getInitData().then(response=>{
203
-          if(response.data.state == 1){
204
-            this.department = response.data.data.department
205
-            this.diagnoses = response.data.data.diagnose
206
-            console.log("争端",this.diagnoses)
207
-          }
208
-       })
209
-     },
210
-     getDepart(id){
211
-         var name = ""
212
-       for(let i=0;i<this.department.length;i++){
213
-           if(id == this.department[i].id){
214
-               name = this.department[i].name
215
-           }
216
-       }
217
-       return name
218
-     },
244
+      })
245
+    },
246
+    getDepart(id) {
247
+      var name = ''
248
+      for (let i = 0; i < this.department.length; i++) {
249
+        if (id == this.department[i].id) {
250
+          name = this.department[i].name
251
+        }
252
+      }
253
+      return name
254
+    },
219
     getTotalOne(id) {
255
     getTotalOne(id) {
220
 
256
 
221
-        var total = 0
222
-        var addtotal = 0
223
-        for (let i = 0; i < this.prescriptions.length; i++) {
224
-          if(id == this.prescriptions[i].id){
225
-            if (this.prescriptions[i].project != null) {
226
-              for (let a = 0; a < this.prescriptions[i].project.length; a++) {
227
-                total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
228
-              }
257
+      var total = 0
258
+      var addtotal = 0
259
+      for (let i = 0; i < this.prescriptions.length; i++) {
260
+        if (id == this.prescriptions[i].id) {
261
+          if (this.prescriptions[i].project != null) {
262
+            for (let a = 0; a < this.prescriptions[i].project.length; a++) {
263
+              total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
229
             }
264
             }
265
+          }
230
 
266
 
231
-            if (this.prescriptions[i].additionalcharge != null) {
232
-              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
233
-                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
234
-              }
267
+          if (this.prescriptions[i].additionalcharge != null) {
268
+            for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
269
+              addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
235
             }
270
             }
236
-              addtotal =  Math.floor(addtotal * 100) / 100
271
+          }
272
+          addtotal = Math.floor(addtotal * 100) / 100
237
         }
273
         }
238
 
274
 
239
-       }
275
+      }
240
 
276
 
241
       for (let i = 0; i < this.prescriptions.length; i++) {
277
       for (let i = 0; i < this.prescriptions.length; i++) {
242
-          if(id == this.prescriptions[i].id){
243
-            if (this.prescriptions[i].advices != null) {
244
-              for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
245
-                total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
246
-              }
278
+        if (id == this.prescriptions[i].id) {
279
+          if (this.prescriptions[i].advices != null) {
280
+            for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
281
+              total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
247
             }
282
             }
283
+          }
248
 
284
 
249
-            if (this.prescriptions[i].additionalcharge != null) {
250
-              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
251
-                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
252
-              }
285
+          if (this.prescriptions[i].additionalcharge != null) {
286
+            for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
287
+              addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
253
             }
288
             }
254
-              addtotal =  Math.floor(addtotal * 100) / 100
289
+          }
290
+          addtotal = Math.floor(addtotal * 100) / 100
255
         }
291
         }
256
-       }
292
+      }
257
 
293
 
258
-        return total + addtotal
259
-      },
294
+      return total + addtotal
295
+    },
260
 
296
 
261
-     getProjectName(id){
262
-        var project_name = ""
263
-        for(let i=0;i<this.projectList.length;i++){
264
-           if(id == this.projectList[i].id){
265
-               project_name = this.projectList[i].project_name
266
-           }
297
+    getProjectName(id) {
298
+      var project_name = ''
299
+      for (let i = 0; i < this.projectList.length; i++) {
300
+        if (id == this.projectList[i].id) {
301
+          project_name = this.projectList[i].project_name
267
         }
302
         }
268
-        return project_name
269
-     },
270
-
271
-     getDiagnosis(id){
272
-        let arr = id.split(',')
273
-        var name = ""
274
-        for(let i=0;i<this.diagnoses.length;i++){
275
-          if(arr.indexOf(String(this.diagnoses[i].id)) > -1){
276
-             name += this.diagnoses[i].class_name + ' '
277
-          }
303
+      }
304
+      return project_name
305
+    },
306
+
307
+    getDiagnosis(id) {
308
+      let arr = id.split(',')
309
+      var name = ''
310
+      for (let i = 0; i < this.diagnoses.length; i++) {
311
+        if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
312
+          name += this.diagnoses[i].class_name + ' '
278
         }
313
         }
279
-        return name
280
-     }
314
+      }
315
+      return name
316
+    }
281
 
317
 
282
-   },
283
-   created(){
284
-      this.getAllDoctorList()
285
-      this.getInitData()
286
-      this.getPrescriptionPrint()
287
-      this.getHisPatientDetail()
288
-      var xtuser = this.$store.getters.xt_user;
289
-      this.orgname = xtuser.org.org_name;
290
-      this.org_id = xtuser.org.id
291
-   },
292
-   watch:{
293
-     ids:function(val){
318
+  },
319
+  created() {
320
+    this.getAllDoctorList()
321
+    this.getInitData()
322
+    this.getPrescriptionPrint()
323
+    this.getHisPatientDetail()
324
+    var xtuser = this.$store.getters.xt_user
325
+    this.orgname = xtuser.org.org_name
326
+    this.org_id = xtuser.org.id
327
+  },
328
+  watch: {
329
+    ids: function(val) {
294
       this.ids = val
330
       this.ids = val
295
       this.getPrescriptionPrint()
331
       this.getPrescriptionPrint()
296
     }
332
     }
297
-   }
333
+  }
298
 }
334
 }
299
 </script>
335
 </script>
300
 
336
 
301
 
337
 
302
 <style lang="scss" scoped>
338
 <style lang="scss" scoped>
303
-.prescription-print{
339
+.prescription-print {
304
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
340
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
305
-    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
306
-    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
307
-    margin-bottom: 20px;
308
-    padding:20px 10px;
341
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
342
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
343
+  margin-bottom: 20px;
344
+  padding: 20px 10px;
309
 }
345
 }
310
-.printTitle{
311
-    font-size: 22px;
312
-    text-align: center;
313
-    font-weight: bold;
346
+
347
+.printTitle {
348
+  font-size: 22px;
349
+  text-align: center;
350
+  font-weight: bold;
314
 }
351
 }
315
-.infoTitle{
316
-    display: flex;
317
-    border-bottom: 2px solid #000;
318
-    margin-top:10px;
319
-    line-height: 24px;
320
-    padding:0 10px;
352
+
353
+.infoTitle {
354
+  display: flex;
355
+  border-bottom: 2px solid #000;
356
+  margin-top: 10px;
357
+  line-height: 24px;
358
+  padding: 0 10px;
321
 }
359
 }
322
-.infoTitle p{
323
-    width: 200px;
360
+
361
+.infoTitle p {
362
+  width: 200px;
324
 }
363
 }
325
-.infoMain{
326
-    display: flex;
327
-    flex-wrap: wrap;
328
-    border-bottom: 2px solid #000;
329
-    padding:0 10px;
364
+
365
+.infoMain {
366
+  display: flex;
367
+  flex-wrap: wrap;
368
+  border-bottom: 2px solid #000;
369
+  padding: 0 10px;
330
 }
370
 }
331
-.infoMain div{
332
-    width: 50%;
333
-    line-height: 24px;
371
+
372
+.infoMain div {
373
+  width: 50%;
374
+  line-height: 24px;
334
 }
375
 }
335
-.prescriptionBox{
336
-    padding:0 10px;
337
-    min-height:450px;
376
+
377
+.prescriptionBox {
378
+  padding: 0 10px;
379
+  min-height: 450px;
338
 }
380
 }
339
-.Rp{
340
-    font-size: 22px;
341
-    font-weight: bold;
381
+
382
+.Rp {
383
+  font-size: 22px;
384
+  font-weight: bold;
385
+}
386
+
387
+.drugsBox {
388
+  padding-left: 40px;
389
+  margin-bottom: 10px;
390
+}
391
+
392
+.drugsBox div {
393
+  line-height: 20px;
394
+}
395
+
396
+.drugsOne {
397
+  line-height: 24px;
398
+}
399
+
400
+.drugsOne span {
401
+  margin-right: 20px;
342
 }
402
 }
343
-.drugsBox{
344
-    padding-left: 40px;
345
-    margin-bottom: 10px;
403
+
404
+.doctorBox {
405
+  display: flex;
406
+  justify-content: space-between;
407
+  padding: 0 10px;
408
+  line-height: 24px;
409
+  border-bottom: 2px solid #000;
346
 }
410
 }
347
-.drugsBox div{
348
-    line-height: 20px;
411
+
412
+.actionBar {
413
+  display: flex;
414
+  justify-content: space-between;
415
+  line-height: 24px;
416
+  padding: 0 10px;
349
 }
417
 }
350
-.drugsOne{
351
-    line-height: 24px;
418
+
419
+.actionBar p {
420
+  width: 150px;
352
 }
421
 }
353
-.drugsOne span{
354
-    margin-right: 20px;
422
+
423
+.NoCell {
424
+  display: flex;
425
+  justify-content: space-between;
426
+  margin-bottom: 10px;
355
 }
427
 }
356
-.doctorBox{
357
-    display: flex;
358
-    justify-content: space-between;
359
-    padding:0 10px;
360
-    line-height: 24px;
361
-    border-bottom: 2px solid #000;
428
+
429
+.underLine {
430
+  display: inline-block;
431
+  border-bottom: 1px solid #000;
432
+  text-align: center;
433
+  line-height: 24px;
362
 }
434
 }
363
-.actionBar{
364
-    display: flex;
365
-    justify-content: space-between;
366
-    line-height: 24px;
367
-    padding:0 10px;
435
+
436
+.basicCell {
437
+  display: flex;
368
 }
438
 }
369
-.actionBar p{
370
-    width:150px;
439
+
440
+.basicCell span {
441
+  line-height: 24px;
442
+  margin-bottom: 10px;
371
 }
443
 }
372
-.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}
373
-.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}
374
-.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}
375
 </style>
444
 </style>

+ 14 - 10
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

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
 
777
             if (project_ids[i].price == project_month_prescriptions.project[a].price) {
777
             if (project_ids[i].price == project_month_prescriptions.project[a].price) {
778
 
778
 
779
               if (project_month_prescriptions.project[a].type == 2) {
779
               if (project_month_prescriptions.project[a].type == 2) {
780
-                obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
780
+                obj['statistical_classification'] = ''
781
                 obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
781
                 obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
782
                 obj['project_name'] = project_month_prescriptions.project[a].project.project_name
782
                 obj['project_name'] = project_month_prescriptions.project[a].project.project_name
783
                 obj['project'] = project_month_prescriptions.project[a].project
783
                 obj['project'] = project_month_prescriptions.project[a].project
1109
                     }
1109
                     }
1110
 
1110
 
1111
                     if (prescription.project[b].type == 2) {
1111
                     if (prescription.project[b].type == 2) {
1112
-                      obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1112
+                      obj['statistical_classification'] = prescription.project[b].team.project_team
1113
                       obj['medical_code'] = prescription.project[b].project.medical_code
1113
                       obj['medical_code'] = prescription.project[b].project.medical_code
1114
                       obj['project_name'] = prescription.project[b].project.project_name
1114
                       obj['project_name'] = prescription.project[b].project.project_name
1115
                       obj['project'] = prescription.project[b].project
1115
                       obj['project'] = prescription.project[b].project
1116
 
1116
 
1117
                     } else if (prescription.project[b].type == 3) {
1117
                     } else if (prescription.project[b].type == 3) {
1118
-                      obj['statistical_classification'] = ''
1118
+                      if(prescription.project[b].team_id > 0){
1119
+                        obj['statistical_classification'] = prescription.project[b].team.project_team
1120
+                      }
1119
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1121
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1120
                       obj['project_name'] = prescription.project[b].good_info.good_name
1122
                       obj['project_name'] = prescription.project[b].good_info.good_name
1121
                       obj['good_info'] =  prescription.project[b].good_info
1123
                       obj['good_info'] =  prescription.project[b].good_info
1228
                     }
1230
                     }
1229
 
1231
 
1230
                     if (prescription.project[b].type == 2) {
1232
                     if (prescription.project[b].type == 2) {
1231
-                      obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1233
+                      obj['statistical_classification'] = prescription.project[b].team.project_team
1232
                       obj['medical_code'] = prescription.project[b].project.medical_code
1234
                       obj['medical_code'] = prescription.project[b].project.medical_code
1233
                       obj['project_name'] = prescription.project[b].project.project_name
1235
                       obj['project_name'] = prescription.project[b].project.project_name
1234
                       obj['project'] = prescription.project[b].project
1236
                       obj['project'] = prescription.project[b].project
1235
 
1237
 
1236
 
1238
 
1237
                     } else if (prescription.project[b].type == 3) {
1239
                     } else if (prescription.project[b].type == 3) {
1238
-                      obj['statistical_classification'] = ''
1240
+                      if(prescription.project[b].team_id > 0){
1241
+                        obj['statistical_classification'] = prescription.project[b].team.project_team
1242
+                      }
1239
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1243
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1240
                       obj['project_name'] = prescription.project[b].good_info.good_name
1244
                       obj['project_name'] = prescription.project[b].good_info.good_name
1241
                       obj['good_info'] = prescription.project[b].good_info
1245
                       obj['good_info'] = prescription.project[b].good_info
2878
                   id: 0,
2882
                   id: 0,
2879
                   project_id: temp2[b].id,
2883
                   project_id: temp2[b].id,
2880
                   project_name: temp2[b].project_name,
2884
                   project_name: temp2[b].project_name,
2881
-                  statistical_classification: temp2[b].statistical_classification,
2885
+                  statistical_classification: '',
2882
                   single_dose: temp2[b].single_dose.toString(),
2886
                   single_dose: temp2[b].single_dose.toString(),
2883
                   delivery_way: temp2[b].delivery_way,
2887
                   delivery_way: temp2[b].delivery_way,
2884
                   execution_frequency: temp2[b].execution_frequency,
2888
                   execution_frequency: temp2[b].execution_frequency,
2979
               let obj = {
2983
               let obj = {
2980
                 id: project[i].id,
2984
                 id: project[i].id,
2981
                 project_name: project[i].project_name,
2985
                 project_name: project[i].project_name,
2982
-                statistical_classification: project[i].statistical_classification,
2986
+                statistical_classification: '',
2983
                 single_dose: project[i].single_dose,
2987
                 single_dose: project[i].single_dose,
2984
                 delivery_way: project[i].delivery_way,
2988
                 delivery_way: project[i].delivery_way,
2985
                 execution_frequency: project[i].execution_frequency,
2989
                 execution_frequency: project[i].execution_frequency,
3012
               let obj = {
3016
               let obj = {
3013
                 id: good_info[i].id,
3017
                 id: good_info[i].id,
3014
                 project_name: good_info[i].good_name,
3018
                 project_name: good_info[i].good_name,
3015
-                statistical_classification: 0,
3019
+                statistical_classification: '',
3016
                 single_dose: good_info[i].specification_name,
3020
                 single_dose: good_info[i].specification_name,
3017
                 delivery_way: '',
3021
                 delivery_way: '',
3018
                 execution_frequency: '',
3022
                 execution_frequency: '',
3112
                   let obj = {
3116
                   let obj = {
3113
                     id: project[i].project_id,
3117
                     id: project[i].project_id,
3114
                     project_name: project[i].project.project_name,
3118
                     project_name: project[i].project.project_name,
3115
-                    statistical_classification: project[i].project.statistical_classification,
3119
+                    statistical_classification: '',
3116
                     single_dose: project[i].project.single_dose,
3120
                     single_dose: project[i].project.single_dose,
3117
                     delivery_way: project[i].project.delivery_way,
3121
                     delivery_way: project[i].project.delivery_way,
3118
                     execution_frequency: project[i].project.execution_frequency,
3122
                     execution_frequency: project[i].project.execution_frequency,

+ 1 - 2
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue 查看文件

124
                 </template>
124
                 </template>
125
             </el-table-column>
125
             </el-table-column>
126
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
126
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
127
-                <template slot-scope="scope">{{scope.row.type ==
128
-                    2?getGroup(scope.row.statistical_classification):'耗材'}}
127
+                <template slot-scope="scope">{{scope.row.statistical_classification}}
129
                 </template>
128
                 </template>
130
             </el-table-column>
129
             </el-table-column>
131
             <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
130
             <el-table-column align="center" prop="single_dose" width="80" label="单次用量">

+ 31 - 30
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

960
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
960
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
961
             if (project_ids[i].price == project_month_prescriptions.project[a].price) {
961
             if (project_ids[i].price == project_month_prescriptions.project[a].price) {
962
               if (project_month_prescriptions.project[a].type == 2) {
962
               if (project_month_prescriptions.project[a].type == 2) {
963
-                obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
963
+                obj['statistical_classification'] = ''
964
                 obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
964
                 obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
965
                 obj['project_name'] = project_month_prescriptions.project[a].project.project_name
965
                 obj['project_name'] = project_month_prescriptions.project[a].project.project_name
966
                 obj['project'] =  project_month_prescriptions.project[a].project
966
                 obj['project'] =  project_month_prescriptions.project[a].project
1457
                     id: prescription.project[b].id,
1457
                     id: prescription.project[b].id,
1458
                     project_id: prescription.project[b].project_id,
1458
                     project_id: prescription.project[b].project_id,
1459
                     project_name: prescription.project[b].project.project_name,
1459
                     project_name: prescription.project[b].project.project_name,
1460
-                    statistical_classification: prescription.project[b].project.statistical_classification,
1460
+                    // statistical_classification: prescription.project[b].project.statistical_classification,
1461
                     single_dose: prescription.project[b].single_dose,
1461
                     single_dose: prescription.project[b].single_dose,
1462
                     delivery_way: prescription.project[b].delivery_way,
1462
                     delivery_way: prescription.project[b].delivery_way,
1463
                     execution_frequency: prescription.project[b].execution_frequency,
1463
                     execution_frequency: prescription.project[b].execution_frequency,
1472
                   }
1472
                   }
1473
 
1473
 
1474
                   if (prescription.project[b].type == 2) {
1474
                   if (prescription.project[b].type == 2) {
1475
-                    obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1475
+                    obj['statistical_classification'] = prescription.project[b].team.project_team
1476
                     obj['medical_code'] = prescription.project[b].project.medical_code
1476
                     obj['medical_code'] = prescription.project[b].project.medical_code
1477
                     obj['project_name'] = prescription.project[b].project.project_name
1477
                     obj['project_name'] = prescription.project[b].project.project_name
1478
                     obj['project'] = prescription.project[b].project
1478
                     obj['project'] = prescription.project[b].project
1611
                       id: 0,
1611
                       id: 0,
1612
                       project_id: prescription.project[b].project_id,
1612
                       project_id: prescription.project[b].project_id,
1613
                       project_name: prescription.project[b].project.project_name,
1613
                       project_name: prescription.project[b].project.project_name,
1614
-                      statistical_classification: prescription.project[b].project.statistical_classification,
1614
+                      // statistical_classification: prescription.project[b].team.project_team,
1615
                       single_dose: prescription.project[b].single_dose,
1615
                       single_dose: prescription.project[b].single_dose,
1616
                       delivery_way: prescription.project[b].delivery_way,
1616
                       delivery_way: prescription.project[b].delivery_way,
1617
                       execution_frequency: prescription.project[b].execution_frequency,
1617
                       execution_frequency: prescription.project[b].execution_frequency,
1627
                     }
1627
                     }
1628
 
1628
 
1629
                     if (prescription.project[b].type == 2) {
1629
                     if (prescription.project[b].type == 2) {
1630
-                      obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1630
+                      obj['statistical_classification'] = ""
1631
                       obj['medical_code'] = prescription.project[b].project.medical_code
1631
                       obj['medical_code'] = prescription.project[b].project.medical_code
1632
                       obj['project_name'] = prescription.project[b].project.project_name
1632
                       obj['project_name'] = prescription.project[b].project.project_name
1633
                       obj['price'] = prescription.project[b].project.price
1633
                       obj['price'] = prescription.project[b].project.price
1634
                       obj['project'] =  prescription.project[b].project
1634
                       obj['project'] =  prescription.project[b].project
1635
 
1635
 
1636
                     } else if (prescription.project[b].type == 3) {
1636
                     } else if (prescription.project[b].type == 3) {
1637
-                      obj['statistical_classification'] = ''
1637
+                      obj['statistical_classification'] = ""
1638
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1638
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1639
                       obj['project_name'] = prescription.project[b].good_info.good_name
1639
                       obj['project_name'] = prescription.project[b].good_info.good_name
1640
                       obj['price'] = prescription.project[b].good_info.packing_price
1640
                       obj['price'] = prescription.project[b].good_info.packing_price
1855
                           id: prescription.project[b].id,
1855
                           id: prescription.project[b].id,
1856
                           project_id: prescription.project[b].project_id,
1856
                           project_id: prescription.project[b].project_id,
1857
                           project_name: prescription.project[b].project.project_name,
1857
                           project_name: prescription.project[b].project.project_name,
1858
-                          statistical_classification: prescription.project[b].project.statistical_classification,
1858
+                          // statistical_classification: prescription.project[b].project.statistical_classification,
1859
                           single_dose: prescription.project[b].single_dose,
1859
                           single_dose: prescription.project[b].single_dose,
1860
                           delivery_way: prescription.project[b].delivery_way,
1860
                           delivery_way: prescription.project[b].delivery_way,
1861
                           execution_frequency: prescription.project[b].execution_frequency,
1861
                           execution_frequency: prescription.project[b].execution_frequency,
1869
                         }
1869
                         }
1870
 
1870
 
1871
                         if (prescription.project[b].type == 2) {
1871
                         if (prescription.project[b].type == 2) {
1872
-                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1872
+                          obj['statistical_classification'] = prescription.project[b].team.project_team
1873
                           obj['medical_code'] = prescription.project[b].project.medical_code
1873
                           obj['medical_code'] = prescription.project[b].project.medical_code
1874
                           obj['project_name'] = prescription.project[b].project.project_name
1874
                           obj['project_name'] = prescription.project[b].project.project_name
1875
                           obj['project'] =  prescription.project[b].project
1875
                           obj['project'] =  prescription.project[b].project
2011
                             id: 0,
2011
                             id: 0,
2012
                             project_id: prescription.project[b].project_id,
2012
                             project_id: prescription.project[b].project_id,
2013
                             project_name: prescription.project[b].project.project_name,
2013
                             project_name: prescription.project[b].project.project_name,
2014
-                            statistical_classification: prescription.project[b].project.statistical_classification,
2015
                             single_dose: prescription.project[b].single_dose,
2014
                             single_dose: prescription.project[b].single_dose,
2016
                             delivery_way: prescription.project[b].delivery_way,
2015
                             delivery_way: prescription.project[b].delivery_way,
2017
                             execution_frequency: prescription.project[b].execution_frequency,
2016
                             execution_frequency: prescription.project[b].execution_frequency,
2025
                           }
2024
                           }
2026
 
2025
 
2027
                           if (prescription.project[b].type == 2) {
2026
                           if (prescription.project[b].type == 2) {
2028
-                            obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2027
+                            obj['statistical_classification'] = ""
2029
                             obj['medical_code'] = prescription.project[b].project.medical_code
2028
                             obj['medical_code'] = prescription.project[b].project.medical_code
2030
                             obj['project_name'] = prescription.project[b].project.project_name
2029
                             obj['project_name'] = prescription.project[b].project.project_name
2031
                             obj['price'] = prescription.project[b].project.price
2030
                             obj['price'] = prescription.project[b].project.price
2353
                           id: prescription.project[b].id,
2352
                           id: prescription.project[b].id,
2354
                           project_id: prescription.project[b].project_id,
2353
                           project_id: prescription.project[b].project_id,
2355
                           project_name: prescription.project[b].project.project_name,
2354
                           project_name: prescription.project[b].project.project_name,
2356
-                          statistical_classification: prescription.project[b].project.statistical_classification,
2357
                           single_dose: prescription.project[b].single_dose,
2355
                           single_dose: prescription.project[b].single_dose,
2358
                           delivery_way: prescription.project[b].delivery_way,
2356
                           delivery_way: prescription.project[b].delivery_way,
2359
                           execution_frequency: prescription.project[b].execution_frequency,
2357
                           execution_frequency: prescription.project[b].execution_frequency,
2367
                         }
2365
                         }
2368
 
2366
 
2369
                         if (prescription.project[b].type == 2) {
2367
                         if (prescription.project[b].type == 2) {
2370
-                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2368
+                          obj['statistical_classification'] = prescription.project[b].team.project_team
2371
                           obj['medical_code'] = prescription.project[b].project.medical_code
2369
                           obj['medical_code'] = prescription.project[b].project.medical_code
2372
                           obj['project_name'] = prescription.project[b].project.project_name
2370
                           obj['project_name'] = prescription.project[b].project.project_name
2373
                           obj['project'] =  prescription.project[b].project
2371
                           obj['project'] =  prescription.project[b].project
2374
 
2372
 
2375
 
2373
 
2376
                         } else if (prescription.project[b].type == 3) {
2374
                         } else if (prescription.project[b].type == 3) {
2377
-                          obj['statistical_classification'] = ''
2375
+                          if(prescription.project[b].team_id > 0){
2376
+                            obj['statistical_classification'] = prescription.project[b].team.project_team
2377
+                          }
2378
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2378
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2379
                           obj['project_name'] = prescription.project[b].good_info.good_name
2379
                           obj['project_name'] = prescription.project[b].good_info.good_name
2380
                           obj['good_info'] =  prescription.project[b].good_info
2380
                           obj['good_info'] =  prescription.project[b].good_info
2500
                             id: 0,
2500
                             id: 0,
2501
                             project_id: prescription.project[b].project_id,
2501
                             project_id: prescription.project[b].project_id,
2502
                             project_name: prescription.project[b].project.project_name,
2502
                             project_name: prescription.project[b].project.project_name,
2503
-                            statistical_classification: prescription.project[b].project.statistical_classification,
2504
                             single_dose: prescription.project[b].single_dose,
2503
                             single_dose: prescription.project[b].single_dose,
2505
                             delivery_way: prescription.project[b].delivery_way,
2504
                             delivery_way: prescription.project[b].delivery_way,
2506
                             execution_frequency: prescription.project[b].execution_frequency,
2505
                             execution_frequency: prescription.project[b].execution_frequency,
2513
                           }
2512
                           }
2514
 
2513
 
2515
                           if (prescription.project[b].type == 2) {
2514
                           if (prescription.project[b].type == 2) {
2516
-                            obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2515
+                            obj['statistical_classification'] = ""
2517
                             obj['medical_code'] = prescription.project[b].project.medical_code
2516
                             obj['medical_code'] = prescription.project[b].project.medical_code
2518
                             obj['project_name'] = prescription.project[b].project.project_name
2517
                             obj['project_name'] = prescription.project[b].project.project_name
2519
                             obj['price'] = prescription.project[b].project.price
2518
                             obj['price'] = prescription.project[b].project.price
2831
                         id: prescription.project[b].id,
2830
                         id: prescription.project[b].id,
2832
                         project_id: prescription.project[b].project_id,
2831
                         project_id: prescription.project[b].project_id,
2833
                         project_name: prescription.project[b].project.project_name,
2832
                         project_name: prescription.project[b].project.project_name,
2834
-                        statistical_classification: prescription.project[b].project.statistical_classification,
2835
                         single_dose: prescription.project[b].single_dose,
2833
                         single_dose: prescription.project[b].single_dose,
2836
                         delivery_way: prescription.project[b].delivery_way,
2834
                         delivery_way: prescription.project[b].delivery_way,
2837
                         execution_frequency: prescription.project[b].execution_frequency,
2835
                         execution_frequency: prescription.project[b].execution_frequency,
2845
                       }
2843
                       }
2846
 
2844
 
2847
                       if (prescription.project[b].type == 2) {
2845
                       if (prescription.project[b].type == 2) {
2848
-                        obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2846
+                        obj['statistical_classification'] = prescription.project[b].team.project_team
2849
                         obj['medical_code'] = prescription.project[b].project.medical_code
2847
                         obj['medical_code'] = prescription.project[b].project.medical_code
2850
                         obj['project_name'] = prescription.project[b].project.project_name
2848
                         obj['project_name'] = prescription.project[b].project.project_name
2851
                         obj['project'] =  prescription.project[b].project
2849
                         obj['project'] =  prescription.project[b].project
2852
 
2850
 
2853
 
2851
 
2854
                       } else if (prescription.project[b].type == 3) {
2852
                       } else if (prescription.project[b].type == 3) {
2855
-                        obj['statistical_classification'] = ''
2853
+                        if(prescription.project[b].team_id > 0){
2854
+                          obj['statistical_classification'] = prescription.project[b].team.project_team
2855
+                        }
2856
                         obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2856
                         obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2857
                         obj['project_name'] = prescription.project[b].good_info.good_name
2857
                         obj['project_name'] = prescription.project[b].good_info.good_name
2858
                         obj['good_info'] =  prescription.project[b].good_info
2858
                         obj['good_info'] =  prescription.project[b].good_info
2978
                           id: 0,
2978
                           id: 0,
2979
                           project_id: prescription.project[b].project_id,
2979
                           project_id: prescription.project[b].project_id,
2980
                           project_name: prescription.project[b].project.project_name,
2980
                           project_name: prescription.project[b].project.project_name,
2981
-                          statistical_classification: prescription.project[b].project.statistical_classification,
2982
                           single_dose: prescription.project[b].single_dose,
2981
                           single_dose: prescription.project[b].single_dose,
2983
                           delivery_way: prescription.project[b].delivery_way,
2982
                           delivery_way: prescription.project[b].delivery_way,
2984
                           execution_frequency: prescription.project[b].execution_frequency,
2983
                           execution_frequency: prescription.project[b].execution_frequency,
2991
                         }
2990
                         }
2992
 
2991
 
2993
                         if (prescription.project[b].type == 2) {
2992
                         if (prescription.project[b].type == 2) {
2994
-                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2993
+                          obj['statistical_classification'] = ""
2995
                           obj['medical_code'] = prescription.project[b].project.medical_code
2994
                           obj['medical_code'] = prescription.project[b].project.medical_code
2996
                           obj['project_name'] = prescription.project[b].project.project_name
2995
                           obj['project_name'] = prescription.project[b].project.project_name
2997
                           obj['price'] = prescription.project[b].project.price
2996
                           obj['price'] = prescription.project[b].project.price
3369
                           id: prescription.project[b].id,
3368
                           id: prescription.project[b].id,
3370
                           project_id: prescription.project[b].project_id,
3369
                           project_id: prescription.project[b].project_id,
3371
                           project_name: prescription.project[b].project.project_name,
3370
                           project_name: prescription.project[b].project.project_name,
3372
-                          statistical_classification: prescription.project[b].project.statistical_classification,
3373
                           single_dose: prescription.project[b].single_dose,
3371
                           single_dose: prescription.project[b].single_dose,
3374
                           delivery_way: prescription.project[b].delivery_way,
3372
                           delivery_way: prescription.project[b].delivery_way,
3375
                           execution_frequency: prescription.project[b].execution_frequency,
3373
                           execution_frequency: prescription.project[b].execution_frequency,
3383
                         }
3381
                         }
3384
 
3382
 
3385
                         if (prescription.project[b].type == 2) {
3383
                         if (prescription.project[b].type == 2) {
3386
-                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3384
+                          obj['statistical_classification'] = prescription.project[b].team.project_team
3387
                           obj['medical_code'] = prescription.project[b].project.medical_code
3385
                           obj['medical_code'] = prescription.project[b].project.medical_code
3388
                           obj['project_name'] = prescription.project[b].project.project_name
3386
                           obj['project_name'] = prescription.project[b].project.project_name
3389
                           obj['project'] =  prescription.project[b].project
3387
                           obj['project'] =  prescription.project[b].project
3390
 
3388
 
3391
 
3389
 
3392
                         } else if (prescription.project[b].type == 3) {
3390
                         } else if (prescription.project[b].type == 3) {
3393
-                          obj['statistical_classification'] = ''
3391
+                          if(prescription.project[b].team_id > 0){
3392
+                            obj['statistical_classification'] = prescription.project[b].team.project_team
3393
+                          }
3394
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3394
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3395
                           obj['project_name'] = prescription.project[b].good_info.good_name
3395
                           obj['project_name'] = prescription.project[b].good_info.good_name
3396
                           obj['good_info'] =  prescription.project[b].good_info
3396
                           obj['good_info'] =  prescription.project[b].good_info
3523
                             id: 0,
3523
                             id: 0,
3524
                             project_id: prescription.project[b].project_id,
3524
                             project_id: prescription.project[b].project_id,
3525
                             project_name: prescription.project[b].project.project_name,
3525
                             project_name: prescription.project[b].project.project_name,
3526
-                            statistical_classification: prescription.project[b].project.statistical_classification,
3527
                             single_dose: prescription.project[b].single_dose,
3526
                             single_dose: prescription.project[b].single_dose,
3528
                             delivery_way: prescription.project[b].delivery_way,
3527
                             delivery_way: prescription.project[b].delivery_way,
3529
                             execution_frequency: prescription.project[b].execution_frequency,
3528
                             execution_frequency: prescription.project[b].execution_frequency,
3536
                           }
3535
                           }
3537
 
3536
 
3538
                           if (prescription.project[b].type == 2) {
3537
                           if (prescription.project[b].type == 2) {
3539
-                            obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3538
+                            obj['statistical_classification'] = ""
3540
                             obj['medical_code'] = prescription.project[b].project.medical_code
3539
                             obj['medical_code'] = prescription.project[b].project.medical_code
3541
                             obj['project_name'] = prescription.project[b].project.project_name
3540
                             obj['project_name'] = prescription.project[b].project.project_name
3542
                             obj['price'] = prescription.project[b].project.price
3541
                             obj['price'] = prescription.project[b].project.price
3937
                           id: prescription.project[b].id,
3936
                           id: prescription.project[b].id,
3938
                           project_id: prescription.project[b].project_id,
3937
                           project_id: prescription.project[b].project_id,
3939
                           project_name: prescription.project[b].project.project_name,
3938
                           project_name: prescription.project[b].project.project_name,
3940
-                          statistical_classification: prescription.project[b].project.statistical_classification,
3939
+                          // statistical_classification: prescription.project[b].project.statistical_classification,
3941
                           single_dose: prescription.project[b].single_dose,
3940
                           single_dose: prescription.project[b].single_dose,
3942
                           delivery_way: prescription.project[b].delivery_way,
3941
                           delivery_way: prescription.project[b].delivery_way,
3943
                           execution_frequency: prescription.project[b].execution_frequency,
3942
                           execution_frequency: prescription.project[b].execution_frequency,
3951
                         }
3950
                         }
3952
 
3951
 
3953
                         if (prescription.project[b].type == 2) {
3952
                         if (prescription.project[b].type == 2) {
3954
-                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3953
+                          obj['statistical_classification'] = prescription.project[b].team.project_team
3955
                           obj['medical_code'] = prescription.project[b].project.medical_code
3954
                           obj['medical_code'] = prescription.project[b].project.medical_code
3956
                           obj['project_name'] = prescription.project[b].project.project_name
3955
                           obj['project_name'] = prescription.project[b].project.project_name
3957
                           obj['project'] =  prescription.project[b].project
3956
                           obj['project'] =  prescription.project[b].project
3958
 
3957
 
3959
 
3958
 
3960
                         } else if (prescription.project[b].type == 3) {
3959
                         } else if (prescription.project[b].type == 3) {
3961
-                          obj['statistical_classification'] = ''
3960
+                          if(prescription.project[b].team_id > 0){
3961
+                            obj['statistical_classification'] = prescription.project[b].team.project_team
3962
+                          }
3962
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3963
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3963
                           obj['project_name'] = prescription.project[b].good_info.good_name
3964
                           obj['project_name'] = prescription.project[b].good_info.good_name
3964
                           obj['good_info'] =  prescription.project[b].good_info
3965
                           obj['good_info'] =  prescription.project[b].good_info
4091
                             id: 0,
4092
                             id: 0,
4092
                             project_id: prescription.project[b].project_id,
4093
                             project_id: prescription.project[b].project_id,
4093
                             project_name: prescription.project[b].project.project_name,
4094
                             project_name: prescription.project[b].project.project_name,
4094
-                            statistical_classification: prescription.project[b].project.statistical_classification,
4095
+                            // statistical_classification: prescription.project[b].project.statistical_classification,
4095
                             single_dose: prescription.project[b].single_dose,
4096
                             single_dose: prescription.project[b].single_dose,
4096
                             delivery_way: prescription.project[b].delivery_way,
4097
                             delivery_way: prescription.project[b].delivery_way,
4097
                             execution_frequency: prescription.project[b].execution_frequency,
4098
                             execution_frequency: prescription.project[b].execution_frequency,
4104
                           }
4105
                           }
4105
 
4106
 
4106
                           if (prescription.project[b].type == 2) {
4107
                           if (prescription.project[b].type == 2) {
4107
-                            obj['statistical_classification'] = prescription.project[b].project.statistical_classification
4108
+                            obj['statistical_classification'] = ""
4108
                             obj['medical_code'] = prescription.project[b].project.medical_code
4109
                             obj['medical_code'] = prescription.project[b].project.medical_code
4109
                             obj['project_name'] = prescription.project[b].project.project_name
4110
                             obj['project_name'] = prescription.project[b].project.project_name
4110
                             obj['price'] = prescription.project[b].project.price
4111
                             obj['price'] = prescription.project[b].project.price

+ 3 - 3
src/xt_pages/outpatientRecord/outpatientRecord.vue 查看文件

114
                             <span @click="putOnRecord(1,scope.row)">备案</span>
114
                             <span @click="putOnRecord(1,scope.row)">备案</span>
115
                         </el-button>
115
                         </el-button>
116
 
116
 
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>-->
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>
120
                     </template>
120
                     </template>
121
                 </el-table-column>
121
                 </el-table-column>
122
             </el-table>
122
             </el-table>

文件差異過大導致無法顯示
+ 1056 - 1060
src/xt_pages/qcd/officesControlAnalysis/project.vue


文件差異過大導致無法顯示
+ 493 - 481
src/xt_pages/qcd/officesControlAnalysis/time.vue


文件差異過大導致無法顯示
+ 535 - 493
src/xt_pages/qcd/patientControlAnalysis.vue


+ 67 - 15
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue 查看文件

3
     <div class="cell clearfix">
3
     <div class="cell clearfix">
4
       <el-form :inline="true" :model="listQuery">
4
       <el-form :inline="true" :model="listQuery">
5
         <el-form-item label>
5
         <el-form-item label>
6
-         
6
+
7
            <el-autocomplete
7
            <el-autocomplete
8
              class="checkSearch"
8
              class="checkSearch"
9
              popper-class="my-autocomplete"
9
              popper-class="my-autocomplete"
70
       <div style="padding-left:10px;flex:1">
70
       <div style="padding-left:10px;flex:1">
71
         <div class="tableTitle">统计表</div>
71
         <div class="tableTitle">统计表</div>
72
         <div><el-button type="primary" @click="exportList">导出</el-button></div>
72
         <div><el-button type="primary" @click="exportList">导出</el-button></div>
73
-        <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }" 
73
+        <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }"
74
         :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
74
         :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
75
         >
75
         >
76
           <el-table-column prop="name" label="姓名" width="140">
76
           <el-table-column prop="name" label="姓名" width="140">
141
           let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear()-1)).getTime() - 24 * 3600 * 1000;
141
           let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear()-1)).getTime() - 24 * 3600 * 1000;
142
           return time.getTime() > Date.now() || time.getTime() < threeMonths;;
142
           return time.getTime() > Date.now() || time.getTime() < threeMonths;;
143
         }
143
         }
144
-      }, 
144
+      },
145
       patient_id:0,
145
       patient_id:0,
146
       modeIdCount:[],
146
       modeIdCount:[],
147
     };
147
     };
155
       } else {
155
       } else {
156
         this.getDialysisList()
156
         this.getDialysisList()
157
       }
157
       }
158
-      
158
+
159
     },
159
     },
160
     changeEndTime(val) {
160
     changeEndTime(val) {
161
       var time =
161
       var time =
195
          if(response.data.state === 1){
195
          if(response.data.state === 1){
196
           var list = response.data.data.list
196
           var list = response.data.data.list
197
           var totallist  =  response.data.data.totallist
197
           var totallist  =  response.data.data.totallist
198
-          this.total = totallist  
198
+          this.total = totallist
199
           var prescriptionList = response.data.data.prescriptionList
199
           var prescriptionList = response.data.data.prescriptionList
200
-         
200
+
201
           this.getModeId(prescriptionList)
201
           this.getModeId(prescriptionList)
202
           var count = response.data.data.count
202
           var count = response.data.data.count
203
           this.DialysisCount = count
203
           this.DialysisCount = count
204
-          
204
+
205
           var modeIdCount = response.data.data.modeIdCount
205
           var modeIdCount = response.data.data.modeIdCount
206
           console.log("modeidcount=====",modeIdCount)
206
           console.log("modeidcount=====",modeIdCount)
207
           for(let i=0;i<modeIdCount.length;i++){
207
           for(let i=0;i<modeIdCount.length;i++){
261
             }
261
             }
262
               if(modeIdCount[i].mode_id == 19){
262
               if(modeIdCount[i].mode_id == 19){
263
                modeIdCount[i].mode_id = "IUF+HD"
263
                modeIdCount[i].mode_id = "IUF+HD"
264
+            }
265
+            if(modeIdCount[i].mode_id == 20){
266
+              modeIdCount[i].mode_id = "UF"
267
+            }
268
+            if(modeIdCount[i].mode_id == 21){
269
+              modeIdCount[i].mode_id = "HD+"
270
+            }
271
+            if(modeIdCount[i].mode_id == 22){
272
+              modeIdCount[i].mode_id = "血浆胆红素吸附+HDF"
273
+            }
274
+            if(modeIdCount[i].mode_id == 23){
275
+              modeIdCount[i].mode_id = "血浆胆红素吸附"
276
+            }
277
+            if(modeIdCount[i].mode_id == 24){
278
+              modeIdCount[i].mode_id = "I-HDF"
279
+            }
280
+            if(modeIdCount[i].mode_id == 25){
281
+              modeIdCount[i].mode_id = "HD高通"
282
+            }
283
+
284
+            if(modeIdCount[i].mode_id == 26){
285
+              modeIdCount[i].mode_id = "CVVH"
286
+            }
287
+            if(modeIdCount[i].mode_id == 27){
288
+              modeIdCount[i].mode_id = "CVVHD"
264
             }
289
             }
265
              if(modeIdCount[i].mode_id == 28){
290
              if(modeIdCount[i].mode_id == 28){
266
                modeIdCount[i].mode_id = "CVVHDF"
291
                modeIdCount[i].mode_id = "CVVHDF"
283
             }
308
             }
284
           })
309
           })
285
           let list = Object.values(dataInfo)
310
           let list = Object.values(dataInfo)
286
-             
311
+
287
           list.map(item => {
312
           list.map(item => {
288
             for (let i = 0; i < prescriptionList.length; i++) {
313
             for (let i = 0; i < prescriptionList.length; i++) {
289
               if (item.patient_id === prescriptionList[i].patient_id) {
314
               if (item.patient_id === prescriptionList[i].patient_id) {
350
          }
375
          }
351
        })
376
        })
352
       }
377
       }
353
-    
378
+
354
     },
379
     },
355
     unique(arr) {
380
     unique(arr) {
356
         const res = new Map();
381
         const res = new Map();
384
             // console.log("total",total)
409
             // console.log("total",total)
385
           }
410
           }
386
        })
411
        })
387
-     
412
+
388
     },
413
     },
389
     getModeId(patients){
414
     getModeId(patients){
390
       for(let i=0;i<patients.length;i++){
415
       for(let i=0;i<patients.length;i++){
426
             patients[i].mode_id = "HDF后置换"
451
             patients[i].mode_id = "HDF后置换"
427
         }else if(patients[i].mode_id == 19){
452
         }else if(patients[i].mode_id == 19){
428
           patients[i].mode_id = "IUF+HD"
453
           patients[i].mode_id = "IUF+HD"
454
+        }else if(patients[i].mode_id == 20){
455
+          patients[i].mode_id = "UF"
456
+        }else if(patients[i].mode_id == 21){
457
+          patients[i].mode_id = "HD+"
458
+        }else if(patients[i].mode_id == 22){
459
+          patients[i].mode_id = "血浆胆红素吸附+HDF"
460
+        }else if(patients[i].mode_id == 23){
461
+          patients[i].mode_id = "血浆胆红素吸附"
462
+        }else if(patients[i].mode_id == 24){
463
+          patients[i].mode_id = "I-HDF"
464
+        }else if(patients[i].mode_id == 25){
465
+          patients[i].mode_id = "HD高通"
466
+        }else if(patients[i].mode_id == 26){
467
+          patients[i].mode_id = "CVVH"
468
+        }else if(patients[i].mode_id == 27){
469
+          patients[i].mode_id = "CVVHD"
429
         }else if(patients[i].mode_id == 28){
470
         }else if(patients[i].mode_id == 28){
430
           patients[i].mode_id = "CVVHDF"
471
           patients[i].mode_id = "CVVHDF"
431
         }
472
         }
462
         }
503
         }
463
         let str = ''
504
         let str = ''
464
         arr.map(item => {
505
         arr.map(item => {
465
-          str += item.mode_id + '(' + item.Count + '次) 、' 
506
+          str += item.mode_id + '(' + item.Count + '次) 、'
466
         })
507
         })
467
         var strs = str.substring(0, str.length - 1)
508
         var strs = str.substring(0, str.length - 1)
468
-       
509
+
469
         return strs
510
         return strs
470
       },
511
       },
471
       exportList(){
512
       exportList(){
483
          this.DialysisData[i].HDFHP = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HDF+HP")
524
          this.DialysisData[i].HDFHP = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HDF+HP")
484
          this.DialysisData[i].CRRT = this.getHdModeIdCount(this.DialysisData[i].patient_id,"CRRT")
525
          this.DialysisData[i].CRRT = this.getHdModeIdCount(this.DialysisData[i].patient_id,"CRRT")
485
          this.DialysisData[i].OTR = this.getHdModeIdCount(this.DialysisData[i].patient_id,"腹水回输")
526
          this.DialysisData[i].OTR = this.getHdModeIdCount(this.DialysisData[i].patient_id,"腹水回输")
527
+
528
+         this.DialysisData[i].IUFHD = this.getHdModeIdCount(this.DialysisData[i].patient_id,"IUF+HD")
529
+         this.DialysisData[i].UF = this.getHdModeIdCount(this.DialysisData[i].patient_id,"UF")
530
+         this.DialysisData[i].HDPlus = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HD+")
531
+         this.DialysisData[i].IHDF = this.getHdModeIdCount(this.DialysisData[i].patient_id,"I-HDF")
532
+         this.DialysisData[i].HDGT = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HD高通")
533
+         this.DialysisData[i].CVVH = this.getHdModeIdCount(this.DialysisData[i].patient_id,"CVVH")
534
+         this.DialysisData[i].CVVHD = this.getHdModeIdCount(this.DialysisData[i].patient_id,"CVVHD")
535
+         this.DialysisData[i].CVVHDF = this.getHdModeIdCount(this.DialysisData[i].patient_id,"CVVHDF")
536
+
537
+
486
          this.DialysisData[i].age = this.getAge(this.DialysisData[i].id_card_no)
538
          this.DialysisData[i].age = this.getAge(this.DialysisData[i].id_card_no)
487
          this.DialysisData[i].total_count = this.getDialysisCount(this.DialysisData[i].patient_id)
539
          this.DialysisData[i].total_count = this.getDialysisCount(this.DialysisData[i].patient_id)
488
        }
540
        }
492
         const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','total_count']
544
         const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','total_count']
493
 
545
 
494
         const data = this.formatJson(filterVal, this.DialysisData)
546
         const data = this.formatJson(filterVal, this.DialysisData)
495
-       
547
+
496
         excel.export_json_to_excel({
548
         excel.export_json_to_excel({
497
            header: tHeader,
549
            header: tHeader,
498
            data,
550
            data,
525
             count += arr[i].Count
577
             count += arr[i].Count
526
           }
578
           }
527
         }
579
         }
528
-       
580
+
529
         return count
581
         return count
530
      }
582
      }
531
 
583
 
551
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
603
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
552
       "-" +
604
       "-" +
553
       (nowDay < 10 ? "0" + nowDay : nowDay);
605
       (nowDay < 10 ? "0" + nowDay : nowDay);
554
-    
606
+
555
      //获取该机构下的所有患者
607
      //获取该机构下的所有患者
556
      this.getCurrentOrgPatients()
608
      this.getCurrentOrgPatients()
557
      //统计列表
609
      //统计列表

+ 2 - 1
src/xt_pages/stock/cancelStockOrderEdit.vue 查看文件

240
 <script>
240
 <script>
241
   import { uParseTime } from '@/utils/tools'
241
   import { uParseTime } from '@/utils/tools'
242
 
242
 
243
-  import { deleteCancelStockInfo, editCancelStockInfo, getCancelStockConfig, getCancelStockInfo,GetAllGoodInfoByID,GetAllConfig,postSearchGoodList,getStockBatchNumber  } from '@/api/stock'
243
+  import { deleteCancelStockInfo, editCancelStockInfo, getCancelStockInfo,GetAllGoodInfoByID,GetAllConfig,postSearchGoodList,getStockBatchNumber  } from '@/api/stock'
244
   import BreadCrumb from '../components/bread-crumb'
244
   import BreadCrumb from '../components/bread-crumb'
245
   import StockInDialog from './Dialog/stockInDialog'
245
   import StockInDialog from './Dialog/stockInDialog'
246
 
246
 
615
           this.manufacturerList = response.data.data.manufacturerList
615
           this.manufacturerList = response.data.data.manufacturerList
616
           this.dealerList = []
616
           this.dealerList = []
617
           this.dealerList = response.data.data.dealerList
617
           this.dealerList = response.data.data.dealerList
618
+          console.log("供应商2332322332232323232323",this.dealerList)
618
 
619
 
619
         })
620
         })
620
       },changeManufacturer(val) {
621
       },changeManufacturer(val) {

+ 4 - 2
src/xt_pages/stock/drugs/cancelDrugStockOrderAdd.vue 查看文件

64
           max-height="450"
64
           max-height="450"
65
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
65
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
66
         >
66
         >
67
-          <el-table-column align="center" width="200" fixed="left">
67
+         <el-table-column align="center" width="200" fixed="left">
68
             <template slot="header" slot-scope="scope">
68
             <template slot="header" slot-scope="scope">
69
               <span>药品名称<span style="color: red">*</span></span>
69
               <span>药品名称<span style="color: red">*</span></span>
70
             </template>
70
             </template>
90
               </el-form-item>
90
               </el-form-item>
91
             </template>
91
             </template>
92
           </el-table-column>
92
           </el-table-column>
93
+
94
+
93
           <el-table-column align="center" width="140">
95
           <el-table-column align="center" width="140">
94
             <template slot="header" slot-scope="scope">
96
             <template slot="header" slot-scope="scope">
95
               <span>规格&单位</span>
97
               <span>规格&单位</span>
315
     return {
317
     return {
316
       crumbs: [
318
       crumbs: [
317
         { path: false, name: "库存管理" },
319
         { path: false, name: "库存管理" },
318
-        { path: false, name: "耗材退库单" },
320
+        { path: false, name: "药品退库单" },
319
         { path: false, name: "新增退库单" }
321
         { path: false, name: "新增退库单" }
320
       ],
322
       ],
321
       crumbs2: [
323
       crumbs2: [

+ 3 - 2
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

597
           this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
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)
598
           this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
599
         }
599
         }
600
-      
601
-       
600
+    
602
        }
601
        }
602
+       console.log("数据23323",this.tableData)
603
+       
603
        let obj = {'index':'合计','total_price':0.00}
604
        let obj = {'index':'合计','total_price':0.00}
604
        for(let i=0;i<this.tableData.length;i++){
605
        for(let i=0;i<this.tableData.length;i++){
605
          obj.total_price += this.tableData[i].total
606
          obj.total_price += this.tableData[i].total

+ 19 - 2
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue 查看文件

164
               </el-form-item>
164
               </el-form-item>
165
             </template>
165
             </template>
166
           </el-table-column>
166
           </el-table-column>
167
-          <el-table-column align="center" width="140">
167
+          <el-table-column align="center" width="150">
168
+          <template slot="header" slot-scope="scope" >
169
+                <span >批号<span style="color: red">*</span></span>
170
+            </template>
171
+              <template slot-scope="scope">
172
+                <el-form-item style="padding-top: 20px" :rules="tableRules.batch_number"  :prop="'recordData.' + scope.$index + '.batch_number'">
173
+                  <el-input
174
+                    placeholder="请输入批号"
175
+                    v-model="scope.row.batch_number"
176
+                  ></el-input>
177
+                </el-form-item>
178
+              </template>
179
+         </el-table-column>
180
+          <!-- <el-table-column align="center" width="140">
168
             <template slot="header" slot-scope="scope" >
181
             <template slot="header" slot-scope="scope" >
169
               <span>批号</span>
182
               <span>批号</span>
170
               </template>
183
               </template>
176
                     ></el-input>
189
                     ></el-input>
177
                   </el-form-item>
190
                   </el-form-item>
178
                 </template>
191
                 </template>
179
-          </el-table-column>
192
+          </el-table-column> -->
180
                    
193
                    
181
          <el-table-column align="center" width="120">
194
          <el-table-column align="center" width="120">
182
             <template slot="header" slot-scope="scope">
195
             <template slot="header" slot-scope="scope">
413
         expiry_date:[
426
         expiry_date:[
414
          {required:true,message:'有效日期不能为空',trigger:'blur'}
427
          {required:true,message:'有效日期不能为空',trigger:'blur'}
415
         ],
428
         ],
429
+        batch_number:[
430
+          {required:true,message:'批号不能为空',trigger:'blur'}
431
+        ],
416
       },
432
       },
417
 
433
 
418
       total: "",
434
       total: "",
729
           console.log("000000000000",response.data.data.info)
745
           console.log("000000000000",response.data.data.info)
730
           this.manufacturerList = manufacturerList
746
           this.manufacturerList = manufacturerList
731
           var dealerList  = response.data.data.dealerList
747
           var dealerList  = response.data.data.dealerList
748
+          console.log("供应商232322332322332232323",this.dealerList)
732
           this.dealerList = dealerList
749
           this.dealerList = dealerList
733
           for (let i = 0; i < response.data.data.info.length; i++) {
750
           for (let i = 0; i < response.data.data.info.length; i++) {
734
             response.data.data.info[i].product_date = this.getTime(
751
             response.data.data.info[i].product_date = this.getTime(

+ 5 - 4
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue 查看文件

42
                 <span>{{item.count_unit}}</span>
42
                 <span>{{item.count_unit}}</span>
43
               </td>
43
               </td>
44
               <td style="line-height:50px">
44
               <td style="line-height:50px">
45
-                  {{item.last_price}}
45
+                  {{item.price}}
46
               </td>
46
               </td>
47
              <td  style="line-height:50px">
47
              <td  style="line-height:50px">
48
-                {{(item.count * item.last_price).toFixed(2)}}
48
+                {{(item.count * item.price).toFixed(2)}}
49
              </td>
49
              </td>
50
              <td>{{item.batch_number}}</td>
50
              <td>{{item.batch_number}}</td>
51
              <td>{{(getTime(item.product_date))}}</td>
51
              <td>{{(getTime(item.product_date))}}</td>
52
-             <td>{{(getTime(item.expiry_date))}}</td>
52
+             <td>{{(getTime(item.expire_date))}}</td>
53
             </tr>
53
             </tr>
54
              <tr>
54
              <tr>
55
                <td style="line-height:50px">合计</td>
55
                <td style="line-height:50px">合计</td>
319
             var warehousing = response.data.data.warehousing
319
             var warehousing = response.data.data.warehousing
320
             console.log("ware2232",warehousing)
320
             console.log("ware2232",warehousing)
321
             this.warehouseList = warehousing
321
             this.warehouseList = warehousing
322
+          
322
             for(let i=0;i<info.length;i++){
323
             for(let i=0;i<info.length;i++){
323
                info[i].child = []
324
                info[i].child = []
324
               for(let j=0;j<warehousing.length;j++){
325
               for(let j=0;j<warehousing.length;j++){
341
         var count = 0
342
         var count = 0
342
         for(let i=0;i<this.warehouseList.length;i++){
343
         for(let i=0;i<this.warehouseList.length;i++){
343
           if(id == this.warehouseList[i].warehouse_out_id){
344
           if(id == this.warehouseList[i].warehouse_out_id){
344
-             count +=this.warehouseList[i].count * this.warehouseList[i].last_price
345
+             count +=this.warehouseList[i].count * this.warehouseList[i].price
345
           }
346
           }
346
         }
347
         }
347
         return count
348
         return count

+ 3 - 3
src/xt_pages/stock/drugs/query.vue 查看文件

107
         </el-table-column>
107
         </el-table-column>
108
         <el-table-column prop="drug_name" label="入库数量" align="center">
108
         <el-table-column prop="drug_name" label="入库数量" align="center">
109
            <template slot-scope="scope">
109
            <template slot-scope="scope">
110
-            <span v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">{{getWarehoseInfo(scope.row.drug_warehouse_info)}}{{scope.row.max_unit}}</span>
110
+            <span v-if="getWarehoseInfo(scope.row.drug_warehouse_info)>0">{{getWarehoseInfo(scope.row.drug_warehouse_info)}}{{scope.row.max_unit}}</span>
111
            </template>
111
            </template>
112
         </el-table-column>
112
         </el-table-column>
113
         <el-table-column prop="drug_name" label="出库数量" align="center" v-if="showOne">
113
         <el-table-column prop="drug_name" label="出库数量" align="center" v-if="showOne">
128
         
128
         
129
         <el-table-column prop="drug_name" label="剩余库存量" align="center" v-if="showThree">
129
         <el-table-column prop="drug_name" label="剩余库存量" align="center" v-if="showThree">
130
            <template slot-scope="scope">
130
            <template slot-scope="scope">
131
-            <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
131
+            <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)>0">
132
                 {{ getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)?getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number):0}}
132
                 {{ getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)?getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number):0}}
133
             </div>
133
             </div>
134
            </template>
134
            </template>
135
         </el-table-column>
135
         </el-table-column>
136
         <el-table-column prop="drug_name" label="剩余库存量" align="center" v-if="showFour">
136
         <el-table-column prop="drug_name" label="剩余库存量" align="center" v-if="showFour">
137
            <template slot-scope="scope">
137
            <template slot-scope="scope">
138
-            <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
138
+            <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info) >0">
139
                <span>{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}}{{scope.row.max_unit}} </span>         
139
                <span>{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}}{{scope.row.max_unit}} </span>         
140
             </div>
140
             </div>
141
            </template>
141
            </template>

+ 3 - 3
src/xt_pages/stock/stockQuery.vue 查看文件

512
       getStockDrugCount(params).then(response=>{
512
       getStockDrugCount(params).then(response=>{
513
          if(response.data.state == 1){
513
          if(response.data.state == 1){
514
            var outlist = response.data.data.outList
514
            var outlist = response.data.data.outList
515
-        
515
+          console.log("outlist22323232233",outlist)
516
            this.outCountList = outlist
516
            this.outCountList = outlist
517
            var autoCount = response.data.data.autoCount
517
            var autoCount = response.data.data.autoCount
518
         
518
         
539
            count = this.outCountList[i].count
539
            count = this.outCountList[i].count
540
          }
540
          }
541
       }
541
       }
542
-      return count
543
-    },
542
+     return count
543
+   },
544
    getAutoCount(id){
544
    getAutoCount(id){
545
      var count= 0
545
      var count= 0
546
      for(let i=0;i<this.autoCountList.length;i++){
546
      for(let i=0;i<this.autoCountList.length;i++){

+ 22 - 23
src/xt_pages/user/hospitalSummaryPrint.vue 查看文件

1
 <template>
1
 <template>
2
 <div>
2
 <div>
3
-  <div style="float:right">
3
+  <div style="float:right;margin-right:10px">
4
     <el-button type="primary" size="small" @click="printThisPage">打印</el-button> 
4
     <el-button type="primary" size="small" @click="printThisPage">打印</el-button> 
5
   </div>
5
   </div>
6
   <div id="dialysis-print-box">
6
   <div id="dialysis-print-box">
11
       <div>
11
       <div>
12
         <table class="print-table" border="1" style="margin-top: 10px;">
12
         <table class="print-table" border="1" style="margin-top: 10px;">
13
           <tr>
13
           <tr>
14
-            <td style="text-align:center;width:50px" colspan="1">
14
+            <td style="text-align:center;width:100px" colspan="1">
15
               姓名:
15
               姓名:
16
             </td>
16
             </td>
17
-             <td style="text-align:center;width:50px" colspan="1">
17
+             <td style="text-align:center;width:100px" colspan="1">
18
               <span style="display:inline-block;margin-left:10px;">
18
               <span style="display:inline-block;margin-left:10px;">
19
                {{patient.name}}
19
                {{patient.name}}
20
               </span>
20
               </span>
21
             </td>
21
             </td>
22
-            <td style="text-align:center;width:50px" colspan="1">
22
+            <td style="text-align:center;width:100px" colspan="1">
23
               性别:
23
               性别:
24
             </td>
24
             </td>
25
              <td style="text-align:center;width:50px" colspan="1">
25
              <td style="text-align:center;width:50px" colspan="1">
28
                 <span v-if="patient.gender == 2">女</span>
28
                 <span v-if="patient.gender == 2">女</span>
29
               </span>
29
               </span>
30
             </td>
30
             </td>
31
-            <td style="text-align:center;width:50px" colspan="1">
31
+            <td style="text-align:center;width:100px" colspan="1">
32
               年龄:
32
               年龄:
33
             </td>
33
             </td>
34
             <td style="text-align:center;width:50px" colspan="1">
34
             <td style="text-align:center;width:50px" colspan="1">
36
                  {{getNewAge(patient.id_card_no)}}
36
                  {{getNewAge(patient.id_card_no)}}
37
               </span>
37
               </span>
38
             </td>
38
             </td>
39
-            <td style="text-align:center;width:50px" colspan="1">
39
+            <td style="text-align:center;width:100px" colspan="1">
40
               婚姻:
40
               婚姻:
41
             </td>
41
             </td>
42
              <td style="text-align:center;width:50px" colspan="1">
42
              <td style="text-align:center;width:50px" colspan="1">
43
               <span style="display:inline-block;margin-left:10px;">
43
               <span style="display:inline-block;margin-left:10px;">
44
-                 <span v-if="patient.marital_status == 0">未婚</span>
45
-                 <span v-if="patient.marital_status == 1">婚</span>
46
-                 <span v-if="patient.marital_status == 2">婚</span>
44
+                 <span v-if="patient.marital_status == 0"></span>
45
+                 <span v-if="patient.marital_status == 1">婚</span>
46
+                 <span v-if="patient.marital_status == 2">婚</span>
47
                  <span v-if="patient.marital_status == 3">离异</span>
47
                  <span v-if="patient.marital_status == 3">离异</span>
48
                  <span v-if="patient.marital_status == 4">丧偶</span>
48
                  <span v-if="patient.marital_status == 4">丧偶</span>
49
               </span>
49
               </span>
50
             </td>
50
             </td>
51
-             <td style="text-align:center;width:50px" colspan="1">
51
+             <td style="text-align:center;width:100px" colspan="1">
52
               职业: 
52
               职业: 
53
             </td>
53
             </td>
54
              <td style="text-align:center;width:50px" colspan="1">
54
              <td style="text-align:center;width:50px" colspan="1">
56
                {{getProfession(patient.profession)?getProfession(patient.profession):''}}
56
                {{getProfession(patient.profession)?getProfession(patient.profession):''}}
57
               </span>
57
               </span>
58
             </td>
58
             </td>
59
-             <td style="text-align:center;width:50px" colspan="1">
59
+             <td style="text-align:center;width:100px" colspan="1">
60
               电话:
60
               电话:
61
             </td>
61
             </td>
62
              <td style="text-align:center;width:50px" colspan="1">
62
              <td style="text-align:center;width:50px" colspan="1">
67
           </tr>
67
           </tr>
68
 
68
 
69
           <tr>
69
           <tr>
70
-            <td style="text-align:center;" colspan="1">
70
+            <td style="text-align:center;width:100px" colspan="1">
71
               住址:
71
               住址:
72
             </td>   
72
             </td>   
73
-            <td style="text-align:center;" colspan="11">
73
+            <td style="text-align:center;width:300px" colspan="11">
74
             
74
             
75
               <span style="display:inline-block;margin-left:10px;">
75
               <span style="display:inline-block;margin-left:10px;">
76
                 {{patient.home_address}}
76
                 {{patient.home_address}}
78
             </td>   
78
             </td>   
79
           </tr>
79
           </tr>
80
           <tr>
80
           <tr>
81
-            <td style="text-align:center;width:170px" colspan="1">
81
+            <td style="text-align:center;width:50px" colspan="1">
82
               入院时间:
82
               入院时间:
83
             </td>
83
             </td>
84
-            <td style="text-align:center;width:170px" colspan="2">
84
+            <td style="text-align:center;width:300px" colspan="1">
85
               <span style="display:inline-block;margin-left:10px;">
85
               <span style="display:inline-block;margin-left:10px;">
86
                 {{getTime(hosDetail.admission_time)}}
86
                 {{getTime(hosDetail.admission_time)}}
87
               </span>
87
               </span>
88
             </td>
88
             </td>
89
-            <td style="text-align:center;width:100px" colspan="2">
89
+            <td style="text-align:center;width:200px" colspan="1">
90
               出院时间:
90
               出院时间:
91
             </td>
91
             </td>
92
-            <td style="text-align:center;width:100px" colspan="2">
92
+            <td style="text-align:center;width:300px" colspan="1">
93
               <span style="display:inline-block;margin-left:10px;">
93
               <span style="display:inline-block;margin-left:10px;">
94
                 {{getTime(hosDetail.discharge_time)}}
94
                 {{getTime(hosDetail.discharge_time)}}
95
               </span>
95
               </span>
96
             </td>
96
             </td>
97
-            <td style="text-align:center;width:100px"  colspan="1">
97
+            <td style="text-align:center;width:100px"  colspan="2">
98
               住院天数:
98
               住院天数:
99
             </td>
99
             </td>
100
-            <td style="text-align:center;width:50px" colspan="1">
100
+            <td style="text-align:center;width:50px" colspan="2">
101
               <span style="display:inline-block;margin-left:10px;">
101
               <span style="display:inline-block;margin-left:10px;">
102
                {{getTimeDay(hosDetail.admission_time,hosDetail.discharge_time)}}
102
                {{getTimeDay(hosDetail.admission_time,hosDetail.discharge_time)}}
103
                
103
                
105
             </td>
105
             </td>
106
             <td style="text-align:center;width:50px" colspan="2">
106
             <td style="text-align:center;width:50px" colspan="2">
107
               转归:
107
               转归:
108
-            
109
             </td>
108
             </td>
110
-            <td style="text-align:center;width:50px" colspan="1">
109
+            <td style="text-align:center;width:50px" colspan="2">
111
               <span style="display:inline-block;margin-left:10px;">
110
               <span style="display:inline-block;margin-left:10px;">
112
                 <span v-if="patient.lapseto == 1">留治</span>
111
                 <span v-if="patient.lapseto == 1">留治</span>
113
                 <span v-if="patient.lapseto == 2">转归</span>
112
                 <span v-if="patient.lapseto == 2">转归</span>
383
       var name = ""
382
       var name = ""
384
       for(let i=0;i<this.educationOptions.length;i++){
383
       for(let i=0;i<this.educationOptions.length;i++){
385
           if(id == this.educationOptions[i].id){
384
           if(id == this.educationOptions[i].id){
386
-              name = this.educationOptions[i].name
385
+           name = this.educationOptions[i].name
387
           }
386
           }
388
       }
387
       }
389
       return name
388
       return name
396
   },
395
   },
397
  
396
  
398
   created() {
397
   created() {
399
-    this.educationOptions = getDataConfig("patient", "education_types");
398
+    this.educationOptions = getDataConfig("patient", "profession_options");
400
     var xtuser = this.$store.getters.xt_user
399
     var xtuser = this.$store.getters.xt_user
401
     this.orgname = xtuser.org.org_name
400
     this.orgname = xtuser.org.org_name
402
     var id = this.$route.query.id
401
     var id = this.$route.query.id

+ 16 - 2
src/xt_pages/workforce/components/nextTableWeeks.vue 查看文件

247
 </template>
247
 </template>
248
 
248
 
249
 <script>
249
 <script>
250
+import { uParseTime } from '@/utils/tools'
250
 import { getNextScheduleWeekDay,getAllZoneList } from "@/api/schedule";
251
 import { getNextScheduleWeekDay,getAllZoneList } from "@/api/schedule";
251
 import WeekItem from "./WeekItem";
252
 import WeekItem from "./WeekItem";
252
 const moment = require('moment')
253
 const moment = require('moment')
303
       zone:"",
304
       zone:"",
304
       // zoneList:[{id:0,name:"全部"}],
305
       // zoneList:[{id:0,name:"全部"}],
305
       zoneList:[],
306
       zoneList:[],
307
+      start_time:moment().week(moment().week() + 1).startOf('week').unix()
306
     };
308
     };
307
   },
309
   },
308
   watch: {
310
   watch: {
357
         if(zone != 0){
359
         if(zone != 0){
358
           str = zone.join(",")
360
           str = zone.join(",")
359
         }
361
         }
362
+
363
+        var now_time = parseInt(this.week_type) * 86400 + this.start_time
364
+
360
         const params = {
365
         const params = {
361
           start_time:moment().week(moment().week() + 1).startOf('week').unix(),
366
           start_time:moment().week(moment().week() + 1).startOf('week').unix(),
362
           end_time:moment().week(moment().week() + 1).endOf('week').unix(),
367
           end_time:moment().week(moment().week() + 1).endOf('week').unix(),
363
           week_type:this.week_type,
368
           week_type:this.week_type,
364
           week_time:this.week_time,
369
           week_time:this.week_time,
365
           zone:str,
370
           zone:str,
371
+          record_date:this.getTime(now_time)
366
         }
372
         }
367
         // const params = {
373
         // const params = {
368
         //   start_time:1609603200,
374
         //   start_time:1609603200,
370
         //   week_type:this.week_type,
376
         //   week_type:this.week_type,
371
         //   week_time:this.week_time,
377
         //   week_time:this.week_time,
372
         // }
378
         // }
373
-      console.log("params",params)
379
+      console.log("params0000000000",params)
374
       getNextScheduleWeekDay(params).then(response => {
380
       getNextScheduleWeekDay(params).then(response => {
375
         this.scheduleData = [];
381
         this.scheduleData = [];
376
         if (response.data.state == 1) {
382
         if (response.data.state == 1) {
662
         this.$router.push({
668
         this.$router.push({
663
           path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
669
           path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
664
         })
670
         })
665
-    }
671
+    },
672
+    getTime(val) {
673
+      if(val == ""){
674
+      return ""
675
+      }else {
676
+      return uParseTime(val, '{y}-{m}-{d}')
677
+      }
678
+    },
666
   },
679
   },
667
   components: {
680
   components: {
668
     WeekItem
681
     WeekItem
675
     // if (this.week_type == 0) {
688
     // if (this.week_type == 0) {
676
     //   this.week_type = 7;
689
     //   this.week_type = 7;
677
     // }
690
     // }
691
+
678
     this.getAllZoneList()
692
     this.getAllZoneList()
679
     this.org_id = this.$store.getters.xt_user.org.id
693
     this.org_id = this.$store.getters.xt_user.org.id
680
 
694
 

+ 12 - 6
src/xt_pages/workforce/next_remind_print.vue 查看文件

14
         </el-col>
14
         </el-col>
15
       </el-row>
15
       </el-row>
16
     </div>
16
     </div>
17
-    <div class="app-container" style="background-color: white;">
17
+    <div class="app-container" style="background-color: white;"  v-loading="loading"
18
+      element-loading-text="加载中">
18
       <div id="print_content">
19
       <div id="print_content">
19
         <div class="print_main_content">
20
         <div class="print_main_content">
20
           <div class="order_title_panl">
21
           <div class="order_title_panl">
137
         now_time:0,
138
         now_time:0,
138
         zone:"",
139
         zone:"",
139
         pre_status:0,
140
         pre_status:0,
140
-        printObj:{}
141
+        printObj:{},
142
+        loading: false,
141
       }
143
       }
142
     },
144
     },
143
     components: {
145
     components: {
144
       BreadCrumb
146
       BreadCrumb
145
     },
147
     },
146
     created() {
148
     created() {
149
+     var now_time = parseInt(this.week_type) * 86400 + this.start_time
150
+     this.now_time = now_time
147
      this.getPrintList()
151
      this.getPrintList()
148
      this.org_id = this.$store.getters.xt_user.org.id
152
      this.org_id = this.$store.getters.xt_user.org.id
149
      this.currentDate = this.getCurrentDate()
153
      this.currentDate = this.getCurrentDate()
154
       this.week_time  = this.$route.query.week_time
158
       this.week_time  = this.$route.query.week_time
155
       this.zone = this.$route.query.zone
159
       this.zone = this.$route.query.zone
156
       this.pre_status = this.$route.query.prestatus
160
       this.pre_status = this.$route.query.prestatus
161
+      this.loading = true;
157
       const params = {
162
       const params = {
158
           week_type:this.week_type,
163
           week_type:this.week_type,
159
           week_time:this.week_time,
164
           week_time:this.week_time,
160
           start_time:this.start_time,
165
           start_time:this.start_time,
161
           end_time:this.end_time,
166
           end_time:this.end_time,
162
           zone:this.zone,
167
           zone:this.zone,
168
+          record_date:this.getTime(now_time)
163
         }
169
         }
164
-
170
+     console.log("prarms23232323",params)
165
         //  const params = {
171
         //  const params = {
166
         //   week_type:this.week_type,
172
         //   week_type:this.week_type,
167
         //   week_time:this.week_time,
173
         //   week_time:this.week_time,
175
         var resp = rs.data
181
         var resp = rs.data
176
         console.log(resp)
182
         console.log(resp)
177
         if (resp.state == 1) {
183
         if (resp.state == 1) {
184
+        this.loading = false
178
          var scheduleData = resp.data.schedule
185
          var scheduleData = resp.data.schedule
179
 
186
 
180
           if(this.pre_status == 0){
187
           if(this.pre_status == 0){
207
             var arr =   newList.sort(this.compare('sort'))
214
             var arr =   newList.sort(this.compare('sort'))
208
             console.log("打印",arr)
215
             console.log("打印",arr)
209
             this.scheduleData = arr
216
             this.scheduleData = arr
217
+           
210
           }
218
           }
211
         } else {
219
         } else {
212
           this.$message.error(resp.msg)
220
           this.$message.error(resp.msg)
215
         this.$message.error(err)
223
         this.$message.error(err)
216
       })
224
       })
217
 
225
 
218
-      var now_time = parseInt(this.week_type) * 86400 + this.start_time
219
-      console.log("now",now_time)
220
-      this.now_time = now_time
226
+    
221
     },
227
     },
222
     methods: {
228
     methods: {
223
       getAdvice:function(doctor_advice) {
229
       getAdvice:function(doctor_advice) {

+ 1 - 1
src/xt_pages/workforce/remind_print.vue 查看文件

143
     created() {
143
     created() {
144
       this.getPrintList()
144
       this.getPrintList()
145
       this.org_id = this.$store.getters.xt_user.org.id
145
       this.org_id = this.$store.getters.xt_user.org.id
146
-      console.log("org_id23322323",this.org_id)
146
+     //console.log("org_id23322323",this.org_id)
147
     //  this.currentDate = this.getCurrentDate()
147
     //  this.currentDate = this.getCurrentDate()
148
       this.modeOptions = this.$store.getters.treatment_mode
148
       this.modeOptions = this.$store.getters.treatment_mode
149
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
149
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit

+ 2 - 0
src/xt_pages/workforce/remind_print_setting.vue 查看文件

416
         // if(zone != 0){
416
         // if(zone != 0){
417
         //   str = zone.join(",")
417
         //   str = zone.join(",")
418
         // }
418
         // }
419
+        var now_time = parseInt(this.week_type) * 86400 + this.start_time
419
         const params = {
420
         const params = {
420
           start_time:moment().week(moment().week() + 1).startOf('week').unix(),
421
           start_time:moment().week(moment().week() + 1).startOf('week').unix(),
421
           end_time:moment().week(moment().week() + 1).endOf('week').unix(),
422
           end_time:moment().week(moment().week() + 1).endOf('week').unix(),
422
           week_type:this.week_type,
423
           week_type:this.week_type,
423
           week_time:this.week_time,
424
           week_time:this.week_time,
424
           zone:this.zone,
425
           zone:this.zone,
426
+          record_date:this.getTime(now_time)
425
         }
427
         }
426
         // const params = {
428
         // const params = {
427
         //   start_time:1609603200,
429
         //   start_time:1609603200,