diff --git a/src/views/inventory/DeviceReceiveOrderAudit.vue b/src/views/inventory/DeviceReceiveOrderAudit.vue index 9225fb8a..b22fa423 100644 --- a/src/views/inventory/DeviceReceiveOrderAudit.vue +++ b/src/views/inventory/DeviceReceiveOrderAudit.vue @@ -100,13 +100,6 @@ >详情 - 删除 - diff --git a/src/views/inventory/DeviceReceiveOrderCompleted.vue b/src/views/inventory/DeviceReceiveOrderCompleted.vue index 61464ba5..1faeb192 100644 --- a/src/views/inventory/DeviceReceiveOrderCompleted.vue +++ b/src/views/inventory/DeviceReceiveOrderCompleted.vue @@ -1,72 +1,90 @@ - - - - - - - - {{ item.name }} - - - - - - - {{ item.name }} - - - - - - - 重置 - 查询 - - + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + + + + + + + + - + + + 显示/隐藏搜索栏 + 重置 + 查询 + + + + + - - - - - - - + + + + + + {{ statusMap[scope.row.status] }} + + + 详情 + + + - + - - + + - - - + @@ -100,6 +116,24 @@ :page.sync="detailQuery.page" @pagination="getDetailList" > + + + + + + + @@ -113,6 +147,7 @@ import { getDeviceReceiveOrderDetailList, getDeviceReceiveOrderList } from "@/api/inventory/deviceReceiveOrder"; +import DeviceReceiveOrderAuditMoify from "@/views/inventory/DeviceReceiveOrderAuditMoify" export default { name: "DeviceReceiveOrderCompleted", @@ -143,12 +178,51 @@ export default { page: 1, limit: 20, }, + pickerOptions: { + shortcuts: [ + { + text: "最近一周", + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); + picker.$emit("pick", [start, end]); + }, + }, + { + text: "最近一个月", + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); + picker.$emit("pick", [start, end]); + }, + }, + { + text: "最近三个月", + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); + picker.$emit("pick", [start, end]); + }, + }, + ], + }, detailList: [], + actDateRange:[], + showSearch:true, detailLoading: false, + receiveQuery:{}, + formName:null, + deviceReceiveOrderAuditMoifyVisible: false, detailTotal: 0 }; }, methods: { + hideSearch() { + this.showSearch = !this.showSearch; + }, onReset() { this.$router.push({ path: "", @@ -163,6 +237,7 @@ export default { limit: 20, }; this.spaceList = []; + this.actDateRange = [] // this.getList(); this.getDeptList(); }, @@ -174,6 +249,13 @@ export default { this.loading = true; this.detailList = []; this.detailTotal = 0; + if (this.actDateRange !== null) { + this.filterQuery.startTime = this.actDateRange[0]; + this.filterQuery.endTime = this.actDateRange[1]; + } else { + this.filterQuery.startTime = null; + this.filterQuery.endTime = null; + } getDeviceReceiveOrderList(this.filterQuery).then((res) => { this.loading = false; if (res.code === 20000) { @@ -251,9 +333,14 @@ export default { }); }, closeDialog() { - this.formVisible = false; + this.deviceReceiveOrderAuditMoifyVisible = false; this.getList(); }, + detailOrder(row) { + this.formName = "detail" + this.receiveQuery = row + this.deviceReceiveOrderAuditMoifyVisible = true + }, }, mounted() { document.body.ondrop = function (event) { @@ -261,6 +348,9 @@ export default { event.stopPropagation(); }; }, + components:{ + DeviceReceiveOrderAuditMoify + }, created() { this.getDeptList(); },