浏览代码

1. 新增改签条件

MONSTER-ygh 2 月之前
父节点
当前提交
5936c4f1c4
共有 2 个文件被更改,包括 17 次插入1 次删除
  1. 11 0
      src/views/order/groupBuyingMr/index.vue
  2. 6 1
      src/views/windowTicketSales/rebook.vue

+ 11 - 0
src/views/order/groupBuyingMr/index.vue

@@ -343,7 +343,12 @@
                   v-if="hasPermi('groupBuyingMr:groupBuyingMr:reset') && scope.row.status == 0">修改订单</el-dropdown-item>
                   <el-dropdown-item 
                   command="5" 
+                  v-if="hasPermi('groupBuyingMr:groupBuyingMr:place')"
                   >代客下单</el-dropdown-item>
+                  <el-dropdown-item 
+                  command="6" 
+                  v-if="hasPermi('groupBuyingMr:groupBuyingMr:rebook') && scope.row.status == 3 && scope.row.allowReSubmit == 1"
+                  >改签</el-dropdown-item>
                 </el-dropdown-menu>
               </el-dropdown>
             </template>
@@ -1106,10 +1111,16 @@ export default {
         case "5":
           this.handPlaceAnOrder(row);
           break;
+        case "6":
+          this.handGoRebook(row);
+          break;
         default:
           break;
       }
     },
+    handGoRebook(row) {
+      this.$router.push({path:'/windowTicketSales/rebook',query: { id: row.id }})
+    },
     clearQuery(key) {
       this.$set(this.queryShow,key,false)
       this.$set(this.queryParams,key,'')

+ 6 - 1
src/views/windowTicketSales/rebook.vue

@@ -78,7 +78,7 @@
                 <el-button 
                 type="primary" 
                 @click="handleRebook(scope.row)"
-                v-if="scope.row.allowReSubmit == 1 && scope.row.channelType != 'group'"
+                v-if="hasPermi('windowTicketSales:rebook:rebook') && scope.row.allowReSubmit == 1 && scope.row.status == 3"
                 >改签</el-button>
               </template>
             </el-table-column>
@@ -104,6 +104,7 @@
 <script>
 import { reSubmitPageList } from '@/api/windowTicketSales/rebook'
 import rebookBox from './model/rebookBox.vue';
+import auth from '@/plugins/auth'
 export default {
   name: 'Rebook',
   dicts: ['order_status_type', 'channel_type'],
@@ -124,9 +125,13 @@ export default {
     }
   },
   created() {
+    this.queryParams.orderId = this.$route.query.id ? this.$route.query.id : ''
     this.getList()
   },
   methods: {
+    hasPermi(value){
+      return auth.hasPermi(value)
+    },
     getList() {
       this.loading = true
       reSubmitPageList(this.queryParams).then(response => {