Browse Source

feat: 销售返利单/返利互转列表页面

aXin-0810 2 years ago
parent
commit
a4f57e0a1f
2 changed files with 17 additions and 20 deletions
  1. 5 4
      src/views/finance/change_list.vue
  2. 12 16
      src/views/finance/rebate_list.vue

+ 5 - 4
src/views/finance/change_list.vue

@@ -8,6 +8,7 @@
     :tableAttributes="tableAttributes"
     :tableEvents="tableEvents"
     :columnParsing="columnParsing"
+    :replaceOrNotMap="false"
   >
     <Popu v-if="showPage !== 1">
       <ChangeListDetail v-if="showPage == 2" @refresh="refreshFn" :detailList="detailList" />
@@ -75,7 +76,7 @@ export default {
       return (h, { row, index, column }) => {
         return (
           <div class="operation-btns">
-            {this.$checkBtnRole('apply', this.$route.meta.roles) && row.examineStatus == '保存' ? (
+            {this.$checkBtnRole('apply', this.$route.meta.roles) && row.examineStatus == 'SAVE' ? (
               <el-button
                 onClick={() => {
                   this.submitFn(row.id)
@@ -87,7 +88,7 @@ export default {
                 提审
               </el-button>
             ) : null}
-            {row.examineStatus == '待审核' &&
+            {row.examineStatus == 'WAIT' &&
             !this.isCustomer &&
             this.$checkBtnRole('examine', this.$route.meta.roles) ? (
               <el-button
@@ -101,7 +102,7 @@ export default {
                 审核
               </el-button>
             ) : null}
-            {(row.examineStatus == '初审不通过' || row.examineStatus == '保存') &&
+            {(row.examineStatus == 'FAIL_ONE' || row.examineStatus == 'SAVE') &&
             this.$checkBtnRole('edit', this.$route.meta.roles) ? (
               <el-button
                 type="text"
@@ -124,7 +125,7 @@ export default {
             >
               详情
             </el-button>
-            {row.examineStatus == '待审核' ? (
+            {row.examineStatus == 'WAIT' ? (
               <el-button
                 onClick={() => {
                   this.cancelFn(row.id)

+ 12 - 16
src/views/finance/rebate_list.vue

@@ -10,7 +10,7 @@
       :tableAttributes="tableAttributes"
       :tableEvents="tableEvents"
       :columnParsing="columnParsing"
-      :replaceOrNotMap="true"
+      :replaceOrNotMap="false"
     >
     </template-page>
     <div class="app-container" v-if="showPage == 2">
@@ -297,7 +297,7 @@ export default {
           <div class="operation-btns">
             {!this.isCustomer &&
             this.$checkBtnRole('edit', this.$route.meta.roles) &&
-            row.examineStatus != '初审不通过' ? (
+            row.examineStatus != 'FAIL_ONE' ? (
               <el-button
                 type="text"
                 class="textColor"
@@ -308,7 +308,7 @@ export default {
                 编辑
               </el-button>
             ) : null}
-            {row.examineStatus == '保存' && !this.isCustomer && this.$checkBtnRole('apply', this.$route.meta.roles) ? (
+            {row.examineStatus == 'SAVE' && !this.isCustomer && this.$checkBtnRole('apply', this.$route.meta.roles) ? (
               <el-button
                 type="text"
                 class="textColor"
@@ -319,7 +319,7 @@ export default {
                 申请
               </el-button>
             ) : null}
-            {row.examineStatus == '待审核' &&
+            {row.examineStatus == 'WAIT' &&
             !this.isCustomer &&
             this.$checkBtnRole('examine', this.$route.meta.roles) ? (
               <el-button
@@ -332,9 +332,7 @@ export default {
                 审核
               </el-button>
             ) : null}
-            {(row.examineStatus == '初审通过' ||
-              row.examineStatus == '审核通过' ||
-              row.examineStatus == '审核不通过') &&
+            {(row.examineStatus == 'OK_ONE' || row.examineStatus == 'OK' || row.examineStatus == 'FAIL') &&
             !this.isCustomer &&
             this.$checkBtnRole('examine', this.$route.meta.roles) ? (
               <el-button
@@ -344,10 +342,10 @@ export default {
                   this.reviewFn(row.rebateOrderId)
                 }}
               >
-                {row.examineStatus == '审核通过' ? '取消复核' : '复核'}
+                {row.examineStatus == 'OK' ? '取消复核' : '复核'}
               </el-button>
             ) : null}
-            {(row.examineStatus == '待审核' || row.examineStatus == '保存') && !this.isCustomer ? (
+            {(row.examineStatus == 'WAIT' || row.examineStatus == 'SAVE') && !this.isCustomer ? (
               <el-button
                 type="text"
                 class="textColor"
@@ -358,10 +356,10 @@ export default {
                 详情
               </el-button>
             ) : null}
-            {(row.examineStatus == '初审通过' ||
-              row.examineStatus == '初审不通过' ||
-              row.examineStatus == '审核不通过' ||
-              row.examineStatus == '审核通过') &&
+            {(row.examineStatus == 'OK_ONE' ||
+              row.examineStatus == 'FAIL_ONE' ||
+              row.examineStatus == 'FAIL' ||
+              row.examineStatus == 'OK') &&
             !this.isCustomer ? (
               <el-button
                 type="text"
@@ -375,9 +373,7 @@ export default {
             ) : null}
             {this.isCustomer &&
             row.withholdAmount == 0 &&
-            (row.examineStatus == '初审通过' ||
-              row.examineStatus == '审核通过' ||
-              row.examineStatus == '审核不通过') ? (
+            (row.examineStatus == 'OK_ONE' || row.examineStatus == 'OK' || row.examineStatus == 'FAIL') ? (
               <el-button
                 type="text"
                 class="textColor"