chenrui 4 rokov pred
rodič
commit
9e83f18125
1 zmenil súbory, kde vykonal 8 pridanie a 2 odobranie
  1. 8 2
      src/views/SetmealSales/SetmealAttr.vue

+ 8 - 2
src/views/SetmealSales/SetmealAttr.vue

@@ -164,8 +164,14 @@ export default {
     // 重置
     handleReset () {
       this.searchForm.bundle.name = ''
-      this.searchForm.salesChannelNo = undefined
-      this.isSearch = false
+      const salesChannelType = this.authUserInfo.extInfo.channel.salesChannelType
+      if (salesChannelType == 'SALLER') { //  合作商
+        this.searchForm.salesChannelNo = this.partnerList.length > 0 ? this.partnerList[0].salesChannelNo : undefined
+        this.isSearch = true
+      } else {
+        this.searchForm.salesChannelNo = undefined
+        this.isSearch = false
+      }
       this.pageInit(1)
     },
     //  关闭