Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override
| | |
| | | {field: 'goodsQuantity',width:120, title: t('searchOrder.inventoryNum'), sortable: true}, |
| | | {field: 'area',width:120, title: t('order.computeGrossArea'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'money',width:120, title: t('order.money'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'createTime',width:120, title: t('basicData.reportData'), sortable: true}, |
| | | {field: 'createTime',width:120,filters:[{ data: '' }],slots: { filter: 'num1_filter' }, title: t('basicData.reportData'), sortable: true}, |
| | | {field: 'updateTime',width:120, title: t('productStock.approvedDate'), sortable: true}, |
| | | {field: 'packType',width:120, title: t('order.packType'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'orderType',width:120, title: t('order.orderType'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | |
| | | }else{ |
| | | filterData.value[column.property] = value |
| | | } |
| | | |
| | | const config = { |
| | | filter: filterData.value, |
| | | sort: sortData.value |
New file |
| | |
| | | package com.example.erp.dto.sd; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.example.erp.entity.mm.FinishedGoodsInventory; |
| | | import com.example.erp.entity.sd.Customer; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class OrderSearchDTO { |
| | | @TableId(type = IdType.AUTO) |
| | | @ExcelProperty("id") |
| | | private Long id; |
| | | @ExcelProperty("订单编号") |
| | | private String orderId; |
| | | @ExcelProperty("项目名称") |
| | | private String project; |
| | | @ExcelProperty("客户编号") |
| | | private Integer customerId; |
| | | @ExcelProperty("客户名称") |
| | | private String customerName; |
| | | @ExcelProperty("订单类型") |
| | | private String orderType; |
| | | @ExcelProperty("订单分类") |
| | | private String orderClassify; |
| | | @ExcelProperty("商标") |
| | | private String icon; |
| | | @ExcelProperty("包装方式") |
| | | private String packType; |
| | | @ExcelProperty("发货时间") |
| | | private String deliveryDate; |
| | | @ExcelProperty("批次") |
| | | private String batch; |
| | | @ExcelProperty("计算方式") |
| | | private Integer calculateType; |
| | | @ExcelProperty("销售人员id") |
| | | private Integer salesmanId; |
| | | @ExcelProperty("销售员") |
| | | private String salesman; |
| | | @ExcelProperty("铝条方式") |
| | | private String alType; |
| | | @ExcelProperty("金额") |
| | | private Double money; |
| | | @ExcelProperty("合同编号") |
| | | private String contractId; |
| | | @ExcelProperty("客户批次") |
| | | private String customerBatch; |
| | | @ExcelProperty("联系人") |
| | | private String contacts; |
| | | @ExcelProperty("联系电话") |
| | | private String contactNumber; |
| | | @ExcelProperty("发货地址") |
| | | private String deliveryAddress; |
| | | @ExcelProperty("其他金额") |
| | | private Double otherMoney; |
| | | @ExcelProperty("其他金额备注") |
| | | private String otherMoneyRemarks; |
| | | @ExcelProperty("加工要求") |
| | | private String processingNote; |
| | | @ExcelProperty("其他备注") |
| | | private String otherRemarks; |
| | | @ExcelProperty("面积") |
| | | private Double area; |
| | | @ExcelProperty("订单总数") |
| | | private Long quantity; |
| | | @ExcelProperty("订单周长") |
| | | private Double perimeter; |
| | | @ExcelProperty("审核人id") |
| | | private String verifierId; |
| | | @ExcelProperty("审核人") |
| | | private String verifier; |
| | | @ExcelProperty("创建人id") |
| | | private String creatorId; |
| | | @ExcelProperty("创建人") |
| | | private String creator; |
| | | @ExcelProperty("下单") |
| | | private Integer createOrder; |
| | | @ExcelProperty("工艺审核") |
| | | private Integer processReview; |
| | | @ExcelProperty("订单审核") |
| | | private Integer orderReview; |
| | | @ExcelProperty("生产订单") |
| | | private Integer productionOrder; |
| | | @ExcelProperty("流程卡") |
| | | private Integer processingCard; |
| | | @ExcelProperty("入库") |
| | | private Integer warehousing; |
| | | @ExcelProperty("发货") |
| | | private Integer delivery; |
| | | @ExcelProperty("打印次数") |
| | | private Integer printingNumber; |
| | | @ExcelProperty("创建日期") |
| | | @TableField(update = "false") |
| | | private String createTime; |
| | | @ExcelProperty("修改日期") |
| | | private String updateTime; |
| | | @TableField(select = false,exist = false) |
| | | private Integer goodsQuantity; |
| | | @TableField(select = false,exist = false) |
| | | private String timeOut; |
| | | |
| | | @TableField(value = "customer_id") |
| | | private Customer customer; |
| | | @TableField(select = false) |
| | | private FinishedGoodsInventory finishedGoodsInventory; |
| | | |
| | | } |
| | |
| | | package com.example.erp.mapper.sd; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.example.erp.dto.sd.OrderSearchDTO; |
| | | import com.example.erp.entity.sd.Order; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | |
| | | boolean updateOrderParameter(@Param("orderId") String orderId); |
| | | |
| | | List<Order> getOrderList(Integer offset, Integer pageSize, String startDate, String endDate, Order order, Integer orderType, String field, String orderBy); |
| | | Map<String,Float> getPageTotal(Integer offset, Integer pageSize, String startDate, String endDate, Order order , Integer orderType); |
| | | List<Order> getOrderList(Integer offset, Integer pageSize, String startDate, String endDate, OrderSearchDTO order, Integer orderType, String field, String orderBy); |
| | | Map<String,Float> getPageTotal(Integer offset, Integer pageSize, String startDate, String endDate, OrderSearchDTO order , Integer orderType); |
| | | |
| | | boolean reviewOrderById(String id, Integer status, String userId, String userName); |
| | | |
| | |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.dto.sd.OrderDTO; |
| | | import com.example.erp.dto.sd.OrderDetailProductDTO; |
| | | import com.example.erp.dto.sd.OrderSearchDTO; |
| | | import com.example.erp.entity.sd.*; |
| | | import com.example.erp.entity.userInfo.Log; |
| | | import com.example.erp.entity.userInfo.SysError; |
| | |
| | | } |
| | | } |
| | | JSONObject orderJson = new JSONObject(config); |
| | | Order order = JSONObject.parseObject(JSONObject.toJSONString(orderJson.get("filter")), Order.class); |
| | | OrderSearchDTO order = JSONObject.parseObject(JSONObject.toJSONString(orderJson.get("filter")), OrderSearchDTO.class); |
| | | Map<String,String> sortDate = (Map<String, String>) config.get("sort"); |
| | | String field = sortDate.get("field").replaceAll("(?<!^)([A-Z])", "_$1").toLowerCase(); |
| | | String orderBy = sortDate.get("order"); |