Răsfoiți Sursa

🐞 fix(1000366): 订单操作消失

陈雪 1 săptămână în urmă
părinte
comite
c733489b65
1 a modificat fișierele cu 7 adăugiri și 12 ștergeri
  1. 7 12
      src/renderer/views/cashier/components/orderList.vue

+ 7 - 12
src/renderer/views/cashier/components/orderList.vue

@@ -124,7 +124,11 @@
       :default-sort="defaultSort"
       @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">
         <template slot-scope="scope">
           <span @click="handleView(scope.row)" style="color: #00afff; cursor: pointer">
@@ -251,28 +255,19 @@
           >
             {{ $t('he-xiao') }}
           </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">
               <i class="el-icon-d-arrow-right el-icon--right"></i>
               {{ $t('geng-duo') }}
             </span>
             <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') }}
               </el-dropdown-item>
               <el-dropdown-item
                 v-if="['A', 'B'].includes(scope?.row?.status)"
                 command="handlePrint"
                 icon="el-icon-printer"
-                v-hasPermi="['cashier:index']"
               >
                 {{ $t('da-yin-xiao-piao') }}
               </el-dropdown-item>