Browse Source

Merge branch 'feature-201817-yc'

# Conflicts:
#	components/provider/Suppliers.vue
yangc 7 years ago
parent
commit
9ef7b9c279

+ 9 - 7
components/applyPurchase/articleOne.vue

@@ -181,14 +181,16 @@
       }
       }
     },
     },
     mounted () {
     mounted () {
-      document.getElementsByClassName('el-upload-dragger')[0].onclick = function (event) {
-        event.stopPropagation()
-      }
       let _this = this
       let _this = this
-      document.body.onclick = function () {
-        _this.showSimilarCodeList = false
-        _this.showSimilarBrandList = false
-      }
+      this.$nextTick(() => {
+        document.getElementsByClassName('el-upload-dragger')[0].onclick = function (event) {
+          event.stopPropagation()
+        }
+        document.body.onclick = function () {
+          _this.showSimilarCodeList = false
+          _this.showSimilarBrandList = false
+        }
+      })
     },
     },
     methods: {
     methods: {
       emptyForm: function () {
       emptyForm: function () {

+ 2 - 2
components/common/PcSearchHeader.vue

@@ -125,7 +125,7 @@
             } else if (this.similarList.component[0] && this.keyword === this.similarList.component[0].code) {
             } else if (this.similarList.component[0] && this.keyword === this.similarList.component[0].code) {
               sType = 'code'
               sType = 'code'
             } else {
             } else {
-              let arr = [...this.similarList.component, ...this.similarList.brand, ...this.similarList.kind]
+              let arr = [ ...this.similarList.brand, ...this.similarList.kind, ...this.similarList.component]
               if (arr[0]) {
               if (arr[0]) {
                 if (arr[0].nameEn) {
                 if (arr[0].nameEn) {
                   this.keyword = arr[0].nameEn
                   this.keyword = arr[0].nameEn
@@ -147,7 +147,7 @@
             } else if (this.similarList.pCmpCode[0] && this.keyword === this.similarList.pCmpCode[0].pCmpCode) {
             } else if (this.similarList.pCmpCode[0] && this.keyword === this.similarList.pCmpCode[0].pCmpCode) {
               sType = 'pCmpCode'
               sType = 'pCmpCode'
             } else {
             } else {
-              let arr = [...this.similarList.pCmpCode, ...this.similarList.pBrandEn, ...this.similarList.kind]
+              let arr = [...this.similarList.pBrandEn, ...this.similarList.kind, ...this.similarList.pCmpCode]
               if (arr[0]) {
               if (arr[0]) {
                 if (arr[0].nameEn) {
                 if (arr[0].nameEn) {
                   this.keyword = arr[0].nameEn
                   this.keyword = arr[0].nameEn

+ 6 - 2
components/mobile/MobileHeader.vue

@@ -108,7 +108,7 @@
         return this.$store.state.componentDetail.detail.data
         return this.$store.state.componentDetail.detail.data
       },
       },
       showEnHeader () {
       showEnHeader () {
-        return this.startWith(this.$route.path, '/mobile/center')
+        return this.startWith(this.$route.path, '/mobile/center') || this.startWith(this.$route.path, '/mobile/order')
       }
       }
 //      showHeader () {
 //      showHeader () {
 //        return this.$route.path !== '/' || !this.$route.path || this.$route.path === ''
 //        return this.$route.path !== '/' || !this.$route.path || this.$route.path === ''
@@ -210,7 +210,11 @@
           title = '订单详情'
           title = '订单详情'
         } else if (this.startWith(val, '/mobile/order')) {
         } else if (this.startWith(val, '/mobile/order')) {
           this.showSearchIcon = false
           this.showSearchIcon = false
-          title = '订单中心'
+          if (query.type === 'buyer') {
+            title = '采购订单'
+          } else {
+            title = '销售订单'
+          }
         } else {
         } else {
           this.showSearchIcon = true
           this.showSearchIcon = true
           title = '优软商城'
           title = '优软商城'

+ 1 - 1
components/provider/Suppliers.vue

@@ -19,7 +19,7 @@
             <a @click="goStoreApply" class="btn-sure"><button class="btn btn-primary">立即入驻</button></a>
             <a @click="goStoreApply" class="btn-sure"><button class="btn btn-primary">立即入驻</button></a>
           </td>
           </td>
         </tr>
         </tr>
-        <nuxt-link tag="tr" :to="'/store/' + store.uuid" v-for="store in stores.content" v-if="store" v-bind:key="store.uuid">
+        <nuxt-link tag="tr" :to="'/store/' + store.uuid" :key="store.uuid" v-for="store in stores.content" v-if="store">
           <td>
           <td>
             <div class="logo">
             <div class="logo">
               <a :href="'/store/' + store.uuid" target="_blank"><img :src="store.logoUrl || '/images/store/common/default.png'" :alt="store.storeName"></a>
               <a :href="'/store/' + store.uuid" target="_blank"><img :src="store.logoUrl || '/images/store/common/default.png'" :alt="store.storeName"></a>

+ 1 - 1
pages/mobile/order/details.vue

@@ -888,7 +888,7 @@
   }
   }
   .order-wrapper {
   .order-wrapper {
     background: #f1f3f6;
     background: #f1f3f6;
-    margin: 0.88rem 0 0.98rem 0;
+    margin: 1.26rem 0 0.98rem 0;
     height: calc(100vh - 0.88rem - 0.96rem);
     height: calc(100vh - 0.88rem - 0.96rem);
     overflow-y: scroll;
     overflow-y: scroll;
     .order-details-wrap {
     .order-details-wrap {

+ 1 - 1
pages/mobile/order/index.vue

@@ -827,7 +827,7 @@
   }
   }
 .order-wrapper {
 .order-wrapper {
   background: #f1f3f6;
   background: #f1f3f6;
-  margin: 0.88rem 0 0.98rem 0;
+  margin: 1.26rem 0 0.98rem 0;
   height: calc(100vh - 0.88rem - 0.96rem);
   height: calc(100vh - 0.88rem - 0.96rem);
   overflow-y: scroll;
   overflow-y: scroll;
   /*padding-bottom: 0.96rem;*/
   /*padding-bottom: 0.96rem;*/

+ 1 - 1
pages/mobile/order/logistics.vue

@@ -101,7 +101,7 @@
   }
   }
   .order-wrapper {
   .order-wrapper {
     background: #f1f3f6;
     background: #f1f3f6;
-    margin: 0.88rem 0 0.98rem 0;
+    margin: 1.26rem 0 0.98rem 0;
     height: calc(100vh - 0.88rem - 0.98rem);
     height: calc(100vh - 0.88rem - 0.98rem);
     overflow-y: scroll;
     overflow-y: scroll;
     .logistics_top {
     .logistics_top {