XMLWAN 3 lat temu
rodzic
commit
eebdff866c

+ 2 - 2
config/dev.env.js Wyświetl plik

@@ -7,8 +7,8 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  BASE_API: '"http://localhost:9531"',
10
+  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  // BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js Wyświetl plik

@@ -29,8 +29,8 @@ module.exports = {
29 29
 
30 30
     // host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32
-    // host: 'xt.test.sgjyun.com',
33
-    host: 'localhost',
32
+    host: 'xt.test.sgjyun.com',
33
+    // host: 'localhost',
34 34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35 35
     autoOpenBrowser: true,
36 36
     errorOverlay: true,

+ 1 - 0
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Wyświetl plik

@@ -373,6 +373,7 @@
373 373
             "id":this.form.id,
374 374
           }
375 375
           console.log("prams222",params)
376
+         
376 377
           createCaseHistory(params).then(response => {
377 378
             if (response.data.state == 0) {
378 379
               this.$message.error("患者病历已存在")

+ 18 - 1
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Wyświetl plik

@@ -126,7 +126,7 @@
126 126
                       placeholder="请输入批号"
127 127
                       v-model="scope.row.batch_number"
128 128
                     ></el-input> -->
129
-                    <el-select v-model="scope.row.batch_number" filterable placeholder="请选择" >
129
+                    <el-select v-model="scope.row.batch_number" filterable placeholder="请选择" @change="changeBatchNumber(scope.row)">
130 130
                       <el-option
131 131
                         v-for="(item,index) in numberList"
132 132
                         :key="index"
@@ -573,6 +573,7 @@ export default {
573 573
                 this.recordInfo.recordData[i].batch_number = this.numberList[y].batch_number
574 574
                 this.recordInfo.recordData[i].warehouse_info_id = this.numberList[y].id
575 575
               }
576
+           
576 577
             }
577 578
           }
578 579
           const params = {
@@ -689,6 +690,7 @@ export default {
689 690
             this.recordInfo.recordData[i].min_price = val.min_price
690 691
             this.recordInfo.recordData[i].number = val.number
691 692
             this.recordInfo.recordData[i].unit = val.max_unit
693
+            
692 694
             if(val.retail_price == 0){
693 695
               this.recordInfo.recordData[i].price = ""
694 696
             }else{
@@ -717,6 +719,7 @@ export default {
717 719
            if(response.data.state == 1){
718 720
              var list = response.data.data.list
719 721
              console.log("list2222",list)
722
+             this.numberList = []
720 723
              this.numberList = list
721 724
            }
722 725
         })
@@ -739,6 +742,20 @@ export default {
739 742
             }
740 743
           }
741 744
         }
745
+      },
746
+      changeBatchNumber(val){
747
+        console.log("val",val)
748
+        this.getDrugBatchNumber(val.drug_id)
749
+        for(let i=0;i<this.recordInfo.recordData.length;i++){
750
+            if(this.currentIndex == i){
751
+              for(let j=0;j<this.numberList.length;j++){
752
+                  if(this.recordInfo.recordData[i].batch_number == this.numberList[j].id){
753
+                    this.recordInfo.recordData[i].batch_number = this.numberList[j].batch_number
754
+                    this.recordInfo.recordData[i].warehouse_info_id = this.numberList[j].id
755
+                  }
756
+              }
757
+            }
758
+        }
742 759
       }
743 760
   },
744 761
   created() {