From fe631515b71782a10a750874f6d4582fe027cd22 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 03 十一月 2025 09:32:49 +0800
Subject: [PATCH] 公司-所有的表格添加斑马纹
---
src/views/inventoryManagement/dispatchLog/index.vue | 68 ++++++++-------------------------
1 files changed, 17 insertions(+), 51 deletions(-)
diff --git a/src/views/inventoryManagement/dispatchLog/index.vue b/src/views/inventoryManagement/dispatchLog/index.vue
index 1e56a3d..6fe0473 100644
--- a/src/views/inventoryManagement/dispatchLog/index.vue
+++ b/src/views/inventoryManagement/dispatchLog/index.vue
@@ -33,19 +33,20 @@
style="width: 100%"
:summary-method="summarizeMainTable"
height="calc(100vh - 18.5em)"
+ stripe
>
<el-table-column align="center" type="selection" width="55" />
<el-table-column align="center" label="搴忓彿" type="index" width="60" />
<el-table-column
label="鍑哄簱鏃ユ湡"
- prop="inboundTime"
- width="100"
+ prop="createTime"
+ min-width="130"
show-overflow-tooltip
/>
<el-table-column
label="渚涘簲鍟嗗悕绉�"
prop="supplierName"
- width="160"
+ width="250"
show-overflow-tooltip
/>
<el-table-column
@@ -68,46 +69,37 @@
/>
<el-table-column
label="鍑哄簱鏁伴噺"
- prop="inboundQuantity"
+ prop="inboundNum"
width="100"
show-overflow-tooltip
/>
<el-table-column
- label="鍚◣鍗曚环"
- prop="taxInclusiveUnitPrice"
label="鍚◣鍗曚环(鍏�)"
- prop="entryDate"
- width="100"
+ prop="taxInclusiveUnitPrice"
+ width="200"
show-overflow-tooltip
/>
<el-table-column
- label="鍚◣鎬讳环"
- prop="taxInclusiveTotalPrice"
label="鍚◣鎬讳环(鍏�)"
- prop="executionDate"
- width="100"
+ prop="taxInclusiveTotalPrice"
+ width="200"
show-overflow-tooltip
/>
<el-table-column
- label="绋庣巼"
- prop="taxRate"
label="绋庣巼(%)"
- prop="executionDate"
+ prop="taxRate"
width="100"
show-overflow-tooltip
/>
<el-table-column
- label="涓嶅惈绋庢�讳环"
- prop="taxExclusiveTotalPrice"
- width="100"
label="涓嶅惈绋庢�讳环(鍏�)"
- prop="executionDate"
+ prop="taxExclusiveTotalPrice"
width="180"
show-overflow-tooltip
/>
<el-table-column
label="鍑哄簱浜�"
- prop="nickname"
+ prop="createBy"
width="80"
show-overflow-tooltip
/>
@@ -148,24 +140,16 @@
import { userListNoPage } from "@/api/system/user.js";
import {
getStockOutPage,
- addStockOut,
- updateStockOut,
delStockOut,
- exportStockOut,
- getStockManageById
} from "@/api/inventoryManagement/stockOut.js";
const userStore = useUserStore();
const { proxy } = getCurrentInstance();
const tableData = ref([]);
-// const productData = ref([]);
const selectedRows = ref([]);
const userList = ref([]);
-// const customerOption = ref([]);
const tableLoading = ref(false);
-const supplierList = ref([])
const productList = ref([])
-const productModelList = ref([])
const page = reactive({
current: 1,
size: 100,
@@ -199,12 +183,6 @@
inboundBatch: '',
inboundQuantity: ''
},
- rules: {
- supplierId: [{ required: true, message: '璇烽�夋嫨渚涘簲鍟�', trigger: 'change' }],
- productRecordid: [{ required: true, message: '璇烽�夋嫨浜у搧', trigger: 'change' }],
- inboundTime: [{ required: true, message: '璇烽�夋嫨鍏ュ簱鏃堕棿', trigger: 'change' }],
- inboundQuantity: [{ required: true, message: '璇疯緭鍏ュ叆搴撴暟閲�', trigger: 'blur' }]
- },
});
const { searchForm } = toRefs(data);
@@ -228,26 +206,13 @@
tableData.value.map((item) => {
item.children = [];
});
- total.value = res.total;
+ total.value = res.data.total;
})
.catch(() => {
tableLoading.value = false;
});
};
-// const findNodeById = (nodes, productId) => {
-// for (let i = 0; i < nodes.length; i++) {
-// if (nodes[i].value === productId) {
-// return nodes[i].label; // 鎵惧埌鑺傜偣锛岃繑鍥炶鑺傜偣
-// }
-// if (nodes[i].children && nodes[i].children.length > 0) {
-// const foundNode = findNodeById(nodes[i].children, productId);
-// if (foundNode) {
-// return foundNode.label; // 鍦ㄥ瓙鑺傜偣涓壘鍒帮紝杩斿洖璇ヨ妭鐐�
-// }
-// }
-// }
-// return null; // 娌℃湁鎵惧埌鑺傜偣锛岃繑鍥瀗ull
-// };
+
// 琛ㄦ牸閫夋嫨鏁版嵁
const handleSelectionChange = (selection) => {
// 杩囨护鎺夊瓙鏁版嵁
@@ -267,7 +232,7 @@
// 瀵煎嚭
const handleOut = () => {
- ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
+ ElMessageBox.confirm("鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
confirmButtonText: "纭",
cancelButtonText: "鍙栨秷",
type: "warning",
@@ -279,6 +244,7 @@
proxy.$modal.msg("宸插彇娑�");
});
};
+
// 鍒犻櫎
const handleDelete = () => {
let ids = [];
@@ -294,7 +260,7 @@
type: "warning",
})
.then(() => {
- delStockOut(ids).then((res) => {
+ delStockOut({ids:ids}).then((res) => {
proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
getList();
});
--
Gitblit v1.9.3