前4个模块的数据
This commit is contained in:
@@ -36,6 +36,8 @@ import Pagination from '@/components/Pagination'
|
||||
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
||||
import { tableHeight } from '@/utils/index'
|
||||
import outStoreDocumentsAdd from './components/outStoreDocumentsAdd.vue'
|
||||
import { getOutboundNoList, getHCQList, getProductSpecList } from '@/utils/wmsDic'
|
||||
import moment from 'moment'
|
||||
const topBtnConfig = [
|
||||
{
|
||||
type: 'add',
|
||||
@@ -127,16 +129,15 @@ export default {
|
||||
getList() {
|
||||
const temp = []
|
||||
const num = 20
|
||||
const spcList = ['50*50m', '100*50m', '100*100m', '70*100m', '100*120m']
|
||||
for (let i = 0; i < num; i++) {
|
||||
const obj = {}
|
||||
obj.outboundOrderNo = '1020' + i
|
||||
obj.customerName = '客户' + i
|
||||
obj.shipmentCacheArea = '20221020100' + i
|
||||
obj.num = parseInt(Math.random() * 200 + 100)
|
||||
const sj = Math.floor(Math.random() * 5)
|
||||
obj.spec = spcList[sj]
|
||||
obj.deliveryTime = '2022-10-' + (i + 1)
|
||||
obj.outboundOrderNo = getOutboundNoList()
|
||||
obj.customerName = ''
|
||||
obj.shipmentCacheArea = getHCQList()
|
||||
obj.num = parseInt(Math.random() * 1000)
|
||||
obj.spec = getProductSpecList()
|
||||
const sj = Math.floor(Math.random() * 100)
|
||||
obj.deliveryTime = moment().add(sj, 'days').add(sj, 'hour').add(sj, 'minutes').add(sj, 'seconds').format('YYYY-MM-DD hh:mm:ss')
|
||||
temp.push(obj)
|
||||
}
|
||||
this.list = temp
|
||||
|
||||
@@ -34,6 +34,7 @@ import Pagination from '@/components/Pagination'
|
||||
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
||||
import { tableHeight } from '@/utils/index'
|
||||
import outStoreDocumentsAdd from './components/outStoreDocumentsAdd.vue'
|
||||
import { getOperationCode2List, getOutboundNoList, getHWList, getHCQList, getTimeArr, getDriverCodeList } from '@/utils/wmsDic'
|
||||
const tableProps = [
|
||||
{
|
||||
prop: 'operationCode',
|
||||
@@ -131,16 +132,18 @@ export default {
|
||||
const num = 20
|
||||
for (let i = 0; i < num; i++) {
|
||||
const obj = {}
|
||||
obj.operationCode = '200101' + i
|
||||
obj.outboundOrderNo = '1020' + i
|
||||
obj.goodsArea = '1-1-' + i
|
||||
obj.shipmentCacheArea = '20221020100' + i
|
||||
obj.startTime = '2022-10-' + (i + 1)
|
||||
obj.endTime = '2022-10-' + (i + 2)
|
||||
obj.driverCode = 'd20152' + i
|
||||
const timeArrList = getTimeArr()
|
||||
obj.operationCode = getOperationCode2List()
|
||||
obj.outboundOrderNo = getOutboundNoList()
|
||||
obj.goodsArea = getHWList()
|
||||
obj.shipmentCacheArea = getHCQList()
|
||||
obj.startTime = timeArrList[0]
|
||||
obj.endTime = timeArrList[1]
|
||||
obj.driverCode = getDriverCodeList()
|
||||
temp.push(obj)
|
||||
}
|
||||
this.list = temp
|
||||
console.log(this.list)
|
||||
this.total = num
|
||||
},
|
||||
btnClick(val) {
|
||||
|
||||
Reference in New Issue
Block a user