Bladeren bron

新分支

28169 6 maanden geleden
bovenliggende
commit
afbbefc389

+ 15 - 0
src/store/modules/globalConfig.js Bestand weergeven

1136
         gaimingcheng_unit: '',
1136
         gaimingcheng_unit: '',
1137
         gaijiliang_unit: ''
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
     anticoagulants_set: {
1155
     anticoagulants_set: {
1141
       type: 2
1156
       type: 2

+ 7 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Bestand weergeven

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

+ 26 - 5
src/xt_pages/dialysis/details/consumable/dialysisGather.vue Bestand weergeven

266
           <el-table-column align="center" label="葡萄糖酸钙" v-if="gatherSetting.putaosuangai == 1">
266
           <el-table-column align="center" label="葡萄糖酸钙" v-if="gatherSetting.putaosuangai == 1">
267
              <template slot-scope="scope">
267
              <template slot-scope="scope">
268
               <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_three }}</span>
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
              </template>
270
              </template>
271
           </el-table-column>
271
           </el-table-column>
272
 
272
 
273
           <el-table-column align="center" label="肝素钠" v-if="org_id == 0 || org_id == 10683">
273
           <el-table-column align="center" label="肝素钠" v-if="org_id == 0 || org_id == 10683">
274
              <template slot-scope="scope">
274
              <template slot-scope="scope">
275
               <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_four }}</span>
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
              </template>
277
              </template>
278
           </el-table-column>
278
           </el-table-column>
279
           
279
           
736
                   list[i].advice_spc_two =""
736
                   list[i].advice_spc_two =""
737
                   list[i].advice_spc_three = ""
737
                   list[i].advice_spc_three = ""
738
                   list[i].advice_spc_four = ""
738
                   list[i].advice_spc_four = ""
739
+                  list[i].advice_spc_five = 0
739
                   for(let j=0;j<list[i].advice.length;j++){
740
                   for(let j=0;j<list[i].advice.length;j++){
740
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
741
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
741
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
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
                        }
755
                        }
755
 
756
 
756
                        if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
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
                 console.log("listwowowowowowo日本",this.list)
773
                 console.log("listwowowowowowo日本",this.list)
2266
         var newArrList = []
2277
         var newArrList = []
2267
         var newArr = []
2278
         var newArr = []
2268
         var advice_name = ""
2279
         var advice_name = ""
2280
+        var count = 0
2269
          if(val!=null && val.length>0){
2281
          if(val!=null && val.length>0){
2270
             for(let i=0;i<val.length;i++){
2282
             for(let i=0;i<val.length;i++){
2271
               if(val[i].advice_name.indexOf("左卡")!=-1){
2283
               if(val[i].advice_name.indexOf("左卡")!=-1){
2286
          if(newArr!=null && newArr.length>0){
2298
          if(newArr!=null && newArr.length>0){
2287
            for(let i=0;i<newArr.length;i++){
2299
            for(let i=0;i<newArr.length;i++){
2288
              advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2300
              advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2301
+             
2289
            }
2302
            }
2290
          }
2303
          }
2291
          return advice_name
2304
          return advice_name
2351
         var newArrList = []
2364
         var newArrList = []
2352
         var newArr = []
2365
         var newArr = []
2353
         var advice_name = ""
2366
         var advice_name = ""
2367
+        var count =0
2354
          if(val!=null && val.length>0){
2368
          if(val!=null && val.length>0){
2355
             for(let i=0;i<val.length;i++){
2369
             for(let i=0;i<val.length;i++){
2356
               if(val[i].advice_name.indexOf("肝素钠")!=-1){
2370
               if(val[i].advice_name.indexOf("肝素钠")!=-1){
2370
        
2384
        
2371
          if(newArr!=null && newArr.length>0){
2385
          if(newArr!=null && newArr.length>0){
2372
            for(let i=0;i<newArr.length;i++){
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
        getweekday(date){
2399
        getweekday(date){
2379
           var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");
2400
           var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");

+ 18 - 3
src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue Bestand weergeven

308
                   list[i].advice_spc_two =""
308
                   list[i].advice_spc_two =""
309
                   list[i].advice_spc_three = ""
309
                   list[i].advice_spc_three = ""
310
                    list[i].advice_spc_four = ""
310
                    list[i].advice_spc_four = ""
311
+                   list[i].advice_spc_five = 0
311
                    for(let j=0;j<list[i].advice.length;j++){
312
                    for(let j=0;j<list[i].advice.length;j++){
312
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
313
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
313
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
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
                        }
327
                        }
327
 
328
 
328
                        if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
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
         var newArrList = []
574
         var newArrList = []
567
         var newArr = []
575
         var newArr = []
568
         var advice_name = ""
576
         var advice_name = ""
577
+        var count = 0
569
          if(val!=null && val.length>0){
578
          if(val!=null && val.length>0){
570
             for(let i=0;i<val.length;i++){
579
             for(let i=0;i<val.length;i++){
571
               if(val[i].advice_name.indexOf("肝素钠")!=-1){
580
               if(val[i].advice_name.indexOf("肝素钠")!=-1){
585
        
594
        
586
          if(newArr!=null && newArr.length>0){
595
          if(newArr!=null && newArr.length>0){
587
            for(let i=0;i<newArr.length;i++){
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
        getweekday(date){
608
        getweekday(date){
594
           var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");
609
           var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");

+ 6 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Bestand weergeven

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

+ 7 - 0
src/xt_pages/stock/stockInOrder.vue Bestand weergeven

362
             </span>
362
             </span>
363
           </template>
363
           </template>
364
         </el-table-column>
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
         <el-table-column label="备注" align="center">
372
         <el-table-column label="备注" align="center">
366
           <template slot-scope="scope">
373
           <template slot-scope="scope">
367
             <span v-if="scope.row.is_total == 0">
374
             <span v-if="scope.row.is_total == 0">

+ 67 - 5
src/xt_pages/stock/stockInOrderAdd.vue Bestand weergeven

239
             </template>
239
             </template>
240
           </el-table-column>
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
           <el-table-column label="备注" align="center" width="150">
252
           <el-table-column label="备注" align="center" width="150">
243
             <template slot-scope="scope">
253
             <template slot-scope="scope">
244
               <el-input placeholder="请输入备注" v-model="scope.row.remark"></el-input>
254
               <el-input placeholder="请输入备注" v-model="scope.row.remark"></el-input>
274
         <div style="margin-top: 20px;">合计金额: {{getTotalPirce() }} </div>
284
         <div style="margin-top: 20px;">合计金额: {{getTotalPirce() }} </div>
275
       </el-form>
285
       </el-form>
276
 
286
 
277
-
287
+ 
278
     </div>
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
   </div>
309
   </div>
280
 
310
 
281
 </template>
311
 </template>
380
             price: '',
410
             price: '',
381
             remark: '',
411
             remark: '',
382
             dealer: '',
412
             dealer: '',
383
-            manufacturer: ''
384
-
413
+            manufacturer: '',
414
+            good_code:""
385
           },
415
           },
386
           isCreated: 1
416
           isCreated: 1
387
 
417
 
422
         showCheck:false,
452
         showCheck:false,
423
         showReturnCheck:false,
453
         showReturnCheck:false,
424
         warehousing_info_id:0,
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
     methods: {
463
     methods: {
579
         tempObj["packing_price"] = ""
614
         tempObj["packing_price"] = ""
580
         tempObj["id"] = 0
615
         tempObj["id"] = 0
581
         tempObj['register_number'] = ''
616
         tempObj['register_number'] = ''
617
+        tempObj['good_code'] = ""
582
         this.recordInfo.recordData.push(tempObj)
618
         this.recordInfo.recordData.push(tempObj)
583
       }, handleDelete: function(index, row) {
619
       }, handleDelete: function(index, row) {
584
         if (this.recordInfo.recordData.length <= 1) {
620
         if (this.recordInfo.recordData.length <= 1) {
795
                   list[i].product_date = this.getTimeOne(list[i].product_date)
831
                   list[i].product_date = this.getTimeOne(list[i].product_date)
796
                   list[i].good_name = list[i].GoodInfo.good_name
832
                   list[i].good_name = list[i].GoodInfo.good_name
797
                   list[i].name = list[i].GoodInfo.specification_name +"/"+ list[i].GoodInfo.packing_unit
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
                 this.recordInfo.recordData = []
836
                 this.recordInfo.recordData = []
800
                 this.recordInfo.recordData = list
837
                 this.recordInfo.recordData = list
969
           return ""
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
     created() {
1036
     created() {
1003
       tempObj['packing_price']= ''
1064
       tempObj['packing_price']= ''
1004
       tempObj['id']= 0
1065
       tempObj['id']= 0
1005
       tempObj['register_number'] = ''
1066
       tempObj['register_number'] = ''
1067
+      tempObj['good_code'] = ''
1006
       this.recordInfo.recordData.push(tempObj)
1068
       this.recordInfo.recordData.push(tempObj)
1007
       this.GetConfigInfo()
1069
       this.GetConfigInfo()
1008
       this.propForm.goodUnit = this.$store.getters.good_unit
1070
       this.propForm.goodUnit = this.$store.getters.good_unit

+ 81 - 1
src/xt_pages/stock/stockInOrderEdit.vue Bestand weergeven

301
                </el-select>
301
                </el-select>
302
             </template>
302
             </template>
303
           </el-table-column>
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
           <el-table-column label="备注" width="150" align="center">
316
           <el-table-column label="备注" width="150" align="center">
305
             <template slot-scope="scope">
317
             <template slot-scope="scope">
306
               <el-input v-model="scope.row.remark"  :disabled ="disabled"></el-input>
318
               <el-input v-model="scope.row.remark"  :disabled ="disabled"></el-input>
349
         <div style="margin-top: 20px;">合计金额: {{getTotalPirce() }} </div>
361
         <div style="margin-top: 20px;">合计金额: {{getTotalPirce() }} </div>
350
       </el-form>
362
       </el-form>
351
     </div>
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
   </div>
384
   </div>
353
 </template>
385
 </template>
354
 
386
 
451
       list:[],
483
       list:[],
452
       is_check:0,
484
       is_check:0,
453
       order_id:0,
485
       order_id:0,
486
+      org_id:0,
487
+      dialogVisible:false,
488
+      currentRow:{},
489
+      currentIndex:0,
490
+      textarea:""
454
     };
491
     };
455
   },
492
   },
456
   methods: {
493
   methods: {
482
             tempForm["remark"] = "";
519
             tempForm["remark"] = "";
483
             tempForm["dealer"] = "";
520
             tempForm["dealer"] = "";
484
             tempForm["manufacturer"] = "";
521
             tempForm["manufacturer"] = "";
522
+            tempForm["good_code"] = ""
485
             this.recordInfo.recordData.splice(
523
             this.recordInfo.recordData.splice(
486
               this.currentIndex + 1,
524
               this.currentIndex + 1,
487
               0,
525
               0,
570
       tempObj["manufacturer"] = "";
608
       tempObj["manufacturer"] = "";
571
       tempObj["license_number"] = ""
609
       tempObj["license_number"] = ""
572
       tempObj["packing_price"] = ""
610
       tempObj["packing_price"] = ""
611
+      tempObj["good_code"] = ""
573
       this.recordInfo.recordData.push(tempObj);
612
       this.recordInfo.recordData.push(tempObj);
574
     },
613
     },
575
     handleDelete: function(index, row) {
614
     handleDelete: function(index, row) {
775
                 list[i].product_date = this.getTimeOne(list[i].product_date)
814
                 list[i].product_date = this.getTimeOne(list[i].product_date)
776
                 list[i].good_name = list[i].GoodInfo.good_name
815
                 list[i].good_name = list[i].GoodInfo.good_name
777
                 list[i].name = list[i].GoodInfo.specification_name
816
                 list[i].name = list[i].GoodInfo.specification_name
817
+                list[i].good_code = list[i].good_code
778
                }
818
                }
779
               this.recordInfo.recordData = []
819
               this.recordInfo.recordData = []
780
               this.recordInfo.recordData = list
820
               this.recordInfo.recordData = list
848
             tempObj["manufacturer"] = "";
888
             tempObj["manufacturer"] = "";
849
             tempObj["license_number"] = ""
889
             tempObj["license_number"] = ""
850
             tempObj["register_number"] = ""
890
             tempObj["register_number"] = ""
891
+            tempObj["good_code"] = ""
851
             this.recordInfo.recordData.push(tempObj);
892
             this.recordInfo.recordData.push(tempObj);
852
           }
893
           }
853
         }
894
         }
906
             }else{
947
             }else{
907
                this.recordInfo.recordData[i].price = val.buy_price
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
             if(val.packing_price == 0){
955
             if(val.packing_price == 0){
910
               this.recordInfo.recordData[i].packing_price = "0"
956
               this.recordInfo.recordData[i].packing_price = "0"
911
             }else{
957
             }else{
920
             }else{
966
             }else{
921
               this.recordInfo.recordData[i].dealer = val.dealer
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
          return ""
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
   created() {
1080
   created() {
1081
+    this.org_id = this.$store.getters.xt_user.org.id
1002
     this.GetConfigInfo();
1082
     this.GetConfigInfo();
1003
     this.propForm.goodUnit = this.$store.getters.good_unit;
1083
     this.propForm.goodUnit = this.$store.getters.good_unit;
1004
     const order_id = this.$route.query.id;
1084
     const order_id = this.$route.query.id;

+ 28 - 3
src/xt_pages/stock/stockOutOrderAdd.vue Bestand weergeven

148
                   type="number"
148
                   type="number"
149
                   v-model="scope.row.stock_count"
149
                   v-model="scope.row.stock_count"
150
                 ></el-input>
150
                 ></el-input>
151
+                
151
               </el-form-item>
152
               </el-form-item>
152
             </template>
153
             </template>
153
           </el-table-column>
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
          <el-table-column  width="150" align="center">
166
          <el-table-column  width="150" align="center">
157
             <template slot="header" slot-scope="scope">
167
             <template slot="header" slot-scope="scope">
450
       loading:false,
460
       loading:false,
451
       patients:[],
461
       patients:[],
452
       classType:[{id:1,name:"上午"},{id:2,name:"下午"},{id:3,name:"晚上"}],
462
       classType:[{id:1,name:"上午"},{id:2,name:"下午"},{id:3,name:"晚上"}],
453
-
463
+      tableWarehouseInfoList:[],
464
+      org_id:0,
454
     };
465
     };
455
   },
466
   },
456
   methods: {
467
   methods: {
830
                     warehouseOutInfoList[i].expiry_date = this.getTimeOne(warehouseOutInfoList[i].expiry_date)
841
                     warehouseOutInfoList[i].expiry_date = this.getTimeOne(warehouseOutInfoList[i].expiry_date)
831
                     warehouseOutInfoList[i].product_date = this.getTimeOne(warehouseOutInfoList[i].product_date)
842
                     warehouseOutInfoList[i].product_date = this.getTimeOne(warehouseOutInfoList[i].product_date)
832
                     warehouseOutInfoList[i].patient_id = warehouseOutInfoList[i].patient_id
843
                     warehouseOutInfoList[i].patient_id = warehouseOutInfoList[i].patient_id
844
+                    
833
 
845
 
834
                  }
846
                  }
835
                  this.recordInfo.recordData = warehouseOutInfoList
847
                  this.recordInfo.recordData = warehouseOutInfoList
921
             this.recordInfo.recordData[i].license_number = val.number
933
             this.recordInfo.recordData[i].license_number = val.number
922
             this.recordInfo.recordData[i].register_number = val.register_number
934
             this.recordInfo.recordData[i].register_number = val.register_number
923
             this.recordInfo.recordData[i].patient_id = 0
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
             if( val.first_xt_warehouse_info!=null&&val.first_xt_warehouse_info.expiry_date >0){
938
             if( val.first_xt_warehouse_info!=null&&val.first_xt_warehouse_info.expiry_date >0){
926
               this.recordInfo.recordData[i].expiry_date = this.getTimeOne(val.first_xt_warehouse_info.expiry_date)
939
               this.recordInfo.recordData[i].expiry_date = this.getTimeOne(val.first_xt_warehouse_info.expiry_date)
927
             }else{
940
             }else{
941
               this.recordInfo.recordData[i].price = val.packing_price
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
             this.recordInfo.recordData[i].specification_name = val.specification_name
961
             this.recordInfo.recordData[i].specification_name = val.specification_name
945
             this.recordInfo.recordData[i].good_id = val.id
962
             this.recordInfo.recordData[i].good_id = val.id
946
             if(val.dealer == 0){
963
             if(val.dealer == 0){
949
              this.recordInfo.recordData[i].dealer = val.dealer
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
             console.log("日期我我我哦我",  this.recordInfo.recordData)
976
             console.log("日期我我我哦我",  this.recordInfo.recordData)
953
          }
977
          }
954
 
978
 
967
           var list = response.data.data.list
991
           var list = response.data.data.list
968
           this.numberList = list
992
           this.numberList = list
969
           // var lastWarehouseInfoTwo = response.data.data.lastWarehouseInfoTwo
993
           // var lastWarehouseInfoTwo = response.data.data.lastWarehouseInfoTwo
994
+          // this.tableWarehouseInfoList = lastWarehouseInfoTwo
970
         }
995
         }
971
      })
996
      })
972
     },
997
     },
1062
 
1087
 
1063
   },
1088
   },
1064
   created() {
1089
   created() {
1065
-
1090
+    this.org_id = this.$store.getters.xt_user.org.id
1066
     var nowDate = new Date();
1091
     var nowDate = new Date();
1067
     var nowYear = nowDate.getFullYear();
1092
     var nowYear = nowDate.getFullYear();
1068
     var nowMonth = nowDate.getMonth() + 1;
1093
     var nowMonth = nowDate.getMonth() + 1;