wms数据
This commit is contained in:
@@ -27,17 +27,15 @@ export function getCustomerCodeList() {
|
||||
|
||||
// 成品规格List
|
||||
export function getProductSpecList() {
|
||||
const list = ['50*50mm', '70*50mm', '70*70mm', '100*50mm', '100*70mm', '100*100mm', '100*120mm', '120*120mm']
|
||||
const list = ['2.0-1128*1716', '2.0-1128*2251', '2.0-1128*2272', '3.2-1128*1716', '3.2-1128*1718', '3.2-1032*1747', '3.2-1033*2089']
|
||||
const spec = list[parseInt(Math.random() * (list.length))]
|
||||
return spec
|
||||
}
|
||||
|
||||
// 批次List
|
||||
export function getBatchList() {
|
||||
let batch = '2022'
|
||||
for (let i = 0; i < 8; i++) {
|
||||
batch += parseInt(Math.random() * 89 + 10)
|
||||
}
|
||||
const sj = parseInt(Math.random() * 100 + 1)
|
||||
const batch = moment().subtract(sj, 'days').format('YYYYMMDD')
|
||||
return batch
|
||||
}
|
||||
|
||||
@@ -94,7 +92,7 @@ export function getOperationCode2List() {
|
||||
}
|
||||
|
||||
// 仓库
|
||||
const storeList = ['1号立体库', '2号立体库', '3号立体库', '4号立体库', '5号立体库', '6号立体库', '7号立体库', '8号立体库']
|
||||
const storeList = ['成品库A', '成品库B', '成品库C', '成品库D', '备件库', '辅材库']
|
||||
export function getStoreList() {
|
||||
let store = ''
|
||||
store += storeList[parseInt(Math.random() * storeList.length)]
|
||||
@@ -153,10 +151,8 @@ export function getTimeArr() {
|
||||
|
||||
// 物料编码List
|
||||
export function getMaterialCodeList() {
|
||||
let materialCode = 'WL'
|
||||
for (let i = 0; i < 4; i++) {
|
||||
materialCode += parseInt(Math.random() * 89 + 10)
|
||||
}
|
||||
const sj = parseInt(Math.random() * 365)
|
||||
const materialCode = 'M' + (sj % 2 ? 'G' : 'F') + moment().subtract(sj, 'days').subtract(sj, 'hour').subtract(sj, 'minutes').subtract(sj, 'seconds').format('YYYYMMDDhhmmss')
|
||||
return materialCode
|
||||
}
|
||||
|
||||
@@ -169,7 +165,7 @@ export function getNameList() {
|
||||
}
|
||||
|
||||
// 客户数据
|
||||
const compList = ['台玻', 'FUYAO福耀', 'SG南玻', 'XYG信义玻璃', '耀皮', '福莱特玻璃', 'CLFG洛玻', 'SHABO沙玻', 'KIBING旗滨', '金晶玻璃', '济南金昊', '东莞佳美特', '汇中矿产', '文盛新材料', '西点化学', '开源塑胶', '奥驰商贸', '竹中科技', '程龙玻璃']
|
||||
const compList = ['隆基绿能科技股份有限公司', '天合光能股份有限公司', '晶澳太阳能科技股份有限公司', '晶科能源股份有限公司', '阿特斯阳光电力集团', '东方日升新能源股份有限公司', '尚德集团', '浙江正泰新能源开发有限公司', '环晟光伏(江苏)有限公司', '江苏赛拉弗光伏系统有限公司', '唐山海泰新能科技股份有限公司', '阳光能源控股有限公司', '横店集团东磁股份有限公司', '常州亿晶光电科技有限公司', '协鑫集成科技股份有限公司', '苏州中来光伏新材股份有限公司', '中节能太阳能科技(镇江)有限公司', '苏州腾晖光伏技术有限公司', '英利绿色能源控股有限公司', '湖南红太阳新能源科技有限公司']
|
||||
export function getCompTyleList() {
|
||||
let comp = ''
|
||||
comp = compList[parseInt(Math.random() * (compList.length))]
|
||||
|
||||
Reference in New Issue
Block a user