From 2a7b932a726d22edc13562868fca8b9cdd5d4cba Mon Sep 17 00:00:00 2001 From: jiang Date: Sat, 15 Nov 2025 21:56:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/outbound/index.vue | 194 +++++++++++++++++++++++++- 1 file changed, 188 insertions(+), 6 deletions(-) diff --git a/src/views/business/outbound/index.vue b/src/views/business/outbound/index.vue index 762e8b79..3b7fee13 100644 --- a/src/views/business/outbound/index.vue +++ b/src/views/business/outbound/index.vue @@ -1,11 +1,193 @@ - - - +export default { + name: 'ApproveList', + data() { + return { + isLoading: false, + showSearch: true, + timeRange: [], + queryParams: { + pageNum: 1, + pageSize: 10, + status: null, + proName: null, + startTime: null, + endTime: null + }, + statusList: [ + { label: '待出库', value: '1' }, + { label: '出库中', value: '2' }, + { label: '完成出库', value: '3' } + ], + total: 0, // 总条数 + // 表头 + tableColumns: [ + { label: '申请单号', prop: 'code' }, + { label: '项目名称', prop: 'proName' }, + { label: '申请装备数', prop: 'devNum' }, + { label: '申请工具数', prop: 'toolNum' }, + { label: '任务状态', prop: 'taskStatus' }, + { label: '申请人', prop: 'createBy' }, + { label: '申请时间', prop: 'createTime' } + ], + // 表格数据 + tableList: [] + } + }, + created() { + this.getList() + }, + methods: { + // 查询 + handleQuery() { + this.queryParams.pageNum = 1 + this.getList() + }, + // 重置 + handleReset() { + this.queryParams.pageNum = 1 + this.queryParams.pageSize = 10 + this.queryParams.parentId = '0' + this.queryParams.level = '1' + this.timeRange = [] + this.$refs.queryForm.resetFields() + this.getList() + }, + // 获取列表 + async getList() { + console.log('列表-查询', this.queryParams) + this.isLoading = true + this.queryParams.startTime = this.timeRange && this.timeRange[0] ? this.timeRange[0] : null + this.queryParams.endTime = this.timeRange && this.timeRange[1] ? this.timeRange[1] : null + try { + const params = { ...this.queryParams } + const res = await getOutboundList(params) + this.tableList = res.rows || [] + this.total = res.total || 0 + } catch (error) { + this.tableList = [] + this.total = 0 + } finally { + this.isLoading = false + } + }, + // 查看 + handleView(row) { + this.$router.push({ path: '/business/outbound/details', query: { id: row.id, isView: true } }) + }, + // 审核 + handleApprove(row) { + this.$router.push({ path: '/business/outbound/details', query: { id: row.id } }) + } + } +} + + +