From 07f88a26f7c3d3c2c21f2ec16873b849c6c79e4d Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Fri, 21 Oct 2022 16:40:09 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E6=A8=A1=E5=9D=97=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/wmsDic.js | 66 ++++++++++++++++++-
.../components/customerData-add.vue | 40 +++++------
.../components/goodsAreaData-add.vue | 28 +++++---
.../wmsBasicData/components/goodsData-add.vue | 24 ++++---
.../components/warehouseData-add.vue | 24 ++++---
src/views/wmsBasicData/customerData.vue | 49 +++++++-------
src/views/wmsBasicData/goodsAreaData.vue | 52 ++++++++-------
src/views/wmsBasicData/goodsData.vue | 48 +++++++-------
src/views/wmsBasicData/warehouseData.vue | 62 ++++++++---------
.../wmsInventoryManagement/inventory.vue | 4 +-
.../wmsInventoryManagement/inventoryQuery.vue | 6 +-
.../wmsInventoryManagement/locationQuery.vue | 14 ++--
.../wmsInventoryManagement/stockTaking.vue | 4 +-
src/views/wmsOutStore/outStoreDocuments.vue | 4 +-
.../wmsStatisticalReports/inventoryReport.vue | 6 +-
.../wmsStatisticalReports/outStoreReport.vue | 6 +-
.../wmsSystemSettings/roleManagement.vue | 25 +++----
17 files changed, 276 insertions(+), 186 deletions(-)
diff --git a/src/utils/wmsDic.js b/src/utils/wmsDic.js
index 2001824..ad660e5 100644
--- a/src/utils/wmsDic.js
+++ b/src/utils/wmsDic.js
@@ -93,6 +93,14 @@ export function getOperationCode2List() {
return operationCode
}
+// 仓库
+const storeList = ['1号立体库', '2号立体库', '3号立体库', '4号立体库', '5号立体库', '6号立体库', '7号立体库', '8号立体库']
+export function getStoreList() {
+ let store = ''
+ store += storeList[parseInt(Math.random() * storeList.length)]
+ return store
+}
+
// 库区
const KQList = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N']
export function getKQList() {
@@ -155,7 +163,63 @@ export function getMaterialCodeList() {
// 名字
const nameList = ['张明', '李燕', '王国庆', '张强', '周敏']
export function getNameList() {
- let name = 'WL'
+ let name = ''
name = nameList[parseInt(Math.random() * (nameList.length))]
return name
}
+
+// 客户数据
+const compList = ['台玻', 'FUYAO福耀', 'SG南玻', 'XYG信义玻璃', '耀皮', '福莱特玻璃', 'CLFG洛玻', 'SHABO沙玻', 'KIBING旗滨', '金晶玻璃', '济南金昊', '东莞佳美特', '汇中矿产', '文盛新材料', '西点化学', '开源塑胶', '奥驰商贸', '竹中科技', '程龙玻璃']
+export function getCompTyleList() {
+ let comp = ''
+ comp = compList[parseInt(Math.random() * (compList.length))]
+ return comp
+}
+
+// 客户联系人
+const contactList = ['张总', '李总', '王总', '孙总', '赵总', '周总', '钱总', '吴总', '郑总', '杨总', '朱总', '蒋总', '江总', '马总']
+export function getContactList() {
+ let name = ''
+ name = contactList[parseInt(Math.random() * (contactList.length))]
+ return name
+}
+
+// 手机号前三位
+const phoneList = ['139', '138', '137', '136', '135', '134', '159', '158', '157', '150', '151', '152', '188', '187', '182', '183', '184', '178', '130', '131', '132', '156', '155', '186', '185', '176', '133', '153', '189', '180', '181', '177']
+export function getPhoneList() {
+ let name = ''
+ name = phoneList[parseInt(Math.random() * (phoneList.length))]
+ return name
+}
+
+// 物品名称
+const goodsList = ['钢化玻璃', '磨砂玻璃', '喷砂玻璃', '压花玻璃', '夹丝玻璃', '夹层玻璃']
+export function getGoodsList() {
+ let name = ''
+ name = goodsList[parseInt(Math.random() * (goodsList.length))]
+ return name
+}
+
+// 玻璃编码List
+export function getGlassCodeList() {
+ let materialCode = 'SJG'
+ for (let i = 0; i < 4; i++) {
+ materialCode += parseInt(Math.random() * 89 + 10)
+ }
+ return materialCode
+}
+
+// 角色编码List
+export function getRoleCodeList() {
+ let materialCode = 'R'
+ for (let i = 0; i < 4; i++) {
+ materialCode += parseInt(Math.random() * 89 + 10)
+ }
+ return materialCode
+}
+
+// 角色名称List
+export function getRoleNameList() {
+ const materialCode = ['超级管理员', '管理员', '1号线管理员', '2号线管理员', '1号线加工人员', '2号线加工人员', '质检1组', '质检2组', '质检3组', '质检4组']
+ return materialCode
+}
diff --git a/src/views/wmsBasicData/components/customerData-add.vue b/src/views/wmsBasicData/components/customerData-add.vue
index f4757ba..cb261af 100644
--- a/src/views/wmsBasicData/components/customerData-add.vue
+++ b/src/views/wmsBasicData/components/customerData-add.vue
@@ -7,10 +7,6 @@
-->
-
-
-
@@ -63,7 +52,6 @@