ccjgmwz 3 vuotta sitten
vanhempi
commit
9ff7a96fa5
3 muutettua tiedostoa jossa 54 lisäystä ja 53 poistoa
  1. 2 2
      .env.production
  2. 51 50
      src/views/houseSelfCollect/acquisitionManagementAdd.vue
  3. 1 1
      vue.config.js

+ 2 - 2
.env.production

@@ -4,8 +4,8 @@
 
 NODE_ENV = 'production'
 # base api
-VUE_APP_BASE_API = 'https://api2.eliangeyun.com'
-#VUE_APP_BASE_API = 'https://apitest.eliangeyun.com'
+#VUE_APP_BASE_API = 'https://api2.eliangeyun.com'
+VUE_APP_BASE_API = 'https://apitest.eliangeyun.com'
 
 # 微服务相关接口配置
 ## 任务消息

+ 51 - 50
src/views/houseSelfCollect/acquisitionManagementAdd.vue

@@ -379,7 +379,7 @@
           //构造查看priceList数据
           this.priceList = []
           this.makeLookPriceList()
-          if(this.$route.query.type == '编辑'){
+          if(this.$route.query.type != '新增'){
                let _data = this.priceList
               for (let i = 0; i < _data.length; i++) {
                 if (i == 0) this.checkList1 = _data[i].checkList
@@ -800,56 +800,57 @@
       },
       // 提交
       submit() {
-        this.isCountShow = false
-        let isValidate = false
-         isValidate = this.validate()
-                if (isValidate) {
-        this.makeTableList()
-        this.baseInfoForm.details = []
-        this.makePriceDataList()
-        this.baseInfoForm.goodsName = this.selectVal
-        switch (this.$route.query.type) {
-          case '查看':
-            this.isCountShow = false;
-            break;
-          case '新增':
-            isValidate = this.validate()
-            if (isValidate) {
-              purchasePriceAdd(this.baseInfoForm).toPromise().then((response) => {
-                // this.tableData = response.records
-                this.isCountShow = false
-              })
-            }
-            break;
-          case '编辑':
-            this.getEditCheckList()
-            isValidate = this.validate()
-            if (isValidate) {
-              purchasePriceEdit(this.baseInfoForm).toPromise().then((response) => {
-                this.isCountShow = false
-              })
-            }
-            break;
-          case '审核中':
-            // this.makePriceDataList()
-            this.getEditCheckList()
-            isValidate = this.validate()
-            if (isValidate) {
-              purchasePriceEdit(this.baseInfoForm).toPromise().then((response) => {
-                let that = this
-                this.$confirm(`是否确定通过?`, {
-                  cancelButtonText: '取消',
-                  confirmButtonText: '确定',
-                  type: 'warning',
-                }).then(() => {
-                  //审核
-                  that.audit(this.baseInfoForm, true, 2)
+          let isValidate = false
+          isValidate = this.validate()
+         
+        if (isValidate) {
+          this.isCountShow = false
+          this.makeTableList()
+          this.baseInfoForm.details = []
+          this.makePriceDataList()
+          this.baseInfoForm.goodsName = this.selectVal
+          switch (this.$route.query.type) {
+            case '查看':
+              this.isCountShow = false;
+              break;
+            case '新增':
+              isValidate = this.validate()
+              if (isValidate) {
+                purchasePriceAdd(this.baseInfoForm).toPromise().then((response) => {
+                  // this.tableData = response.records
+                  this.isCountShow = false
                 })
-              })
-            }
-            break;
-        }
-            }
+              }
+              break;
+            case '编辑':
+              this.getEditCheckList()
+              isValidate = this.validate()
+              if (isValidate) {
+                purchasePriceEdit(this.baseInfoForm).toPromise().then((response) => {
+                  this.isCountShow = false
+                })
+              }
+              break;
+            case '审核中':
+              // this.makePriceDataList()
+              this.getEditCheckList()
+              isValidate = this.validate()
+              if (isValidate) {
+                purchasePriceEdit(this.baseInfoForm).toPromise().then((response) => {
+                  let that = this
+                  this.$confirm(`是否确定通过?`, {
+                    cancelButtonText: '取消',
+                    confirmButtonText: '确定',
+                    type: 'warning',
+                  }).then(() => {
+                    //审核
+                    that.audit(this.baseInfoForm, true, 2)
+                  })
+                })
+              }
+              break;
+          }
+       }
 
       },
       //审核

+ 1 - 1
vue.config.js

@@ -141,7 +141,7 @@ module.exports = {
         // target: 'https://product-server.winsea.com/', //目标地址
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://localhost:8090/',
-        target: 'http://192.168.1.122:9100/',
+        target: 'http://192.168.1.122:8090/',
         // target: 'http://192.168.1.112:8090/',
         // target: 'http://192.168.1.121:8090/',
         // target: 'http://192.168.1.119:8090/',