自动化立体仓库 - WMS系统
lty
3 天以前 d907a822a940c7ec0fb7de0ca845472bda52229b
src/main/webapp/static/js/waitPakin/waitPakin.js
@@ -2,7 +2,7 @@
function getCol() {
    var cols = [ {type: 'checkbox'} ];
    cols.push.apply(cols, typeof getDetlCols === 'function' ? getDetlCols() : detlCols);
    cols.push({field: 'locNo', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('location_no') : '库位号'}
    cols.push({field: 'locNo', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('location_no') : '库位号',hide:true}
        ,{field: 'status', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('data_status') : '数据状态', templet:function(row){
                var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='"+(typeof I18n !== 'undefined' ? I18n.t('normal') : '正常')+"|"+(typeof I18n !== 'undefined' ? I18n.t('locked') : '锁定')+"' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'";
                if(row.status === 'Y'){html += " checked ";}
@@ -103,7 +103,7 @@
        parseData: function (res) {
            return {
                'code': res.code,
                'msg': res.msg,
                'msg': typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg,
                'count': res.data.total,
                'data': res.data.records
            }
@@ -186,7 +186,7 @@
                                } else if (res.code === 403){
                                    top.location.href = baseUrl+"/";
                                } else {
                                    layer.msg(res.msg, {icon: 2})
                                    layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg, {icon: 2})
                                }
                            }
                        })
@@ -233,7 +233,7 @@
                                } else if (res.code === 403){
                                    top.location.href = baseUrl+"/";
                                } else {
                                    layer.msg(res.msg)
                                    layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg)
                                }
                            }
                        })
@@ -276,7 +276,7 @@
                            } else if (res.code === 403) {
                                top.location.href = baseUrl+"/";
                            } else {
                                layer.msg(res.msg)
                                layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg)
                            }
                        }
                    });
@@ -355,7 +355,7 @@
                                   } else if (res.code === 403){
                                       top.location.href = baseUrl+"/";
                                   }else {
                                       layer.msg(res.msg)
                                       layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg)
                                   }
                               }
                           })
@@ -391,7 +391,7 @@
                                   } else if (res.code === 403){
                                       top.location.href = baseUrl+"/";
                                   }else {
                                       layer.msg(res.msg)
                                       layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg)
                                   }
                               }
                           })
@@ -452,7 +452,7 @@
                } else if (res.code === 403){
                    top.location.href = baseUrl+"/";
                }else {
                    layer.msg(res.msg)
                    layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg)
                }
                layer.close(index);
            }