11-wms-zjl #16
@ -230,7 +230,7 @@ export const routes = [
|
|||||||
path: 'goodsData',
|
path: 'goodsData',
|
||||||
name: 'goodsData',
|
name: 'goodsData',
|
||||||
meta: {
|
meta: {
|
||||||
title: '物品数据',
|
title: '物料数据',
|
||||||
icon: 'form'
|
icon: 'form'
|
||||||
},
|
},
|
||||||
component: () => import('@/views/wmsBasicData/goodsData.vue')
|
component: () => import('@/views/wmsBasicData/goodsData.vue')
|
||||||
|
@ -27,17 +27,15 @@ export function getCustomerCodeList() {
|
|||||||
|
|
||||||
// 成品规格List
|
// 成品规格List
|
||||||
export function getProductSpecList() {
|
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))]
|
const spec = list[parseInt(Math.random() * (list.length))]
|
||||||
return spec
|
return spec
|
||||||
}
|
}
|
||||||
|
|
||||||
// 批次List
|
// 批次List
|
||||||
export function getBatchList() {
|
export function getBatchList() {
|
||||||
let batch = '2022'
|
const sj = parseInt(Math.random() * 100 + 1)
|
||||||
for (let i = 0; i < 8; i++) {
|
const batch = moment().subtract(sj, 'days').format('YYYYMMDD')
|
||||||
batch += parseInt(Math.random() * 89 + 10)
|
|
||||||
}
|
|
||||||
return batch
|
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() {
|
export function getStoreList() {
|
||||||
let store = ''
|
let store = ''
|
||||||
store += storeList[parseInt(Math.random() * storeList.length)]
|
store += storeList[parseInt(Math.random() * storeList.length)]
|
||||||
@ -153,10 +151,8 @@ export function getTimeArr() {
|
|||||||
|
|
||||||
// 物料编码List
|
// 物料编码List
|
||||||
export function getMaterialCodeList() {
|
export function getMaterialCodeList() {
|
||||||
let materialCode = 'WL'
|
const sj = parseInt(Math.random() * 365)
|
||||||
for (let i = 0; i < 4; i++) {
|
const materialCode = 'M' + (sj % 2 ? 'G' : 'F') + moment().subtract(sj, 'days').subtract(sj, 'hour').subtract(sj, 'minutes').subtract(sj, 'seconds').format('YYYYMMDDhhmmss')
|
||||||
materialCode += parseInt(Math.random() * 89 + 10)
|
|
||||||
}
|
|
||||||
return materialCode
|
return materialCode
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,7 +165,7 @@ export function getNameList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 客户数据
|
// 客户数据
|
||||||
const compList = ['台玻', 'FUYAO福耀', 'SG南玻', 'XYG信义玻璃', '耀皮', '福莱特玻璃', 'CLFG洛玻', 'SHABO沙玻', 'KIBING旗滨', '金晶玻璃', '济南金昊', '东莞佳美特', '汇中矿产', '文盛新材料', '西点化学', '开源塑胶', '奥驰商贸', '竹中科技', '程龙玻璃']
|
const compList = ['隆基绿能科技股份有限公司', '天合光能股份有限公司', '晶澳太阳能科技股份有限公司', '晶科能源股份有限公司', '阿特斯阳光电力集团', '东方日升新能源股份有限公司', '尚德集团', '浙江正泰新能源开发有限公司', '环晟光伏(江苏)有限公司', '江苏赛拉弗光伏系统有限公司', '唐山海泰新能科技股份有限公司', '阳光能源控股有限公司', '横店集团东磁股份有限公司', '常州亿晶光电科技有限公司', '协鑫集成科技股份有限公司', '苏州中来光伏新材股份有限公司', '中节能太阳能科技(镇江)有限公司', '苏州腾晖光伏技术有限公司', '英利绿色能源控股有限公司', '湖南红太阳新能源科技有限公司']
|
||||||
export function getCompTyleList() {
|
export function getCompTyleList() {
|
||||||
let comp = ''
|
let comp = ''
|
||||||
comp = compList[parseInt(Math.random() * (compList.length))]
|
comp = compList[parseInt(Math.random() * (compList.length))]
|
||||||
|
@ -50,7 +50,7 @@ const tableProps = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'internalControlCode',
|
prop: 'internalControlCode',
|
||||||
label: '成品内控码'
|
label: '成品内控码/商品条码'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'customerCode',
|
prop: 'customerCode',
|
||||||
@ -67,10 +67,6 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: 'batch',
|
prop: 'batch',
|
||||||
label: '批次'
|
label: '批次'
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'packCode',
|
|
||||||
label: '包装机号'
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
@ -92,7 +88,7 @@ export default {
|
|||||||
{
|
{
|
||||||
type: 'input',
|
type: 'input',
|
||||||
label: '关键字',
|
label: '关键字',
|
||||||
placeholder: '托盘号或成品内控码',
|
placeholder: '托盘号或成品内控码/商品条码',
|
||||||
param: 'name',
|
param: 'name',
|
||||||
width: 300
|
width: 300
|
||||||
},
|
},
|
||||||
@ -133,7 +129,7 @@ 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() * 1000)
|
obj.num = parseInt(Math.random() * 180 + 100)
|
||||||
obj.productDpec = getProductSpecList()
|
obj.productDpec = getProductSpecList()
|
||||||
obj.batch = getBatchList()
|
obj.batch = getBatchList()
|
||||||
obj.packCode = getPackList()
|
obj.packCode = getPackList()
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
:visible.sync="dialogVisible"
|
:visible.sync="dialogVisible"
|
||||||
width="50%"
|
width="50%"
|
||||||
>
|
>
|
||||||
<el-form ref="formList" label-position="right" label-width="80px" :model="formList">
|
<el-form ref="formList" label-position="right" label-width="140px" :model="formList">
|
||||||
<el-form-item label="托盘号" prop="trayID">
|
<el-form-item label="托盘号" prop="trayID">
|
||||||
<el-input v-model="formList.trayID" />
|
<el-input v-model="formList.trayID" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="成品内控码" prop="internalControlCode">
|
<el-form-item label="成品内控码/商品条码" prop="internalControlCode">
|
||||||
<el-input v-model="formList.internalControlCode" />
|
<el-input v-model="formList.internalControlCode" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="客户标签号" prop="customerCode">
|
<el-form-item label="客户标签号" prop="customerCode">
|
||||||
@ -24,9 +24,6 @@
|
|||||||
<el-form-item label="批次" prop="batch">
|
<el-form-item label="批次" prop="batch">
|
||||||
<el-input v-model="formList.batch" />
|
<el-input v-model="formList.batch" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="包装机号" prop="packCode">
|
|
||||||
<el-input v-model="formList.packCode" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="resetForm('formList')">取 消</el-button>
|
<el-button @click="resetForm('formList')">取 消</el-button>
|
||||||
@ -53,8 +50,7 @@ export default {
|
|||||||
customerCode: '',
|
customerCode: '',
|
||||||
productDpec: '',
|
productDpec: '',
|
||||||
num: '',
|
num: '',
|
||||||
batch: '',
|
batch: ''
|
||||||
packCode: ''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -70,7 +66,6 @@ export default {
|
|||||||
this.formList.productDpec = val.productDpec
|
this.formList.productDpec = val.productDpec
|
||||||
this.formList.num = val.num
|
this.formList.num = val.num
|
||||||
this.formList.batch = val.batch
|
this.formList.batch = val.batch
|
||||||
this.formList.packCode = val.packCode
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
|
@ -5,14 +5,14 @@
|
|||||||
:visible.sync="dialogVisible"
|
:visible.sync="dialogVisible"
|
||||||
width="50%"
|
width="50%"
|
||||||
>
|
>
|
||||||
<el-form ref="formList" label-position="right" label-width="80px" :model="formList">
|
<el-form ref="formList" label-position="right" label-width="140px" :model="formList">
|
||||||
<el-form-item label="入库单号" prop="receiptNo">
|
<el-form-item label="入库单号" prop="receiptNo">
|
||||||
<el-input v-model="formList.receiptNo" />
|
<el-input v-model="formList.receiptNo" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="托盘号" prop="trayID">
|
<el-form-item label="托盘号" prop="trayID">
|
||||||
<el-input v-model="formList.trayID" />
|
<el-input v-model="formList.trayID" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="成品内控码" prop="internalControlCode">
|
<el-form-item label="成品内控码/商品条码" prop="internalControlCode">
|
||||||
<el-input v-model="formList.internalControlCode" />
|
<el-input v-model="formList.internalControlCode" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="客户标签号" prop="customerCode">
|
<el-form-item label="客户标签号" prop="customerCode">
|
||||||
@ -27,9 +27,6 @@
|
|||||||
<el-form-item label="批次" prop="batch">
|
<el-form-item label="批次" prop="batch">
|
||||||
<el-input v-model="formList.batch" />
|
<el-input v-model="formList.batch" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="包装机号" prop="packCode">
|
|
||||||
<el-input v-model="formList.packCode" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="resetForm('formList')">取 消</el-button>
|
<el-button @click="resetForm('formList')">取 消</el-button>
|
||||||
@ -57,8 +54,7 @@ export default {
|
|||||||
customerCode: '',
|
customerCode: '',
|
||||||
productDpec: '',
|
productDpec: '',
|
||||||
num: '',
|
num: '',
|
||||||
batch: '',
|
batch: ''
|
||||||
packCode: ''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -75,7 +71,6 @@ export default {
|
|||||||
this.formList.productDpec = val.productDpec
|
this.formList.productDpec = val.productDpec
|
||||||
this.formList.num = val.num
|
this.formList.num = val.num
|
||||||
this.formList.batch = val.batch
|
this.formList.batch = val.batch
|
||||||
this.formList.packCode = val.packCode
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
|
@ -52,9 +52,13 @@ const tableProps = [
|
|||||||
prop: 'trayID',
|
prop: 'trayID',
|
||||||
label: '托盘号'
|
label: '托盘号'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
prop: 'type',
|
||||||
|
label: '类型'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: 'internalControlCode',
|
prop: 'internalControlCode',
|
||||||
label: '成品内控码'
|
label: '成品内控码/商品条码'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'customerCode',
|
prop: 'customerCode',
|
||||||
@ -71,10 +75,6 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: 'batch',
|
prop: 'batch',
|
||||||
label: '批次'
|
label: '批次'
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'packCode',
|
|
||||||
label: '包装机号'
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
@ -96,7 +96,7 @@ export default {
|
|||||||
{
|
{
|
||||||
type: 'input',
|
type: 'input',
|
||||||
label: '关键字',
|
label: '关键字',
|
||||||
placeholder: '入库单号,托盘号或成品内控码',
|
placeholder: '入库单号,托盘号或成品内控码/商品条码',
|
||||||
param: 'name',
|
param: 'name',
|
||||||
width: 300
|
width: 300
|
||||||
},
|
},
|
||||||
@ -132,13 +132,17 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
const temp = []
|
const temp = []
|
||||||
const num = 20
|
const num = 20
|
||||||
|
const typeList = ['成品', '辅料', '备件']
|
||||||
for (let i = 0; i < num; i++) {
|
for (let i = 0; i < num; i++) {
|
||||||
const obj = {}
|
const obj = {}
|
||||||
|
const sj = parseInt(Math.random() * 3 + 1)
|
||||||
|
console.log(sj)
|
||||||
obj.receiptNo = getReceiptNoList()
|
obj.receiptNo = getReceiptNoList()
|
||||||
obj.trayID = getTrayList()
|
obj.trayID = getTrayList()
|
||||||
obj.internalControlCode = getProductList()
|
obj.type = typeList[sj - 1]
|
||||||
|
obj.internalControlCode = sj === 1 ? getProductList() : ''
|
||||||
obj.customerCode = getCustomerCodeList()
|
obj.customerCode = getCustomerCodeList()
|
||||||
obj.num = parseInt(Math.random() * 1000)
|
obj.num = parseInt(Math.random() * 180 + 100)
|
||||||
obj.productDpec = getProductSpecList()
|
obj.productDpec = getProductSpecList()
|
||||||
obj.batch = getBatchList()
|
obj.batch = getBatchList()
|
||||||
obj.packCode = getPackList()
|
obj.packCode = getPackList()
|
||||||
|
@ -26,7 +26,7 @@ import HeadForm from '@/components/basicData/HeadForm'
|
|||||||
import BaseTable from '@/components/BaseTable'
|
import BaseTable from '@/components/BaseTable'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import { tableHeight } from '@/utils/index'
|
import { tableHeight } from '@/utils/index'
|
||||||
import { getReceiptNoList, getProductSpecList, getMaterialCodeList, getGoodsList } from '@/utils/wmsDic'
|
import { getReceiptNoList, getProductSpecList, getMaterialCodeList } from '@/utils/wmsDic'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
@ -37,10 +37,6 @@ const tableProps = [
|
|||||||
prop: 'type',
|
prop: 'type',
|
||||||
label: '类型'
|
label: '类型'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
prop: 'productName',
|
|
||||||
label: '品名'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
prop: 'spec',
|
prop: 'spec',
|
||||||
label: '规格'
|
label: '规格'
|
||||||
@ -115,7 +111,6 @@ export default {
|
|||||||
const obj = {}
|
const obj = {}
|
||||||
obj.orderCode = getReceiptNoList()
|
obj.orderCode = getReceiptNoList()
|
||||||
obj.type = '深加工玻璃'
|
obj.type = '深加工玻璃'
|
||||||
obj.productName = getGoodsList()
|
|
||||||
const sj = Math.floor(Math.random() * 100)
|
const sj = Math.floor(Math.random() * 100)
|
||||||
obj.spec = getProductSpecList()
|
obj.spec = getProductSpecList()
|
||||||
obj.materialCode = getMaterialCodeList()
|
obj.materialCode = getMaterialCodeList()
|
||||||
|
@ -34,7 +34,7 @@ import HeadForm from '@/components/basicData/HeadForm'
|
|||||||
import BaseTable from '@/components/BaseTable'
|
import BaseTable from '@/components/BaseTable'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import { tableHeight } from '@/utils/index'
|
import { tableHeight } from '@/utils/index'
|
||||||
import { getOutboundNoList, getProductSpecList, getMaterialCodeList, getGoodsList } from '@/utils/wmsDic'
|
import { getOutboundNoList, getProductSpecList, getMaterialCodeList } from '@/utils/wmsDic'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
@ -45,10 +45,6 @@ const tableProps = [
|
|||||||
prop: 'type',
|
prop: 'type',
|
||||||
label: '类型'
|
label: '类型'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
prop: 'productName',
|
|
||||||
label: '品名'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
prop: 'spec',
|
prop: 'spec',
|
||||||
label: '规格'
|
label: '规格'
|
||||||
@ -123,7 +119,6 @@ export default {
|
|||||||
const obj = {}
|
const obj = {}
|
||||||
obj.orderCode = getOutboundNoList()
|
obj.orderCode = getOutboundNoList()
|
||||||
obj.type = '深加工玻璃'
|
obj.type = '深加工玻璃'
|
||||||
obj.productName = getGoodsList()
|
|
||||||
const sj = Math.floor(Math.random() * 5)
|
const sj = Math.floor(Math.random() * 5)
|
||||||
obj.spec = getProductSpecList()
|
obj.spec = getProductSpecList()
|
||||||
obj.materialCode = getMaterialCodeList()
|
obj.materialCode = getMaterialCodeList()
|
||||||
|
Loading…
Reference in New Issue
Block a user