Browse Source

BUG处理

yangc 8 years ago
parent
commit
8f78989dc7

+ 5 - 5
components/applyPurchase/BatchPublish.vue

@@ -29,7 +29,7 @@
           </label>
         </td>-->
         <td>
-          <div v-if="item.code && (!item.codeWord || item.codeWord.length == 0)">{{item.code}}</div>
+          <div v-if="item.code && (!item.codeWord || item.codeWord.length == 0)" :title="item.code">{{item.code}}</div>
           <span class="red-text" v-if="!item.code">请完善信息</span>
           <div class="similar-select" v-if="item.codeWord && item.codeWord.length > 0" @click="setShowCodeWord(index, $event)">{{item.code}}</div>
           <ul v-show="item.showCodeWord">
@@ -37,7 +37,7 @@
           </ul>
         </td>
         <td>
-          <div v-if="item.brand && (!item.brandWord || item.brandWord.length == 0)">{{item.brand}}</div>
+          <div v-if="item.brand && (!item.brandWord || item.brandWord.length == 0)" :title="item.brand">{{item.brand}}</div>
           <span class="red-text" v-if="!item.brand">请完善信息</span>
           <div class="similar-select" v-if="item.brandWord && item.brandWord.length > 0" @click="setShowBrandWord(index, $event)">{{item.brand}}</div>
           <ul v-show="item.showBrandWord" class="brand-word-list">
@@ -45,7 +45,7 @@
           </ul>
         </td>
         <td>
-          <div>{{item.amount || '-'}}</div>
+          <div :title="item.amount">{{item.amount || '-'}}</div>
         </td>
         <td class="blue-text">
           <div>
@@ -54,12 +54,12 @@
           </div>
         </td>
         <td>
-          <div>
+          <div :title="item.encapsulation">
             {{item.encapsulation || '-'}}
           </div>
         </td>
         <td>
-          <div>
+          <div :title="item.produceDate">
             {{item.produceDate || '-'}}
           </div>
         </td>

+ 3 - 4
components/applyPurchase/PublishApply.vue

@@ -245,10 +245,9 @@
               this.$message.error('品牌不能为空')
             } else if (!this.validObj.deadline) {
               this.$message.error('截止日期不能为空')
-            } else if (!this.validObj.amount || !this.validObj.unitPrice) {
+            } else if (!this.validObj.amount) {
               this.$message.error('请输入正确的数值')
             }
-//            this.$message.error('请填写正确的信息')
           }
         } else {
           this.$router.push('/auth/login?returnUrl=' + window.location.href)
@@ -284,8 +283,8 @@
       },
       checkUnitPrice: function () {
         this.validObj.unitPrice = this.applyObj.unitPrice === '' ? true : this.applyObj.unitPrice > 0 && this.applyObj.unitPrice < 100000000
-        if (this.applyObj.unitPrice < 0) {
-          this.$message.error('请输入正确的数值')
+        if (this.applyObj.unitPrice <= 0) {
+          this.$message.error('单价必须是大于0的数字')
         }
         return this.validObj.unitPrice
       },

+ 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.88:8889/platform-b2c/')
+const baseUrl = process.env.BASE_URL || (isProdMode ? 'http://10.10.100.107:8081/platform-b2c/' : 'http://10.1.51.90:8080/platform-b2c/')
 
 module.exports = {
   router: {