Commit 0674540e by Zhang Xin

fix 拉取工单接口

parent cbe02f80
......@@ -87,10 +87,12 @@ const getTaskList = (data={},callback=null)=>{
let url =`${domain}machine_pad/work/list/${storeInfo.id}/${taskInfo.area}/${taskId}/${userInfo.employeeId}`;
UTILPATH.myLogger.info("getTaskList url ",url);
return (dispatch)=>{
if(!userInfo.id){
dispatch(addErrorInfo('没有获取用户信息'))
if(!storeInfo.id){
dispatch(addErrorInfo('没有门店信息,请耐心等待,看右上角是否有门店信息,如还没有,请重启APP'))
}else if(!userInfo.id){
dispatch(addErrorInfo('没有用户信息,请重启APP,等有门店信息了,重新扫描开门码'))
}else if(!taskInfo.area){
dispatch(addErrorInfo('没有获取区域信息'))
dispatch(addErrorInfo('没有区域信息,请重启APP,等有门店信息了,重新扫描开门码'))
}else {
fetch(url,{
credentials : 'include',
......
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