diff --git a/src/api/accountsInfoManagement/index.js b/src/api/accountsInfoManagement/index.js new file mode 100644 index 00000000..300f770e --- /dev/null +++ b/src/api/accountsInfoManagement/index.js @@ -0,0 +1,28 @@ +import request from '@/utils/request' + +// 列表 +export function getListApi(query) { + return request({ + url: '/material/lease_agreement_slt/list', + method: 'get', + params: query + }) +} + +// 详情 +export function getInfoApi(query) { + return request({ + url: '/material/lease_agreement_slt/getInfo', + method: 'get', + params: query + }) +} + +// 新增/编辑/删除 +export function updateInfoApi(data) { + return request({ + url: '/material/lease_agreement_slt/updateInfo', + method: 'post', + data + }) +} diff --git a/src/api/purchase/goodsBind.js b/src/api/purchase/goodsBind.js index 629cb2cc..2efc15bc 100644 --- a/src/api/purchase/goodsBind.js +++ b/src/api/purchase/goodsBind.js @@ -5,7 +5,7 @@ import request from '@/utils/request' */ export function getNewBuyBindListApi(query) { return request({ - url: '/material/purchase_check_info/list', + url: '/material/purchase/bind/list', method: 'get', params: query, }) @@ -16,7 +16,7 @@ export function getNewBuyBindListApi(query) { */ export function getNewBuyBindListDetailsApi(query) { return request({ - url: '/material/purchase_check_info/getInfo', + url: '/material/purchase/bind/getInfo', method: 'get', params: query, }) diff --git a/src/views/accountsInfoManagement/index.vue b/src/views/accountsInfoManagement/index.vue new file mode 100644 index 00000000..ba407839 --- /dev/null +++ b/src/views/accountsInfoManagement/index.vue @@ -0,0 +1,409 @@ + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + 新增 + + + + + + + + + + + + + 编辑 + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + + + + + diff --git a/src/views/material/lease/outBound/index.vue b/src/views/material/lease/outBound/index.vue index 40f6f9f9..1eb3f46a 100644 --- a/src/views/material/lease/outBound/index.vue +++ b/src/views/material/lease/outBound/index.vue @@ -52,14 +52,15 @@ - 搜索 - 重置 + 搜索 + 重置 + 导出 - {{ queryParams.time ? queryParams.time[0] : '' }} - {{ queryParams.time ? queryParams.time[1] : '' }}出库数量: {{ allNum }} + {{ queryParams.time ? queryParams.time[0] : '' }} - {{ queryParams.time ? queryParams.time[1] : '' }} 出库数量: {{ allNum }} @@ -918,6 +919,38 @@ export default { this.queryParams.keyWord = '' this.handleQuery() }, + /** 导出按钮操作 */ + handleExport() { + const formatTime = date => { + const year = date.getFullYear() + const month = String(date.getMonth() + 1).padStart(2, '0') + const day = String(date.getDate()).padStart(2, '0') + const hours = String(date.getHours()).padStart(2, '0') + const minutes = String(date.getMinutes()).padStart(2, '0') + const seconds = String(date.getSeconds()).padStart(2, '0') + return `${year}${month}${day}_${hours}${minutes}${seconds}` + } + + const currentTime = formatTime(new Date()) + const params = { + keyWord: this.queryParams.keyWord, + startTime: this.queryParams.time && this.queryParams.time[0], + endTime: this.queryParams.time && this.queryParams.time[1], + pageSize: this.queryParams.pageSize, + pageNum: this.queryParams.pageNum, + hasSign: 1 + } + if (!this.queryParams.taskStatus) { + params.statusList = [3, 4, 5] + } else { + params.statusList = [this.queryParams.taskStatus] + } + this.download( + '/material/lease_apply_info/exportLeaseOutRecord', + { ...params }, + `领用出库数据_${currentTime}.xlsx` + ) + }, /** 查看按钮操作 */ handleView(row) {