wms数据
This commit is contained in:
@@ -50,7 +50,7 @@ const tableProps = [
|
||||
},
|
||||
{
|
||||
prop: 'internalControlCode',
|
||||
label: '成品内控码'
|
||||
label: '成品内控码/商品条码'
|
||||
},
|
||||
{
|
||||
prop: 'customerCode',
|
||||
@@ -67,10 +67,6 @@ const tableProps = [
|
||||
{
|
||||
prop: 'batch',
|
||||
label: '批次'
|
||||
},
|
||||
{
|
||||
prop: 'packCode',
|
||||
label: '包装机号'
|
||||
}
|
||||
]
|
||||
const tableBtn = [
|
||||
@@ -92,7 +88,7 @@ export default {
|
||||
{
|
||||
type: 'input',
|
||||
label: '关键字',
|
||||
placeholder: '托盘号或成品内控码',
|
||||
placeholder: '托盘号或成品内控码/商品条码',
|
||||
param: 'name',
|
||||
width: 300
|
||||
},
|
||||
@@ -133,7 +129,7 @@ export default {
|
||||
obj.trayID = getTrayList()
|
||||
obj.internalControlCode = getProductList()
|
||||
obj.customerCode = getCustomerCodeList()
|
||||
obj.num = parseInt(Math.random() * 1000)
|
||||
obj.num = parseInt(Math.random() * 180 + 100)
|
||||
obj.productDpec = getProductSpecList()
|
||||
obj.batch = getBatchList()
|
||||
obj.packCode = getPackList()
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
:visible.sync="dialogVisible"
|
||||
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-input v-model="formList.trayID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="成品内控码" prop="internalControlCode">
|
||||
<el-form-item label="成品内控码/商品条码" prop="internalControlCode">
|
||||
<el-input v-model="formList.internalControlCode" />
|
||||
</el-form-item>
|
||||
<el-form-item label="客户标签号" prop="customerCode">
|
||||
@@ -24,9 +24,6 @@
|
||||
<el-form-item label="批次" prop="batch">
|
||||
<el-input v-model="formList.batch" />
|
||||
</el-form-item>
|
||||
<el-form-item label="包装机号" prop="packCode">
|
||||
<el-input v-model="formList.packCode" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="resetForm('formList')">取 消</el-button>
|
||||
@@ -53,8 +50,7 @@ export default {
|
||||
customerCode: '',
|
||||
productDpec: '',
|
||||
num: '',
|
||||
batch: '',
|
||||
packCode: ''
|
||||
batch: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -70,7 +66,6 @@ export default {
|
||||
this.formList.productDpec = val.productDpec
|
||||
this.formList.num = val.num
|
||||
this.formList.batch = val.batch
|
||||
this.formList.packCode = val.packCode
|
||||
})
|
||||
}
|
||||
this.dialogVisible = true
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
:visible.sync="dialogVisible"
|
||||
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-input v-model="formList.receiptNo" />
|
||||
</el-form-item>
|
||||
<el-form-item label="托盘号" prop="trayID">
|
||||
<el-input v-model="formList.trayID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="成品内控码" prop="internalControlCode">
|
||||
<el-form-item label="成品内控码/商品条码" prop="internalControlCode">
|
||||
<el-input v-model="formList.internalControlCode" />
|
||||
</el-form-item>
|
||||
<el-form-item label="客户标签号" prop="customerCode">
|
||||
@@ -27,9 +27,6 @@
|
||||
<el-form-item label="批次" prop="batch">
|
||||
<el-input v-model="formList.batch" />
|
||||
</el-form-item>
|
||||
<el-form-item label="包装机号" prop="packCode">
|
||||
<el-input v-model="formList.packCode" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="resetForm('formList')">取 消</el-button>
|
||||
@@ -57,8 +54,7 @@ export default {
|
||||
customerCode: '',
|
||||
productDpec: '',
|
||||
num: '',
|
||||
batch: '',
|
||||
packCode: ''
|
||||
batch: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -75,7 +71,6 @@ export default {
|
||||
this.formList.productDpec = val.productDpec
|
||||
this.formList.num = val.num
|
||||
this.formList.batch = val.batch
|
||||
this.formList.packCode = val.packCode
|
||||
})
|
||||
}
|
||||
this.dialogVisible = true
|
||||
|
||||
@@ -52,9 +52,13 @@ const tableProps = [
|
||||
prop: 'trayID',
|
||||
label: '托盘号'
|
||||
},
|
||||
{
|
||||
prop: 'type',
|
||||
label: '类型'
|
||||
},
|
||||
{
|
||||
prop: 'internalControlCode',
|
||||
label: '成品内控码'
|
||||
label: '成品内控码/商品条码'
|
||||
},
|
||||
{
|
||||
prop: 'customerCode',
|
||||
@@ -71,10 +75,6 @@ const tableProps = [
|
||||
{
|
||||
prop: 'batch',
|
||||
label: '批次'
|
||||
},
|
||||
{
|
||||
prop: 'packCode',
|
||||
label: '包装机号'
|
||||
}
|
||||
]
|
||||
const tableBtn = [
|
||||
@@ -96,7 +96,7 @@ export default {
|
||||
{
|
||||
type: 'input',
|
||||
label: '关键字',
|
||||
placeholder: '入库单号,托盘号或成品内控码',
|
||||
placeholder: '入库单号,托盘号或成品内控码/商品条码',
|
||||
param: 'name',
|
||||
width: 300
|
||||
},
|
||||
@@ -132,13 +132,17 @@ export default {
|
||||
getList() {
|
||||
const temp = []
|
||||
const num = 20
|
||||
const typeList = ['成品', '辅料', '备件']
|
||||
for (let i = 0; i < num; i++) {
|
||||
const obj = {}
|
||||
const sj = parseInt(Math.random() * 3 + 1)
|
||||
console.log(sj)
|
||||
obj.receiptNo = getReceiptNoList()
|
||||
obj.trayID = getTrayList()
|
||||
obj.internalControlCode = getProductList()
|
||||
obj.type = typeList[sj - 1]
|
||||
obj.internalControlCode = sj === 1 ? getProductList() : ''
|
||||
obj.customerCode = getCustomerCodeList()
|
||||
obj.num = parseInt(Math.random() * 1000)
|
||||
obj.num = parseInt(Math.random() * 180 + 100)
|
||||
obj.productDpec = getProductSpecList()
|
||||
obj.batch = getBatchList()
|
||||
obj.packCode = getPackList()
|
||||
|
||||
@@ -26,7 +26,7 @@ import HeadForm from '@/components/basicData/HeadForm'
|
||||
import BaseTable from '@/components/BaseTable'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import { tableHeight } from '@/utils/index'
|
||||
import { getReceiptNoList, getProductSpecList, getMaterialCodeList, getGoodsList } from '@/utils/wmsDic'
|
||||
import { getReceiptNoList, getProductSpecList, getMaterialCodeList } from '@/utils/wmsDic'
|
||||
import moment from 'moment'
|
||||
const tableProps = [
|
||||
{
|
||||
@@ -37,10 +37,6 @@ const tableProps = [
|
||||
prop: 'type',
|
||||
label: '类型'
|
||||
},
|
||||
{
|
||||
prop: 'productName',
|
||||
label: '品名'
|
||||
},
|
||||
{
|
||||
prop: 'spec',
|
||||
label: '规格'
|
||||
@@ -115,7 +111,6 @@ export default {
|
||||
const obj = {}
|
||||
obj.orderCode = getReceiptNoList()
|
||||
obj.type = '深加工玻璃'
|
||||
obj.productName = getGoodsList()
|
||||
const sj = Math.floor(Math.random() * 100)
|
||||
obj.spec = getProductSpecList()
|
||||
obj.materialCode = getMaterialCodeList()
|
||||
|
||||
@@ -34,7 +34,7 @@ import HeadForm from '@/components/basicData/HeadForm'
|
||||
import BaseTable from '@/components/BaseTable'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import { tableHeight } from '@/utils/index'
|
||||
import { getOutboundNoList, getProductSpecList, getMaterialCodeList, getGoodsList } from '@/utils/wmsDic'
|
||||
import { getOutboundNoList, getProductSpecList, getMaterialCodeList } from '@/utils/wmsDic'
|
||||
import moment from 'moment'
|
||||
const tableProps = [
|
||||
{
|
||||
@@ -45,10 +45,6 @@ const tableProps = [
|
||||
prop: 'type',
|
||||
label: '类型'
|
||||
},
|
||||
{
|
||||
prop: 'productName',
|
||||
label: '品名'
|
||||
},
|
||||
{
|
||||
prop: 'spec',
|
||||
label: '规格'
|
||||
@@ -123,7 +119,6 @@ export default {
|
||||
const obj = {}
|
||||
obj.orderCode = getOutboundNoList()
|
||||
obj.type = '深加工玻璃'
|
||||
obj.productName = getGoodsList()
|
||||
const sj = Math.floor(Math.random() * 5)
|
||||
obj.spec = getProductSpecList()
|
||||
obj.materialCode = getMaterialCodeList()
|
||||
|
||||
Reference in New Issue
Block a user