|
|
|
|
@ -382,8 +382,8 @@ import {
|
|
|
|
|
updateOrderInfo,
|
|
|
|
|
releaseOrderPlan, replaceProductionLine
|
|
|
|
|
} from '@/api/base/orderInfo'
|
|
|
|
|
import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
|
import { addSAPCalendar } from '@//api/production/calendarInfo'
|
|
|
|
|
import { findProductLineList } from '@/api/base/productLine'
|
|
|
|
|
import { addSAPCalendar } from '@/api/production/calendarInfo'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'OrderInfo',
|
|
|
|
|
@ -482,11 +482,24 @@ export default {
|
|
|
|
|
this.queryParams.params['beginEndTime'] = this.daterangeEndTime[0]
|
|
|
|
|
this.queryParams.params['endEndTime'] = this.daterangeEndTime[1]
|
|
|
|
|
}
|
|
|
|
|
listOrderInfo(this.queryParams).then(response => {
|
|
|
|
|
this.orderInfoList = response.rows
|
|
|
|
|
this.total = response.total
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
listOrderInfo(this.queryParams)
|
|
|
|
|
.then(response => {
|
|
|
|
|
const data = response && response.data ? response.data : response
|
|
|
|
|
if (Array.isArray(data)) {
|
|
|
|
|
this.orderInfoList = data
|
|
|
|
|
this.total = data.length
|
|
|
|
|
} else {
|
|
|
|
|
this.orderInfoList = (data && data.rows) ? data.rows : []
|
|
|
|
|
this.total = (data && data.total) ? data.total : this.orderInfoList.length
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.orderInfoList = []
|
|
|
|
|
this.total = 0
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
findProductLineList({ productLineType: 1 }).then(response => {
|
|
|
|
|
this.productLineList = response.data
|
|
|
|
|
})
|
|
|
|
|
|