Commit 0eb37bd3 by Zhang Xin

添加注释

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