|
@@ -34,7 +34,7 @@ import Pagination from '@/components/Pagination' |
|
|
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn' |
|
|
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn' |
|
|
import { tableHeight } from '@/utils/index' |
|
|
import { tableHeight } from '@/utils/index' |
|
|
import outStoreDocumentsAdd from './components/outStoreDocumentsAdd.vue' |
|
|
import outStoreDocumentsAdd from './components/outStoreDocumentsAdd.vue' |
|
|
import { getOperationCode2List, getOutboundNoList, getStoreList, getHCQList, getTimeArr, getDriverCodeList, getKQList } from '@/utils/wmsDic' |
|
|
|
|
|
|
|
|
import { getOperationCode2List, getOutboundNoList, getStoreList, getTimeArr, getDriverCodeList } from '@/utils/wmsDic' |
|
|
const tableProps = [ |
|
|
const tableProps = [ |
|
|
{ |
|
|
{ |
|
|
prop: 'operationCode', |
|
|
prop: 'operationCode', |
|
@@ -110,7 +110,7 @@ export default { |
|
|
current: 1, |
|
|
current: 1, |
|
|
size: 20 |
|
|
size: 20 |
|
|
}, |
|
|
}, |
|
|
tableH: tableHeight(275), |
|
|
|
|
|
|
|
|
tableH: tableHeight(290), |
|
|
tableProps, |
|
|
tableProps, |
|
|
list: [], |
|
|
list: [], |
|
|
listLoading: false, |
|
|
listLoading: false, |
|
@@ -122,31 +122,45 @@ export default { |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
window.addEventListener('resize', () => { |
|
|
window.addEventListener('resize', () => { |
|
|
this.tableH = tableHeight(275) |
|
|
|
|
|
|
|
|
this.tableH = tableHeight(290) |
|
|
}) |
|
|
}) |
|
|
this.getList() |
|
|
this.getList() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
getList() { |
|
|
getList() { |
|
|
const temp = [] |
|
|
const temp = [] |
|
|
const num = 20 |
|
|
|
|
|
|
|
|
const temp2 = [] |
|
|
|
|
|
const num = 17 |
|
|
for (let i = 0; i < num; i++) { |
|
|
for (let i = 0; i < num; i++) { |
|
|
const obj = {} |
|
|
const obj = {} |
|
|
const timeArrList = getTimeArr() |
|
|
const timeArrList = getTimeArr() |
|
|
obj.operationCode = getOperationCode2List() |
|
|
|
|
|
|
|
|
obj.operationCode = 'CQ1510433590' |
|
|
obj.outboundOrderNo = getOutboundNoList() |
|
|
obj.outboundOrderNo = getOutboundNoList() |
|
|
obj.store = getStoreList() |
|
|
obj.store = getStoreList() |
|
|
obj.name1 = (obj.store === '辅材库' || obj.store === '备件库') ? '' : getKQList() + '区' |
|
|
|
|
|
obj.goodsArea = obj.store + (obj.name1 ? '-' + obj.name1 : '') + '-' + (obj.store === '备件库' ? (parseInt(Math.random() * 19 + 1) + '-' + parseInt(Math.random() * 2 + 1)) : parseInt(Math.random() * 16)) |
|
|
|
|
|
obj.shipmentCacheArea = getHCQList() |
|
|
|
|
|
|
|
|
obj.goodsArea = '成品库C-C区-' + (i + 8) |
|
|
|
|
|
obj.shipmentCacheArea = 'HCQC' + (2631 - i) |
|
|
obj.startTime = timeArrList[0] |
|
|
obj.startTime = timeArrList[0] |
|
|
obj.endTime = timeArrList[1] |
|
|
obj.endTime = timeArrList[1] |
|
|
obj.driverCode = getDriverCodeList() |
|
|
obj.driverCode = getDriverCodeList() |
|
|
temp.push(obj) |
|
|
temp.push(obj) |
|
|
} |
|
|
} |
|
|
this.list = temp |
|
|
|
|
|
|
|
|
const arr = ['备件库-13-2', '辅材库-14', '备件库-13-4'] |
|
|
|
|
|
for (let i = 0; i < 3; i++) { |
|
|
|
|
|
const obj = {} |
|
|
|
|
|
const timeArrList = getTimeArr() |
|
|
|
|
|
obj.operationCode = getOperationCode2List() |
|
|
|
|
|
obj.outboundOrderNo = getOutboundNoList() |
|
|
|
|
|
obj.store = getStoreList() |
|
|
|
|
|
obj.goodsArea = arr[i] |
|
|
|
|
|
obj.shipmentCacheArea = 'HCQC' + (2897 - i) |
|
|
|
|
|
obj.startTime = timeArrList[0] |
|
|
|
|
|
obj.endTime = timeArrList[1] |
|
|
|
|
|
obj.driverCode = getDriverCodeList() |
|
|
|
|
|
temp2.push(obj) |
|
|
|
|
|
} |
|
|
|
|
|
this.list = temp.concat(temp2) |
|
|
console.log(this.list) |
|
|
console.log(this.list) |
|
|
this.total = num |
|
|
|
|
|
|
|
|
this.total = 20 |
|
|
}, |
|
|
}, |
|
|
btnClick(val) { |
|
|
btnClick(val) { |
|
|
console.log(val) |
|
|
console.log(val) |
|
|