ソースを参照

fix: 出库单打印格式修改

liujt 5 日 前
コミット
15cbaf1b22
1 ファイル変更32 行追加1 行削除
  1. 32 1
      src/views/warehouseManagement/inventoryAllocation/index.vue

+ 32 - 1
src/views/warehouseManagement/inventoryAllocation/index.vue

@@ -16,7 +16,7 @@
           <el-button icon="el-icon-plus" type="primary" @click="add"
             >新建</el-button
           >
-          <el-button v-if="$hasPermission('wms:inventoryAllocation:print1')" :disabled="selection.length > 1" icon="el-icon-download" type="primary"  @click="printExl"
+          <!-- <el-button v-if="$hasPermission('wms:inventoryAllocation:print1')" :disabled="selection.length > 1" icon="el-icon-download" type="primary"  @click="printExl"
             >打印送货单</el-button
           >
           <el-button v-if="$hasPermission('wms:inventoryAllocation:print2')" :disabled="selection.length > 1" icon="el-icon-download" type="primary"  @click="printExl2"
@@ -25,7 +25,38 @@
 
           <el-button v-if="$hasPermission('wms:inventoryAllocation:printHT')" :disabled="selection.length > 1" icon="el-icon-download" type="primary"  @click="printExlHT"
             >打印送货单</el-button
+          > -->
+
+          <el-dropdown
+            trigger="click"
+            :disabled="selection?.length === 0 || selection.length > 1"
           >
+            <el-button
+              type="primary"
+              class="el-icon-printer"
+              size="small"
+            >
+              打印<i class="el-icon-arrow-down el-icon--right"></i>
+            </el-button>
+            <el-dropdown-menu slot="dropdown">
+              <el-dropdown-item
+                v-if="$hasPermission('wms:inventoryAllocation:print1')"
+                @click.native="printExl"
+                >打印送货单</el-dropdown-item
+              >
+              <el-dropdown-item
+                v-if="$hasPermission('wms:inventoryAllocation:print2')"
+                @click.native="printExl2"
+                >打印送货单带车</el-dropdown-item
+              >
+              <el-dropdown-item
+                v-if="$hasPermission('wms:inventoryAllocation:printHT')"
+                @click.native="printExlHT"
+                >打印送货单</el-dropdown-item
+              >
+            </el-dropdown-menu>
+          </el-dropdown>
+
           <el-button v-if="$hasPermission('wms:inventoryAllocation:statement')" :disabled="selection.length == 0" type="primary"  @click="handleGenerateStatement('add')"
             >生成对账单</el-button
           >