opt:修改国际化,add:增加大屏看板
This commit is contained in:
@@ -5,6 +5,7 @@ import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.nl.common.base.TableDataInfo;
|
||||
import org.nl.common.logging.annotation.Log;
|
||||
import org.nl.wms.bigscreen_manage.service.BigScreenService;
|
||||
@@ -18,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -41,10 +43,12 @@ public class BigScreenController {
|
||||
@Log("大屏数据")
|
||||
@SaIgnore
|
||||
public ResponseEntity<Object> getData(@RequestBody JSONObject stors) {
|
||||
List<String> list = new ArrayList<>();
|
||||
list.add("FJ");
|
||||
List<JSONObject> data = bigScreenService.getData(list);
|
||||
return new ResponseEntity<>(PdaResponse.requestParamOk(data.get(0)), HttpStatus.OK);
|
||||
String storStr = stors.getString("stors");
|
||||
List<JSONObject> data = new ArrayList<>();
|
||||
if (!StringUtils.isEmpty(storStr)){
|
||||
data = bigScreenService.getData(Arrays.asList(storStr.split(",")));
|
||||
}
|
||||
return new ResponseEntity<>(TableDataInfo.build(data), HttpStatus.OK);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ public class BigScreenServiceImpl implements BigScreenService {
|
||||
// 空余货位
|
||||
result.put("emp_qty", emp_qty);
|
||||
// 使用货位百分比
|
||||
double use_percentage = NumberUtil.mul(NumberUtil.div(use_qty, total_qty), 100);
|
||||
double use_percentage = NumberUtil.mul(NumberUtil.div(use_qty, total_qty==0?1:total_qty), 100);
|
||||
result.put("use_percentage", NumberUtil.round(use_percentage, 2));
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -144,6 +144,8 @@ var config = {
|
||||
'Tip19': 'Are you sure to delete the selected data?',
|
||||
'Tip20': 'The login has expired,please log in again!',
|
||||
"name": "Name",
|
||||
"import": "import",
|
||||
"export": "export",
|
||||
"create_name": "Created By",
|
||||
"create_time": "Creation Time",
|
||||
"update_name": "Modified By",
|
||||
@@ -171,7 +173,15 @@ var config = {
|
||||
"yes": "Yes",
|
||||
"no": "No",
|
||||
"user_info_get_fail": "Failed to get user information",
|
||||
"operation_success": "Operation successful"
|
||||
"operation_success": "Operation successful",
|
||||
"inputCodeOrName": "input code or name"
|
||||
},
|
||||
"upload": {
|
||||
"load_text1": "Drag file here or",
|
||||
"load_text2": "click to upload",
|
||||
"load_text3": "Only Excel files can be uploaded, and no larger than 10MB",
|
||||
"load_text4": "File is too large, please upload files smaller than 10MB~",
|
||||
"load_text5": "Only one Excel file can be uploaded!"
|
||||
},
|
||||
"gateway": {
|
||||
"picking_point_not_exist": "The picking point you entered does not exist, please enter 1207 or 1210 picking point!",
|
||||
@@ -179,6 +189,19 @@ var config = {
|
||||
"apply_task_fail": "Task application failed, application parameters are",
|
||||
"check_error_log": "Please check the error log"
|
||||
},
|
||||
"md_me_materialbase": {
|
||||
"material_code": "Material Code",
|
||||
"material_name": "Material Name",
|
||||
"product_series_name": "Product Series",
|
||||
"material_spec": "Material Specification",
|
||||
"material_model": "Material Model"
|
||||
},
|
||||
"md_pb_classstandard": {
|
||||
"class_code": "Class Code",
|
||||
"class_name": "Class Name",
|
||||
"class_desc": "Class Description",
|
||||
"parent_class_id": "Parent Class ID"
|
||||
},
|
||||
"md_pb_measureunit": {
|
||||
"unit_code": "Code",
|
||||
"unit_name": "Name",
|
||||
|
||||
@@ -144,6 +144,8 @@ var config = {
|
||||
'Tip19': 'Bạn có chắc chắn xóa dữ liệu đã chọn?',
|
||||
'Tip20': 'Trạng thái đăng nhập hiện tại đã hết hạn, vui lòng đăng nhập lại!',
|
||||
"name": "Tên",
|
||||
"import": "Nhập",
|
||||
"export": "Xuất",
|
||||
"create_name": "Người tạo",
|
||||
"create_time": "Thời gian tạo",
|
||||
"update_name": "Người sửa đổi",
|
||||
@@ -171,7 +173,15 @@ var config = {
|
||||
"yes": "Có",
|
||||
"no": "Không",
|
||||
"user_info_get_fail": "Lấy thông tin người dùng thất bại",
|
||||
"operation_success": "Thao tác thành công"
|
||||
"operation_success": "Thao tác thành công",
|
||||
"inputCodeOrName": "Nhập mã hoặc tên"
|
||||
},
|
||||
"upload": {
|
||||
"load_text1": "Kéo file vào đây, hoặc",
|
||||
"load_text2": "nhấp để tải lên",
|
||||
"load_text3": "Chỉ có thể tải lên file Excel và không vượt quá 10MB",
|
||||
"load_text4": "File quá lớn, vui lòng tải lên file nhỏ hơn 10MB~",
|
||||
"load_text5": "Chỉ có thể tải lên một file excel!"
|
||||
},
|
||||
"gateway": {
|
||||
"picking_point_not_exist": "Vị trí chọn bạn nhập không tồn tại, vui lòng nhập vị trí chọn 1207 hoặc 1210!",
|
||||
@@ -179,6 +189,19 @@ var config = {
|
||||
"apply_task_fail": "Ứng dụng tác vụ thất bại, tham số ứng dụng là",
|
||||
"check_error_log": "Vui lòng kiểm tra nhật ký lỗi"
|
||||
},
|
||||
"md_me_materialbase": {
|
||||
"material_code": "Mã vật liệu",
|
||||
"material_name": "Tên vật liệu",
|
||||
"product_series_name": "Dòng sản phẩm",
|
||||
"material_spec": "Quy cách vật liệu",
|
||||
"material_model": "Model vật liệu"
|
||||
},
|
||||
"md_pb_classstandard": {
|
||||
"class_code": "Mã phân loại",
|
||||
"class_name": "Tên phân loại",
|
||||
"class_desc": "Mô tả phân loại",
|
||||
"parent_class_id": "ID phân loại cấp trên"
|
||||
},
|
||||
"md_pb_measureunit": {
|
||||
"unit_code": "Mã",
|
||||
"unit_name": "Tên",
|
||||
|
||||
@@ -144,6 +144,8 @@ var config = {
|
||||
'Tip19': '你确定删除选中的数据吗?',
|
||||
'Tip20': '当前登录状态已过期,请重新登录!',
|
||||
"name": "名称",
|
||||
"import": "导入",
|
||||
"export": "导出",
|
||||
"create_name": "创建人",
|
||||
"create_time": "创建时间",
|
||||
"update_name": "修改人",
|
||||
@@ -171,7 +173,15 @@ var config = {
|
||||
"yes": "是",
|
||||
"no": "否",
|
||||
"user_info_get_fail": "用户信息获取失败",
|
||||
"operation_success": "操作成功"
|
||||
"operation_success": "操作成功",
|
||||
"inputCodeOrName": "输入编码或名称"
|
||||
},
|
||||
"upload":{
|
||||
"load_text1":"将文件拖到此处,或",
|
||||
"load_text2":"点击上传",
|
||||
"load_text3":"只能上传Excel文件,且不超过10MB",
|
||||
"load_text4":"文件过大,请上传小于10MB的文件〜",
|
||||
"load_text5":"只能上传一个excel文件!",
|
||||
},
|
||||
"gateway": {
|
||||
"picking_point_not_exist": "您输入的拣选位不存在,请输入1207或1210拣选位!",
|
||||
@@ -179,6 +189,19 @@ var config = {
|
||||
"apply_task_fail": "任务申请失败,申请参数为",
|
||||
"check_error_log": "请查看错误日志"
|
||||
},
|
||||
"md_me_materialbase": {
|
||||
"material_code": "物料编码",
|
||||
"material_name": "物料名称",
|
||||
"material_spec": "物料规格",
|
||||
"material_model": "物料型号"
|
||||
},
|
||||
"md_pb_classstandard": {
|
||||
"class_code": "分类编码",
|
||||
"class_name": "分类名称",
|
||||
"class_desc": "分类描述",
|
||||
"product_series_name": "系列",
|
||||
"parent_class_id": "上级分类标识"
|
||||
},
|
||||
"md_pb_measureunit": {
|
||||
"unit_code": "编码",
|
||||
"unit_name": "名称",
|
||||
|
||||
Reference in New Issue
Block a user