chenrui 8 ماه پیش
والد
کامیت
f294b966d0
1فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 5 3
      src/views/easyPassManagement/promotionalProducts/list.vue

+ 5 - 3
src/views/easyPassManagement/promotionalProducts/list.vue

@@ -181,7 +181,8 @@ export default {
         promoState: undefined, // 促销状态
         categorySn: undefined, // 商城类目
         shopProductStatus: undefined, // 商城状态
-        shopProductDelFlag: 0// 促销产品标志
+        shopProductDelFlag: 0, // 促销产品标志
+        promoStateList: ['NOT_RELEASE', 'HAVE_RELEASE']// 促销列表只查询这两种状态
       },
       categoryOptions: [], // 产品类目列表
       fieldNames: { label: 'categoryName', value: 'categorySn', children: 'shopCategoryList' },
@@ -196,8 +197,8 @@ export default {
         { title: '促销名称', dataIndex: 'promoName', width: '15%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '促销时间', dataIndex: 'promoStartDate', align: 'center', width: '16%', scopedSlots: { customRender: 'promoTime' } },
         { title: '促销类型', dataIndex: 'promoTypeDictValue', align: 'center', width: '10%', customRender: function (text) { return text || '--' } },
-        { title: '活动规则', align: 'center', width: '7%', scopedSlots: { customRender: 'promoRules' } },
-        { title: '促销状态', dataIndex: 'promoStateDictValue', align: 'center', width: '10%', customRender: function (text) { return text || '--' } },
+        { title: '活动规则', align: 'center', width: '10%', scopedSlots: { customRender: 'promoRules' } },
+        { title: '促销状态', dataIndex: 'promoStateDictValue', align: 'center', width: '8%', customRender: function (text) { return text || '--' } },
         { title: '促销售价', width: '8%', align: 'right', scopedSlots: { customRender: 'promoPrice' } },
         { title: '商城类目', scopedSlots: { customRender: 'categoryName' }, width: '15%', align: 'center' },
         { title: '商城状态', dataIndex: 'shopProductStatusDictValue', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }
@@ -249,6 +250,7 @@ export default {
       this.queryParam.shopProductStatus = undefined
       this.queryParam.categorySn = undefined
       this.queryParam.shopProductDelFlag = 0
+      this.queryParam.promoStateList = ['NOT_RELEASE', 'HAVE_RELEASE']
       this.productType = []
       this.category = []
       this.$refs.table.refresh()