浏览代码

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

csx 3 年前
父节点
当前提交
1c5864c313

+ 2 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

@@ -978,11 +978,11 @@
978 978
             v-if="org_template_info.template_id == 44"
979 979
           >
980 980
           </DialysisPrintOrderFortyFour>
981
-          <DialysisPrintOrderFortySeven
981
+          <DialysisPrintOrderFortyFive
982 982
             v-bind:childResponse="childResponse"
983 983
             v-if="org_template_info.template_id == 45"
984 984
           >
985
-          </DialysisPrintOrderFortySeven>
985
+          </DialysisPrintOrderFortyFive>
986 986
 
987 987
           <DialysisPrintOrderFortySix
988 988
             v-bind:childResponse="childResponse"

+ 13 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue 查看文件

@@ -111,13 +111,13 @@
111 111
           <table class="proj_table">
112 112
             <tbody>
113 113
               <tr>
114
-                <td colspan="2" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
114
+                <td colspan="2" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 24px;">
115 115
                   透析前情况
116 116
                 </td>
117 117
               </tr>
118 118
               <tr>
119 119
                 <td colspan="2">
120
-                  <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
120
+                  <div class="row" style="padding: 2px 0;line-height:20px;display:flex;">
121 121
                     <div class="inline_block" style="flex:1;">
122 122
                       本次透析日期:
123 123
                       <div class="under_line" style="width: 100px;text-align: center">
@@ -155,7 +155,7 @@
155 155
 
156 156
                   </div>
157 157
 
158
-                  <div class="row" style="padding: 2px 0;line-height:23px;">
158
+                  <div class="row" style="padding: 2px 0;line-height:20px;">
159 159
                     <div class="inline_block">
160 160
                       T:
161 161
                       <div class="under_line" style="width: 50px;text-align: center">
@@ -223,7 +223,7 @@
223 223
                     </div>
224 224
                   </div>
225 225
 
226
-                  <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
226
+                  <div class="row" style="padding: 2px 0;line-height:20px;display:flex;">
227 227
                     <div class="inline_block">
228 228
                       血管通路:
229 229
                       <div class="under_line" style="width: 220px;text-align: center;">
@@ -254,7 +254,7 @@
254 254
                       </div>
255 255
                     </div>
256 256
                   </div>
257
-                  <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
257
+                  <div class="row" style="padding: 2px 0;line-height:20px;display:flex;">
258 258
                     <div class="inline_block" style="flex:1;">
259 259
                       透析方式:
260 260
                       <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
@@ -363,7 +363,7 @@
363 363
                       min
364 364
                     </div>
365 365
                   </div>
366
-                  <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
366
+                  <div class="row" style="padding: 2px 0;line-height:20px;display:flex;">
367 367
                     <div class="inline_block" style="flex:1;">
368 368
                       透析(滤)器:
369 369
                       <div class="under_line" style="width: 100px;text-align: center">
@@ -379,7 +379,7 @@
379 379
                     </div>
380 380
                   </div>
381 381
 
382
-                  <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
382
+                  <div class="row" style="padding: 2px 0;line-height:20px;display:flex;">
383 383
                     <div class="inline_block" style="flex:1;">
384 384
                       上次透后体重:
385 385
                       <div class="under_line" style="width: 100px;text-align: center">
@@ -412,7 +412,7 @@
412 412
                     </div>
413 413
                   </div>
414 414
 
415
-                  <div class="row" style="padding: 2px 0;line-height:23px;">
415
+                  <div class="row" style="padding: 2px 0;line-height:20px;">
416 416
                     <div class="inline_block">
417 417
                       透析液成分钾:
418 418
                       <div class="under_line" style="width: 50px;text-align: center">
@@ -449,7 +449,7 @@
449 449
                       ml/min
450 450
                     </div>
451 451
                   </div>
452
-                  <div class="row" style="padding: 2px 0;line-height:23px;">
452
+                  <div class="row" style="padding: 2px 0;line-height:20px;">
453 453
                     <div class="inline_block">
454 454
                       抗凝剂:
455 455
                       <div class="under_line" style="width: 150px;text-align: center">
@@ -510,10 +510,10 @@
510 510
                       </div>
511 511
                     </div>
512 512
                   </div>
513
-                  <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" v-if="org_id != 10223">
513
+                  <div class="row" style="padding: 2px 0;line-height:20px;display:flex;" v-if="org_id != 10223">
514 514
                     <div class="inline_block" style="flex:1; display:inline-block;">
515 515
                       备注:
516
-                      <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
516
+                      <div class="under_line" style="width: 860px;line-height: 20px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
517 517
                         {{ predialysis.remark ? predialysis.remark : "/" }}
518 518
                       </div>
519 519
                     </div>
@@ -893,11 +893,11 @@
893 893
                     <div class="inline_block" style="margin-left:10px;flex:1.5;">
894 894
                       BP:
895 895
                       <div class="under_line" style="width: 50px;text-align: center;">
896
-                        {{ afterBP.systolic_blood_pressure ? afterBP.systolic_blood_pressure : "/" }}
896
+                       <span v-if="afterBP!=undefined"> {{ afterBP.systolic_blood_pressure ? afterBP.systolic_blood_pressure : "/" }}</span>
897 897
                       </div>
898 898
                       /
899 899
                       <div class="under_line" style="width: 50px;text-align: center;">
900
-                        {{ afterBP.diastolic_blood_pressure ? afterBP.diastolic_blood_pressure : "/" }}
900
+                      <span v-if="afterBP!=undefined"> {{ afterBP.diastolic_blood_pressure ? afterBP.diastolic_blood_pressure : "/" }}</span> 
901 901
                       </div>
902 902
                       mmHg
903 903
                     </div>

+ 4 - 4
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

@@ -288,7 +288,7 @@
288 288
                     <el-table-column label="库存" width="60">
289 289
                       <template slot-scope="scope">
290 290
                                           <span
291
-                                              v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10188 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278">
291
+                                              v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10188 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278 || org_id == 10217">
292 292
                                               <span
293 293
                                                   v-if="scope.row.count/scope.row.min_number>0">{{ Math.floor(scope.row.count / scope.row.min_number) }}{{ scope.row.max_unit }}</span>
294 294
                                               <span
@@ -387,7 +387,7 @@
387 387
                     <el-table-column label="库存" width="40">
388 388
                       <template slot-scope="scope">
389 389
                                                 <span
390
-                                                    v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278">
390
+                                                    v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278 || org_id == 10217">
391 391
                                                     {{ scope.row.stock_count }}
392 392
                                                 </span>
393 393
                         <span v-else> {{ scope.row.total }}</span>
@@ -2667,7 +2667,7 @@ export default {
2667 2667
       this.$refs.additionalCharges.show()
2668 2668
     },
2669 2669
     selectDrugs(selection, row) {
2670
-      if (this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id == 10088 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10191 || this.org_id == 10278) {
2670
+      if (this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id == 10088 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217) {
2671 2671
         if (row.count <= 0) {
2672 2672
           if (selection) {
2673 2673
             selection.forEach(row => {
@@ -2954,7 +2954,7 @@ export default {
2954 2954
     },
2955 2955
     selectChange(selection, row) {
2956 2956
       console.log('row', row)
2957
-      if (this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id == 10088 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 10188  || this.org_id == 9956 || this.org_id == 10191 || this.org_id == 10278) {
2957
+      if (this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id == 10088 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 10188  || this.org_id == 9956 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217) {
2958 2958
         if (row.stock_count <= 0) {
2959 2959
           if (row.type == 3) {
2960 2960
             if (selection) {

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

@@ -286,7 +286,7 @@
286 286
                                         </el-table-column>
287 287
                                         <el-table-column label="库存" width="60">
288 288
                                             <template slot-scope="scope">
289
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278">
289
+                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217">
290 290
                                                <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
291 291
                                                <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
292 292
                                               </span>
@@ -383,7 +383,7 @@
383 383
                                         </el-table-column>
384 384
                                         <el-table-column label="库存" width="40">
385 385
                                             <template slot-scope="scope">
386
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10188 || org_id == 10191 || org_id == 10278">
386
+                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217">
387 387
                                                    {{scope.row.stock_count}}
388 388
                                               </span>
389 389
                                               <span v-else> {{ scope.row.total }}</span>
@@ -2663,7 +2663,7 @@
2663 2663
       selectDrugs(selection, row) {
2664 2664
         console.log('selection', selection)
2665 2665
         console.log('row', row)
2666
-        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278){
2666
+        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217){
2667 2667
             if (row.count <= 0) {
2668 2668
               if (selection) {
2669 2669
                 selection.forEach(row => {
@@ -2941,7 +2941,7 @@
2941 2941
       },
2942 2942
       selectChange(selection, row) {
2943 2943
         console.log('row', row)
2944
-        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278){
2944
+        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217){
2945 2945
            if (row.stock_count <= 0) {
2946 2946
             if (row.type == 3) {
2947 2947
               if (selection) {

+ 25 - 7
src/xt_pages/stock/detail/print.vue 查看文件

@@ -51,7 +51,8 @@
51 51
               <td style="line-height: 50px">
52 52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
53 53
                 <span v-if="type == 2"> 
54
-                  <span  v-if= "org_id == 3907 || org_id == 9919 || org_id == 9583">{{getStockCount(item.good_id) }}</span>  
54
+                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583">{{getStockCount(item.good_id) }}</span> 
55
+                   <span  v-if="org_id == 10265">{{getMySelfCount(item.good_id) }}</span>   
55 56
                   <span v-else>{{getStockCount(item.good_id) }}</span>
56 57
                 </span>
57 58
                
@@ -63,7 +64,7 @@
63 64
               <td style="line-height:50px">
64 65
                 <span v-if="type == 1"> {{ item.price }}</span>
65 66
                 <span v-if="type == 2"> 
66
-                  <span v-if="org_id == 9919 || org_id == 9671">{{ item.buy_price }}</span>  
67
+                  <span v-if="org_id == 9919">{{ item.buy_price }}</span>  
67 68
                   <span v-else>
68 69
                     {{ item.packing_price }} 
69 70
                   </span>  
@@ -73,9 +74,10 @@
73 74
               <td style="line-height:50px">
74 75
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
75 76
                 <span v-if="type == 2">
76
-                  <span v-if="org_id == 3907 || org_id ==9919 || org_id == 9671">
77
-                     {{(getStockCount(item.good_id) * item.buy_price).toFixed(2) }}
77
+                  <span v-if="org_id == 3907 || org_id ==9919">
78
+                     {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}}
78 79
                   </span>
80
+                  <span v-if="org_id == 10265">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
79 81
                   <span v-else>{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
80 82
                 </span>
81 83
                 <span v-if="type == 4">{{(item.count * item.price).toFixed(2)}}</span>
@@ -97,7 +99,8 @@
97 99
               <td style="line-height: 50px"  width="80">
98 100
                 <span v-if="type == 1">{{getWareInfoTotal().toFixed(2)}}</span> 
99 101
                 <span v-if="type == 2">
100
-                  <span v-if="org_id == 3907 || org_id == 9919 || org_id == 9671">{{getWareOutTotalOne().toFixed(2)}}</span>
102
+                  <span v-if="org_id == 3907 || org_id == 9919">{{getWareOutTotalOne().toFixed(2)}}</span>
103
+                  <span v-if="org_id == 10265">{{getWareOutTotalSix().toFixed(2)}}</span>
101 104
                   <span v-else> {{getWareOutTotal().toFixed(2)}}</span>
102 105
                  </span> 
103 106
                 <span v-if="type == 4">{{getWareOutTotal().toFixed(2)}}</span> 
@@ -406,13 +409,28 @@
406 409
        return total
407 410
      },
408 411
      getWareOutTotalOne(){
409
-       console.log("数据23332323",this.stockDatas)
410 412
        var total = 0
411 413
        for(let i=0;i<this.stockDatas.length;i++){
412 414
          total+= this.getStockCount(this.stockDatas[i].good_id) * this.stockDatas[i].buy_price
413 415
        }
414 416
        return total
415
-     }
417
+     },
418
+     getMySelfCount(good_id){
419
+       var total = 0
420
+       for(let i=0;i<this.stockDatas.length;i++){
421
+         if(good_id == this.stockDatas[i].good_id){
422
+            total+= this.stockDatas[i].count
423
+         }
424
+       }
425
+       return total
426
+     },
427
+     getWareOutTotalSix(){
428
+       var total = 0
429
+       for(let i=0;i<this.stockDatas.length;i++){
430
+         total+= this.getMySelfCount(this.stockDatas[i].good_id) * this.stockDatas[i].packing_price
431
+       }
432
+       return total
433
+     },
416 434
     },
417 435
     created() {
418 436
       var xtuser = this.$store.getters.xt_user

+ 26 - 2
src/xt_pages/stock/detail/stockOutDetail.vue 查看文件

@@ -754,10 +754,18 @@ export default {
754 754
         if(this.orgId == 9919){
755 755
           this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].buy_price).toFixed(2)
756 756
           this.tableOut[i].packing_price = this.tableOut[i].buy_price
757
+        }else if(this.orgId == 10265){
758
+          this.tableOut[i].total_price = (this.getMySelfCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
757 759
         }else{
758 760
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
759 761
         }
760
-        this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
762
+       
763
+        if(this.orgId  == 10265){
764
+        
765
+         this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
766
+        }else{
767
+          this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
768
+        }
761 769
        }
762 770
        import('@/vendor/Export2Excel').then(excel => {
763 771
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
@@ -845,7 +853,7 @@ export default {
845 853
       getGoodDetailPrintList(params).then(response=>{
846 854
         if(response.data.state == 1){
847 855
           var list = response.data.data.list
848
-        
856
+          console.log("lisrt23323223233232232323232323",list)
849 857
           this.tableOut = list
850 858
           var stockTotal = response.data.data.stockTotal
851 859
           console.log("list88888888888888888888",stockTotal)
@@ -863,6 +871,22 @@ export default {
863 871
         }
864 872
         return count
865 873
     }, 
874
+    getMySelfCount(good_id){
875
+       var total = 0
876
+       for(let i=0;i<this.tableOut.length;i++){
877
+         if(good_id == this.tableOut[i].good_id){
878
+            total+= this.tableOut[i].count
879
+         }
880
+       }
881
+       return total
882
+     },
883
+     getWareOutTotalSix(){
884
+       var total = 0
885
+       for(let i=0;i<this.tableOut.length;i++){
886
+         total+= this.getMySelfCount(this.tableOut[i].good_id) * this.tableOut[i].packing_price
887
+       }
888
+       return total
889
+     },
866 890
   }
867 891
 };
868 892
 </script>

+ 8 - 5
src/xt_pages/supply/components/addGoodReturn.vue 查看文件

@@ -717,12 +717,15 @@ export default {
717 717
       this.recordInfo.tableList.push(tempObj);
718 718
     },
719 719
     handleDelete: function (index, row) {
720
-      if (this.recordInfo.tableList.length <= 1) {
721
-        this.$message.error("只有一条记录的时候无法删除");
722
-        return;
723
-      }else{
724
-        this.recordInfo.tableList.splice(index, 1);
720
+      if(row.id == 0){
721
+       if (this.recordInfo.tableList.length <= 1) {
722
+          this.$message.error("只有一条记录的时候无法删除");
723
+          return;
724
+        }else{
725
+          this.recordInfo.tableList.splice(index, 1);
726
+        }
725 727
       }
728
+     
726 729
       if (row.id > 0) {
727 730
         const params = {
728 731
             id: row.id