diff --git a/src/api/location.js b/src/api/location.js index 708522d..19b4b2e 100644 --- a/src/api/location.js +++ b/src/api/location.js @@ -2,7 +2,7 @@ import request from "@/http/request"; const getLocations = (params) => { return request({ - url: '/location/getLocations', + url: '/location/getLocationsByPage', method: 'post', data: params }) @@ -16,16 +16,7 @@ const updateLocation = (params) => { }) } -const getAvailableLocations = (params) => { - return request({ - url: '/location/getAvailableLocations', - method: 'post', - data: params - }) -} - export { getLocations, updateLocation, - getAvailableLocations } \ No newline at end of file diff --git a/src/layout/config.vue b/src/layout/config.vue deleted file mode 100644 index 92e7309..0000000 --- a/src/layout/config.vue +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/layout/inTaskRecord.vue b/src/layout/inTaskRecord.vue index 0ded0da..9f97823 100644 --- a/src/layout/inTaskRecord.vue +++ b/src/layout/inTaskRecord.vue @@ -50,7 +50,6 @@ export default { name: 'inTaskRecord', data() { return { - pageInfo: {}, tasks: [], currentPage: 1, pageSize: 10, @@ -92,13 +91,13 @@ export default { vehicleId: this.vehicleIdQuery.trim() } getTaskRecords(tableRequest).then(res => { - console.log(res.data) const tableResponse = res.data - if (tableResponse.code != 0) { + if (tableResponse.code == 0) { + this.tasks = tableResponse.returnData.lists + this.total = tableResponse.returnData.total + } else { ElMessage.error(tableResponse.message) } - this.tasks = tableResponse.returnData.lists - this.total = tableResponse.returnData.total }).catch(err => { console.log(err) ElMessage.error('查询任务记录错误') diff --git a/src/layout/inventoryRecord.vue b/src/layout/inventoryRecord.vue index 4e6f838..0cc8f37 100644 --- a/src/layout/inventoryRecord.vue +++ b/src/layout/inventoryRecord.vue @@ -113,11 +113,13 @@ export default { } getTaskRecords(tableRequest).then(res => { const tableResponse = res.data - if (tableResponse.code != 0) { + if (tableResponse.code == 0) { + this.tasks = tableResponse.rows + this.total = tableResponse.total + } else { ElMessage.error(tableResponse.message) } - this.tasks = tableResponse.rows - this.total = tableResponse.total + }).catch(err => { console.log(err) ElMessage.error('查询盘点记录错误') diff --git a/src/layout/locationsTable.vue b/src/layout/locationsTable.vue index f245418..3fd3cf2 100644 --- a/src/layout/locationsTable.vue +++ b/src/layout/locationsTable.vue @@ -1,28 +1,37 @@