|
@@ -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 => {
|