From 5ecb7958c96d3f0b6d47b79aff7eb306c2cf690f Mon Sep 17 00:00:00 2001 From: charles <981744753@qq.com> Date: 星期二, 06 八月 2024 11:16:58 +0800 Subject: [PATCH] gitlab上面的wms转移到公司git --- src/views/warehouseManage/bussinessType/index.vue | 36 ++++++++++++++++++++++++++++++++++-- 1 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/views/warehouseManage/bussinessType/index.vue b/src/views/warehouseManage/bussinessType/index.vue index 679d229..6ab18e4 100644 --- a/src/views/warehouseManage/bussinessType/index.vue +++ b/src/views/warehouseManage/bussinessType/index.vue @@ -13,10 +13,11 @@ <div class="table"> <TableCommonView ref="tableListRef" :table-list="tableList" :show-checkcol="false"> <template slot="tableButton"> - <el-table-column label="鎿嶄綔" width="100"> + <el-table-column label="鎿嶄綔" width="120"> <template slot-scope="scope"> <el-button @click="tableRowClick(scope.row, '鏌ョ湅')" type="text" size="small">鏌ョ湅</el-button> <el-button @click="tableRowClick(scope.row, '缂栬緫')" type="text" size="small">缂栬緫</el-button> + <el-button @click.stop="deleteRow(scope.row)" type="text" size="small">鍒犻櫎</el-button> </template> </el-table-column> </template> @@ -33,7 +34,7 @@ <script> import pageMixin from "@/components/makepager/pager/mixin/pageMixin" -import { getOperationTypeList } from "@/api/warehouseManage/warehouse" +import { getOperationTypeList,deleteOperationType } from "@/api/warehouseManage/warehouse" // import DetailProduct from "@/views/productManage/product/DetailProduct" import AddBussinessType from "@/views/warehouseManage/bussinessType/AddBussinessType" @@ -164,6 +165,37 @@ defaultLocationDestId: null } this.editConfig.visible = true + }, + + //鍒犻櫎 + deleteRow(row){ + this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ヤ笟鍔$被鍨�, 鏄惁缁х画?', '鎻愮ず', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning', + }) + .then(() => { + deleteOperationType({ + id: row.id, + }).then((res) => { + if (res.code == 200) { + this.$message({ + type: 'success', + message: '鍒犻櫎鎴愬姛!', + }) + this.getData() + }else{ + this.$message.error('鍒犻櫎鏃跺嚭閿欙紝璇风◢鍚庨噸璇曟垨鑱旂郴绠$悊鍛�...'); + + } + }) + }) + .catch(() => { + // this.$message({ + // type: 'info', + // message: '宸插彇娑堝垹闄�', + // }) + }) } } } -- Gitblit v1.8.0