11.23修改 #17

Merged
juzi merged 1 commits from 11-wms-zjl into master 2022-11-24 08:41:16 +08:00
6 changed files with 31 additions and 17 deletions

View File

@ -129,8 +129,8 @@ export default {
obj.trayID = getTrayList() obj.trayID = getTrayList()
obj.internalControlCode = getProductList() obj.internalControlCode = getProductList()
obj.customerCode = getCustomerCodeList() obj.customerCode = getCustomerCodeList()
obj.num = parseInt(Math.random() * 180 + 100)
obj.productDpec = getProductSpecList() obj.productDpec = getProductSpecList()
obj.num = obj.productDpec.substring(0, 1) === '3' ? parseInt(Math.random() * 100 + 100) : parseInt(Math.random() * 100 + 200)
obj.batch = getBatchList() obj.batch = getBatchList()
obj.packCode = getPackList() obj.packCode = getPackList()
temp.push(obj) temp.push(obj)

View File

@ -26,7 +26,7 @@ import { getMaterialCodeList, getKQList, getProductSpecList, getGoodsList } from
const tableProps = [ const tableProps = [
{ {
prop: 'productName', prop: 'productName',
label: '品名' label: '盖板玻璃或背板玻璃'
}, },
{ {
prop: 'spec', prop: 'spec',
@ -54,7 +54,7 @@ export default {
{ {
type: 'input', type: 'input',
label: '关键字', label: '关键字',
placeholder: '品名,物料编码,库区', placeholder: '盖板玻璃或背板玻璃,物料编码,库区',
param: 'name', param: 'name',
width: 250 width: 250
}, },

View File

@ -27,7 +27,7 @@ import moment from 'moment'
const tableProps = [ const tableProps = [
{ {
prop: 'productName', prop: 'productName',
label: '品名' label: '盖板玻璃或背板玻璃'
}, },
{ {
prop: 'spec', prop: 'spec',

View File

@ -33,7 +33,7 @@ const tableProps = [
}, },
{ {
prop: 'productName', prop: 'productName',
label: '品名' label: '盖板玻璃或背板玻璃'
}, },
{ {
prop: 'spec', prop: 'spec',
@ -73,7 +73,7 @@ export default {
{ {
type: 'input', type: 'input',
label: '关键字', label: '关键字',
placeholder: '盘点单号,品名,物料编码', placeholder: '盘点单号,盖板玻璃或背板玻璃,物料编码',
param: 'name', param: 'name',
width: 250 width: 250
}, },

View File

@ -134,7 +134,7 @@ export default {
obj.outboundOrderNo = getOutboundNoList() obj.outboundOrderNo = getOutboundNoList()
obj.customerName = getCompTyleList() obj.customerName = getCompTyleList()
obj.shipmentCacheArea = getHCQList() obj.shipmentCacheArea = getHCQList()
obj.num = parseInt(Math.random() * 1000) obj.num = parseInt(Math.random() * 40 + 20) + '(箱)'
obj.spec = getProductSpecList() obj.spec = getProductSpecList()
const sj = Math.floor(Math.random() * 100) 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') obj.deliveryTime = moment().add(sj, 'days').add(sj, 'hour').add(sj, 'minutes').add(sj, 'seconds').format('YYYY-MM-DD hh:mm:ss')

View File

@ -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 = '成品库C-C区-' + (i + 8)
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 = 'HCQC' + (2631 - i)
obj.shipmentCacheArea = getHCQList()
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)