XMLWAN 3 years ago
parent
commit
eebdff866c

+ 2 - 2
config/dev.env.js View File

7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
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"',
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
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js View File

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

+ 1 - 0
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

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

+ 18 - 1
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue View File

126
                       placeholder="请输入批号"
126
                       placeholder="请输入批号"
127
                       v-model="scope.row.batch_number"
127
                       v-model="scope.row.batch_number"
128
                     ></el-input> -->
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
                       <el-option
130
                       <el-option
131
                         v-for="(item,index) in numberList"
131
                         v-for="(item,index) in numberList"
132
                         :key="index"
132
                         :key="index"
573
                 this.recordInfo.recordData[i].batch_number = this.numberList[y].batch_number
573
                 this.recordInfo.recordData[i].batch_number = this.numberList[y].batch_number
574
                 this.recordInfo.recordData[i].warehouse_info_id = this.numberList[y].id
574
                 this.recordInfo.recordData[i].warehouse_info_id = this.numberList[y].id
575
               }
575
               }
576
+           
576
             }
577
             }
577
           }
578
           }
578
           const params = {
579
           const params = {
689
             this.recordInfo.recordData[i].min_price = val.min_price
690
             this.recordInfo.recordData[i].min_price = val.min_price
690
             this.recordInfo.recordData[i].number = val.number
691
             this.recordInfo.recordData[i].number = val.number
691
             this.recordInfo.recordData[i].unit = val.max_unit
692
             this.recordInfo.recordData[i].unit = val.max_unit
693
+            
692
             if(val.retail_price == 0){
694
             if(val.retail_price == 0){
693
               this.recordInfo.recordData[i].price = ""
695
               this.recordInfo.recordData[i].price = ""
694
             }else{
696
             }else{
717
            if(response.data.state == 1){
719
            if(response.data.state == 1){
718
              var list = response.data.data.list
720
              var list = response.data.data.list
719
              console.log("list2222",list)
721
              console.log("list2222",list)
722
+             this.numberList = []
720
              this.numberList = list
723
              this.numberList = list
721
            }
724
            }
722
         })
725
         })
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
   created() {
761
   created() {