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 } })
+ }
+ }
+}
+
+
+