Browse Source

feature:销售返利单调整批量复核

chenqilong 2 years ago
parent
commit
94c26921b0
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/views/finance/rebate_list.vue

+ 7 - 2
src/views/finance/rebate_list.vue

@@ -157,7 +157,8 @@ export default {
         'selection-change': this.selectionChange
         'selection-change': this.selectionChange
       },
       },
       recordSelected: [],
       recordSelected: [],
-      examineStatus: ''
+      examineStatus: '',
+      customerIsConfirm: ''
     }
     }
   },
   },
   computed: {
   computed: {
@@ -217,6 +218,7 @@ export default {
               click: () => {
               click: () => {
                 if (!this.deleList.length) {
                 if (!this.deleList.length) {
                   this.$message.info('请选择数据!')
                   this.$message.info('请选择数据!')
+
                   return
                   return
                 }
                 }
                 this.$confirm('确定执行批量审核吗?', '提示', {
                 this.$confirm('确定执行批量审核吗?', '提示', {
@@ -236,7 +238,8 @@ export default {
           [
           [
             {
             {
               isRole:
               isRole:
-                this.$checkBtnRole('examine', this.$route.meta.roles) && this.examineStatus === 'OK_ONE_AND_CONFIRM',
+                this.$checkBtnRole('examine', this.$route.meta.roles) &&
+                (this.examineStatus === 'OK_ONE_AND_CONFIRM' || this.customerIsConfirm === 'true'),
               name: '批量复核',
               name: '批量复核',
               click: () => {
               click: () => {
                 if (!this.deleList.length) {
                 if (!this.deleList.length) {
@@ -285,6 +288,8 @@ export default {
     getList(p) {
     getList(p) {
       var item = p.params.find(item => item.param === 'a.examine_status')
       var item = p.params.find(item => item.param === 'a.examine_status')
       this.examineStatus = item?.value || ''
       this.examineStatus = item?.value || ''
+      var item2 = p.params.find(item => item.param === 'a.customer_is_confirm')
+      this.customerIsConfirm = item2?.value || ''
       return rebateOrderList({ ...p })
       return rebateOrderList({ ...p })
     },
     },
     // 列表导出函数
     // 列表导出函数