Commit 0eb37bd3 by Zhang Xin

添加注释

parent 44a82eb2
...@@ -2,6 +2,7 @@ import fetch from 'isomorphic-fetch' ...@@ -2,6 +2,7 @@ import fetch from 'isomorphic-fetch'
import {logout, getTaskList, saveCommonInfo,emptyStoreInfo} from "./common"; import {logout, getTaskList, saveCommonInfo,emptyStoreInfo} from "./common";
import {emit} from "../util/event"; import {emit} from "../util/event";
let domain = ENV.domain; let domain = ENV.domain;
// 回收箱替换,flag为true,任务完成,flag为false
const willCloseDoor=(data,flag=false)=>{ const willCloseDoor=(data,flag=false)=>{
let url=domain+`machine_pad/finish_task.action`; let url=domain+`machine_pad/finish_task.action`;
let {userInfo,taskInfo,storeInfo}=data; let {userInfo,taskInfo,storeInfo}=data;
......
const showPage = { const showPage = {
1 : 'Trouble', //一期故障 //一期的界面基本已废
1 : 'Trouble', //一期故障(已废)
2 : 'Scan', //一期扫描二维码 2 : 'Scan', //一期扫描二维码
3 : 'DamageProductList', //一期上报损耗商品 3 : 'DamageProductList', //一期上报损耗商品
4 : 'OtherQuestionUpload', //一期上报其它问题 4 : 'OtherQuestionUpload', //一期上报其它问题
5 : 'ReportLeftSkus', // 二期遗留商品上报 5 : 'ReportLeftSkus', // 二期遗留商品上报,获取工单进入
51 : 'ReportLeftSkus1', // 二期遗留商品上报 51 : 'ReportLeftSkus1', // 二期遗留商品上报,右上角菜单进入,组件用的一个,只是参数不同
6 : 'CheckSkus', //二期盘点 6 : 'CheckSkus', //二期盘点
7 : 'Home', //一期首页和关门页 7 : 'Home', //一期首页和关门页
8 : 'FinishAsk', //一期询问是否完成页 8 : 'FinishAsk', //一期询问是否完成页
9 : 'ChooseTask', //一期选择故障问题页 9 : 'ChooseTask', //一期选择故障问题页
10 : 'RecoverySkus', //二期回收 10 : 'RecoverySkus', //二期回收
11 : 'Replenishment', //二期补货 11 : 'Replenishment', //二期补货
12 : 'Feedback', //二期问题反馈和关门 12 : 'Feedback', //二期故障页面
13 : 'HomePage', //二期首页 13 : 'HomePage', //二期首页,开门展示
131 : 'HomePage1', //二期首页 131 : 'HomePage1', //二期首页,关门展示
14 : 'Question', //二期问题反馈页面 14 : 'Question', //二期问题反馈页面,获取工单进入
141 : 'Question1', //二期问题反馈页面 141 : 'Question1', //二期问题反馈页面,右上角菜单栏进入
15 : 'BoxRecoverySkus', //二期回收箱回收 15 : 'BoxRecoverySkus', //二期回收箱回收
'DevPage' : 'DevPage' 'DevPage' : 'DevPage'
}; };
...@@ -35,6 +36,7 @@ const headerStatus = { //首页状态栏 ...@@ -35,6 +36,7 @@ const headerStatus = { //首页状态栏
}; };
const normalMenuList = [ const normalMenuList = [
// 菜单栏展示内容(目前菜单栏禁止使用和展示)
{ {
text : '货品报损', text : '货品报损',
type : 'HPBS', type : 'HPBS',
......
...@@ -365,29 +365,29 @@ class PageContainer extends React.Component { ...@@ -365,29 +365,29 @@ class PageContainer extends React.Component {
switchPages (type) { switchPages (type) {
switch (type) { switch (type) {
case 'LR' : case 'LR' : //遗留上报
this.changePages(CONFIG.showPage[5]); this.changePages(CONFIG.showPage[5]);
break; break;
case 'CK' : case 'CK' : // 盘点
case 'CR' : case 'CR' : // 盘点
this.changePages(CONFIG.showPage[6]); this.changePages(CONFIG.showPage[6]);
break; break;
case 'RE' : case 'RE' : // 回收
this.changePages(CONFIG.showPage[10]); this.changePages(CONFIG.showPage[10]);
break; break;
case 'ADDR' : case 'ADDR' : // 补货
this.changePages(CONFIG.showPage[11]); this.changePages(CONFIG.showPage[11]);
break; break;
case 'PF' : case 'PF' : // 问题反馈
this.changePages(CONFIG.showPage[14]); this.changePages(CONFIG.showPage[14]);
break; break;
case 'ER' : case 'ER' : // 故障处理
this.changePages(CONFIG.showPage[12]); this.changePages(CONFIG.showPage[12]);
break; break;
case 'REA' : case 'REA' : // 回收箱回收
this.changePages(CONFIG.showPage[15]); this.changePages(CONFIG.showPage[15]);
break; break;
case 'FINISH' : case 'FINISH' : // 任务完成,关门页面
this.changePages(CONFIG.showPage[131]); this.changePages(CONFIG.showPage[131]);
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment