Junjie
2024-07-05 5fc438a3adb8c2f52dac7786e5ee4a6564f82d70
#库存明细显示单据类型
2个文件已修改
16 ■■■■■ 已修改文件
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/LocDetl.java 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/static/js/locDetl/locDetl.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/LocDetl.java
@@ -4,7 +4,9 @@
import java.util.Date;
import com.zy.asrs.common.utils.Synchro;
import com.zy.asrs.common.wms.service.DocTypeService;
import com.zy.asrs.common.wms.service.LocMastService;
import com.zy.asrs.common.wms.service.OrderService;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -333,6 +335,19 @@
        return null;
    }
    public String getOrderType() {
        if (Cools.isEmpty(this.orderNo)){
            return "";
        }
        OrderService orderService = SpringUtils.getBean(OrderService.class);
        DocTypeService docTypeService = SpringUtils.getBean(DocTypeService.class);
        Order order = orderService.selectByNo(orderNo, hostId);
        if (order != null) {
            return order.getDocType$();
        }
        return this.orderNo;
    }
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }
zy-asrs-wms/src/main/webapp/static/js/locDetl/locDetl.js
@@ -5,6 +5,7 @@
        {field: 'matnr', align: 'center',title: '商品编号', sort:true}
        ,{field: 'maktx', align: 'center',title: '商品名称', sort:true}
        ,{field: 'orderNo', align: 'center',title: '单据编号', hide: false}
        ,{field: 'orderType', align: 'center',title: '单据类型', hide: false}
        ,{field: 'batch', align: 'center',title: '序列码', width: 300, sort:true}
        ,{field: 'anfme', align: 'center',title: '数量', width: 100}
        ,{field: 'zpallet', align: 'center',title: '托盘条码'}