From 41d8512ec5ef800517dba0e1e4231cbaff5e7f8e Mon Sep 17 00:00:00 2001 From: liyongde <1419499670@qq.com> Date: Fri, 16 Aug 2024 17:42:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PC=E7=BB=B4=E6=8A=A4=E9=87=8D=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/SlittingproductionplanDto.java | 210 +++++++----------- .../SlittingproductionplanServiceImpl.java | 3 - .../wms/pdm/wql/PDM_BI_SLIDTTINGPLAN_01.wql | 5 +- .../wms/pdm/order/slittingplan/index.vue | 51 ++++- .../slittingplan/slittingproductionplan.js | 9 +- 5 files changed, 130 insertions(+), 148 deletions(-) diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/dto/SlittingproductionplanDto.java b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/dto/SlittingproductionplanDto.java index 8cc0d5f20..fbb61a584 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/dto/SlittingproductionplanDto.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/dto/SlittingproductionplanDto.java @@ -1,5 +1,7 @@ package org.nl.wms.pdm.service.dto; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import lombok.Data; @@ -22,208 +24,150 @@ public class SlittingproductionplanDto implements Serializable { @JsonSerialize(using = ToStringSerializer.class) private Long workorder_id; - /** - * 分切订单类型 - */ + /** 分切订单类型 */ private String order_type; - /** - * 子卷号 - */ + /** 子卷号 */ private String container_name; - /** - * 产品编码 - */ + /** 产品编码 */ private String product_name; - /** - * 产品描述 - */ + /** 产品描述 */ private String description; - /** - * 来源母卷号 - */ + /** 来源母卷号 */ private String parent_container_name; - /** - * 改制来源子卷号 - */ + /** 改制来源子卷号 */ private String restruct_container_name; - /** - * 子卷立库木箱号 - */ + /** 子卷立库木箱号 */ private String package_box_sn; - /** - * 来源卷位置 - */ + /** 来源卷位置 */ private String ware_house; - /** - * 分切机台编码 - */ + /** 分切机台编码 */ private String resource_name; - /** - * 分切组 - */ + /** 分切组 */ private String split_group; - /** - * 生产顺序 - */ + /** 生产顺序 */ private String manufacture_sort; - /** - * 生产订单 - */ + /** 生产订单 */ private String mfg_order_name; - /** - * 生产日期 - */ + /** 生产日期 */ private String manufacture_date; - /** - * 管件类型 - */ + /** 管件类型 */ private String paper_tube_or_FRP; - /** - * 纸筒物料编码 - */ + /** 纸筒物料编码 */ private String paper_tube_material; - /** - * 纸筒物料描述 - */ + /** 纸筒物料描述 */ private String paper_tube_description; - /** - * 纸筒规格 - */ + /** 纸筒规格 */ private String paper_tube_model; - /** - * FRP管物料编码 - */ + /** FRP管物料编码 */ private String FRP_material; - /** - * FRP管物料描述 - */ + /** FRP管物料描述 */ private String FRP_description; - /** - * FRP管规格 - */ + /** FRP管规格 */ private String FRP_model; - /** - * 子卷幅宽 - */ + /** 子卷幅宽 */ private BigDecimal split_breadth; - /** - * 子卷理论长度 - */ + /** 子卷理论长度 */ private BigDecimal split_height; - /** - * 子卷理论重量 - */ + /** 子卷理论重量 */ private BigDecimal split_weight; - /** - * 开始时间 - */ + /** 开始时间 */ private String start_time; - /** - * 结束时间 - */ + /** 结束时间 */ private String end_time; - /** - * 状态 - */ + /** 状态 */ private String status; - /** - * 备注 - */ - private String remark; - - /** - * 创建人 - */ - private String create_id; - - /** - * 创建人姓名 - */ - private String create_name; - - /** - * 创建时间 - */ - private String create_time; - - /** - * 修改人 - */ + /** 修改人 */ private String update_optid; - /** - * 修改人姓名 - */ + /** 修改人姓名 */ private String update_optname; - /** - * 修改时间 - */ + /** 修改时间 */ private String update_time; - /** - * 部门ID - */ - private Long sysdeptid; + /** 部门ID */ + private String sysdeptid; - /** - * 公司ID - */ - private Long syscompanyid; + /** 公司ID */ + private String syscompanyid; - /** - * 是否删除 - */ + /** 是否删除 */ private String is_delete; - /** - * 上料完成 - */ + /** 上料完成 */ private String is_parent_ok; - /** - * 子卷套轴完成 - */ + /** 子卷套轴完成 */ private String is_child_tz_ok; - /** - * 子卷配送完成 - */ + /** 子卷配送完成 */ private String is_child_ps_ok; - /** - * 气涨轴编码 - */ + /** 气涨轴编码 */ private String qzzno; - /** - * 销售订单及行号 - */ + /** 销售订单及行号 */ private String sale_order_name; + + /** 是否呼叫 */ + private String is_call; + + /** 呼叫时间 */ + private String call_time; + + /** 是否呼叫纸管 */ + private String is_paper_ok; + + /** 上下轴(1,2) */ + private String up_or_down; + + /** 左右(1,2) */ + private String left_or_right; + + /** 气涨轴规格 */ + private String qzz_size; + + /** 气涨轴代数 */ + private String qzz_generation; + + /** 子卷等级*/ + private String level; + + /** 子卷重量 */ + private String weight; + + /** 接头数 */ + private String joint_type; + + /** 物料类型 */ + private String material_type; + + /** 分切重量 */ + private String paper_weight; } diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/SlittingproductionplanServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/SlittingproductionplanServiceImpl.java index c9b3e7133..ded9e2fcb 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/SlittingproductionplanServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/SlittingproductionplanServiceImpl.java @@ -129,12 +129,9 @@ public class SlittingproductionplanServiceImpl implements Slittingproductionplan String now = DateUtil.now(); dto.setWorkorder_id(IdUtil.getSnowflake(1, 1).nextId()); - dto.setCreate_id(currentUserId); - dto.setCreate_name(nickName); dto.setUpdate_optid(currentUserId); dto.setUpdate_optname(nickName); dto.setUpdate_time(now); - dto.setCreate_time(now); JSONObject jo = (JSONObject) JSON.toJSON(dto); jo.put("status", "01"); diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/PDM_BI_SLIDTTINGPLAN_01.wql b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/PDM_BI_SLIDTTINGPLAN_01.wql index b93eb2bbe..336881054 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/PDM_BI_SLIDTTINGPLAN_01.wql +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/PDM_BI_SLIDTTINGPLAN_01.wql @@ -57,7 +57,8 @@ SELECT plan.*, ivt.product_area, - ivt.point_code + ivt.point_code, + '0' as show_edit FROM PDM_BI_SlittingProductionPlan plan LEFT JOIN ST_IVT_CutPointIvt ivt ON ivt.ext_code = plan.resource_name @@ -119,4 +120,4 @@ ENDSELECT ENDPAGEQUERY - ENDIF \ No newline at end of file + ENDIF diff --git a/lms/nladmin-ui/src/views/wms/pdm/order/slittingplan/index.vue b/lms/nladmin-ui/src/views/wms/pdm/order/slittingplan/index.vue index 467ad679d..f4b77ed34 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/order/slittingplan/index.vue +++ b/lms/nladmin-ui/src/views/wms/pdm/order/slittingplan/index.vue @@ -504,8 +504,24 @@ - - + + + + + + + + + @@ -530,14 +546,13 @@ - + @@ -596,7 +611,10 @@ const defaultForm = { is_child_tz_ok: null, is_child_ps_ok: null, is_call: null, - qzzno: null + qzzno: null, + joint_type: null, + paper_weight: null, + show_edit: false } export default { name: 'Slittingproductionplan', @@ -756,6 +774,21 @@ export default { this.crud.toQuery() this.crud.notify('设置成功', CRUD.NOTIFICATION_TYPE.SUCCESS) }) + }, + edit(row, index) { + row.show_edit = '1' + }, + cancel(row, index) { + row.show_edit = '0' + }, + save(row, index) { + row.show_edit = '0' + crudSlittingproductionplan.updates(row).then(res => { + this.$message({ + message: '子卷[' + row.container_name + ']信息更新成功', + type: 'success' + }) + }) } } } diff --git a/lms/nladmin-ui/src/views/wms/pdm/order/slittingplan/slittingproductionplan.js b/lms/nladmin-ui/src/views/wms/pdm/order/slittingplan/slittingproductionplan.js index bbd09d1b4..862d266dd 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/order/slittingplan/slittingproductionplan.js +++ b/lms/nladmin-ui/src/views/wms/pdm/order/slittingplan/slittingproductionplan.js @@ -71,5 +71,12 @@ export function setDirection(data) { data }) } +export function updates(data) { + return request({ + url: 'api/slittingproductionplan', + method: 'put', + data + }) +} -export default { add, edit, del, upMaterFinish, caseFinish, sendFinish, inFinish, compelFinish, setDirection } +export default { add, edit, del, upMaterFinish, caseFinish, sendFinish, inFinish, compelFinish, setDirection, updates }