Browse Source

处理BUG

wangcz 7 years ago
parent
commit
879d6b09e6
1 changed files with 7 additions and 3 deletions
  1. 7 3
      pages/mobile/center/vendor/sample/index.vue

+ 7 - 3
pages/mobile/center/vendor/sample/index.vue

@@ -37,10 +37,10 @@
         <div class="list-title">
           <span v-if="!isUnread(item.id)" style="color:#15B262;margin-right:.5rem;">已读</span>
           <span v-if="isUnread(item.id)" style="color:#DE4545;margin-right:.5rem;">未读</span>
-          <span>{{item.proofing.date | time}}</span>
+          <span>{{item.date | time}}</span>
           <span class="leave-active" v-if="item.status === 400 && !(item.qty > (item.sendQty || 0))">已送样</span>
-          <span class="over-active" v-if="item.status === 315">已作废</span>
           <span class="leave-active" v-if="item.status === 400 && item.qty > (item.sendQty || 0)">部分送样</span>
+          <span class="over-active" v-if="item.status === 315">已作废</span>
         </div>
         <div class="list-content">
           <div class="item">
@@ -84,7 +84,7 @@
           <div class="item">
             <span>需求日期:</span>
             <label style="color: #333;font-weight: 500">{{item.proofing.delivery | timeDay}}</label>
-            <a style="margin-left:1rem;color:#15B262;" @click="dropClick(item, $event)">送样信息<i class="fa fa-fw fa-angle-down"></i></a>
+            <a v-if="item.status === 400" style="margin-left:1rem;color:#15B262;" @click="dropClick(item, $event)">送样信息<i class="fa fa-fw fa-angle-down"></i></a>
           </div>
           <template  v-if="item.isDrop">
             <div v-for="(send, key) in item.sends" style="padding: .2rem;">
@@ -243,6 +243,10 @@
     methods: {
       lookItem(bill) {
         this.showModal = true
+        if (this.isUnread(bill.id)) {
+          let lists = []
+          this.$http.get(`/sale/sample/setRead`, {params: lists.push(bill.id)})
+        }
         this.$http.get(`/sale/sample/${bill.id}/send`)
           .then(res => {
             this.modalObj = bill