Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 year ago
parent
commit
86c1e277f5

+ 2 - 11
src/xt_pages/Pharmacy/PatientDispensing.vue View File

648
         confirmButtonText: "确 定",
648
         confirmButtonText: "确 定",
649
         cancelButtonText: "取 消",
649
         cancelButtonText: "取 消",
650
         type: "warning",
650
         type: "warning",
651
-      })
652
-        .then(() => {
651
+      }).then(() => {
653
           dispensingmedicine(params).then((res) => {
652
           dispensingmedicine(params).then((res) => {
654
             if (res.data.state == 1) {
653
             if (res.data.state == 1) {
655
               this.$message.success("操作成功");
654
               this.$message.success("操作成功");
658
               this.tableData = null;
657
               this.tableData = null;
659
               this.fun4(tmp);
658
               this.fun4(tmp);
660
               this.state = 2;
659
               this.state = 2;
661
-              // console.log("this.alreadmount_data",this.alreadmount_data)
662
-              // for (let i = 0;i < this.alreadmount_data.length;i++){
663
-              //   console.log("tmp = ",tmp)
664
-              //     if (this.alreadmount_data[i].PatientID == tmp){
665
-              //       console.log("i = ",i)
666
-              //       this.$refs.table02.setCurrentRow(this.alreadmount_data[i]);
667
-              //       this.handleCurrentChange(this.alreadmount_data[i])
668
-              //     }
669
-              // }
660
+           
670
             } else {
661
             } else {
671
               this.$message.error(res.data.msg);
662
               this.$message.error(res.data.msg);
672
             }
663
             }

+ 7 - 7
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

62
         <li v-if=" isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
62
         <li v-if=" isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
63
           <label>总量: </label>
63
           <label>总量: </label>
64
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
64
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
65
-          <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id !=45">
65
+          <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id !=45 && this.$store.getters.xt_user.template_info.org_id != 10600">
66
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
66
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
67
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 10234 && this.$store.getters.xt_user.template_info.template_id != 65">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
68
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 10234 ||  this.$store.getters.xt_user.template_info.template_id== 65)">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
67
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 10234 && this.$store.getters.xt_user.template_info.template_id != 65  && this.$store.getters.xt_user.template_info.org_id != 10600">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
68
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 10234 ||  this.$store.getters.xt_user.template_info.template_id== 65 || this.$store.getters.xt_user.template_info.org_id == 10600)">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
69
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >
69
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >
70
             
70
             
71
               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675">
71
               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675">
204
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
204
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
205
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
205
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
206
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
206
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
207
-            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 65 && this.$store.getters.xt_user.template_info.template_id!=0">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
208
-            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38  || this.$store.getters.xt_user.template_info.template_id == 65 ||  this.$store.getters.xt_user.template_info.template_id == 0)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
207
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 65 && this.$store.getters.xt_user.template_info.template_id!=0 && this.$store.getters.xt_user.template_info.org_id != 10600">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
208
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38  || this.$store.getters.xt_user.template_info.template_id == 65 ||  this.$store.getters.xt_user.template_info.template_id == 0 || this.$store.getters.xt_user.template_info.org_id == 10600)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
209
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
209
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
210
               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
210
               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
211
                  {{ anticoagulant_shouji != "0" ? "mg" : "" }}
211
                  {{ anticoagulant_shouji != "0" ? "mg" : "" }}
315
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
315
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
316
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
316
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
317
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
317
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
318
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 65 ">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
319
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 65)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
318
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 65 && this.$store.getters.xt_user.template_info.org_id!=10600 ">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
319
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 65 || this.$store.getters.xt_user.template_info.org_id == 10600)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
320
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
320
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
321
               <span v-if="this.$store.getters.xt_user.template_info.org_id ==9671">
321
               <span v-if="this.$store.getters.xt_user.template_info.org_id ==9671">
322
               {{ anticoagulant_weichi != "0" ? "mg/h" : "" }}
322
               {{ anticoagulant_weichi != "0" ? "mg/h" : "" }}

+ 2 - 1
src/xt_pages/dialysis/details/consumable/dialysisGather.vue View File

441
     import { uParseTime } from "@/utils/tools";
441
     import { uParseTime } from "@/utils/tools";
442
     import {getRemindPrintList,saveRemindPrint} from '@/api/schedule'
442
     import {getRemindPrintList,saveRemindPrint} from '@/api/schedule'
443
     import { getDataConfig } from '@/utils/data'
443
     import { getDataConfig } from '@/utils/data'
444
+    import print from "print-js";
444
     const moment = require('moment')
445
     const moment = require('moment')
445
     import store from "@/store";
446
     import store from "@/store";
446
     export default {
447
     export default {
659
                     if(this.getBloodAccessOption(list[i].dialysis_prescription.blood_access).indexOf("导管")!=-1){
660
                     if(this.getBloodAccessOption(list[i].dialysis_prescription.blood_access).indexOf("导管")!=-1){
660
                          total_one ++
661
                          total_one ++
661
                     }
662
                     }
662
-                    if(this.getBloodAccessOption(list[i].dialysis_prescription.blood_access).indexOf('内瘘')==-1){
663
+                    if(this.getBloodAccessOption(list[i].dialysis_prescription.blood_access).indexOf('内瘘')!=-1){
663
                         total_two ++
664
                         total_two ++
664
                     }
665
                     }
665
                   }
666
                   }

+ 1 - 1
src/xt_pages/dialysis/newDoctorAdvice.vue View File

1332
          if(nameOne == '全部'){
1332
          if(nameOne == '全部'){
1333
           nameOne = ""
1333
           nameOne = ""
1334
         }
1334
         }
1335
-      this.$router.push({ path: "/dialysis/signPrint",query:{time: new Date(this.time).getTime(),delivery_way:name,execution_frequency:nameOne,patient_id:this.patient_id,keyword:this.keyword} });
1335
+      this.$router.push({ path: "/dialysis/signPrint",query:{time: new Date(this.time).getTime(),delivery_way:name,execution_frequency:nameOne,patient_id:this.patient_id,keyword:this.keyword,excution_way:this.excution_way} });
1336
 
1336
 
1337
     },
1337
     },
1338
     batchPrintActionOne: function() {
1338
     batchPrintActionOne: function() {

+ 23 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue View File

1545
       return "";
1545
       return "";
1546
     },
1546
     },
1547
     getAge: function (val) {
1547
     getAge: function (val) {
1548
-      if (val.birthday != 0) {
1549
-        return jsGetAge(val.birth, "-");
1550
-      } else {
1551
-        return "";
1548
+      // if (val.birthday != 0) {
1549
+      //   return jsGetAge(val.birth, "-");
1550
+      // } else {
1551
+      //   return "";
1552
+      // }
1553
+      if (val.id_card_no) {
1554
+        var thisLen = val.id_card_no.length
1555
+
1556
+        var birth = ''
1557
+        if (thisLen == 15) {
1558
+          birth = '19' + val.id_card_no.substr(6, 6)
1559
+        } else {
1560
+          birth = val.id_card_no.substr(6, 8)
1561
+        }
1562
+        var birthtwo =
1563
+          birth.substr(0, 4) +
1564
+          '-' +
1565
+          birth.substr(4, 2) +
1566
+          '-' +
1567
+          birth.substr(6, 2)
1568
+
1569
+        var age = jsGetAge(birthtwo, '-')
1570
+        return age
1552
       }
1571
       }
1553
     },
1572
     },
1554
     newAdviceGroupObject: function () {
1573
     newAdviceGroupObject: function () {

+ 9 - 3
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

1580
       });
1580
       });
1581
     },
1581
     },
1582
     toExport() {
1582
     toExport() {
1583
-
1583
+      
1584
+      console.log("EXPORTLSOT",this.exportList)
1584
       if (this.order_id == "") {
1585
       if (this.order_id == "") {
1585
         this.$message.error("请勾选出库单");
1586
         this.$message.error("请勾选出库单");
1586
         return;
1587
         return;
1587
       }
1588
       }
1588
-     
1589
+      
1589
       for (let i = 0; i < this.exportList.length; i++) {
1590
       for (let i = 0; i < this.exportList.length; i++) {
1590
         this.exportList[i].retail_price_one = 0
1591
         this.exportList[i].retail_price_one = 0
1591
         if(this.outInfoList.length!=null){
1592
         if(this.outInfoList.length!=null){
1592
           for(let j=0;j<this.outInfoList.length;j++){
1593
           for(let j=0;j<this.outInfoList.length;j++){
1593
            if(this.exportList[i].warehouse_out_id == this.outInfoList[j].warehouse_out_id && this.exportList[i].drug_id == this.outInfoList[j].drug_id){
1594
            if(this.exportList[i].warehouse_out_id == this.outInfoList[j].warehouse_out_id && this.exportList[i].drug_id == this.outInfoList[j].drug_id){
1594
-            this.exportList[i].retail_price_one = this.outInfoList[j].price
1595
+             this.exportList[i].retail_price_one = this.outInfoList[j].price
1595
            }
1596
            }
1596
         }
1597
         }
1597
         }
1598
         }
1630
             this.exportList[i].dealer = this.dealerList[z].dealer_name;
1631
             this.exportList[i].dealer = this.dealerList[z].dealer_name;
1631
           }
1632
           }
1632
         }
1633
         }
1634
+        if(this.exportList[i].retail_price ==0){
1635
+           this.exportList[i].retail_price = (this.exportList[i].count * this.exportList[i].price).toFixed(2)
1636
+        }
1633
         this.exportList[i].ctime = this.getTime(this.exportList[i].ctime)
1637
         this.exportList[i].ctime = this.getTime(this.exportList[i].ctime)
1634
       }
1638
       }
1635
 
1639
 
1682
       
1686
       
1683
 
1687
 
1684
         const data = this.formatJson(filterVal, this.exportList);
1688
         const data = this.formatJson(filterVal, this.exportList);
1689
+        console.log("Datewoo2o2o2o",data)
1690
+      
1685
         excel.export_json_to_excel({
1691
         excel.export_json_to_excel({
1686
           header: tHeader,
1692
           header: tHeader,
1687
           data,
1693
           data,

+ 30 - 2
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue View File

249
             </template>
249
             </template>
250
           </el-table-column>
250
           </el-table-column>
251
 
251
 
252
+
253
+          <el-table-column label="使用患者"  width="150" align="center">
254
+            <template slot-scope="scope">
255
+               <el-select size="small" v-model="scope.row.patient_id" filterable placeholder="请选择出库对象">
256
+                <el-option
257
+                  v-for="(option, index) in patients"
258
+                  :key="index"
259
+                  :label="option.name"
260
+                  :value="option.id">
261
+                </el-option>
262
+               </el-select>
263
+            </template>
264
+          </el-table-column>
265
+
252
           <!-- <el-table-column width="120" align="center">
266
           <!-- <el-table-column width="120" align="center">
253
             <template slot="header" slot-scope="scope">
267
             <template slot="header" slot-scope="scope">
254
               <span>进货价</span>
268
               <span>进货价</span>
502
       showCheck:false,
516
       showCheck:false,
503
       showReturnCheck:false,
517
       showReturnCheck:false,
504
       warehouse_out_id:0,
518
       warehouse_out_id:0,
519
+      patients:[],
505
     };
520
     };
506
   },
521
   },
507
   methods: {
522
   methods: {
544
             response.data.data.configlist.drug_storehouse_out;
559
             response.data.data.configlist.drug_storehouse_out;
545
           this.list = response.data.data.list;
560
           this.list = response.data.data.list;
546
           this.doctorList = response.data.data.doctorList;
561
           this.doctorList = response.data.data.doctorList;
547
-          
562
+          var obj ={id:0,name:"系统"}
563
+          this.patients =[]
564
+          this.patients.push(obj)
565
+          if(response.data.data.patients!=null){
566
+            for(let i=0;i<response.data.data.patients.length;i++){
567
+              this.patients.push(response.data.data.patients[i])
568
+            }
569
+          }
548
           // this.doctorList.push({index:999,user_name:"护士站", admin_user_id:999})
570
           // this.doctorList.push({index:999,user_name:"护士站", admin_user_id:999})
549
         
571
         
550
         }
572
         }
594
       tempObj["max_unit_fisrt"] = 0;
616
       tempObj["max_unit_fisrt"] = 0;
595
       tempObj["min_unit_fisrt"] = 0;
617
       tempObj["min_unit_fisrt"] = 0;
596
       tempObj["total_price"] = 0;
618
       tempObj["total_price"] = 0;
619
+      tempObj["patient_id"] =0
620
+      tempObj["expiry_date"] = ""
621
+      tempObj["product_date"] = ""
597
       this.recordInfo.recordData.push(tempObj);
622
       this.recordInfo.recordData.push(tempObj);
598
     },
623
     },
599
     handleDelete: function (index, row) {
624
     handleDelete: function (index, row) {
779
                 warehousingOutInfo[i].last_price = warehousingOutInfo[i].price
804
                 warehousingOutInfo[i].last_price = warehousingOutInfo[i].price
780
                 warehousingOutInfo[i].max_unit = warehousingOutInfo[i].count_unit
805
                 warehousingOutInfo[i].max_unit = warehousingOutInfo[i].count_unit
781
                 warehousingOutInfo[i].count = warehousingOutInfo[i].count.toString()
806
                 warehousingOutInfo[i].count = warehousingOutInfo[i].count.toString()
782
-
807
+                warehousingOutInfo[i].patient_id = warehousingOutInfo[i].patient_id
783
                 for(let z=0;z<drugTypeList.length;z++){
808
                 for(let z=0;z<drugTypeList.length;z++){
784
                    if(warehousingOutInfo[i].drug.drug_type == drugTypeList[z].value){
809
                    if(warehousingOutInfo[i].drug.drug_type == drugTypeList[z].value){
785
                       warehousingOutInfo[i].drug_type = drugTypeList[z].name
810
                       warehousingOutInfo[i].drug_type = drugTypeList[z].name
1208
     tempObj["max_unit_fisrt"] = 0;
1233
     tempObj["max_unit_fisrt"] = 0;
1209
     tempObj["min_unit_fisrt"] = 0;
1234
     tempObj["min_unit_fisrt"] = 0;
1210
     tempObj["total_price"] = 0;
1235
     tempObj["total_price"] = 0;
1236
+    tempObj["patient_id"] = 0
1237
+    tempObj["product_date"] = ""
1238
+    tempObj["expiry_date"]=""
1211
     this.recordInfo.recordData.push(tempObj);
1239
     this.recordInfo.recordData.push(tempObj);
1212
     this.GetConfigInfo();
1240
     this.GetConfigInfo();
1213
     this.propForm.goodUnit = this.$store.getters.good_unit;
1241
     this.propForm.goodUnit = this.$store.getters.good_unit;

+ 30 - 4
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue View File

276
             </template>
276
             </template>
277
           </el-table-column>
277
           </el-table-column>
278
 
278
 
279
+          <el-table-column label="使用患者" width="140" align="center">
280
+            <template slot-scope="scope">
281
+              <el-select
282
+                v-model="scope.row.patient_id"
283
+                filterable
284
+                placeholder="请选择使用患者"
285
+                :disabled="drug_show"
286
+              >
287
+                <el-option
288
+                  v-for="(option, index) in patients"
289
+                  :key="index"
290
+                  :label="option.name"
291
+                  :value="option.id"
292
+                >
293
+                </el-option>
294
+              </el-select>
295
+            </template>
296
+          </el-table-column>
297
+
279
           <!-- <el-table-column width="120" align="center">
298
           <!-- <el-table-column width="120" align="center">
280
             <template slot="header" slot-scope="scope">
299
             <template slot="header" slot-scope="scope">
281
               <span>进货价</span>
300
               <span>进货价</span>
530
       storehouse_id: "",
549
       storehouse_id: "",
531
       is_check:0,
550
       is_check:0,
532
       order_id:0,
551
       order_id:0,
552
+      patients:[]
533
     };
553
     };
534
   },
554
   },
535
   methods: {
555
   methods: {
664
       tempObj["total_count"] = 0;
684
       tempObj["total_count"] = 0;
665
       tempObj["max_unit_fisrt"] = 0;
685
       tempObj["max_unit_fisrt"] = 0;
666
       tempObj["min_unit_fisrt"] = 0;
686
       tempObj["min_unit_fisrt"] = 0;
687
+      tempObj["patient_id"] =0
667
       this.recordInfo.recordData.push(tempObj);
688
       this.recordInfo.recordData.push(tempObj);
668
     },
689
     },
669
     handleDelete: function (index, row) {
690
     handleDelete: function (index, row) {
933
               response.data.data.list[i].drug.min_unit +
954
               response.data.data.list[i].drug.min_unit +
934
               "/" +
955
               "/" +
935
               response.data.data.list[i].drug.max_unit;
956
               response.data.data.list[i].drug.max_unit;
936
-            // if(response.data.data.list[i].count%response.data.data.list[i].drug.min_number == 0){
937
-            //    response.data.data.list[i].count = response.data.data.list[i].count/response.data.data.list[i].drug.min_number
938
-            //    response.data.data.list[i].count_unit = response.data.data.list[i].drug.max_unit
939
-            // }
957
+          
940
             if (
958
             if (
941
               response.data.data.list[i].number == "0" ||
959
               response.data.data.list[i].number == "0" ||
942
               response.data.data.list[i].number == 0
960
               response.data.data.list[i].number == 0
1017
           );
1035
           );
1018
           this.houstList = response.data.data.houstList;
1036
           this.houstList = response.data.data.houstList;
1019
           this.doctorList = response.data.data.doctorList;
1037
           this.doctorList = response.data.data.doctorList;
1038
+          var obj ={id:0,name:"系统"}
1039
+          this.patients =[]
1040
+          this.patients.push(obj)
1041
+          if(response.data.data.patients!=null){
1042
+            for(let i=0;i<response.data.data.patients.length;i++){
1043
+              this.patients.push(response.data.data.patients[i])
1044
+            }
1045
+          }
1020
         }
1046
         }
1021
 
1047
 
1022
         if (this.recordInfo.recordData.length == 0) {
1048
         if (this.recordInfo.recordData.length == 0) {

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

201
                </el-select>
201
                </el-select>
202
             </template>
202
             </template>
203
           </el-table-column>
203
           </el-table-column>
204
+
205
+
206
+          <el-table-column label="使用患者"  width="150" align="center">
207
+            <template slot-scope="scope">
208
+               <el-select size="small" v-model="scope.row.patient_id" filterable placeholder="请选择出库对象">
209
+                <el-option
210
+                  v-for="(option, index) in patients"
211
+                  :key="index"
212
+                  :label="option.name"
213
+                  :value="option.id">
214
+                </el-option>
215
+               </el-select>
216
+            </template>
217
+          </el-table-column>
204
 <!--
218
 <!--
205
           <el-table-column  width="150" align="center">
219
           <el-table-column  width="150" align="center">
206
             <template slot="header" slot-scope="scope">
220
             <template slot="header" slot-scope="scope">
435
       warehouseOut_id:0,
449
       warehouseOut_id:0,
436
       is_check:0,
450
       is_check:0,
437
       loading:false,
451
       loading:false,
452
+      patients:[]
438
     };
453
     };
439
   },
454
   },
440
   methods: {
455
   methods: {
500
           this.list = response.data.data.list
515
           this.list = response.data.data.list
501
           this.storehouse_id = response.data.data.configlist.storehouse_out_info
516
           this.storehouse_id = response.data.data.configlist.storehouse_out_info
502
           this.doctorList =  response.data.data.doctorList
517
           this.doctorList =  response.data.data.doctorList
518
+          var obj ={id:0,name:"系统"}
519
+          this.patients =[]
520
+          this.patients.push(obj)
521
+          if(response.data.data.patients!=null){
522
+            for(let i=0;i<response.data.data.patients.length;i++){
523
+              this.patients.push(response.data.data.patients[i])
524
+            }
525
+          }
526
+          
503
         }
527
         }
504
       });
528
       });
505
     },
529
     },
549
       tempObj["stock_count"] = ""
573
       tempObj["stock_count"] = ""
550
       tempObj["id"] = 0
574
       tempObj["id"] = 0
551
       tempObj['register_number'] = ''
575
       tempObj['register_number'] = ''
576
+      tempObj['patient_id'] =0
552
       this.recordInfo.recordData.push(tempObj);
577
       this.recordInfo.recordData.push(tempObj);
553
     },
578
     },
554
     handleDelete: function(index, row) {
579
     handleDelete: function(index, row) {
800
                     warehouseOutInfoList[i].name =  warehouseOutInfoList[i].GoodInfo.specification_name +"/"+ warehouseOutInfoList[i].GoodInfo.packing_unit
825
                     warehouseOutInfoList[i].name =  warehouseOutInfoList[i].GoodInfo.specification_name +"/"+ warehouseOutInfoList[i].GoodInfo.packing_unit
801
                     warehouseOutInfoList[i].expiry_date = this.getTimeOne(warehouseOutInfoList[i].expiry_date)
826
                     warehouseOutInfoList[i].expiry_date = this.getTimeOne(warehouseOutInfoList[i].expiry_date)
802
                     warehouseOutInfoList[i].product_date = this.getTimeOne(warehouseOutInfoList[i].product_date)
827
                     warehouseOutInfoList[i].product_date = this.getTimeOne(warehouseOutInfoList[i].product_date)
828
+                    warehouseOutInfoList[i].patient_id = warehouseOutInfoList[i].patient_id
803
 
829
 
804
                  }
830
                  }
805
                  this.recordInfo.recordData = warehouseOutInfoList
831
                  this.recordInfo.recordData = warehouseOutInfoList
890
             this.recordInfo.recordData[i].stock_count = total_count
916
             this.recordInfo.recordData[i].stock_count = total_count
891
             this.recordInfo.recordData[i].license_number = val.number
917
             this.recordInfo.recordData[i].license_number = val.number
892
             this.recordInfo.recordData[i].register_number = val.register_number
918
             this.recordInfo.recordData[i].register_number = val.register_number
919
+            this.recordInfo.recordData[i].patient_id = 0
893
              
920
              
894
             if( val.first_xt_warehouse_info!=null&&val.first_xt_warehouse_info.expiry_date >0){
921
             if( val.first_xt_warehouse_info!=null&&val.first_xt_warehouse_info.expiry_date >0){
895
               this.recordInfo.recordData[i].expiry_date = this.getTimeOne(val.first_xt_warehouse_info.expiry_date)
922
               this.recordInfo.recordData[i].expiry_date = this.getTimeOne(val.first_xt_warehouse_info.expiry_date)
1057
     tempObj["stock_count"] = ""
1084
     tempObj["stock_count"] = ""
1058
     tempObj["id"] = 0
1085
     tempObj["id"] = 0
1059
     tempObj['register_number'] = ''
1086
     tempObj['register_number'] = ''
1087
+    tempObj['patient_id'] = 0
1060
     this.recordInfo.recordData.push(tempObj);
1088
     this.recordInfo.recordData.push(tempObj);
1061
     this.GetConfigInfo();
1089
     this.GetConfigInfo();
1062
     this.propForm.goodUnit = this.$store.getters.good_unit;
1090
     this.propForm.goodUnit = this.$store.getters.good_unit;

+ 25 - 0
src/xt_pages/stock/stockOutOrderEdit.vue View File

207
             </template>
207
             </template>
208
           </el-table-column>
208
           </el-table-column>
209
 
209
 
210
+          
211
+          <el-table-column label="使用患者"  width="150" align="center">
212
+            <template slot-scope="scope">
213
+               <el-select size="small" v-model="scope.row.patient_id" filterable placeholder="请选择使用患者">
214
+                <el-option
215
+                  v-for="(option, index) in patients"
216
+                  :key="index"
217
+                  :label="option.name"
218
+                  :value="option.id">
219
+                </el-option>
220
+               </el-select>
221
+            </template>
222
+          </el-table-column>
223
+
210
           <el-table-column label="总价" width="150" align="center">
224
           <el-table-column label="总价" width="150" align="center">
211
             <template slot-scope="scope">
225
             <template slot-scope="scope">
212
               {{calculate(scope.row.price*scope.row.count)}}
226
               {{calculate(scope.row.price*scope.row.count)}}
402
         showCheck:false,
416
         showCheck:false,
403
         showReturnCheck:false,
417
         showReturnCheck:false,
404
         loading:false,
418
         loading:false,
419
+        patients:[],
405
       }
420
       }
406
     },
421
     },
407
     methods: {
422
     methods: {
517
         tempObj["buy_price"]= ""
532
         tempObj["buy_price"]= ""
518
         tempObj["stock_count"] = ""
533
         tempObj["stock_count"] = ""
519
         tempObj['register_number'] = ''
534
         tempObj['register_number'] = ''
535
+        tempObj['patient_id'] =0
520
         this.recordInfo.recordData.push(tempObj)
536
         this.recordInfo.recordData.push(tempObj)
521
       },
537
       },
522
       handleDelete: function(index, row) {
538
       handleDelete: function(index, row) {
903
             if(response.data.data.list[i].manufacturer ==0 ){
919
             if(response.data.data.list[i].manufacturer ==0 ){
904
                response.data.data.list[i].manufacturer = ""
920
                response.data.data.list[i].manufacturer = ""
905
             }
921
             }
922
+            response.data.data.list[i].patient_id = response.data.data.list[i].patient_id
906
             this.recordInfo.recordData.push(response.data.data.list[i])
923
             this.recordInfo.recordData.push(response.data.data.list[i])
907
           }
924
           }
908
           this.storelist = response.data.data.storelist
925
           this.storelist = response.data.data.storelist
909
           this.warehouse_out_time = this.getTime(response.data.data.out.warehouse_out_time,"{y}-{m}-{d}")
926
           this.warehouse_out_time = this.getTime(response.data.data.out.warehouse_out_time,"{y}-{m}-{d}")
910
           this.storehouse_id = response.data.data.out.storehouse_id
927
           this.storehouse_id = response.data.data.out.storehouse_id
928
+          var obj ={id:0,name:"系统"}
929
+          this.patients =[]
930
+          this.patients.push(obj)
931
+          if(response.data.data.patients!=null){
932
+            for(let i=0;i<response.data.data.patients.length;i++){
933
+              this.patients.push(response.data.data.patients[i])
934
+            }
935
+          }
911
           loading.close();
936
           loading.close();
912
         }
937
         }
913
       })
938
       })

+ 1 - 1
src/xt_pages/workforce/components/tableWeeks.vue View File

274
           }}</span>
274
           }}</span>
275
                     <span v-if="scope.row.dialysissolution.anticoagulant == 2">{{
275
                     <span v-if="scope.row.dialysissolution.anticoagulant == 2">{{
276
             scope.row.dialysissolution.anticoagulant_zongliang
276
             scope.row.dialysissolution.anticoagulant_zongliang
277
-              ? scope.row.dialysissolution.anticoagulant_zongliang + 'iu'
277
+              ? scope.row.dialysissolution.anticoagulant_zongliang + 'mg'
278
               : ''
278
               : ''
279
           }}</span>
279
           }}</span>
280
                     <span v-if="scope.row.dialysissolution.anticoagulant == 3">{{
280
                     <span v-if="scope.row.dialysissolution.anticoagulant == 3">{{

+ 1 - 1
src/xt_pages/workforce/remind_print_setting.vue View File

128
                 <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">干体重:{{main_collection.assessmentbefor.dry_weight}}</div>
128
                 <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">干体重:{{main_collection.assessmentbefor.dry_weight}}</div>
129
                 <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">透前体重:{{main_collection.assessmentbefor.weight_before}}</div>
129
                 <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">透前体重:{{main_collection.assessmentbefor.weight_before}}</div>
130
                 <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">体重增加:{{(main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.dry_weight).toFixed(2)}}</div>
130
                 <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">体重增加:{{(main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.dry_weight).toFixed(2)}}</div>
131
-                <div v-if="org_id!=10278">用法:静脉注射</div>
131
+                <div v-if="org_id!=10278 && org_id!=10600">用法:静脉注射</div>
132
                 <!-- 透析器灌流器 -->
132
                 <!-- 透析器灌流器 -->
133
                
133
                
134
                  <div>
134
                  <div>