Browse Source

修改BUG

shenjj 7 years ago
parent
commit
fead087336

+ 16 - 13
components/mobile/applyPurchase/SayPrice.vue

@@ -5,11 +5,11 @@
       <div class="say-price" ref="mobileModalBox">
         <div>
           <div class="base-info">
-            <div class="content-line">
-              品牌:<span>{{purchaseDetail.inbrand || '-'}}</span>
+            <div class="content-line clearfix">
+              <div class="pull-left">品牌:</div><span class="pull-left">{{purchaseDetail.inbrand || '-'}}</span>
             </div>
-            <div class="content-line">
-              物料名称:<span>{{purchaseDetail.prodTitle || '-'}}</span>
+            <div class="content-line clearfix">
+              <div class="pull-left">物料名称:</div><span class="pull-left" style="width:5rem;">{{purchaseDetail.prodTitle || '-'}}</span>
             </div>
             <div class="content-line clearfix">
              <div class="pull-left"> 型号:</div><span class="pull-left">{{purchaseDetail.cmpCode || '-'}}</span>
@@ -126,15 +126,18 @@
       RemindBox
     },
     watch: {
-      showSayPriceBox: function (val, old) {
-         if (val) {
-           this.$nextTick(() => {
-             this._initscroll()
-             this.initScroll.scrollTo(0, 0, 0)
-           })
-         }
-        this.sayType = 'current'
-        this.resetSayPrice()
+      'showSayPriceBox': {
+        handler: function(val, old) {
+          if (val) {
+            this.$nextTick(() => {
+              this._initscroll()
+              this.initScroll.scrollTo(0, 0, 0)
+            })
+          }
+          this.sayType = 'current'
+          this.resetSayPrice()
+        },
+        deep: true
       }
     },
     mounted () {

+ 3 - 2
components/mobile/applyPurchase/SeekList.vue

@@ -207,9 +207,10 @@ export default {
                 enuu: this.$store.state.option.user.data.enterprise
                   ? this.$store.state.option.user.data.enterprise.uu
                   : null
+              }).then(() => {
+                this.showSayPriceBox = true
+                this.activeIndex = index
               })
-              this.showSayPriceBox = true
-              this.activeIndex = index
             })
           } else {
             this.setRemindText('抱歉,您需开通卖家功能才可报价')

+ 4 - 0
pages/mobile/center/user/invoice/index.vue

@@ -216,6 +216,10 @@
         this.showDeleteAlert = true
       },
       async addinvoiceFn(ty, item) {
+        if (this.invoiceList.length === 0) {
+          this.goLastPage()
+          return
+        }
         this.showAddinvoice = false
         if (ty) {
           let {data} = await axios.get('/trade/bill/list/personal')