diff --git a/pages.json b/pages.json
index 1a5d8aa..9bff67d 100644
--- a/pages.json
+++ b/pages.json
@@ -9,12 +9,19 @@
"selectedColor": "#409eff",
"borderStyle": "black",
"backgroundColor": "#ffffff",
- "list": [{
+ "list": [
+ {
"pagePath": "pages/index/index",
"iconPath": "static/images/tabbar/home.png",
"selectedIconPath": "static/images/tabbar/home_.png",
"text": "仓库"
},
+ {
+ "pagePath": "pages/materialManagement/materialManagement",
+ "iconPath": "static/images/tabbar/work.png",
+ "selectedIconPath": "static/images/tabbar/work_.png",
+ "text": "物料管理"
+ },
{
"pagePath": "pages/user/user",
"iconPath": "static/images/tabbar/mine.png",
@@ -85,8 +92,7 @@
{
"path": "pages/agv/agv",
"style": {
- "navigationBarTitleText": "AGV",
- "navigationStyle": "custom",
+ "navigationBarTitleText": "AGV功能",
"enablePullDownRefresh": false
}
},
@@ -94,7 +100,7 @@
"path" : "pages/agv/agv-in/agv-in",
"style" :
{
- "navigationBarTitleText" : "入料",
+ "navigationBarTitleText" : "上料工单",
"enablePullDownRefresh" : false
}
},
@@ -178,6 +184,22 @@
"navigationBarTitleText" : "拆箱",
"enablePullDownRefresh" : false
}
+ },
+ {
+ "path" : "pages/agv/agv-action/agv-action",
+ "style" :
+ {
+ "navigationBarTitleText" : "AGV任务执行",
+ "enablePullDownRefresh" : false
+ }
+ },
+ {
+ "path" : "pages/materialManagement/materialManagement",
+ "style" :
+ {
+ "navigationBarTitleText" : "物料管理",
+ "enablePullDownRefresh" : false
+ }
}
]
diff --git a/pages/agv/agv-action/agv-action.vue b/pages/agv/agv-action/agv-action.vue
new file mode 100644
index 0000000..3160ef0
--- /dev/null
+++ b/pages/agv/agv-action/agv-action.vue
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/agv/agv-order/agv-order.vue b/pages/agv/agv-order/agv-order.vue
index 1fc6dc9..349b43b 100644
--- a/pages/agv/agv-order/agv-order.vue
+++ b/pages/agv/agv-order/agv-order.vue
@@ -74,7 +74,7 @@
loading: false,
orderInfo: {},
list: [],
- flag:1
+ flag: 1
}
},
onShow() {
@@ -83,6 +83,9 @@
methods: {
// 获取AGV小车列表
getList() {
+ if (!this.orderInfo.id) {
+ return;
+ }
this.loading = true;
setTimeout(() => {
this.loading = false;
@@ -131,7 +134,7 @@
this.getList();
}
})
- }else{
+ } else {
uni.showToast({
icon: 'error',
title: '删除失败!'
@@ -142,14 +145,14 @@
const queryData = {
taskId
}
-
+
},
- handlerStart1() {
- this.flag=1;
+ handlerStart1(id) {
+ this.flag = 1;
// 上料
const queryData = {
- workorder_id: this.orderInfo.id,
- flag:this.flag
+ taskid: id,
+ flag: this.flag
}
AgvApi.goTask(queryData).then(res => {
if (res.code === 200) {
@@ -157,8 +160,7 @@
icon: 'success',
title: res.data.message
});
-
- }else{
+ } else {
uni.showToast({
icon: 'error',
title: res.data
@@ -167,12 +169,12 @@
})
},
- handlerStart2() {
- this.flag=2;
+ handlerStart2(id) {
+ this.flag = 2;
// 反程
const queryData = {
- workorder_id: this.orderInfo.id,
- flag:2
+ taskid: id,
+ flag: 2
}
AgvApi.goTask(queryData).then(res => {
if (res.code === 200) {
@@ -180,9 +182,7 @@
icon: 'success',
title: res.data.message
});
-
-
- }else{
+ } else {
uni.showToast({
icon: 'error',
title: res.data
@@ -194,7 +194,7 @@
handlerStop() {
const queryData = {
workorder_id: this.orderInfo.id,
- flag:this.flag
+ flag: this.flag
}
AgvApi.Stoptask(queryData).then(res => {
if (res.code === 200) {
@@ -202,9 +202,9 @@
icon: 'success',
title: res.data.message
});
-
-
- }else{
+
+
+ } else {
uni.showToast({
icon: 'error',
title: res.data
diff --git a/pages/agv/agv.vue b/pages/agv/agv.vue
index a3f0b94..375a9b8 100644
--- a/pages/agv/agv.vue
+++ b/pages/agv/agv.vue
@@ -1,15 +1,11 @@
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
+
+
+
+
+ {{item.name}}
+
+
@@ -17,40 +13,29 @@
export default {
data() {
return {
- gridItemList: [{
- name: '入料',
- icon: 'download-filled'
+ gridItemList: [
+ {
+ name: 'agv操作',
+ icon: 'grid-fill',
+ url: '/pages/agv/agv-action/agv-action'
},
{
- name: '出料',
- icon: 'upload-filled'
+ name: '上料工单',
+ icon: 'grid-fill',
+ url: '/pages/agv/agv-in/agv-in'
},
- // {
- // name: '出料',
- // icon: 'upload-filled'
- // },
-
]
}
},
methods: {
- gridCheck(item) {
- const index = item.detail?.index;
- switch (index) {
- case 1:
- uni.navigateTo({
- url: '/pages/agv/agv-in/agv-in'
- });
- break;
- case 2:
- uni.navigateTo({
- url: '/pages/agv/agv-out/agv-out'
- });
- break;
- default:
- break;
+ gridCheck(url) {
+ if (url === '') {
+ return;
}
- }
+ uni.navigateTo({
+ url
+ });
+ },
}
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index d4ab10e..56dad08 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,71 +1,36 @@
-
-
-
-
-
-
-
-
-
-
-
- {{buttonData[0].text}}
-
-
-
-
-
-
-
-
-
-
- {{buttonData[1].text}}
-
-
-
-
-
- {{buttonData[2].text}}
-
-
-
-
-
-
-
-
-
- {{buttonData[3].text}}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{buttonData[4].text}}
-
-
-
-
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ {{item.name}}
+
+
@@ -77,71 +42,96 @@
data() {
return {
// 页面按钮参数
- buttonData: [{
- index: 0,
- text: '入库',
- icon: '/static/images/icon/rk.svg',
- style: {
- width: '80px',
- height: '180px',
- fontSize: '20px',
- backgroundImage: 'linear-gradient(to bottom right, #fe9a9c 0%, #fe7a7c 100%)',
- color: 'white',
- borderRadius: '10px'
- }
+ gridItemList: [{
+ name: '成品入库',
+ icon: 'grid-fill',
+ url: '/pages/inWarehouse/inWarehouse?isStrict=true',
+ type: 1,
+ index: 1
},
{
- index: 1,
- text: '移库',
- icon: '/static/images/icon/yk.svg',
- style: {
- width: '110px',
- height: '90px',
- fontSize: '20px',
- backgroundImage: 'linear-gradient(to bottom right, #fdb886 0%, #fdad6d 100%)',
- color: 'white',
- borderRadius: '10px'
- }
+ name: '油漆入库',
+ icon: 'grid-fill',
+ url: '',
+ type: 1,
+ index: 2
},
{
- index: 2,
- text: '盘点',
- icon: '/static/images/icon/pd.svg',
- style: {
-
- width: '110px',
- height: '90px',
- fontSize: '20px',
- backgroundImage: 'linear-gradient(to bottom right, #67e5f5 0% , #52cee2 100%)',
- color: 'white',
- borderRadius: '10px'
- }
+ name: '毛坯入库',
+ icon: 'grid-fill',
+ url: '',
+ type: 1,
+ index: 3
},
{
- index: 3,
- text: '出库',
- icon: '/static/images/icon/ck.svg',
- style: {
- width: '100%',
- height: '80px',
- fontSize: '20px',
- backgroundImage: 'linear-gradient(to bottom right, #a4a1f9 0%, #8180f9 100%)',
- color: 'white',
- borderRadius: '10px'
- }
+ name: '备品备件',
+ icon: 'grid-fill',
+ url: '',
+ type: 1,
+ index: 4
},
{
- index: 4,
- text: '仓库管理',
- icon: '/static/images/icon/ckgl.svg',
- style: {
- width: '100%',
- height: '80px',
- fontSize: '20px',
- backgroundImage: 'linear-gradient(to bottom right, #59affe 0%, #4d92fe 100%)',
- color: 'white',
- borderRadius: '10px'
- }
+ name: '成品出库',
+ icon: 'grid-fill',
+ url: '/pages/outWarehouse/outWarehouse',
+ type: 2,
+ index: 5
+ },
+ {
+ name: '出货',
+ icon: 'grid-fill',
+ url: '',
+ type: 2,
+ index: 6
+ },
+ {
+ name: '退货',
+ icon: 'grid-fill',
+ url: '',
+ type: 2,
+ index: 7
+ },
+ {
+ name: '盘点',
+ icon: 'grid-fill',
+ url: '/pages/stocktake/stocktake',
+ type: 3,
+ index: 8
+ },
+ {
+ name: '库存查询',
+ icon: 'grid-fill',
+ url: '/pages/watchGoods/watchGoods',
+ type: 3,
+ index: 9
+ },
+ {
+ name: '操作记录',
+ icon: 'grid-fill',
+ url: '/pages/warehoseActionList/warehoseActionList',
+ type: 3,
+ index: 10
+ },
+ {
+ name: '拼箱',
+ icon: 'grid-fill',
+ url: '/pages/consolidation/consolidation',
+ type: 4,
+ index: 11
+ },
+ {
+ name: '拆箱',
+ icon: 'grid-fill',
+ url: '/pages/unpacking/unpacking',
+ type: 4,
+ index: 12
+ },
+ {
+ name: '移库',
+ icon: 'grid-fill',
+ url: '/pages/relocation/relocation',
+ type: 4,
+ index: 13
}
]
};
@@ -159,15 +149,12 @@
'LogOut',
'GetInfo'
]),
- toMenuChouse(type) {
+ gridCheck(url) {
+ if (url === '') {
+ return;
+ }
uni.navigateTo({
- url: '/pages/menuChouse/menuChouse',
- success: function(res) {
- // 向按钮列表页传递消息
- res.eventChannel.emit('setMenuType', {
- data: type
- })
- }
+ url
});
},
}
diff --git a/pages/materialManagement/materialManagement.css b/pages/materialManagement/materialManagement.css
new file mode 100644
index 0000000..213ed29
--- /dev/null
+++ b/pages/materialManagement/materialManagement.css
@@ -0,0 +1,5 @@
+.home-container {
+ width: 360px;
+ height: 594px;
+ background-color: white;
+}
\ No newline at end of file
diff --git a/pages/materialManagement/materialManagement.vue b/pages/materialManagement/materialManagement.vue
new file mode 100644
index 0000000..aba4a2d
--- /dev/null
+++ b/pages/materialManagement/materialManagement.vue
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/menuChouse/menuChouse.vue b/pages/menuChouse/menuChouse.vue
index e7701c4..c6890d5 100644
--- a/pages/menuChouse/menuChouse.vue
+++ b/pages/menuChouse/menuChouse.vue
@@ -49,7 +49,7 @@
{
//展示时机
isShowType: 0,
- isShow: false,
+ isShow: true,
name: '油漆入库',
// 触发跳转
url: '',
@@ -59,7 +59,7 @@
{
//展示时机
isShowType: 0,
- isShow: false,
+ isShow: true,
name: '毛坯入库',
// 触发跳转
url: '',
@@ -69,7 +69,7 @@
{
//展示时机
isShowType: 0,
- isShow: false,
+ isShow: true,
name: '备品备件',
// 触发跳转
url: '',
diff --git a/pages/user/user.vue b/pages/user/user.vue
index 7c7c557..f3678d4 100644
--- a/pages/user/user.vue
+++ b/pages/user/user.vue
@@ -3,8 +3,7 @@
-
{{name}}
@@ -19,7 +18,8 @@
-
+
{{baseListItem.title}}
@@ -69,15 +69,18 @@
},
gridList: [{
name: 'photo',
- title: '消息'
+ title: 'agv',
+ url: '/pages/agv/agv'
},
{
name: 'lock',
- title: '帮助'
+ title: '帮助',
+ url: ''
},
{
name: 'star',
- title: '客服'
+ title: '客服',
+ url: ''
},
]
};
@@ -91,8 +94,13 @@
avatarClick() {
},
- gridClick() {
-
+ gridClick(url) {
+ if (url === '') {
+ return;
+ }
+ uni.navigateTo({
+ url
+ });
},
// 退出登录
outLogin() {