Browse Source

bug修改

yangc 7 years ago
parent
commit
da8b5306b4

+ 1 - 1
components/applyPurchase/BatchPublish.vue

@@ -565,7 +565,7 @@
       isValidDate: function (date) {
         date = this.baseUtils.formatDate(date, 'yyyy-MM-dd hh:mm:ss')
         this.modifyObj.deadline = date
-        let now = new Date().getTime()
+        let now = this.baseUtils.getClearDay(this.baseUtils.formatDate(new Date(), 'yyyy-MM-dd'))
         let time = new Date(date).getTime()
         return !time || (time >= now && time <= now + 1000 * 60 * 60 * 24 * 91)
       },

+ 2 - 2
components/pcb/home/CommodityList.vue

@@ -9,9 +9,9 @@
           <span class="input-group-btn">
             <button type="button" class="btn" id="search_btn" @click="goodsSearch(searchCode)">&nbsp;搜&nbsp;索&nbsp;</button>
           </span>
-          <span class="input-group-btn">
+         <!-- <span class="input-group-btn">
             <button type="button" class="btn sendprove" @click="sendprove()">我要发布产品</button>
-          </span>
+          </span>-->
         </div>
       </div>
       <!-- 产品列表 -->

+ 4 - 4
components/pcb/product/Detail.vue

@@ -29,7 +29,7 @@
           <input type="text" class="form-control">
           <div class="operate-btn inline-block">+</div>-->
           <div class="operate-btn inline-block" @click="fragment.canSub ?subNum():''" :style="!fragment.canSub ?'cursor: not-allowed;':''">-</div>
-          <input type="text" class="form-control" placeholder="数量" v-model="fragment.num" @change="inputNum()"style="padding: 0;min-width: 100px;text-align: center;"/>
+          <input type="text" class="form-control" placeholder="数量" v-model.number="fragment.num" @change="inputNum()"style="padding: 0;min-width: 100px;text-align: center;"/>
           <div class="operate-btn inline-block" @click="fragment.canAdd ?addNum():''" :style="!fragment.canAdd ?'cursor: not-allowed;':''">+</div>
           <span class="reserve-info">
             库存:{{commodity.reserve}}&nbsp;{{commodity.unit}}&nbsp;&nbsp;({{commodity.minBuyQty + commodity.unit}}&nbsp;起订)
@@ -49,15 +49,15 @@
           <img class="identify" src="/images/pcb/identified.png">
           <div class="info-line">
             <span class="inline-block">电话:</span>
-            <span class="inline-block">{{storeInfo.enterprise.enTel}}</span>
+            <span class="inline-block">{{storeInfo.enterprise.enTel || '暂无信息'}}</span>
           </div>
           <div class="info-line">
             <span class="inline-block">传真:</span>
-            <span class="inline-block">{{storeInfo.enterprise.enFax}}</span>
+            <span class="inline-block">{{storeInfo.enterprise.enFax || '暂无信息'}}</span>
           </div>
           <div class="info-line">
             <span class="inline-block">地址:</span>
-            <span class="inline-block">{{storeInfo.enterprise.enAddress}}</span>
+            <span class="inline-block">{{storeInfo.enterprise.enAddress || '暂无信息'}}</span>
           </div>
           <div class="link">
             <span class="link-btn" @click="goLink()"><img src="/images/pcb/link.png" alt="">联系卖家</span>