Browse Source

新分支

28169 6 months ago
parent
commit
afbbefc389

+ 15 - 0
src/store/modules/globalConfig.js View File

@@ -1136,6 +1136,21 @@ const global_config = {
1136 1136
         gaimingcheng_unit: '',
1137 1137
         gaijiliang_unit: ''
1138 1138
       },
1139
+      19: {
1140
+        id: 19,
1141
+        name: '低分子量肝素钠',
1142
+        type: 1,
1143
+        shouji: 1,
1144
+        weichi: 1,
1145
+        zongliang: 1,
1146
+        gaimingcheng: -1,
1147
+        gaijiliang: -1,
1148
+        shouji_unit: 'iu',
1149
+        weichi_unit: 'iu/h',
1150
+        zongliang_unit: 'iu',
1151
+        gaimingcheng_unit: '',
1152
+        gaijiliang_unit: ''
1153
+      },
1139 1154
     },
1140 1155
     anticoagulants_set: {
1141 1156
       type: 2

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

@@ -1415,6 +1415,8 @@
1415 1415
                         <span v-if="record.prescription.anticoagulant == 17"
1416 1416
                           >U</span
1417 1417
                         >
1418
+                        <span v-if="record.prescription.anticoagulant == 19"
1419
+                        >iu</span>
1418 1420
                       </div>
1419 1421
                       <div class="inline_block" style="margin-left: 20px">
1420 1422
                         维持:
@@ -1488,6 +1490,8 @@
1488 1490
                         <span v-if="record.prescription.anticoagulant == 17"
1489 1491
                           >U/h</span
1490 1492
                         >
1493
+                        <span v-if="record.prescription.anticoagulant == 19"
1494
+                        >iu/h</span>
1491 1495
                       </div>
1492 1496
                       <div class="inline_block" style="margin-left: 20px">
1493 1497
                         总量:
@@ -1540,6 +1544,9 @@
1540 1544
                         >
1541 1545
                         <span v-if="record.prescription.anticoagulant == 17"
1542 1546
                           >U</span>
1547
+
1548
+                        <span v-if="record.prescription.anticoagulant == 19"
1549
+                          >iu</span>
1543 1550
                       </div>
1544 1551
                       <div class="inline_block" style="margin-left: 20px">
1545 1552
                         透析机号:

+ 26 - 5
src/xt_pages/dialysis/details/consumable/dialysisGather.vue View File

@@ -266,14 +266,14 @@
266 266
           <el-table-column align="center" label="葡萄糖酸钙" v-if="gatherSetting.putaosuangai == 1">
267 267
              <template slot-scope="scope">
268 268
               <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_three }}</span>
269
-              <span v-if="scope.row.schedule_date <= timenow">{{ getLongAdviceThree(scope.row.long_doctor_advice,scope.row.schedule_date) }}</span>
269
+              <span v-if="scope.row.schedule_date > timenow">{{ getLongAdviceThree(scope.row.long_doctor_advice,scope.row.schedule_date) }}</span>
270 270
              </template>
271 271
           </el-table-column>
272 272
 
273 273
           <el-table-column align="center" label="肝素钠" v-if="org_id == 0 || org_id == 10683">
274 274
              <template slot-scope="scope">
275 275
               <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_four }}</span>
276
-              <span v-if="scope.row.schedule_date <= timenow">{{ getLongAdviceFour(scope.row.long_doctor_advice,scope.row.schedule_date)  }}</span>
276
+              <span v-if="scope.row.schedule_date > timenow">{{ getLongAdviceFour(scope.row.long_doctor_advice,scope.row.schedule_date)  }}</span>
277 277
              </template>
278 278
           </el-table-column>
279 279
           
@@ -736,6 +736,7 @@
736 736
                   list[i].advice_spc_two =""
737 737
                   list[i].advice_spc_three = ""
738 738
                   list[i].advice_spc_four = ""
739
+                  list[i].advice_spc_five = 0
739 740
                   for(let j=0;j<list[i].advice.length;j++){
740 741
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
741 742
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
@@ -754,9 +755,19 @@
754 755
                        }
755 756
 
756 757
                        if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
757
-                          list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
758
+                          // list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
759
+                         
760
+                          if(parseInt(list[i].advice[j].prescribing_number) >0){
761
+                            list[i].advice_spc_five += parseInt(list[i].advice[j].prescribing_number) 
762
+                            
763
+                            list[i].advice_spc_four =  list[i].advice_spc_five + "支"
764
+                          }else{
765
+                            list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
766
+                          }
758 767
                        }
759 768
 
769
+
770
+
760 771
                    }
761 772
                 }
762 773
                 console.log("listwowowowowowo日本",this.list)
@@ -2266,6 +2277,7 @@
2266 2277
         var newArrList = []
2267 2278
         var newArr = []
2268 2279
         var advice_name = ""
2280
+        var count = 0
2269 2281
          if(val!=null && val.length>0){
2270 2282
             for(let i=0;i<val.length;i++){
2271 2283
               if(val[i].advice_name.indexOf("左卡")!=-1){
@@ -2286,6 +2298,7 @@
2286 2298
          if(newArr!=null && newArr.length>0){
2287 2299
            for(let i=0;i<newArr.length;i++){
2288 2300
              advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2301
+             
2289 2302
            }
2290 2303
          }
2291 2304
          return advice_name
@@ -2351,6 +2364,7 @@
2351 2364
         var newArrList = []
2352 2365
         var newArr = []
2353 2366
         var advice_name = ""
2367
+        var count =0
2354 2368
          if(val!=null && val.length>0){
2355 2369
             for(let i=0;i<val.length;i++){
2356 2370
               if(val[i].advice_name.indexOf("肝素钠")!=-1){
@@ -2370,10 +2384,17 @@
2370 2384
        
2371 2385
          if(newArr!=null && newArr.length>0){
2372 2386
            for(let i=0;i<newArr.length;i++){
2373
-             advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2387
+            //  
2388
+             count += newArr[i].prescribing_number
2374 2389
            }
2375 2390
          }
2376
-         return advice_name
2391
+         if(count >0){
2392
+          return count +"支"
2393
+         }else{
2394
+          advice_name  += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2395
+          return  advice_name
2396
+         }
2397
+        
2377 2398
        },
2378 2399
        getweekday(date){
2379 2400
           var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");

+ 18 - 3
src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue View File

@@ -308,6 +308,7 @@
308 308
                   list[i].advice_spc_two =""
309 309
                   list[i].advice_spc_three = ""
310 310
                    list[i].advice_spc_four = ""
311
+                   list[i].advice_spc_five = 0
311 312
                    for(let j=0;j<list[i].advice.length;j++){
312 313
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
313 314
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
@@ -326,7 +327,14 @@
326 327
                        }
327 328
 
328 329
                        if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
329
-                          list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
330
+                          // list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
331
+                          if(parseInt(list[i].advice[j].prescribing_number) >0){
332
+                            list[i].advice_spc_five += parseInt(list[i].advice[j].prescribing_number) 
333
+                            
334
+                            list[i].advice_spc_four =  list[i].advice_spc_five + "支"
335
+                          }else{
336
+                            list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
337
+                          }
330 338
                        }
331 339
 
332 340
                    }
@@ -566,6 +574,7 @@
566 574
         var newArrList = []
567 575
         var newArr = []
568 576
         var advice_name = ""
577
+        var count = 0
569 578
          if(val!=null && val.length>0){
570 579
             for(let i=0;i<val.length;i++){
571 580
               if(val[i].advice_name.indexOf("肝素钠")!=-1){
@@ -585,10 +594,16 @@
585 594
        
586 595
          if(newArr!=null && newArr.length>0){
587 596
            for(let i=0;i<newArr.length;i++){
588
-              advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
597
+            count += newArr[i].prescribing_number
598
+              // advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
589 599
            }
590 600
          }
591
-         return advice_name
601
+         if(count >0){
602
+          return count +"支"
603
+         }else{
604
+          return ""
605
+         }
606
+        
592 607
        },
593 608
        getweekday(date){
594 609
           var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");

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

@@ -1444,7 +1444,7 @@
1444 1444
                       <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg</span>
1445 1445
                       <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1446 1446
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1447
-                      <span v-if="prescription.anticoagulant == 14">
1447
+                      <span v-if="prescription.anticoagulant == 14 || prescription.anticoagulant == 19">
1448 1448
                        <span v-if="org_id!=10644">mg</span> 
1449 1449
                        <span v-if="org_id==10644">iu</span> 
1450 1450
                       </span>
@@ -1463,7 +1463,7 @@
1463 1463
                      <span v-if="prescription.anticoagulant == 10">iu</span>
1464 1464
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1465 1465
                      <span v-if="prescription.anticoagulant == 13">iu</span>
1466
-                     <span v-if="prescription.anticoagulant == 14">
1466
+                     <span v-if="prescription.anticoagulant == 14 || prescription.anticoagulant == 19">
1467 1467
                       <span v-if="org_id!=10644">mg</span> 
1468 1468
                       <span v-if="org_id==10644">iu</span> 
1469 1469
                      </span>
@@ -1509,7 +1509,7 @@
1509 1509
                         <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg/h</span>
1510 1510
                         <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1511 1511
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1512
-                          <span v-if="prescription.anticoagulant == 14">
1512
+                          <span v-if="prescription.anticoagulant == 14 || prescription.anticoagulant == 19">
1513 1513
                             <span v-if="org_id!=10644">mg/h</span> 
1514 1514
                             <span v-if="org_id==10644">iu/h</span> 
1515 1515
                           </span>
@@ -1527,7 +1527,7 @@
1527 1527
                           <span v-if="prescription.anticoagulant == 10">iu/h</span>
1528 1528
                           <span v-if="prescription.anticoagulant == 11">iu/h</span>
1529 1529
                           <span v-if="prescription.anticoagulant == 13">iu/h</span>
1530
-                          <span v-if="prescription.anticoagulant == 14">
1530
+                          <span v-if="prescription.anticoagulant == 14 || prescription.anticoagulant == 19">
1531 1531
                             <span v-if="org_id!=10644">mg/h</span> 
1532 1532
                             <span v-if="org_id==10644">iu/h</span> 
1533 1533
                           </span>
@@ -1600,7 +1600,7 @@
1600 1600
                       <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg</span>
1601 1601
                       <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1602 1602
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1603
-                      <span v-if="prescription.anticoagulant == 14">
1603
+                      <span v-if="prescription.anticoagulant == 14 || prescription.anticoagulant == 19">
1604 1604
                         <span v-if="org_id!=10644">mg</span> 
1605 1605
                         <span v-if="org_id==10644">iu</span> 
1606 1606
                       </span>
@@ -1618,7 +1618,7 @@
1618 1618
                        <span v-if="prescription.anticoagulant == 10">iu</span>
1619 1619
                       <span v-if="prescription.anticoagulant == 11">iu</span>
1620 1620
                       <span v-if="prescription.anticoagulant == 13">iu</span>
1621
-                      <span v-if="prescription.anticoagulant == 14">
1621
+                      <span v-if="prescription.anticoagulant == 14 || prescription.anticoagulant == 19">
1622 1622
                         <span v-if="org_id!=10644">mg</span> 
1623 1623
                         <span v-if="org_id==10644">iu</span> 
1624 1624
                       </span>

+ 7 - 0
src/xt_pages/stock/stockInOrder.vue View File

@@ -362,6 +362,13 @@
362 362
             </span>
363 363
           </template>
364 364
         </el-table-column>
365
+        <el-table-column label="耗材追溯码" align="center">
366
+          <template slot-scope="scope">
367
+            <span v-if="scope.row.is_total == 0">
368
+               {{ scope.row.good_code}}
369
+            </span>
370
+          </template>
371
+        </el-table-column>
365 372
         <el-table-column label="备注" align="center">
366 373
           <template slot-scope="scope">
367 374
             <span v-if="scope.row.is_total == 0">

+ 67 - 5
src/xt_pages/stock/stockInOrderAdd.vue View File

@@ -239,6 +239,16 @@
239 239
             </template>
240 240
           </el-table-column>
241 241
 
242
+          <el-table-column label="耗材追溯码" align="center" width="150">
243
+           
244
+              <template slot-scope="scope">
245
+               <div  @click="changeGoodCode(scope.row,scope.$index)">
246
+                <el-input v-model="scope.row.good_code"  placeholder="请输入耗材追溯码"></el-input>
247
+              </div>
248
+            </template>
249
+          
250
+          </el-table-column>
251
+
242 252
           <el-table-column label="备注" align="center" width="150">
243 253
             <template slot-scope="scope">
244 254
               <el-input placeholder="请输入备注" v-model="scope.row.remark"></el-input>
@@ -274,8 +284,28 @@
274 284
         <div style="margin-top: 20px;">合计金额: {{getTotalPirce() }} </div>
275 285
       </el-form>
276 286
 
277
-
287
+ 
278 288
     </div>
289
+
290
+    <el-dialog
291
+      title="耗材追溯码"
292
+      :visible.sync="dialogVisible"
293
+      width="40%">
294
+      <span>
295
+        <el-input
296
+         @keyup.native="changeText"
297
+          type="textarea"
298
+          placeholder="请输入内容"
299
+          v-model="textarea"
300
+          :rows="10"
301
+        >
302
+        </el-input>
303
+      </span>
304
+      <span slot="footer" class="dialog-footer">
305
+        <el-button @click="dialogVisible = false">取 消</el-button>
306
+        <el-button type="primary" @click="saveTextArea()">确 定</el-button>
307
+      </span>
308
+    </el-dialog>
279 309
   </div>
280 310
 
281 311
 </template>
@@ -380,8 +410,8 @@
380 410
             price: '',
381 411
             remark: '',
382 412
             dealer: '',
383
-            manufacturer: ''
384
-
413
+            manufacturer: '',
414
+            good_code:""
385 415
           },
386 416
           isCreated: 1
387 417
 
@@ -422,7 +452,12 @@
422 452
         showCheck:false,
423 453
         showReturnCheck:false,
424 454
         warehousing_info_id:0,
425
-        org_id:0
455
+        org_id:0,
456
+        dialogVisible:false,
457
+        currentRow:{},
458
+        currentIndex:0,
459
+        textarea:""
460
+
426 461
       }
427 462
     },
428 463
     methods: {
@@ -579,6 +614,7 @@
579 614
         tempObj["packing_price"] = ""
580 615
         tempObj["id"] = 0
581 616
         tempObj['register_number'] = ''
617
+        tempObj['good_code'] = ""
582 618
         this.recordInfo.recordData.push(tempObj)
583 619
       }, handleDelete: function(index, row) {
584 620
         if (this.recordInfo.recordData.length <= 1) {
@@ -795,6 +831,7 @@
795 831
                   list[i].product_date = this.getTimeOne(list[i].product_date)
796 832
                   list[i].good_name = list[i].GoodInfo.good_name
797 833
                   list[i].name = list[i].GoodInfo.specification_name +"/"+ list[i].GoodInfo.packing_unit
834
+                  list[i].good_code = list[i].good_code
798 835
                 }
799 836
                 this.recordInfo.recordData = []
800 837
                 this.recordInfo.recordData = list
@@ -969,7 +1006,31 @@
969 1006
           return ""
970 1007
          }
971 1008
        }
972
-     }
1009
+     },
1010
+     changeGoodCode(row,index){
1011
+        this.textarea=""
1012
+        this.textarea = row.drug_code
1013
+        this.currentRow = row
1014
+        this.currentIndex =index
1015
+        this.dialogVisible = true
1016
+     },
1017
+     changeText(event){
1018
+      // 检查是否为特定的按键,例如回车键,来确认扫码枪输入完成
1019
+      if (event.key === 'Enter') {
1020
+        var textarea = ""
1021
+        textarea += this.textarea + ","
1022
+        this.textarea = textarea
1023
+
1024
+      }
1025
+     },
1026
+     saveTextArea(){
1027
+        for(let i=0;i<this.recordInfo.recordData.length;i++){
1028
+          if(this.currentIndex == i){
1029
+            this.recordInfo.recordData[i].good_code = this.textarea 
1030
+          }
1031
+        }
1032
+        this.dialogVisible = false
1033
+      },
973 1034
     }
974 1035
     ,
975 1036
     created() {
@@ -1003,6 +1064,7 @@
1003 1064
       tempObj['packing_price']= ''
1004 1065
       tempObj['id']= 0
1005 1066
       tempObj['register_number'] = ''
1067
+      tempObj['good_code'] = ''
1006 1068
       this.recordInfo.recordData.push(tempObj)
1007 1069
       this.GetConfigInfo()
1008 1070
       this.propForm.goodUnit = this.$store.getters.good_unit

+ 81 - 1
src/xt_pages/stock/stockInOrderEdit.vue View File

@@ -301,6 +301,18 @@
301 301
                </el-select>
302 302
             </template>
303 303
           </el-table-column>
304
+
305
+          <el-table-column label="耗材追溯码" align="center" width="150">
306
+           
307
+           <template slot-scope="scope">
308
+              <div  @click="changeGoodCode(scope.row,scope.$index)">
309
+                <el-input v-model="scope.row.good_code"  placeholder="请输入耗材追溯码"></el-input>
310
+              </div>
311
+           </template>
312
+       
313
+         </el-table-column>
314
+
315
+
304 316
           <el-table-column label="备注" width="150" align="center">
305 317
             <template slot-scope="scope">
306 318
               <el-input v-model="scope.row.remark"  :disabled ="disabled"></el-input>
@@ -349,6 +361,26 @@
349 361
         <div style="margin-top: 20px;">合计金额: {{getTotalPirce() }} </div>
350 362
       </el-form>
351 363
     </div>
364
+
365
+    <el-dialog
366
+      title="耗材追溯码"
367
+      :visible.sync="dialogVisible"
368
+      width="40%">
369
+      <span>
370
+        <el-input
371
+         @keyup.native="changeText"
372
+          type="textarea"
373
+          placeholder="请输入内容"
374
+          v-model="textarea"
375
+          :rows="10"
376
+        >
377
+        </el-input>
378
+      </span>
379
+      <span slot="footer" class="dialog-footer">
380
+        <el-button @click="dialogVisible = false">取 消</el-button>
381
+        <el-button type="primary" @click="saveTextArea()">确 定</el-button>
382
+      </span>
383
+    </el-dialog>
352 384
   </div>
353 385
 </template>
354 386
 
@@ -451,6 +483,11 @@ export default {
451 483
       list:[],
452 484
       is_check:0,
453 485
       order_id:0,
486
+      org_id:0,
487
+      dialogVisible:false,
488
+      currentRow:{},
489
+      currentIndex:0,
490
+      textarea:""
454 491
     };
455 492
   },
456 493
   methods: {
@@ -482,6 +519,7 @@ export default {
482 519
             tempForm["remark"] = "";
483 520
             tempForm["dealer"] = "";
484 521
             tempForm["manufacturer"] = "";
522
+            tempForm["good_code"] = ""
485 523
             this.recordInfo.recordData.splice(
486 524
               this.currentIndex + 1,
487 525
               0,
@@ -570,6 +608,7 @@ export default {
570 608
       tempObj["manufacturer"] = "";
571 609
       tempObj["license_number"] = ""
572 610
       tempObj["packing_price"] = ""
611
+      tempObj["good_code"] = ""
573 612
       this.recordInfo.recordData.push(tempObj);
574 613
     },
575 614
     handleDelete: function(index, row) {
@@ -775,6 +814,7 @@ export default {
775 814
                 list[i].product_date = this.getTimeOne(list[i].product_date)
776 815
                 list[i].good_name = list[i].GoodInfo.good_name
777 816
                 list[i].name = list[i].GoodInfo.specification_name
817
+                list[i].good_code = list[i].good_code
778 818
                }
779 819
               this.recordInfo.recordData = []
780 820
               this.recordInfo.recordData = list
@@ -848,6 +888,7 @@ export default {
848 888
             tempObj["manufacturer"] = "";
849 889
             tempObj["license_number"] = ""
850 890
             tempObj["register_number"] = ""
891
+            tempObj["good_code"] = ""
851 892
             this.recordInfo.recordData.push(tempObj);
852 893
           }
853 894
         }
@@ -906,6 +947,11 @@ export default {
906 947
             }else{
907 948
                this.recordInfo.recordData[i].price = val.buy_price
908 949
             }
950
+
951
+            if(this.org_id == 0 || this.org_id == 10633){
952
+               this.recordInfo.recordData[i].price = val.first_xt_warehouse_info.packing_price
953
+            }
954
+
909 955
             if(val.packing_price == 0){
910 956
               this.recordInfo.recordData[i].packing_price = "0"
911 957
             }else{
@@ -920,6 +966,15 @@ export default {
920 966
             }else{
921 967
               this.recordInfo.recordData[i].dealer = val.dealer
922 968
             }
969
+
970
+
971
+
972
+            // for(let i=0;i<this.recordInfo.recordData.length;i++){
973
+            //   this.recordInfo.recordData[i].warehouse_info_str = ""
974
+            //   for(let j=0;j<this.recordInfo.recordData[i].xt_warehouse_info.length;j++){
975
+            //     this.recordInfo.recordData[i].warehouse_info_str += "批次:"+this.recordInfo.recordData[i].xt_warehouse_info[j].number+" " + "剩余:"+this.recordInfo.recordData[i].xt_warehouse_info[j].stock_count+this.recordInfo.recordData[i].packing_unit +"\n"
976
+            //   }
977
+            // }
923 978
           
924 979
           }
925 980
         }
@@ -995,10 +1050,35 @@ export default {
995 1050
          return ""
996 1051
         }
997 1052
       }
998
-    }
1053
+    },
1054
+    changeGoodCode(row,index){
1055
+        this.textarea=""
1056
+        this.textarea = row.drug_code
1057
+        this.currentRow = row
1058
+        this.currentIndex =index
1059
+        this.dialogVisible = true
1060
+     },
1061
+     changeText(event){
1062
+      // 检查是否为特定的按键,例如回车键,来确认扫码枪输入完成
1063
+      if (event.key === 'Enter') {
1064
+        var textarea = ""
1065
+        textarea += this.textarea + ","
1066
+        this.textarea = textarea
1067
+
1068
+      }
1069
+     },
1070
+     saveTextArea(){
1071
+        for(let i=0;i<this.recordInfo.recordData.length;i++){
1072
+          if(this.currentIndex == i){
1073
+            this.recordInfo.recordData[i].good_code = this.textarea 
1074
+          }
1075
+        }
1076
+        this.dialogVisible = false
1077
+      },
999 1078
      
1000 1079
   },
1001 1080
   created() {
1081
+    this.org_id = this.$store.getters.xt_user.org.id
1002 1082
     this.GetConfigInfo();
1003 1083
     this.propForm.goodUnit = this.$store.getters.good_unit;
1004 1084
     const order_id = this.$route.query.id;

+ 28 - 3
src/xt_pages/stock/stockOutOrderAdd.vue View File

@@ -148,10 +148,20 @@
148 148
                   type="number"
149 149
                   v-model="scope.row.stock_count"
150 150
                 ></el-input>
151
+                
151 152
               </el-form-item>
152 153
             </template>
153 154
           </el-table-column>
154 155
 
156
+          <!-- <el-table-column width="150" align="center">
157
+            <template slot="header" slot-scope="scope">
158
+              <span>剩余批次详情</span>
159
+            </template>
160
+            <template slot-scope="scope">
161
+              {{ scope.row.warehouse_info_str }} 
162
+            </template>
163
+          </el-table-column> -->
164
+
155 165
 
156 166
          <el-table-column  width="150" align="center">
157 167
             <template slot="header" slot-scope="scope">
@@ -450,7 +460,8 @@ export default {
450 460
       loading:false,
451 461
       patients:[],
452 462
       classType:[{id:1,name:"上午"},{id:2,name:"下午"},{id:3,name:"晚上"}],
453
-
463
+      tableWarehouseInfoList:[],
464
+      org_id:0,
454 465
     };
455 466
   },
456 467
   methods: {
@@ -830,6 +841,7 @@ export default {
830 841
                     warehouseOutInfoList[i].expiry_date = this.getTimeOne(warehouseOutInfoList[i].expiry_date)
831 842
                     warehouseOutInfoList[i].product_date = this.getTimeOne(warehouseOutInfoList[i].product_date)
832 843
                     warehouseOutInfoList[i].patient_id = warehouseOutInfoList[i].patient_id
844
+                    
833 845
 
834 846
                  }
835 847
                  this.recordInfo.recordData = warehouseOutInfoList
@@ -921,7 +933,8 @@ export default {
921 933
             this.recordInfo.recordData[i].license_number = val.number
922 934
             this.recordInfo.recordData[i].register_number = val.register_number
923 935
             this.recordInfo.recordData[i].patient_id = 0
924
-             
936
+            this.recordInfo.recordData[i].xt_warehouse_info = val.xt_warehouse_info
937
+            this.recordInfo.recordData[i].packing_unit = val.packing_unit
925 938
             if( val.first_xt_warehouse_info!=null&&val.first_xt_warehouse_info.expiry_date >0){
926 939
               this.recordInfo.recordData[i].expiry_date = this.getTimeOne(val.first_xt_warehouse_info.expiry_date)
927 940
             }else{
@@ -941,6 +954,10 @@ export default {
941 954
               this.recordInfo.recordData[i].price = val.packing_price
942 955
             }
943 956
 
957
+            if(this.org_id == 0 || this.org_id == 10633){
958
+               this.recordInfo.recordData[i].price = val.first_xt_warehouse_info.packing_price
959
+            }
960
+
944 961
             this.recordInfo.recordData[i].specification_name = val.specification_name
945 962
             this.recordInfo.recordData[i].good_id = val.id
946 963
             if(val.dealer == 0){
@@ -949,6 +966,13 @@ export default {
949 966
              this.recordInfo.recordData[i].dealer = val.dealer
950 967
             }
951 968
 
969
+            for(let i=0;i<this.recordInfo.recordData.length;i++){
970
+              this.recordInfo.recordData[i].warehouse_info_str = ""
971
+              for(let j=0;j<this.recordInfo.recordData[i].xt_warehouse_info.length;j++){
972
+                this.recordInfo.recordData[i].warehouse_info_str += "批次:"+this.recordInfo.recordData[i].xt_warehouse_info[j].number+" " + "剩余:"+this.recordInfo.recordData[i].xt_warehouse_info[j].stock_count+this.recordInfo.recordData[i].packing_unit +"\n"
973
+              }
974
+            }
975
+
952 976
             console.log("日期我我我哦我",  this.recordInfo.recordData)
953 977
          }
954 978
 
@@ -967,6 +991,7 @@ export default {
967 991
           var list = response.data.data.list
968 992
           this.numberList = list
969 993
           // var lastWarehouseInfoTwo = response.data.data.lastWarehouseInfoTwo
994
+          // this.tableWarehouseInfoList = lastWarehouseInfoTwo
970 995
         }
971 996
      })
972 997
     },
@@ -1062,7 +1087,7 @@ export default {
1062 1087
 
1063 1088
   },
1064 1089
   created() {
1065
-
1090
+    this.org_id = this.$store.getters.xt_user.org.id
1066 1091
     var nowDate = new Date();
1067 1092
     var nowYear = nowDate.getFullYear();
1068 1093
     var nowMonth = nowDate.getMonth() + 1;