前4个模块的数据
This commit is contained in:
@@ -1,11 +1,3 @@
|
||||
<!--/*
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 15:41:11
|
||||
* @LastEditTime: 2022-04-15
|
||||
* @LastEditors: juzi
|
||||
* @Description: 拆分了搜索区和功能按钮区,增加了toptitle
|
||||
*/
|
||||
-->
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<head-form :form-config="headFormConfig" @headBtnClick="btnClick" />
|
||||
@@ -18,8 +10,6 @@
|
||||
:height="tableH"
|
||||
:table-config="tableProps"
|
||||
:table-data="list"
|
||||
:is-loading="listLoading"
|
||||
@clickTopBtn="clickTopBtn"
|
||||
/>
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
@@ -36,6 +26,8 @@ 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 } from '@/utils/wmsDic'
|
||||
import moment from 'moment'
|
||||
const tableProps = [
|
||||
{
|
||||
prop: 'orderCode',
|
||||
@@ -119,18 +111,16 @@ export default {
|
||||
getList() {
|
||||
const temp = []
|
||||
const num = 20
|
||||
const spcList = ['50*50m', '100*50m', '100*100m', '70*100m', '100*120m']
|
||||
for (let i = 0; i < num; i++) {
|
||||
const obj = {}
|
||||
obj.orderCode = '20314655' + i
|
||||
const sj = Math.floor(Math.random() * 5)
|
||||
obj.spec = spcList[sj]
|
||||
obj.materialCode = '20314655' + i
|
||||
obj.productName = '10210' + i
|
||||
obj.time = '2022-10-' + (i + 2)
|
||||
obj.type = Math.floor(Math.random() * 36) + '型'
|
||||
obj.batch = '202210255643' + i
|
||||
obj.num = Math.floor(Math.random() * 2000)
|
||||
obj.orderCode = getReceiptNoList()
|
||||
obj.type = ''
|
||||
obj.productName = ''
|
||||
const sj = Math.floor(Math.random() * 100)
|
||||
obj.spec = getProductSpecList()
|
||||
obj.materialCode = getMaterialCodeList()
|
||||
obj.num = Math.floor(Math.random() * 2000 + 200)
|
||||
obj.time = moment().subtract(sj, 'days').subtract(sj, 'hour').subtract(sj, 'minutes').subtract(sj, 'seconds').format('YYYY-MM-DD hh:mm:ss')
|
||||
temp.push(obj)
|
||||
}
|
||||
this.list = temp
|
||||
|
||||
Reference in New Issue
Block a user