From 33884a1e6e3126983ae944fff749fe6f9271c404 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期一, 10 十一月 2025 17:34:49 +0800
Subject: [PATCH] *
---
src/main/java/com/zy/asrs/controller/OrderPakoutController.java | 47 ++++-
src/main/java/com/zy/asrs/service/impl/OrderPakoutServiceImpl.java | 12 +
src/main/webapp/static/layuiadmin/json/console/top-card.js | 77 --------
src/main/java/com/zy/asrs/entity/result/OrderPakoutMainVo.java | 47 +++++
src/main/java/com/zy/asrs/mapper/OrderPakoutMapper.java | 18 ++
src/main/java/com/zy/asrs/controller/OrderDetlPakoutController.java | 2
src/main/java/com/zy/asrs/entity/result/OrderPakoutDetailVo.java | 57 ++++++
src/main/resources/mapper/OrderDetlPakoutMapper.xml | 53 +++++
src/main/resources/mapper/OrderPakoutMapper.xml | 75 ++++++++
src/main/webapp/views/orderCargoGrouping/orderCargoGroupingOperate.html | 113 +++++++-----
src/main/java/com/zy/asrs/service/OrderPakoutService.java | 6
11 files changed, 374 insertions(+), 133 deletions(-)
diff --git a/src/main/java/com/zy/asrs/controller/OrderDetlPakoutController.java b/src/main/java/com/zy/asrs/controller/OrderDetlPakoutController.java
index 2e9ea58..c2abaff 100644
--- a/src/main/java/com/zy/asrs/controller/OrderDetlPakoutController.java
+++ b/src/main/java/com/zy/asrs/controller/OrderDetlPakoutController.java
@@ -148,7 +148,7 @@
if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else {
wrapper.orderBy("create_time", false);
}
- wrapper.eq("status", 1);
+// wrapper.eq("status", 1);
Page<OrderDetlPakout> orderDetlPage = orderDetlService.selectPage(new Page<>(curr, limit), wrapper);
return R.ok(orderDetlPage);
}
diff --git a/src/main/java/com/zy/asrs/controller/OrderPakoutController.java b/src/main/java/com/zy/asrs/controller/OrderPakoutController.java
index 1049bd0..ddd7ac5 100644
--- a/src/main/java/com/zy/asrs/controller/OrderPakoutController.java
+++ b/src/main/java/com/zy/asrs/controller/OrderPakoutController.java
@@ -9,6 +9,7 @@
import com.core.exception.CoolException;
import com.zy.asrs.entity.*;
import com.zy.asrs.entity.param.OrderDomainParam;
+import com.zy.asrs.entity.result.OrderPakoutMainVo;
import com.zy.asrs.entity.result.WrkTraceVo;
import com.zy.asrs.service.*;
import com.zy.common.model.DetlDto;
@@ -310,15 +311,43 @@
@RequestParam(required = false)String orderByField,
@RequestParam(required = false)String orderByType,
@RequestParam Map<String, Object> param){
- EntityWrapper<OrderPakout> wrapper = new EntityWrapper<>();
- excludeTrash(param);
- convert(param, wrapper);
- if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else {
- wrapper.orderBy("settle").orderBy("create_time", false);
+
+ try{
+ String itemName = null;
+ String cstmrName = null;
+ Integer settle = null;
+ Integer status = null;
+ Date modiTimeStart = null, modiTimeEnd = null;
+ for (Map.Entry<String, Object> entry : param.entrySet()) {
+ String val = String.valueOf(entry.getValue());
+ if (Cools.isEmpty(val)) {
+ continue;
+ }
+ if (val.contains(RANGE_TIME_LINK)) {
+ String[] dates = val.split(RANGE_TIME_LINK);
+ modiTimeStart = DateUtils.convert(dates[0]);
+ modiTimeEnd = DateUtils.convert(dates[1]);
+ } else if (entry.getKey().equals("settle")) {
+ settle = Integer.parseInt(val);
+ } else if (entry.getKey().equals("status")) {
+ status = Integer.parseInt(val);
+ }
+// else if (entry.getKey().equals("order_no")) {
+// orderNo = val;
+// }
+ else if (entry.getKey().equals("item_name")) {
+ itemName = val;
+ } else if (entry.getKey().equals("cstmr_name")) {
+ cstmrName = val;
+ }
+ }
+ List<OrderPakoutMainVo> orderPakoutMainVos = orderService.selectOrderPakoutMainVoList(itemName, cstmrName, settle, status, modiTimeStart, modiTimeEnd, curr, limit);
+ Page<OrderPakoutMainVo> page = new Page<OrderPakoutMainVo>(curr, limit).setRecords(orderPakoutMainVos);
+ page.setTotal(orderService.selectOrderPakoutMainVoListTotal(itemName, cstmrName, settle, status, modiTimeStart, modiTimeEnd));
+ return R.ok(page);
+ } catch (Exception e){
+
}
- wrapper.eq("status", 1);
- return R.ok(orderService.selectPage(new Page<>(curr, limit), wrapper));
+ return R.error();
}
-
-
}
diff --git a/src/main/java/com/zy/asrs/entity/result/OrderPakoutDetailVo.java b/src/main/java/com/zy/asrs/entity/result/OrderPakoutDetailVo.java
new file mode 100644
index 0000000..e58381b
--- /dev/null
+++ b/src/main/java/com/zy/asrs/entity/result/OrderPakoutDetailVo.java
@@ -0,0 +1,57 @@
+package com.zy.asrs.entity.result;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+@Data
+public class OrderPakoutDetailVo {
+ private Long id;
+ private String itemName;
+ private String matnr;
+ private String batch;
+ private String model;
+ private String origin;
+ private Integer danger;
+ private Integer status;
+ private String specs;
+ private String brand;
+ private BigDecimal price;
+ private BigDecimal weight;
+ private BigDecimal roughWeight;
+ private BigDecimal volume;
+ private BigDecimal anfme;
+ private BigDecimal qty;
+ private BigDecimal units;
+ private BigDecimal safeQty;
+ private BigDecimal workQty;
+ private Long orderId;
+ private String orderNo;
+ private String maktx;
+ private String color;
+ private String unit;
+ private String sku;
+ private String barcode;
+ private String manu;
+ private String manuDate;
+ private String itemNum;
+ private BigDecimal length;
+ private String threeCode;
+ private String supp;
+ private String suppCode;
+ private Integer beBatch;
+ private String deadTime;
+ private Integer deadWarn;
+ private Integer source;
+ private Integer inspect;
+ private Integer tkType;
+ private Long rollUp;
+ private Long createBy;
+ private Date createTime;
+ private Long updateBy;
+ private Date updateTime;
+ private String memo;
+
+ // getter鍜宻etter鏂规硶
+}
\ No newline at end of file
diff --git a/src/main/java/com/zy/asrs/entity/result/OrderPakoutMainVo.java b/src/main/java/com/zy/asrs/entity/result/OrderPakoutMainVo.java
new file mode 100644
index 0000000..0a5678b
--- /dev/null
+++ b/src/main/java/com/zy/asrs/entity/result/OrderPakoutMainVo.java
@@ -0,0 +1,47 @@
+package com.zy.asrs.entity.result;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+@Data
+public class OrderPakoutMainVo {
+ private Long id;
+ private String itemName;
+ private Integer orderCount;
+ private String uuid;
+ private String orderNo;
+ private String orderTime;
+ private Long docType;
+ private Long itemId;
+ private Long allotItemId;
+ private String defNumber;
+ private String number;
+ private Long cstmr;
+ private String cstmrName;
+ private String tel;
+ private String operMemb;
+ private BigDecimal totalFee;
+ private BigDecimal discount;
+ private BigDecimal discountFee;
+ private BigDecimal otherFee;
+ private BigDecimal actFee;
+ private Integer payType;
+ private String salesman;
+ private Integer accountDay;
+ private Integer postFeeType;
+ private BigDecimal postFee;
+ private Date payTime;
+ private Date sendTime;
+ private String shipName;
+ private String shipCode;
+ private Long settle;
+ private Integer status;
+ private Long createBy;
+ private Date createTime;
+ private Long updateBy;
+ private Date updateTime;
+ private String memo;
+
+}
\ No newline at end of file
diff --git a/src/main/java/com/zy/asrs/mapper/OrderPakoutMapper.java b/src/main/java/com/zy/asrs/mapper/OrderPakoutMapper.java
index bdb3d12..c024228 100644
--- a/src/main/java/com/zy/asrs/mapper/OrderPakoutMapper.java
+++ b/src/main/java/com/zy/asrs/mapper/OrderPakoutMapper.java
@@ -2,10 +2,12 @@
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.asrs.entity.OrderPakout;
+import com.zy.asrs.entity.result.OrderPakoutMainVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
+import java.util.Date;
import java.util.List;
@Mapper
@@ -23,4 +25,20 @@
List<OrderPakout> selectorderNoL(@Param("orderNo")String orderNo);
List<OrderPakout> selectorderNoLT(@Param("orderNo")String orderNo);
+
+ List<OrderPakoutMainVo> selectOrderPakoutMainVoList(@Param("itemName") String itemName,
+ @Param("cstmrName") String cstmrName,
+ @Param("settle") Integer settle,
+ @Param("status") Integer status,
+ @Param("modiTimeStart") Date modiTimeStart,
+ @Param("modiTimeEnd") Date modiTimeEnd,
+ @Param("pageNumber") Integer curr,
+ @Param("pageSize") Integer limit);
+
+ Long selectOrderPakoutMainVoListTotal(@Param("itemName") String itemName,
+ @Param("cstmrName") String cstmrName,
+ @Param("settle") Integer settle,
+ @Param("status") Integer status,
+ @Param("modiTimeStart") Date modiTimeStart,
+ @Param("modiTimeEnd") Date modiTimeEnd);
}
diff --git a/src/main/java/com/zy/asrs/service/OrderPakoutService.java b/src/main/java/com/zy/asrs/service/OrderPakoutService.java
index ac85f21..87c8fbf 100644
--- a/src/main/java/com/zy/asrs/service/OrderPakoutService.java
+++ b/src/main/java/com/zy/asrs/service/OrderPakoutService.java
@@ -5,7 +5,9 @@
import com.zy.asrs.entity.OrderPakout;
import com.zy.asrs.entity.WrkDetl;
import com.zy.asrs.entity.WrkMast;
+import com.zy.asrs.entity.result.OrderPakoutMainVo;
+import java.util.Date;
import java.util.List;
public interface OrderPakoutService extends IService<OrderPakout> {
@@ -27,4 +29,8 @@
List<OrderPakout> selectorderNoL(String orderNo);
+ List<OrderPakoutMainVo> selectOrderPakoutMainVoList(String itemName, String cstmrName, Integer settle, Integer status, Date modiTimeStart, Date modiTimeEnd, Integer curr, Integer limit);
+
+ Long selectOrderPakoutMainVoListTotal(String itemName, String cstmrName, Integer settle, Integer status, Date modiTimeStart,Date modiTimeEnd);
+
}
diff --git a/src/main/java/com/zy/asrs/service/impl/OrderPakoutServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/OrderPakoutServiceImpl.java
index d23c167..bf9a2a6 100644
--- a/src/main/java/com/zy/asrs/service/impl/OrderPakoutServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/OrderPakoutServiceImpl.java
@@ -6,6 +6,7 @@
import com.core.exception.CoolException;
import com.zy.asrs.entity.OrderDetlPakout;
import com.zy.asrs.entity.OrderPakout;
+import com.zy.asrs.entity.result.OrderPakoutMainVo;
import com.zy.asrs.mapper.OrderDetlPakoutMapper;
import com.zy.asrs.mapper.OrderPakoutMapper;
import com.zy.asrs.service.OrderDetlPakoutService;
@@ -14,6 +15,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
+import java.util.Date;
import java.util.List;
@Slf4j
@@ -80,4 +82,14 @@
return this.baseMapper.selectorderNoL(orderNo);
}
+ @Override
+ public List<OrderPakoutMainVo> selectOrderPakoutMainVoList(String itemName, String cstmrName, Integer settle, Integer status, Date modiTimeStart, Date modiTimeEnd, Integer curr, Integer limit) {
+ return this.baseMapper.selectOrderPakoutMainVoList(itemName,cstmrName,settle, status,modiTimeStart,modiTimeEnd,curr,limit);
+ }
+
+ @Override
+ public Long selectOrderPakoutMainVoListTotal(String itemName, String cstmrName, Integer settle, Integer status, Date modiTimeStart, Date modiTimeEnd) {
+ return this.baseMapper.selectOrderPakoutMainVoListTotal(itemName,cstmrName,settle, status,modiTimeStart,modiTimeEnd);
+ }
+
}
diff --git a/src/main/resources/mapper/OrderDetlPakoutMapper.xml b/src/main/resources/mapper/OrderDetlPakoutMapper.xml
index 7fc6c63..e7f5665 100644
--- a/src/main/resources/mapper/OrderDetlPakoutMapper.xml
+++ b/src/main/resources/mapper/OrderDetlPakoutMapper.xml
@@ -50,6 +50,59 @@
</resultMap>
+ <!-- 鏄庣粏瑙嗗浘B鐨勯�氱敤鏌ヨ鏄犲皠缁撴灉 -->
+ <resultMap id="PakoutDetailResultMap" type="com.zy.asrs.entity.result.OrderPakoutDetailVo">
+ <id column="id" property="id" jdbcType="BIGINT"/>
+ <result column="item_name" property="itemName" jdbcType="VARCHAR"/>
+ <result column="matnr" property="matnr" jdbcType="VARCHAR"/>
+ <result column="batch" property="batch" jdbcType="VARCHAR"/>
+ <result column="model" property="model" jdbcType="VARCHAR"/>
+ <result column="origin" property="origin" jdbcType="VARCHAR"/>
+ <result column="danger" property="danger" jdbcType="INTEGER"/>
+ <result column="status" property="status" jdbcType="INTEGER"/>
+ <result column="specs" property="specs" jdbcType="VARCHAR"/>
+ <result column="brand" property="brand" jdbcType="VARCHAR"/>
+ <result column="price" property="price" jdbcType="DECIMAL"/>
+ <result column="weight" property="weight" jdbcType="DECIMAL"/>
+ <result column="roughWeight" property="roughWeight" jdbcType="DECIMAL"/>
+ <result column="volume" property="volume" jdbcType="DECIMAL"/>
+
+ <!-- 鏁伴噺瀛楁 -->
+ <result column="anfme" property="anfme" jdbcType="DECIMAL"/>
+ <result column="qty" property="qty" jdbcType="DECIMAL"/>
+ <result column="units" property="units" jdbcType="DECIMAL"/>
+ <result column="safe_qty" property="safeQty" jdbcType="DECIMAL"/>
+ <result column="work_qty" property="workQty" jdbcType="DECIMAL"/>
+
+ <!-- 鍏朵粬瀛楁 -->
+ <result column="order_id" property="orderId" jdbcType="BIGINT"/>
+ <result column="order_no" property="orderNo" jdbcType="VARCHAR"/>
+ <result column="maktx" property="maktx" jdbcType="VARCHAR"/>
+ <result column="color" property="color" jdbcType="VARCHAR"/>
+ <result column="unit" property="unit" jdbcType="VARCHAR"/>
+ <result column="sku" property="sku" jdbcType="VARCHAR"/>
+ <result column="barcode" property="barcode" jdbcType="VARCHAR"/>
+ <result column="manu" property="manu" jdbcType="VARCHAR"/>
+ <result column="manu_date" property="manuDate" jdbcType="VARCHAR"/>
+ <result column="item_num" property="itemNum" jdbcType="VARCHAR"/>
+ <result column="length" property="length" jdbcType="DECIMAL"/>
+ <result column="three_code" property="threeCode" jdbcType="VARCHAR"/>
+ <result column="supp" property="supp" jdbcType="VARCHAR"/>
+ <result column="supp_code" property="suppCode" jdbcType="VARCHAR"/>
+ <result column="be_batch" property="beBatch" jdbcType="INTEGER"/>
+ <result column="dead_time" property="deadTime" jdbcType="VARCHAR"/>
+ <result column="dead_warn" property="deadWarn" jdbcType="INTEGER"/>
+ <result column="source" property="source" jdbcType="INTEGER"/>
+ <result column="inspect" property="inspect" jdbcType="INTEGER"/>
+ <result column="tk_type" property="tkType" jdbcType="INTEGER"/>
+ <result column="roll_up" property="rollUp" jdbcType="BIGINT"/>
+ <result column="create_by" property="createBy" jdbcType="BIGINT"/>
+ <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+ <result column="update_by" property="updateBy" jdbcType="BIGINT"/>
+ <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+ <result column="memo" property="memo" jdbcType="VARCHAR"/>
+ </resultMap>
+
<select id="selectItem" resultMap="BaseResultMap">
select * from man_order_detl_pakout
where 1=1
diff --git a/src/main/resources/mapper/OrderPakoutMapper.xml b/src/main/resources/mapper/OrderPakoutMapper.xml
index 49973be..59ec1d5 100644
--- a/src/main/resources/mapper/OrderPakoutMapper.xml
+++ b/src/main/resources/mapper/OrderPakoutMapper.xml
@@ -42,6 +42,46 @@
</resultMap>
+ <!-- 涓昏鍥続鐨勯�氱敤鏌ヨ鏄犲皠缁撴灉 -->
+ <resultMap id="PakoutMainResultMap" type="com.zy.asrs.entity.result.OrderPakoutMainVo">
+ <id column="id" property="id" jdbcType="BIGINT"/>
+ <result column="item_name" property="itemName" jdbcType="VARCHAR"/>
+ <result column="order_count" property="orderCount" jdbcType="INTEGER"/>
+ <result column="uuid" property="uuid" jdbcType="VARCHAR"/>
+ <result column="order_no" property="orderNo" jdbcType="VARCHAR"/>
+ <result column="order_time" property="orderTime" jdbcType="VARCHAR"/>
+ <result column="doc_type" property="docType" jdbcType="BIGINT"/>
+ <result column="item_id" property="itemId" jdbcType="BIGINT"/>
+ <result column="allot_item_id" property="allotItemId" jdbcType="BIGINT"/>
+ <result column="def_number" property="defNumber" jdbcType="VARCHAR"/>
+ <result column="number" property="number" jdbcType="VARCHAR"/>
+ <result column="cstmr" property="cstmr" jdbcType="BIGINT"/>
+ <result column="cstmr_name" property="cstmrName" jdbcType="VARCHAR"/>
+ <result column="tel" property="tel" jdbcType="VARCHAR"/>
+ <result column="oper_memb" property="operMemb" jdbcType="VARCHAR"/>
+ <result column="total_fee" property="totalFee" jdbcType="DECIMAL"/>
+ <result column="discount" property="discount" jdbcType="DECIMAL"/>
+ <result column="discount_fee" property="discountFee" jdbcType="DECIMAL"/>
+ <result column="other_fee" property="otherFee" jdbcType="DECIMAL"/>
+ <result column="act_fee" property="actFee" jdbcType="DECIMAL"/>
+ <result column="pay_type" property="payType" jdbcType="INTEGER"/>
+ <result column="salesman" property="salesman" jdbcType="VARCHAR"/>
+ <result column="account_day" property="accountDay" jdbcType="INTEGER"/>
+ <result column="post_fee_type" property="postFeeType" jdbcType="INTEGER"/>
+ <result column="post_fee" property="postFee" jdbcType="DECIMAL"/>
+ <result column="pay_time" property="payTime" jdbcType="TIMESTAMP"/>
+ <result column="send_time" property="sendTime" jdbcType="TIMESTAMP"/>
+ <result column="ship_name" property="shipName" jdbcType="VARCHAR"/>
+ <result column="ship_code" property="shipCode" jdbcType="VARCHAR"/>
+ <result column="settle" property="settle" jdbcType="BIGINT"/>
+ <result column="status" property="status" jdbcType="INTEGER"/>
+ <result column="create_by" property="createBy" jdbcType="BIGINT"/>
+ <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+ <result column="update_by" property="updateBy" jdbcType="BIGINT"/>
+ <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+ <result column="memo" property="memo" jdbcType="VARCHAR"/>
+ </resultMap>
+
<update id="updateSettle">
update man_order_pakout
set settle = #{settle}
@@ -103,4 +143,39 @@
and (settle = 10 or settle = 98)
</update>
+ <select id="selectOrderPakoutMainVoList" resultMap="PakoutMainResultMap">
+ SELECT * FROM v_pakout_main
+ WHERE status = 1
+ <if test="itemName != null and itemName != ''">
+ AND item_name LIKE CONCAT('%', #{itemName}, '%')
+ </if>
+ <if test="cstmrName != null and cstmrName != ''">
+ AND cstmr_name LIKE CONCAT('%', #{cstmrName}, '%')
+ </if>
+ <if test="settle != null and settle != ''">
+ AND settle = #{settle}
+ </if>
+ <if test="status != null and status != ''">
+ AND status = #{status}
+ </if>
+ ORDER BY create_time DESC
+ </select>
+
+ <select id="selectOrderPakoutMainVoListTotal" resultType="Long">
+ SELECT count(1) FROM v_pakout_main
+ WHERE status = 1
+ <if test="itemName != null and itemName != ''">
+ AND item_name LIKE CONCAT('%', #{itemName}, '%')
+ </if>
+ <if test="cstmrName != null and cstmrName != ''">
+ AND cstmr_name LIKE CONCAT('%', #{cstmrName}, '%')
+ </if>
+ <if test="settle != null and settle != ''">
+ AND settle = #{settle}
+ </if>
+ <if test="status != null and status != ''">
+ AND status = #{status}
+ </if>
+ </select>
+
</mapper>
diff --git a/src/main/webapp/static/layuiadmin/json/console/top-card.js b/src/main/webapp/static/layuiadmin/json/console/top-card.js
index 51ee9bb..aeeeca3 100644
--- a/src/main/webapp/static/layuiadmin/json/console/top-card.js
+++ b/src/main/webapp/static/layuiadmin/json/console/top-card.js
@@ -1,76 +1 @@
-{
- "code": 0
- ,"msg": ""
- ,"count": "100"
- ,"data": [{
- "id": 111
- ,"title": "绀惧尯寮�濮嬫帴鍙� 鈥滆禐鍔╁晢骞垮憡鈥� 鎶曟斁"
- ,"username": "璐ゅ績"
- ,"channel": "鍏憡"
- ,"href": "http://fly.layui.com/jie/15697/"
- ,"crt": 61632
- },{
- "id": 222
- ,"title": "layui 涓�鍛ㄥ勾"
- ,"username": "鐚悆"
- ,"channel": "璁ㄨ"
- ,"href": "http://fly.layui.com/jie/16622/"
- ,"crt": 61632
- },{
- "id": 333
- ,"title": "鍥涗釜鏈堢殑鍓嶇"
- ,"username": "fd"
- ,"channel": "鍒嗕韩"
- ,"href": "http://fly.layui.com/jie/16651/"
- ,"crt": 61632
- },{
- "id": 333
- ,"title": "濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�"
- ,"username": "绾搁鏈�"
- ,"channel": "鎻愰棶"
- ,"href": "http://fly.layui.com/jie/9352/"
- ,"crt": 61632
- },{
- "id": 333
- ,"title": "濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�"
- ,"username": "绾搁鏈�"
- ,"channel": "鎻愰棶"
- ,"href": "http://fly.layui.com/jie/9352/"
- ,"crt": 61632
- },{
- "id": 333
- ,"title": "濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�"
- ,"username": "绾搁鏈�"
- ,"channel": "鎻愰棶"
- ,"href": "http://fly.layui.com/jie/9352/"
- ,"crt": 61632
- },{
- "id": 333
- ,"title": "濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�"
- ,"username": "绾搁鏈�"
- ,"channel": "鎻愰棶"
- ,"href": "http://fly.layui.com/jie/9352/"
- ,"crt": 61632
- },{
- "id": 333
- ,"title": "濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�"
- ,"username": "绾搁鏈�"
- ,"channel": "鎻愰棶"
- ,"href": "http://fly.layui.com/jie/9352/"
- ,"crt": 61632
- },{
- "id": 333
- ,"title": "濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�"
- ,"username": "绾搁鏈�"
- ,"channel": "鎻愰棶"
- ,"href": "http://fly.layui.com/jie/9352/"
- ,"crt": 61632
- },{
- "id": 333
- ,"title": "濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�"
- ,"username": "绾搁鏈�"
- ,"channel": "鎻愰棶"
- ,"href": "http://fly.layui.com/jie/9352/"
- ,"crt": 61632
- }]
-}
\ No newline at end of file
+{"code":0,"msg":"","count":"100","data":[{"id":111,"title":"绀惧尯寮�濮嬫帴鍙� 鈥滆禐鍔╁晢骞垮憡鈥� 鎶曟斁","username":"璐ゅ績","channel":"鍏憡","href":"http://fly.layui.com/jie/15697/","crt":61632},{"id":222,"title":"layui 涓�鍛ㄥ勾","username":"鐚悆","channel":"璁ㄨ","href":"http://fly.layui.com/jie/16622/","crt":61632},{"id":333,"title":"鍥涗釜鏈堢殑鍓嶇","username":"fd","channel":"鍒嗕韩","href":"http://fly.layui.com/jie/16651/","crt":61632},{"id":333,"title":"濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�","username":"绾搁鏈�","channel":"鎻愰棶","href":"http://fly.layui.com/jie/9352/","crt":61632},{"id":333,"title":"濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�","username":"绾搁鏈�","channel":"鎻愰棶","href":"http://fly.layui.com/jie/9352/","crt":61632},{"id":333,"title":"濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�","username":"绾搁鏈�","channel":"鎻愰棶","href":"http://fly.layui.com/jie/9352/","crt":61632},{"id":333,"title":"濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�","username":"绾搁鏈�","channel":"鎻愰棶","href":"http://fly.layui.com/jie/9352/","crt":61632},{"id":333,"title":"濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�","username":"绾搁鏈�","channel":"鎻愰棶","href":"http://fly.layui.com/jie/9352/","crt":61632},{"id":333,"title":"濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�","username":"绾搁鏈�","channel":"鎻愰棶","href":"http://fly.layui.com/jie/9352/","crt":61632},{"id":333,"title":"濡備綍璇勪环LayUI鍜屼粬鐨勪綔鑰呴棽蹇�","username":"绾搁鏈�","channel":"鎻愰棶","href":"http://fly.layui.com/jie/9352/","crt":61632}]}
\ No newline at end of file
diff --git a/src/main/webapp/views/orderCargoGrouping/orderCargoGroupingOperate.html b/src/main/webapp/views/orderCargoGrouping/orderCargoGroupingOperate.html
index 211afd7..dae5b04 100644
--- a/src/main/webapp/views/orderCargoGrouping/orderCargoGroupingOperate.html
+++ b/src/main/webapp/views/orderCargoGrouping/orderCargoGroupingOperate.html
@@ -104,7 +104,7 @@
<div class="search-item">
<span class="search-label">缁勮揣鍗曞彿:</span>
<el-input
- v-model="searchForm.uuid"
+ v-model="searchForm.itemName"
placeholder="璇疯緭鍏ョ粍璐у崟鍙�"
clearable
style="width: 150px;"
@@ -140,19 +140,15 @@
style="width: 150px;"
>
<el-option label="鍏ㄩ儴" value=""></el-option>
- <el-option label="寰呭鐞�" value="1"></el-option>
- <el-option label="浣滀笟涓�" value="2"></el-option>
- <el-option label="宸插彇娑�" value="3"></el-option>
- <el-option label="宸插畬鎴�" value="4"></el-option>
- <el-option label="鍑嗗鍙栨秷" value="5"></el-option>
- <el-option label="宸插畬鎴�" value="6"></el-option>
- <el-option label="涓婃姤瀹屾垚" value="7"></el-option>
- <el-option label="寰呭垽鏌ヨ涓�" value="9"></el-option>
- <el-option label="灏辩华" value="10"></el-option>
- <el-option label="鐢熸垚瀹為檯缁勮揣鍗曚腑銆傝绛夊緟..." value="11"></el-option>
- <el-option label="鐢熸垚瀹為檯缁勮揣鍗曟垚鍔�" value="12"></el-option>
- <el-option label="鐢熸垚瀹為檯缁勮揣鍗曞け璐�" value="13"></el-option>
- <el-option label="寮傚父" value="99"></el-option>
+ <el-option label="寰呭鐞�" value="10"></el-option>
+ <el-option label="妫�楠屼腑" value="11"></el-option>
+ <el-option label="鍑哄簱涓�" value="12"></el-option>
+ <el-option label="瀛樺湪涓嶅悎鏍�" value="13"></el-option>
+ <el-option label="寰呬笂鎶�" value="15"></el-option>
+ <el-option label="涓婃姤瀹屾垚" value="16"></el-option>
+ <el-option label="涓婃姤澶辫触" value="17"></el-option>
+ <el-option label="寮傚父" value="98"></el-option>
+ <el-option label="搴熷純" value="99"></el-option>
</el-select>
</div>
<div class="search-actions">
@@ -172,8 +168,9 @@
style="width: 100%"
v-loading="loading"
@sort-change="handleSortChange">
- <el-table-column prop="uuid" label="缁勮揣鍗曞彿" width="120" align="center" sortable="custom"></el-table-column>
- <el-table-column prop="orderNo" label="璁㈠崟缂栧彿" min-width="140" align="center"></el-table-column>
+ <el-table-column prop="itemName" label="缁勮揣鍗曞彿" width="120" align="center" sortable="custom"></el-table-column>
+<!-- <el-table-column prop="orderNo" label="璁㈠崟缂栧彿" min-width="140" align="center"></el-table-column>-->
+<!-- <el-table-column prop="memo" label="澶囨敞" min-width="120" align="center"></el-table-column>-->
<el-table-column prop="cstmrName" label="瀹㈡埛鍚嶇О" min-width="120" align="center"></el-table-column>
<el-table-column prop="settle" label="鐘舵��" min-width="100" align="center" :formatter="formatStatus"></el-table-column>
<!-- <el-table-column prop="totalFee" label="鍚堣閲戦" min-width="100" align="center" :formatter="formatCurrency"></el-table-column>-->
@@ -214,12 +211,11 @@
class="detail-dialog"
@close="closeDetailDialog">
<div v-if="currentRow">
- <h3>缁勮揣鍗曚富琛� (缁勮揣鍗曞彿: {{ currentRow.uuid }})</h3>
+ <h3>缁勮揣鍗曚富琛� (缁勮揣鍗曞彿: {{ currentRow.itemName }})</h3>
<el-descriptions :column="2" border>
- <el-descriptions-item label="璁㈠崟缂栧彿">{{ currentRow.orderNo }}</el-descriptions-item>
+<!-- <el-descriptions-item label="璁㈠崟缂栧彿">{{ currentRow.orderNo }}</el-descriptions-item>-->
<el-descriptions-item label="瀹㈡埛鍚嶇О">{{ currentRow.cstmrName }}</el-descriptions-item>
- <el-descriptions-item label="鐘舵��">{{ currentRow.settle$ }}</el-descriptions-item>
- <el-descriptions-item label="鍚堣閲戦">{{ formatCurrency(currentRow) }}</el-descriptions-item>
+ <el-descriptions-item label="鐘舵��">{{ formatStatus(currentRow)}}</el-descriptions-item>
<el-descriptions-item label="鍒涘缓鏃堕棿">{{ formatDate(currentRow.createTime) }}</el-descriptions-item>
<el-descriptions-item label="澶囨敞">{{ currentRow.memo || '鏃�' }}</el-descriptions-item>
</el-descriptions>
@@ -233,10 +229,10 @@
<el-table-column prop="matnr" label="瑙勬牸" min-width="120" align="center"></el-table-column>
<el-table-column prop="batch" label="绠卞彿" min-width="80" align="center"></el-table-column>
<el-table-column prop="model" label="鍗峰彿" min-width="100" align="center" ></el-table-column>
-<!-- <el-table-column prop="totalPrice" label="閲戦" min-width="100" align="center" :formatter="formatCurrency"></el-table-column>-->
<el-table-column prop="origin" label="浣嶇疆" min-width="100" align="center"></el-table-column>
<el-table-column prop="danger" label="寰呭垽" min-width="100" align="center"></el-table-column>
<el-table-column prop="memo" label="澶囨敞" min-width="100" align="center"></el-table-column>
+ <el-table-column prop="status" label="鐘舵��" min-width="100" align="center" :formatter="formatStatusB"></el-table-column>
<!-- 鍙牴鎹疄闄呴渶姹傛坊鍔犳洿澶氬瓙琛ㄥ垪 -->
</el-table>
@@ -272,7 +268,7 @@
data: {
// 鎼滅储琛ㄥ崟
searchForm: {
- uuid: '',
+ item_name: '',
cstmr_name: '',
settle: '',
order_no: ''
@@ -335,10 +331,10 @@
if (that.searchForm[key] !== '') {
if (key === 'orderNo'){
params['order_no'] = that.searchForm[key];
+ } else if (key === 'itemName'){
+ params['item_name'] = that.searchForm[key];
} else if (key === 'cstmrName'){
params['cstmr_name'] = that.searchForm[key];
- } else if (key === 'settle$'){
- params['settle'] = that.searchForm[key];
} else {
params[key] = that.searchForm[key];
}
@@ -346,8 +342,8 @@
});
$.ajax({
- // url: baseUrl + "/order/pakout/order/cargo/grouping/auth/v1",
- url: baseUrl + "/order/head/page/auth",
+ url: baseUrl + "/order/pakout/order/cargo/grouping/auth/v1",
+ // url: baseUrl + "/order/head/page/auth",
headers: {
'token': localStorage.getItem('token')
},
@@ -389,8 +385,8 @@
// 妯℃嫙API璋冪敤 - 鏍规嵁瀹為檯涓氬姟璋冩暣API鍦板潃
$.ajax({
- // url: baseUrl + "/order/pakout/orderDetl/cargo/grouping/auth",
- url: baseUrl + "/orderDetl/list/auth",
+ url: baseUrl + "/order/pakout/orderDetl/cargo/grouping/auth",
+ // url: baseUrl + "/orderDetl/list/auth",
headers: {
'token': localStorage.getItem('token')
},
@@ -412,7 +408,7 @@
error: function() {
that.detailLoading = false;
// 瀹為檯椤圭洰涓簲浣跨敤鐪熷疄API锛岃繖閲屼娇鐢ㄦā鎷熸暟鎹�
- that.mockTableBData(uuid);
+ that.mockTableBData(itemName);
}
});
},
@@ -437,7 +433,7 @@
return;
}
- const groupOrderNo = this.currentRow.uuid;
+ const groupOrderNo = this.currentRow.itemName;
this.$confirm(
`鏄惁纭寮�濮嬩笂鎶ョ粍璐у崟鍙� <strong style="color: #F56C6C; font-size: 16px;">${groupOrderNo}</strong>?<br/><br/>灏嗙敓鎴愬疄闄呯粍璐у崟锛屽崟涓�缁勮揣鍗曞彿鍙兘鎿嶄綔涓�娆�!!!`,
@@ -479,7 +475,7 @@
'token': localStorage.getItem('token')
},
data: JSON.stringify({
- uuid: groupOrderNo // 浼犻�掔粍璐у崟鍙�
+ item_name: groupOrderNo // 浼犻�掔粍璐у崟鍙�
}),
dataType: 'json',
contentType: 'application/json;charset=UTF-8',
@@ -527,7 +523,7 @@
// 閲嶇疆鎼滅储鏉′欢
handleReset() {
this.searchForm = {
- uuid: '',
+ item_name: '',
cstmr_name: '',
settle: '',
order_no: ''
@@ -586,18 +582,41 @@
// 鏍煎紡鍖栫姸鎬佹樉绀�
formatStatus(row) {
- if (row.settle === 1) {
- return '姝e父';
- } else if (row.settle === 0) {
- return '绂佺敤';
- } else if (row.settle === 0) {
- return '绂佺敤';
- } else if (row.settle === 0) {
- return '绂佺敤';
- } else if (row.settle === 0) {
- return '绂佺敤';
+ if (row.settle === 10) {
+ return '寰呭鐞�';
+ } else if (row.settle === 11) {
+ return '妫�楠屼腑';
+ } else if (row.settle === 12) {
+ return '鍑哄簱涓�';
+ } else if (row.settle === 13) {
+ return '瀛樺湪涓嶅悎鏍�';
+ } else if (row.settle === 15) {
+ return '寰呬笂鎶�';
+ } else if (row.settle === 16) {
+ return '涓婃姤瀹屾垚';
+ } else if (row.settle === 17) {
+ return '涓婃姤澶辫触';
+ } else if (row.settle === 98) {
+ return '寮傚父';
+ } else if (row.settle === 99) {
+ return '搴熷純';
} else {
return row.settle || '鏈煡';
+ }
+ },
+
+ // 鏍煎紡鍖栫姸鎬佹樉绀�
+ formatStatusB(row) {
+ if (row.status === 0) {
+ return '寮傚父';
+ } else if (row.status === 1) {
+ return '姝e父';
+ } else if (row.status === 2) {
+ return '寰呬笂鎶�';
+ } else if (row.status === 3) {
+ return '宸蹭笂鎶�';
+ } else {
+ return row.status || '鏈煡';
}
},
@@ -620,7 +639,7 @@
mockTableAData() {
this.tableDataA = [
{
- uuid: 'ZH1001',
+ itemName: 'ZH1001',
orderNo: 'ORDER2024001',
cstmrName: '绀轰緥瀹㈡埛A',
settle: 1,
@@ -629,7 +648,7 @@
memo: '娴嬭瘯鏁版嵁'
},
{
- uuid: 'ZH1002',
+ itemName: 'ZH1002',
orderNo: 'ORDER2024002',
cstmrName: '绀轰緥瀹㈡埛B',
settle: 1,
@@ -643,10 +662,10 @@
},
// 妯℃嫙瀛愯〃鏁版嵁 - 瀹為檯椤圭洰涓簲鍒犻櫎
- mockTableBData(uuid) {
+ mockTableBData(itemName) {
this.tableDataB = [
- { productName: `浜у搧A-${uuid}`, quantity: 2, price: 500.00, totalPrice: 1000.00 },
- { productName: `浜у搧B-${uuid}`, quantity: 1, price: 300.50, totalPrice: 300.50 }
+ { productName: `浜у搧A-${itemName}`, quantity: 2, price: 500.00, totalPrice: 1000.00 },
+ { productName: `浜у搧B-${itemName}`, quantity: 1, price: 300.50, totalPrice: 300.50 }
];
this.detailTotal = 2;
this.detailLoading = false;
--
Gitblit v1.9.1