|
@@ -533,6 +533,7 @@ export default {
|
|
|
let rows = XLSX.utils.sheet_to_json(
|
|
|
workbook.Sheets[workbook.SheetNames[0]]
|
|
|
) //只取第一页
|
|
|
+ let uuid = Math.floor(Math.random() * 60 * 24)
|
|
|
Array.from(rows).forEach((e, index) => {
|
|
|
let map = {}
|
|
|
try {
|
|
@@ -679,6 +680,19 @@ export default {
|
|
|
if (typeof map.isSelfMention === 'undefined') {
|
|
|
map.isSelfMention = '否'
|
|
|
}
|
|
|
+ if (typeof map.truckNo === 'undefined') {
|
|
|
+ map.truckNo = Number(
|
|
|
+ `${Math.floor(
|
|
|
+ Math.random() *
|
|
|
+ Math.random() *
|
|
|
+ Math.random() *
|
|
|
+ Math.random() *
|
|
|
+ Math.random() *
|
|
|
+ new Date().getTime() *
|
|
|
+ 10000000
|
|
|
+ )}${uuid}`
|
|
|
+ )
|
|
|
+ }
|
|
|
if (map.saleRemark && map.receiveName && map.materialName) {
|
|
|
that.tableData.push(map)
|
|
|
}
|