Browse Source

交期为0判断

yangc 8 years ago
parent
commit
09c8bb610c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      components/applyPurchase/ApplyInfo.vue
  2. 1 1
      nuxt.config.js

+ 1 - 1
components/applyPurchase/ApplyInfo.vue

@@ -221,7 +221,7 @@
                 this.$message.error('单价必须是大于0的数字')
               }
             } else if (!this.validSayPrice.minDay || !this.validSayPrice.maxDay) {
-              if (!this.sayPriceObj.minDay || !this.sayPriceObj.maxDay) {
+              if ((!this.sayPriceObj.minDay && this.sayPriceObj.minDay !== 0) || (!this.sayPriceObj.maxDay && this.sayPriceObj.maxDay !== 0)) {
                 this.$message.error('交期不能为空')
               } else {
                 if (this.sayPriceObj.minDay > 31 || this.sayPriceObj.minDay < 1 || this.sayPriceObj.minDay.toString().indexOf('.') !== -1 || this.sayPriceObj.maxDay > 31 || this.sayPriceObj.maxDay < 1 || this.sayPriceObj.maxDay.toString().indexOf('.') !== -1) {

+ 1 - 1
nuxt.config.js

@@ -1,6 +1,6 @@
 const path = require('path')
 const isProdMode = Object.is(process.env.NODE_ENV, 'production')
-const baseUrl = process.env.BASE_URL || (isProdMode ? 'http://10.10.100.107:8081/platform-b2c/' : 'http://10.1.51.90:8080/platform-b2c/')
+const baseUrl = process.env.BASE_URL || (isProdMode ? 'http://10.10.100.107:8081/platform-b2c/' : 'http://10.1.51.88:8080/platform-b2c/')
 
 module.exports = {
   router: {