|
@@ -124,7 +124,11 @@
|
|
:default-sort="defaultSort"
|
|
:default-sort="defaultSort"
|
|
@sort-change="handleSortChange"
|
|
@sort-change="handleSortChange"
|
|
>
|
|
>
|
|
- <el-table-column :label="$t('ID')" prop="id" width="80" />
|
|
|
|
|
|
+ <el-table-column :label="$t('ID')" width="80">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.id.slice(-4) }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column :label="$t('ding-dan-hao')" align="center" width="190" prop="orderSn">
|
|
<el-table-column :label="$t('ding-dan-hao')" align="center" width="190" prop="orderSn">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span @click="handleView(scope.row)" style="color: #00afff; cursor: pointer">
|
|
<span @click="handleView(scope.row)" style="color: #00afff; cursor: pointer">
|
|
@@ -251,28 +255,19 @@
|
|
>
|
|
>
|
|
{{ $t('he-xiao') }}
|
|
{{ $t('he-xiao') }}
|
|
</el-button> -->
|
|
</el-button> -->
|
|
- <el-dropdown
|
|
|
|
- size="mini"
|
|
|
|
- @command="(command) => handleCommand(command, scope.row)"
|
|
|
|
- v-hasPermi="['order:edit', 'order:delete']"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)">
|
|
<span class="el-dropdown-link">
|
|
<span class="el-dropdown-link">
|
|
<i class="el-icon-d-arrow-right el-icon--right"></i>
|
|
<i class="el-icon-d-arrow-right el-icon--right"></i>
|
|
{{ $t('geng-duo') }}
|
|
{{ $t('geng-duo') }}
|
|
</span>
|
|
</span>
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
- <el-dropdown-item
|
|
|
|
- command="handleView"
|
|
|
|
- icon="el-icon-view"
|
|
|
|
- v-hasPermi="['cashier:index']"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-dropdown-item command="handleView" icon="el-icon-view">
|
|
{{ $t('cha-kan-xiang-qing') }}
|
|
{{ $t('cha-kan-xiang-qing') }}
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
<el-dropdown-item
|
|
<el-dropdown-item
|
|
v-if="['A', 'B'].includes(scope?.row?.status)"
|
|
v-if="['A', 'B'].includes(scope?.row?.status)"
|
|
command="handlePrint"
|
|
command="handlePrint"
|
|
icon="el-icon-printer"
|
|
icon="el-icon-printer"
|
|
- v-hasPermi="['cashier:index']"
|
|
|
|
>
|
|
>
|
|
{{ $t('da-yin-xiao-piao') }}
|
|
{{ $t('da-yin-xiao-piao') }}
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|