Bladeren bron

处方笺

huangyw 3 jaren geleden
bovenliggende
commit
54dd129edd

+ 19 - 13
src/xt_pages/dialysis/dialysisPrintOrder.vue Bestand weergeven

@@ -65,7 +65,16 @@
65 65
           >打印</el-button
66 66
         >
67 67
       </template>
68
-
68
+      <template v-if="org_template_info.template_id == 46">
69
+        <el-button
70
+          :loading="loading"
71
+          size="small"
72
+          icon="el-icon-printer"
73
+          @click="printThisPage"
74
+          type="primary"
75
+          >打印</el-button
76
+        >
77
+      </template>
69 78
       <template v-if="org_template_info.template_id == 5">
70 79
         <div>
71 80
           <el-button
@@ -614,16 +623,6 @@
614 623
           >打印</el-button
615 624
         >
616 625
       </template>
617
-      <template v-if="org_template_info.template_id == 46">
618
-        <el-button
619
-          :loading="loading"
620
-          size="small"
621
-          icon="el-icon-printer"
622
-          @click="printThisPage"
623
-          type="primary"
624
-          >打印</el-button
625
-        >
626
-      </template>
627 626
     </div>
628 627
     <div class="app-container" style="min-height: 0">
629 628
       <!--<div class="order-print-btn"-->
@@ -979,6 +978,12 @@
979 978
             v-if="org_template_info.template_id == 46"
980 979
           >
981 980
           </DialysisPrintOrderFortySix>
981
+
982
+          <DialysisPrintOrderFortySeven
983
+            v-bind:childResponse="childResponse"
984
+            v-if="org_template_info.template_id == 47"
985
+          >
986
+          </DialysisPrintOrderFortySeven>
982 987
         </div>
983 988
       </el-container>
984 989
     </div>
@@ -1043,9 +1048,11 @@ import DialysisPrintOrderFortyThree from "./template/DialysisPrintOrderFortyThre
1043 1048
 import DialysisPrintOrderFortyFour from "./template/DialysisPrintOrderFortyFour";
1044 1049
 import DialysisPrintOrderFortyFive from "./template/DialysisPrintOrderFortyFive";
1045 1050
 import DialysisPrintOrderFortySix from "./template/DialysisPrintOrderFortySix";
1051
+import DialysisPrintOrderFortySeven from "./template/DialysisPrintOrderFortySeven";
1046 1052
 export default {
1047 1053
   name: "dialysisPrintOrder",
1048 1054
   components: {
1055
+    DialysisPrintOrderFortySeven,
1049 1056
     DialysisPrintOrderFortySix,
1050 1057
     DialysisPrintOrderFortyFive,
1051 1058
     DialysisPrintOrderFortyFour,
@@ -1312,8 +1319,7 @@ export default {
1312 1319
       } else if (
1313 1320
         this.org_template_info.template_id == 6 ||
1314 1321
         this.org_template_info.template_id == 10 ||
1315
-        this.org_template_info.template_id == 11 ||
1316
-        this.org_template_info.template_id == 46
1322
+        this.org_template_info.template_id == 11
1317 1323
       ) {
1318 1324
         printJS({
1319 1325
           printable: "dialysis-print-box-1",

+ 70 - 19
src/xt_pages/dialysis/template/DialysisPrintOrderFortySix.vue Bestand weergeven

@@ -86,10 +86,7 @@
86 86
           </div>
87 87
           <div class="inline_block" style="margin-left: 5px">
88 88
             住院号/门诊号:
89
-            <div
90
-              class="under_line"
91
-              style="width: 70px; text-align: left"
92
-            >
89
+            <div class="under_line" style="width: 70px; text-align: left">
93 90
               {{ patientInfo.admission_number }}
94 91
             </div>
95 92
           </div>
@@ -761,6 +758,18 @@
761 758
                     class="row"
762 759
                     style="padding: 2px 0; line-height: 23px; display: flex"
763 760
                   >
761
+                    <div class="inline_block" style="flex: 1">
762
+                      干体重:
763
+                      <div
764
+                        class="under_line"
765
+                        style="width: 100px; text-align: center"
766
+                      >
767
+                        {{
768
+                          predialysis.dry_weight ? predialysis.dry_weight : "/"
769
+                        }}
770
+                      </div>
771
+                      kg
772
+                    </div>
764 773
                     <div class="inline_block" style="flex: 1">
765 774
                       上次透后体重:
766 775
                       <div
@@ -797,7 +806,7 @@
797 806
                       kg
798 807
                     </div>
799 808
                     <div class="inline_block" style="flex: 1">
800
-                      计划超滤量:
809
+                      目标超滤量:
801 810
                       <div
802 811
                         class="under_line"
803 812
                         style="width: 100px; text-align: center"
@@ -810,15 +819,13 @@
810 819
                       </div>
811 820
                       L
812 821
                     </div>
813
-                    <div class="inline_block" style="flex: 1">
814
-                      干体重:
815
-                      <div
816
-                        class="under_line"
817
-                        style="width: 100px; text-align: center"
818
-                      >
819
-                        {{
820
-                          predialysis.dry_weight ? predialysis.dry_weight : "/"
821
-                        }}
822
+                  </div>
823
+
824
+                  <div class="row" style="padding:2px 0;line-height: 23px">
825
+                    <div class="inline_block" style="flex:1;">
826
+                      透后体重:
827
+                      <div class="under_line" style="width: 70px;text-align: center">
828
+                        {{ afterdialysis.weight_after ? parseFloat(afterdialysis.weight_after - afterdialysis.additional_weight).toFixed(1) : "/" }}
822 829
                       </div>
823 830
                       kg
824 831
                     </div>
@@ -1569,13 +1576,9 @@
1569 1576
             </div>
1570 1577
             <div class="inline_block" style="margin-left: 5px">
1571 1578
               住院号/门诊号:
1572
-              <div
1573
-                class="under_line"
1574
-                style="width: 70px; text-align: left"
1575
-              >
1579
+              <div class="under_line" style="width: 70px; text-align: left">
1576 1580
                 {{ patientInfo.admission_number }}
1577 1581
               </div>
1578
-             
1579 1582
             </div>
1580 1583
           </div>
1581 1584
         </template>
@@ -1695,6 +1698,54 @@
1695 1698
                   </td>
1696 1699
                 </tr>
1697 1700
               </template>
1701
+              <tr>
1702
+                <td
1703
+                  colspan="7"
1704
+                  style="
1705
+                    letter-spacing: 5px;
1706
+                    text-align: center;
1707
+                    font-weight: 520;
1708
+                    font-size: 16px;
1709
+                    padding: 6px 8px;
1710
+                    line-height: 30px;
1711
+                  "
1712
+                >
1713
+                  透析后情况
1714
+                </td>
1715
+              </tr>
1716
+              <tr>
1717
+                <td colspan="7">
1718
+                  <div
1719
+                    class="row"
1720
+                    style="padding: 2px 0; line-height: 23px; display: flex"
1721
+                  >
1722
+                    <div
1723
+                      class="inline_block"
1724
+                      style="flex: 1; display: inline-block"
1725
+                    >
1726
+                      治疗小结:
1727
+                      <div
1728
+                        class="under_line"
1729
+                        style="
1730
+                          width: 860px;
1731
+                          line-height: 25px;
1732
+                          text-align: left;
1733
+                          margin-left: 2px;
1734
+                          display: inline-block;
1735
+                          white-space: normal;
1736
+                        "
1737
+                      >
1738
+                        {{
1739
+                          summary.dialysis_summary
1740
+                            ? summary.dialysis_summary
1741
+                            : "/"
1742
+                        }}
1743
+                      </div>
1744
+                    </div>
1745
+                  </div>
1746
+                </td>
1747
+              </tr>
1748
+
1698 1749
               <tr>
1699 1750
                 <td colspan="7">
1700 1751
                   <div

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Bestand weergeven

@@ -176,7 +176,7 @@
176 176
     <el-dialog
177 177
         title="打印"
178 178
         :visible.sync="centerDialogVisible"
179
-        width="600px"
179
+        width="620px"
180 180
         center>
181 181
       <el-button @click="allCheck">全选</el-button>
182 182
       <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">处方笺打印</div>

+ 74 - 57
src/xt_pages/outpatientDoctorStation/template/printSix.vue Bestand weergeven

@@ -13,27 +13,43 @@
13 13
           {{ orgname }}第二类精神处方笺
14 14
         </div>
15 15
         <div
16
-            v-if="prescriptions[index].med_type != '1112' && prescriptions[index].med_type != '1111'"
16
+          v-if="
17
+            prescriptions[index].med_type != '1112' &&
18
+            prescriptions[index].med_type != '1111'
19
+          "
17 20
           class="printTitle"
18 21
         >
19
-          {{ orgname }}处方笺  普通
20
-<!--        <div v-else style="line-height: 60px;font-size: 30px;">{{ orgname }}处方笺</div>-->
21
-<!--          <img class="logo" src="../assets/shuiyin.jpg" alt="加载失败..">-->
22
+          {{ orgname }}处方笺 普通
23
+          <!--        <div v-else style="line-height: 60px;font-size: 30px;">{{ orgname }}处方笺</div>-->
24
+          <!--          <img class="logo" src="../assets/shuiyin.jpg" alt="加载失败..">-->
22 25
         </div>
23 26
 
27
+        <div class="infoTitle" style="border-bottom: 1px solid #000">
28
+          <p style="width: 174px">科室:{{ item.info ? getDepart(item.info.departments) : "" }}</p>
29
+          <p style="width: 176px">费别:</p>
30
+          <p style="width: 198px" v-if="hisPatient.number.length <= 12">
31
+            门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
32
+          </p>
24 33
 
25
-
26
-        <div class="infoTitle" style="border-bottom:1px solid #000;">
27
-          <p>科室:{{ item.info ? getDepart(item.info.departments) : "" }}</p>
28
-          <p>费别:</p>
29
-          <p>门诊号:{{ hisPatient.number ? hisPatient.number : "" }}</p>
30
-          <p>
31
-            <span>{{record_date.split("-")[0]}}年</span> <span>{{record_date.split("-")[1]}}月</span> <span>{{record_date.split("-")[2]}}日</span>
34
+          <p style="text-align: right; width: 155px">
35
+            <span>{{ record_date.split("-")[0] }}年</span
36
+            ><span>{{ record_date.split("-")[1] }}月</span
37
+            ><span>{{ record_date.split("-")[2] }}日</span>
32 38
             <!-- {{getTime(item.ctime)?getTime(item.ctime):""}} -->
33 39
           </p>
34 40
         </div>
35
-
36
-        <div class="infoTitle" style="border-bottom:1px solid #000;">
41
+        <div
42
+          class="infoTitle"
43
+          style="border-bottom: 1px solid #000"
44
+          v-if="hisPatient.number.length > 12"
45
+        >
46
+          <p>
47
+            {{
48
+              hisPatient.number ? hisPatient.number : ""
49
+            }}
50
+          </p>
51
+        </div>
52
+        <div class="infoTitle" style="border-bottom: 1px solid #000">
37 53
           <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
38 54
           <p>
39 55
             性别:
@@ -41,13 +57,13 @@
41 57
             <span v-if="item.patient.gender == 2">女</span>
42 58
           </p>
43 59
           <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
44
-          <p>电话:{{item.patient.phone}}</p>
60
+          <p>电话:{{ item.patient.phone }}</p>
45 61
         </div>
46
-        <div class="infoTitle" style="border-bottom:1px solid #000;">
47
-          <p>地址:{{ item.patient.home_address }}</p>
62
+        <div class="infoTitle" style="border-bottom: 1px solid #000">
63
+          <p style="width:100%">地址:{{ item.patient.home_address }}</p>
48 64
         </div>
49 65
         <div class="infoTitle">
50
-          <p>诊断:{{ getDiagnosis(item.info.diagnosis) }}</p>
66
+          <p style="width:100%">诊断:{{ getDiagnosis(item.info.diagnosis) }}</p>
51 67
         </div>
52 68
 
53 69
         <div class="prescriptionBox">
@@ -59,8 +75,8 @@
59 75
           >
60 76
             <!-- <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> -->
61 77
             <div class="drugsOne">
62
-              <span style="font-weight: bold">{{ index + 1 + "." }}</span
63
-              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
78
+              <!-- <span style="font-weight: bold">{{ index + 1 + "." }}</span> -->
79
+              {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
64 80
                 v-if="it.drug.min_unit != it.drug.dose_unit"
65 81
                 >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
66 82
               >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
@@ -95,8 +111,8 @@
95 111
             :key="index"
96 112
           >
97 113
             <div class="drugsOne">
98
-              <span style="font-weight: bold">{{ index + 1 + "." }}</span
99
-              >{{
114
+              <!-- <span style="font-weight: bold">{{ index + 1 + "." }}</span> -->
115
+              {{
100 116
                 it.type == 2
101 117
                   ? getProjectName(it.project_id)
102 118
                     ? getProjectName(it.project_id)
@@ -128,32 +144,33 @@
128 144
         <div class="infoTitle"></div>
129 145
         <div class="actionBar" v-if="org_id != 10188">
130 146
           <div class="actionBar_list">
131
-            医师:
132
-           <span>{{ item.doctor ? item.doctor : "" }}
133
-             </span>
134
-
135
-            <!-- <p class="actionBar_val" style="border-bottom:3px solid red">
136
-
137
-            </p> -->
147
+            <div style="width:120px;">
148
+                医师:
149
+            <span>{{ item.doctor ? item.doctor : "" }} </span>
150
+            </div>
151
+          
138 152
           </div>
139 153
           <div class="actionBar_list">
140
-            审核:{{
154
+            <div style="width:120px;">
155
+              审核:{{
141 156
               getDoctor(item.advices[0].checker)
142 157
                 ? getDoctor(item.advices[0].checker)
143 158
                 : ""
144 159
             }}
145
-            <!-- <div class="actionBar_val">
146
-
147
-            </div> -->
160
+            </div>
161
+            
148 162
           </div>
149 163
 
150 164
           <div class="actionBar_list">
151
-            金额:
165
+            <div style="width:120px;">
166
+                金额:
152 167
             {{
153 168
               getTotalOne(item.id).toFixed(2)
154 169
                 ? getTotalOne(item.id).toFixed(2)
155 170
                 : 0
156 171
             }}
172
+            </div>
173
+          
157 174
             <!-- <div class="actionBar_val">
158 175
 
159 176
             </div> -->
@@ -161,11 +178,11 @@
161 178
         </div>
162 179
         <div class="actionBar">
163 180
           <div class="actionBar_list">
164
-            <div>调配:</div>
181
+            <div style="width:120px;">调配:</div>
165 182
             <!-- <div class="actionBar_val"></div> -->
166 183
           </div>
167 184
           <div class="actionBar_list">
168
-            <div>
185
+            <div style="width:120px;">
169 186
               核对:{{
170 187
                 getDoctor(item.advices[0].checker)
171 188
                   ? getDoctor(item.advices[0].checker)
@@ -177,12 +194,14 @@
177 194
             </div> -->
178 195
           </div>
179 196
           <div class="actionBar_list">
180
-            <div>
197
+            <div style="width:120px;">
181 198
               发药:{{
182 199
                 getDoctor(item.advices[0].execution_staff)
183 200
                   ? getDoctor(item.advices[0].execution_staff)
184 201
                   : ""
185 202
               }}
203
+
204
+              <!-- <span>占位符</span> -->
186 205
             </div>
187 206
             <!-- <div class="actionBar_val">
188 207
 
@@ -265,7 +284,6 @@ export default {
265 284
     },
266 285
     getTime(value, temp) {
267 286
       if (value != undefined) {
268
-
269 287
         return uParseTime(value, temp);
270 288
       }
271 289
       return "";
@@ -394,24 +412,22 @@ export default {
394 412
       return project_name;
395 413
     },
396 414
 
397
-    getDiagnosis(id){
398
-        let ids = id.split(",")
399
-        var name = ""
400
-        for(let i = 0; i < ids.length; i++){
401
-
402
-          for(let b=0;b<this.diagnoses.length;b++){
403
-            if(parseInt(ids[i]) == this.diagnoses[b].id){
404
-              if(name.length == 0){
405
-                name = this.diagnoses[b].class_name
406
-              }else{
407
-                name = name +"," + this.diagnoses[b].class_name
408
-
409
-              }
415
+    getDiagnosis(id) {
416
+      let ids = id.split(",");
417
+      var name = "";
418
+      for (let i = 0; i < ids.length; i++) {
419
+        for (let b = 0; b < this.diagnoses.length; b++) {
420
+          if (parseInt(ids[i]) == this.diagnoses[b].id) {
421
+            if (name.length == 0) {
422
+              name = this.diagnoses[b].class_name;
423
+            } else {
424
+              name = name + "," + this.diagnoses[b].class_name;
410 425
             }
411 426
           }
412 427
         }
413
-        return name
414 428
       }
429
+      return name;
430
+    },
415 431
   },
416 432
   created() {
417 433
     this.getAllDoctorList();
@@ -447,9 +463,9 @@ export default {
447 463
   text-align: center;
448 464
   font-weight: bold;
449 465
   display: flex;
450
-    position: relative;
451
-    left: 50%;
452
-    transform: translateX(-50px);
466
+  position: relative;
467
+  left: 50%;
468
+  transform: translateX(-50px);
453 469
 }
454 470
 .infoTitle_thin {
455 471
   display: flex;
@@ -459,7 +475,7 @@ export default {
459 475
   padding: 0 10px;
460 476
 }
461 477
 .infoTitle_thin p {
462
-  width: 200px;
478
+  width: 250px;
463 479
 }
464 480
 .infoTitle {
465 481
   display: flex;
@@ -469,7 +485,7 @@ export default {
469 485
   padding: 0 10px;
470 486
 }
471 487
 .infoTitle p {
472
-  width: 200px;
488
+  width: 165px;
473 489
 }
474 490
 .infoMain {
475 491
   display: flex;
@@ -538,5 +554,6 @@ export default {
538 554
   width: 150px;
539 555
 }
540 556
 
541
-.logo{}
557
+.logo {
558
+}
542 559
 </style>

+ 294 - 262
src/xt_pages/supply/goodreturn.vue Bestand weergeven

@@ -3,49 +3,61 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
     </div>
6
-    <div class="app-container ">
7
-      <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
6
+    <div class="app-container">
7
+      <div
8
+        style="
9
+          justify-content: space-between;
10
+          margin: 0px 0 12px 0;
11
+          display: flex;
12
+          align-items: center;
13
+        "
14
+      >
8 15
         <div>
9
-        
10 16
           <el-date-picker
11 17
             size="small"
12 18
             v-model="start_time"
13 19
             prefix-icon="el-icon-date"
14 20
             :editable="false"
15
-            style="width: 196px;"
21
+            style="width: 196px"
16 22
             type="date"
17 23
             placeholder="选择日期时间"
18 24
             align="right"
19 25
             format="yyyy-MM-dd"
20 26
             value-format="yyyy-MM-dd"
21 27
             @change="startTimeChange"
22
-           ></el-date-picker>-
23
-            <el-date-picker
24
-              size="small"
25
-              v-model="end_time"
26
-              prefix-icon="el-icon-date"
27
-              :editable="false"
28
-              style="width: 196px;"
29
-              type="date"
30
-              placeholder="选择日期时间"
31
-              align="right"
32
-              format="yyyy-MM-dd"
33
-              value-format="yyyy-MM-dd"
34
-              @change="endTimeChange"
28
+          ></el-date-picker
29
+          >-
30
+          <el-date-picker
31
+            size="small"
32
+            v-model="end_time"
33
+            prefix-icon="el-icon-date"
34
+            :editable="false"
35
+            style="width: 196px"
36
+            type="date"
37
+            placeholder="选择日期时间"
38
+            align="right"
39
+            format="yyyy-MM-dd"
40
+            value-format="yyyy-MM-dd"
41
+            @change="endTimeChange"
35 42
           ></el-date-picker>
36 43
           <span>审核状态:</span>
37
-           <el-select v-model="check_id" style="width:140px;margin-right:10px;" placeholder="请选择"
38
-            @change="changeTypeName">
44
+          <el-select
45
+            v-model="check_id"
46
+            style="width: 140px; margin-right: 10px"
47
+            placeholder="请选择"
48
+            @change="changeTypeName"
49
+          >
39 50
             <el-option
40
-                v-for="item in checkList"
41
-                :key="item.id"
42
-                :label="item.name"
43
-                :value="item.id">
51
+              v-for="item in checkList"
52
+              :key="item.id"
53
+              :label="item.name"
54
+              :value="item.id"
55
+            >
44 56
             </el-option>
45 57
           </el-select>
46 58
           <el-input
47 59
             size="small"
48
-            style="width: 200px;margin-left:10px;"
60
+            style="width: 200px; margin-left: 10px"
49 61
             class="filter-item"
50 62
             v-model.trim="keywords"
51 63
             placeholder="订单编号或供应商名称"
@@ -64,118 +76,132 @@
64 76
         </div>
65 77
       </div>
66 78
 
67
-
68
-       <el-table
69
-          :row-style="{ color: '#303133' }"
70
-          :header-cell-style="{
71
-              backgroundColor: 'rgb(245, 247, 250)',
72
-              color: '#606266'
73
-          }"
74
-          :data="tableList"
75
-          :class="signAndWeighBoxPatients"
76
-          border
77
-          style="width: 100%"
78
-          max-height="450"
79
-         
79
+      <el-table
80
+        :row-style="{ color: '#303133' }"
81
+        :header-cell-style="{
82
+          backgroundColor: 'rgb(245, 247, 250)',
83
+          color: '#606266',
84
+        }"
85
+        :data="tableList"
86
+        :class="signAndWeighBoxPatients"
87
+        border
88
+        style="width: 100%"
80 89
       >
81 90
         <el-table-column label="单据日期" align="center" width="200">
82 91
           <template slot-scope="scope">
83
-            <span>{{getTimes(scope.row.document_date)}}</span>
84
-         </template>
92
+            <span>{{ getTimes(scope.row.document_date) }}</span>
93
+          </template>
85 94
         </el-table-column>
86 95
         <el-table-column label="单据编号" align="center" width="200">
87 96
           <template slot-scope="scope">
88
-            <span>{{scope.row.number}}</span>
97
+            <span>{{ scope.row.number }}</span>
89 98
           </template>
90 99
         </el-table-column>
91 100
         <el-table-column label="供应商" align="center" width="200">
92
-            <template slot-scope="scope">
93
-              <span>{{getName(scope.row.supplier_id)}}</span>
94
-            </template>
95
-         </el-table-column>
101
+          <template slot-scope="scope">
102
+            <span>{{ getName(scope.row.supplier_id) }}</span>
103
+          </template>
104
+        </el-table-column>
96 105
         <el-table-column label="关联采购订单号" align="center" width="200">
97 106
           <template slot-scope="scope">
98
-            <span v-if="scope.row.cancelOrder!=undefined && scope.row.cancelOrder.length >0">{{scope.row.cancelOrder[0].order_number}}</span>
107
+            <span
108
+              v-if="
109
+                scope.row.cancelOrder != undefined &&
110
+                scope.row.cancelOrder.length > 0
111
+              "
112
+              >{{ scope.row.cancelOrder[0].order_number }}</span
113
+            >
99 114
           </template>
100 115
         </el-table-column>
101
-           <el-table-column label="关联采购单号" align="center" width="200">
116
+        <el-table-column label="关联采购单号" align="center" width="200">
102 117
           <template slot-scope="scope">
103
-             <span v-if="scope.row.cancelOrder!=undefined && scope.row.cancelOrder.length >0">{{scope.row.cancelOrder[0].good_number}}</span>
118
+            <span
119
+              v-if="
120
+                scope.row.cancelOrder != undefined &&
121
+                scope.row.cancelOrder.length > 0
122
+              "
123
+              >{{ scope.row.cancelOrder[0].good_number }}</span
124
+            >
104 125
           </template>
105 126
         </el-table-column>
106 127
         <el-table-column label="采购金额" align="center" width="200">
107 128
           <template slot-scope="scope">
108
-             <span v-if="getAllBuyPrice(scope.row.cancelOrder)>0">{{getAllBuyPrice(scope.row.cancelOrder)}}</span> 
129
+            <span v-if="getAllBuyPrice(scope.row.cancelOrder) > 0">{{
130
+              getAllBuyPrice(scope.row.cancelOrder)
131
+            }}</span>
109 132
           </template>
110 133
         </el-table-column>
111 134
         <el-table-column label="优惠后金额" align="center" width="200">
112
-         <template slot-scope="scope">
113
-          <span v-if="getAllBuyPrice(scope.row.cancelOrder)>0">{{getAllBuyPriceOne(scope.row.cancelOrder,scope.row.discount_amount)}}</span> 
114
-         </template>
115
-       </el-table-column>
135
+          <template slot-scope="scope">
136
+            <span v-if="getAllBuyPrice(scope.row.cancelOrder) > 0">{{
137
+              getAllBuyPriceOne(
138
+                scope.row.cancelOrder,
139
+                scope.row.discount_amount
140
+              )
141
+            }}</span>
142
+          </template>
143
+        </el-table-column>
116 144
         <el-table-column label="已退款" align="center" width="200">
117
-         <template slot-scope="scope">
118
-           <span v-if="scope.row.payment > 0">{{scope.row.payment}}</span> 
119
-         </template>
120
-       </el-table-column>
121
-       <el-table-column label="数量" align="center" width="200">
122
-         <template slot-scope="scope">
123
-           {{getCount(scope.row.cancelOrder)}}
124
-         </template>
125
-       </el-table-column>
145
+          <template slot-scope="scope">
146
+            <span v-if="scope.row.payment > 0">{{ scope.row.payment }}</span>
147
+          </template>
148
+        </el-table-column>
149
+        <el-table-column label="数量" align="center" width="200">
150
+          <template slot-scope="scope">
151
+            {{ getCount(scope.row.cancelOrder) }}
152
+          </template>
153
+        </el-table-column>
126 154
 
127
-       <el-table-column label="退款状态" align="center" width="200">
128
-         <template slot-scope="scope">
129
-           <!-- <span v-if="scope.row.is_check == 2">未审核</span>
155
+        <el-table-column label="退款状态" align="center" width="200">
156
+          <template slot-scope="scope">
157
+            <!-- <span v-if="scope.row.is_check == 2">未审核</span>
130 158
            <span v-if="scope.row.is_check == 1">已审核</span> -->
131
-         </template>
132
-       </el-table-column>
133
-      
134
-          
135
-      <el-table-column label="制单人" align="center" width="200">
136
-         <template slot-scope="scope">
137
-          {{getDocName(scope.row.creater)}}
138
-         </template>
139
-       </el-table-column>
159
+          </template>
160
+        </el-table-column>
140 161
 
141
-      <el-table-column label="审核人" align="center" width="200">
142
-         <template slot-scope="scope">
143
-          {{getDocName(scope.row.checker)}}
144
-         </template>
145
-       </el-table-column>
162
+        <el-table-column label="制单人" align="center" width="200">
163
+          <template slot-scope="scope">
164
+            {{ getDocName(scope.row.creater) }}
165
+          </template>
166
+        </el-table-column>
167
+
168
+        <el-table-column label="审核人" align="center" width="200">
169
+          <template slot-scope="scope">
170
+            {{ getDocName(scope.row.checker) }}
171
+          </template>
172
+        </el-table-column>
146 173
 
147
-       <el-table-column label="操作" align="center" width="260"  fixed="right">
174
+        <el-table-column label="操作" align="center" width="260" fixed="right">
148 175
           <template slot-scope="scope">
149
-              <el-button
150
-                icon="el-icon-edit-outline"
151
-                size="small"
152
-                type="primary"
153
-                @click="editGoodReturn(scope.row.id)"
176
+            <el-button
177
+              icon="el-icon-edit-outline"
178
+              size="small"
179
+              type="primary"
180
+              @click="editGoodReturn(scope.row.id)"
154 181
               >编辑
155
-              </el-button>
156
-              <el-button
157
-                icon="el-icon-delete"
158
-                size="small"
159
-                type="danger"
160
-                @click="toClickOne(scope.row,scope.$index)"
182
+            </el-button>
183
+            <el-button
184
+              icon="el-icon-delete"
185
+              size="small"
186
+              type="danger"
187
+              @click="toClickOne(scope.row, scope.$index)"
161 188
               >删除
162
-              </el-button>
189
+            </el-button>
163 190
           </template>
164 191
         </el-table-column>
165 192
       </el-table>
166 193
       <el-pagination
167 194
         @size-change="handleSizeChange"
168 195
         @current-change="handleCurrentChange"
169
-        :page-sizes="[10, 50, 100,200,500,1000]"
196
+        :page-sizes="[10, 50, 100, 200, 500, 1000]"
170 197
         :page-size="10"
171 198
         background
172 199
         align="right"
173
-        style="margin-top:20px;"
200
+        style="margin-top: 20px"
174 201
         layout="total, sizes, prev, pager, next, jumper"
175 202
         :total="total"
176 203
       >
177 204
       </el-pagination>
178
-
179 205
     </div>
180 206
   </div>
181 207
 </template>
@@ -183,213 +209,214 @@
183 209
 <script>
184 210
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
185 211
 
186
-import {getAllSupply,getAllGoodReturnOrderList,deleteReturnOrder} from "@/api/supply"
187
-import {uParseTime } from '@/utils/tools'
212
+import {
213
+  getAllSupply,
214
+  getAllGoodReturnOrderList,
215
+  deleteReturnOrder,
216
+} from "@/api/supply";
217
+import { uParseTime } from "@/utils/tools";
188 218
 export default {
189 219
   name: "stockIn",
190
-   components: {
191
-     
192
-   },
220
+  components: {},
193 221
   components: {
194
-    BreadCrumb
222
+    BreadCrumb,
195 223
   },
196 224
   data() {
197 225
     return {
198 226
       crumbs: [
199 227
         { path: false, name: "采购管理" },
200
-        { path: "/good/return/query", name: "退货单" }
228
+        { path: "/good/return/query", name: "退货单" },
201 229
       ],
202 230
       keywords: "",
203 231
       total: 0,
204 232
       multipleSelection: [],
205 233
       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
206 234
       start_time: "",
207
-      end_time:"",
235
+      end_time: "",
208 236
       page: 1,
209 237
       limit: 10,
210 238
       goodType: [],
211 239
       goodInfo: [],
212
-      org_id:0,
213
-      types:[],
214
-      tableList:[1],
215
-      type_name:"",
216
-      checkList:[
217
-        {id:0,name:"请选择"},
218
-        {id:1,name:"已审核"},
219
-        {id:2,name:"未审核"},
240
+      org_id: 0,
241
+      types: [],
242
+      tableList: [1],
243
+      type_name: "",
244
+      checkList: [
245
+        { id: 0, name: "请选择" },
246
+        { id: 1, name: "已审核" },
247
+        { id: 2, name: "未审核" },
220 248
       ],
221
-      supplyList:[],
222
-      check_id:0,
223
-      doctorList:[],
249
+      supplyList: [],
250
+      check_id: 0,
251
+      doctorList: [],
224 252
     };
225 253
   },
226
-  methods:{
227
-     toAdd(){
228
-       this.$router.push({path:"/good/return/add"})
229
-     },
230
-     changeTypeName(){
231
-       this.getlist()
232
-     },
233
-     startTimeChange(){
234
-       this.getlist()
235
-     },
236
-     endTimeChange(){
237
-      this.getlist()
238
-     },
239
-     search(){
240
-      this.getlist()
241
-     },
242
-     handleSizeChange(val){
243
-       this.limit = val
244
-       this.getlist()
245
-     },
246
-     handleCurrentChange(val){
247
-       this.page = val
248
-       this.getlist()
249
-     },
250
-     getAllSupply(){
251
-       getAllSupply().then(response=>{
252
-         if(response.data.state == 1){
253
-            var supplyList = response.data.data.supplyList
254
-            this.doctorList = response.data.data.doctorList
255
-            for(let i=0;i<supplyList.length;i++){
256
-              this.supplyList.push(supplyList[i])
257
-            }
258
-         }
259
-       })
260
-     },
261
-     getTimes(time) {
262
-      if (time === '') {
263
-      return ''
254
+  methods: {
255
+    toAdd() {
256
+      this.$router.push({ path: "/good/return/add" });
257
+    },
258
+    changeTypeName() {
259
+      this.getlist();
260
+    },
261
+    startTimeChange() {
262
+      this.getlist();
263
+    },
264
+    endTimeChange() {
265
+      this.getlist();
266
+    },
267
+    search() {
268
+      this.getlist();
269
+    },
270
+    handleSizeChange(val) {
271
+      this.limit = val;
272
+      this.getlist();
273
+    },
274
+    handleCurrentChange(val) {
275
+      this.page = val;
276
+      this.getlist();
277
+    },
278
+    getAllSupply() {
279
+      getAllSupply().then((response) => {
280
+        if (response.data.state == 1) {
281
+          var supplyList = response.data.data.supplyList;
282
+          this.doctorList = response.data.data.doctorList;
283
+          for (let i = 0; i < supplyList.length; i++) {
284
+            this.supplyList.push(supplyList[i]);
285
+          }
286
+        }
287
+      });
288
+    },
289
+    getTimes(time) {
290
+      if (time === "") {
291
+        return "";
264 292
       }
265
-      return uParseTime(time, '{y}-{m}-{d}')
266
-     },
267
-     getlist(){
268
-        var params = {
269
-          check_id:this.check_id,
270
-          start_time:this.start_time,
271
-          end_time:this.end_time,
272
-          keyword:this.keywords,
273
-          page:this.page,
274
-          limit:this.limit,
293
+      return uParseTime(time, "{y}-{m}-{d}");
294
+    },
295
+    getlist() {
296
+      var params = {
297
+        check_id: this.check_id,
298
+        start_time: this.start_time,
299
+        end_time: this.end_time,
300
+        keyword: this.keywords,
301
+        page: this.page,
302
+        limit: this.limit,
303
+      };
304
+      console.log("param23232323", params);
305
+      getAllGoodReturnOrderList(params).then((response) => {
306
+        if (response.data.state == 1) {
307
+          var list = response.data.data.list;
308
+          console.log("list2332232323232", list);
309
+          this.tableList = list;
310
+          var total = response.data.data.total;
311
+          this.total = total;
275 312
         }
276
-       console.log("param23232323",params)
277
-       getAllGoodReturnOrderList(params).then(response=>{
278
-          if(response.data.state == 1){
279
-            var list = response.data.data.list 
280
-            console.log("list2332232323232",list)
281
-            this.tableList = list
282
-            var total = response.data.data.total
283
-            this.total = total
284
-          }
285
-       })
286
-     },
287
-     getName(id){
288
-       var name = ""
289
-       for(let i=0;i<this.supplyList.length;i++){
290
-         if(id == this.supplyList[i].id){
291
-           name = this.supplyList[i].supplier_name
292
-         }
293
-       }
294
-       return name
295
-     },
296
-     getDocName(id){
297
-      var user_name = ""
298
-      for(let i=0;i<this.doctorList.length;i++){
299
-        if(id == this.doctorList[i].admin_user_id){
300
-          user_name = this.doctorList[i].user_name
313
+      });
314
+    },
315
+    getName(id) {
316
+      var name = "";
317
+      for (let i = 0; i < this.supplyList.length; i++) {
318
+        if (id == this.supplyList[i].id) {
319
+          name = this.supplyList[i].supplier_name;
320
+        }
321
+      }
322
+      return name;
323
+    },
324
+    getDocName(id) {
325
+      var user_name = "";
326
+      for (let i = 0; i < this.doctorList.length; i++) {
327
+        if (id == this.doctorList[i].admin_user_id) {
328
+          user_name = this.doctorList[i].user_name;
329
+        }
330
+      }
331
+      return user_name;
332
+    },
333
+    getAllBuyPrice(arr) {
334
+      var buy_price = 0;
335
+      if (arr != undefined && arr.length > 0) {
336
+        for (let i = 0; i < arr.length; i++) {
337
+          buy_price += arr[i].supply_count * arr[i].price;
301 338
         }
302 339
       }
303
-      return user_name
304
-     },
305
-     getAllBuyPrice(arr){
306
-       var buy_price = 0
307
-       if(arr!=undefined && arr.length > 0){
308
-          for(let i=0;i<arr.length;i++){
309
-            buy_price += (arr[i].supply_count * arr[i].price)
310
-          }
311
-       }
312 340
 
313
-       return buy_price.toFixed(2)
314
-     },
315
-     getAllBuyPriceOne(arr,discount_amount){
316
-      
317
-       var buy_price = 0
318
-       if(arr!=undefined && arr.length > 0){
319
-          for(let i=0;i<arr.length;i++){
320
-            buy_price += (parseInt(arr[i].supply_count) * arr[i].price)
321
-          }
322
-       }
323
-       return (buy_price-discount_amount).toFixed(2)
324
-     },
325
-     getAllCount(arr){
326
-       var count = ""
327
-        if(arr!=undefined && arr.length > 0){
328
-          for(let i=0;i<arr.length;i++){
329
-            count += arr[i].supply_count
330
-          }
331
-       }
332
-       return count
333
-     },
334
-     editGoodReturn(id){
335
-       this.$router.push({path:"/good/return/edit?id="+id})
336
-     },
337
-     toClickOne(val,index){
338
-       console.log("val323232323232",val)
339
-       if(val.is_check == 1){
340
-         this.$message.error("已审核单据,不能删除!")
341
-         return false
342
-       }
341
+      return buy_price.toFixed(2);
342
+    },
343
+    getAllBuyPriceOne(arr, discount_amount) {
344
+      var buy_price = 0;
345
+      if (arr != undefined && arr.length > 0) {
346
+        for (let i = 0; i < arr.length; i++) {
347
+          buy_price += parseInt(arr[i].supply_count) * arr[i].price;
348
+        }
349
+      }
350
+      return (buy_price - discount_amount).toFixed(2);
351
+    },
352
+    getAllCount(arr) {
353
+      var count = "";
354
+      if (arr != undefined && arr.length > 0) {
355
+        for (let i = 0; i < arr.length; i++) {
356
+          count += arr[i].supply_count;
357
+        }
358
+      }
359
+      return count;
360
+    },
361
+    editGoodReturn(id) {
362
+      this.$router.push({ path: "/good/return/edit?id=" + id });
363
+    },
364
+    toClickOne(val, index) {
365
+      console.log("val323232323232", val);
366
+      if (val.is_check == 1) {
367
+        this.$message.error("已审核单据,不能删除!");
368
+        return false;
369
+      }
343 370
       //  if(val.cancelOrder.length >0 ){
344 371
       //    this.$message.error("已关联单据,不能删除!")
345 372
       //    return false
346 373
       //  }
347
-       this.$confirm('确认删除吗?', '删除', {
348
-          confirmButtonText: '确 定',
349
-          cancelButtonText: '取 消',
350
-          type: 'warning'
351
-        }).then(() => {
352
-          deleteReturnOrder(val.id).then(response => {
374
+      this.$confirm("确认删除吗?", "删除", {
375
+        confirmButtonText: "确 定",
376
+        cancelButtonText: "取 消",
377
+        type: "warning",
378
+      })
379
+        .then(() => {
380
+          deleteReturnOrder(val.id).then((response) => {
353 381
             if (response.data.state == 1) {
354
-                var msg = response.data.data.msg
355
-                this.tableList.splice(index, 1);
356
-                this.getlist()
357
-                this.$message.success("删除成功")
382
+              var msg = response.data.data.msg;
383
+              this.tableList.splice(index, 1);
384
+              this.getlist();
385
+              this.$message.success("删除成功");
358 386
             } else {
359
-                this.$message.error("删除失败")
387
+              this.$message.error("删除失败");
360 388
             }
361
-          })
362
-        }).catch(() => {
363
-       }) 
364
-     },
365
-     getCount(val){
366
-       console.log("val323223322323",val)
367
-       var total = 0
368
-       if(val!=undefined){
369
-          for(let i=0;i<val.length;i++){
370
-          total += val[i].supply_count
389
+          });
390
+        })
391
+        .catch(() => {});
392
+    },
393
+    getCount(val) {
394
+      console.log("val323223322323", val);
395
+      var total = 0;
396
+      if (val != undefined) {
397
+        for (let i = 0; i < val.length; i++) {
398
+          total += val[i].supply_count;
371 399
         }
372
-        if(total >0){
373
-          return total
374
-        }else{
375
-          return ""
400
+        if (total > 0) {
401
+          return total;
402
+        } else {
403
+          return "";
376 404
         }
377
-       }
378
-     }
405
+      }
406
+    },
379 407
   },
380 408
   created() {
381
-    var now = new Date(); //当前日期 
382
-    var nowMonth = now.getMonth(); //当前月 
383
-    var nowYear = now.getFullYear(); //当前年 
409
+    var now = new Date(); //当前日期
410
+    var nowMonth = now.getMonth(); //当前月
411
+    var nowYear = now.getFullYear(); //当前年
384 412
     //本月的开始时间
385
-    var monthStartDate = new Date(nowYear, nowMonth, 1); 
386
-    this.start_time = this.getTimes(monthStartDate) 
413
+    var monthStartDate = new Date(nowYear, nowMonth, 1);
414
+    this.start_time = this.getTimes(monthStartDate);
387 415
     this.end_time = this.getTimes(new Date());
388
-    this.org_id =  this.$store.getters.xt_user.org_id
389
-    this.getAllSupply()
390
-    this.getlist()
416
+    this.org_id = this.$store.getters.xt_user.org_id;
417
+    this.getAllSupply();
418
+    this.getlist();
391 419
   },
392
- 
393 420
 };
394 421
 </script>
395 422
 
@@ -451,7 +478,12 @@ export default {
451 478
 .el-table__fixed-right {
452 479
   width: 150px;
453 480
   bottom: 20px;
481
+  height: 100% !important;
482
+}
483
+.el-table__fixed-body-wrapper {
454 484
   height: 100%;
455 485
 }
456
-
486
+.el-table__body-wrapper.is-scrolling-left {
487
+  max-height: 100% !important;
488
+}
457 489
 </style>