库位管理修改传参

dev-scheduling
zhangdi 1 week ago
parent 2edb4837a2
commit 8c683d64e4
  1. 14
      src/views/logisticsManagement/storagelocationBasic.vue

@ -104,8 +104,16 @@ export default {
{ {
label: '占用时间', label: '占用时间',
prop: 'updateTime', prop: 'updateTime',
search: false,
sortable: true,
span: 12,
},
{
label: '占用时间',
prop: 'timeFrame',
search: true, search: true,
sortable: true, sortable: true,
hide:true,
span: 12, span: 12,
type: 'date', type: 'date',
format: 'YYYY-MM-DD', format: 'YYYY-MM-DD',
@ -252,9 +260,9 @@ export default {
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
if (this.query.updateTime && this.query.updateTime.length > 0) { if (this.query.timeFrame && this.query.timeFrame.length > 0) {
this.query.startTime = this.query.updateTime[0]+' 00:00:00'; this.query.startTime = this.query.timeFrame[0]+' 00:00:00';
this.query.endTime = this.query.updateTime[1]+' 00:00:00'; this.query.endTime = this.query.timeFrame[1]+' 00:00:00';
} }
getLocationLis(page.currentPage, page.pageSize, Object.assign(params, this.query)).then( getLocationLis(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(
res => { res => {

Loading…
Cancel
Save