fix: PC维护重量
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package org.nl.wms.pdm.service.dto;
|
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.annotation.JsonSerialize;
|
||||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -22,208 +24,150 @@ public class SlittingproductionplanDto implements Serializable {
|
|||||||
@JsonSerialize(using = ToStringSerializer.class)
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
private Long workorder_id;
|
private Long workorder_id;
|
||||||
|
|
||||||
/**
|
/** 分切订单类型 */
|
||||||
* 分切订单类型
|
|
||||||
*/
|
|
||||||
private String order_type;
|
private String order_type;
|
||||||
|
|
||||||
/**
|
/** 子卷号 */
|
||||||
* 子卷号
|
|
||||||
*/
|
|
||||||
private String container_name;
|
private String container_name;
|
||||||
|
|
||||||
/**
|
/** 产品编码 */
|
||||||
* 产品编码
|
|
||||||
*/
|
|
||||||
private String product_name;
|
private String product_name;
|
||||||
|
|
||||||
/**
|
/** 产品描述 */
|
||||||
* 产品描述
|
|
||||||
*/
|
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
/**
|
/** 来源母卷号 */
|
||||||
* 来源母卷号
|
|
||||||
*/
|
|
||||||
private String parent_container_name;
|
private String parent_container_name;
|
||||||
|
|
||||||
/**
|
/** 改制来源子卷号 */
|
||||||
* 改制来源子卷号
|
|
||||||
*/
|
|
||||||
private String restruct_container_name;
|
private String restruct_container_name;
|
||||||
|
|
||||||
/**
|
/** 子卷立库木箱号 */
|
||||||
* 子卷立库木箱号
|
|
||||||
*/
|
|
||||||
private String package_box_sn;
|
private String package_box_sn;
|
||||||
|
|
||||||
/**
|
/** 来源卷位置 */
|
||||||
* 来源卷位置
|
|
||||||
*/
|
|
||||||
private String ware_house;
|
private String ware_house;
|
||||||
|
|
||||||
/**
|
/** 分切机台编码 */
|
||||||
* 分切机台编码
|
|
||||||
*/
|
|
||||||
private String resource_name;
|
private String resource_name;
|
||||||
|
|
||||||
/**
|
/** 分切组 */
|
||||||
* 分切组
|
|
||||||
*/
|
|
||||||
private String split_group;
|
private String split_group;
|
||||||
|
|
||||||
/**
|
/** 生产顺序 */
|
||||||
* 生产顺序
|
|
||||||
*/
|
|
||||||
private String manufacture_sort;
|
private String manufacture_sort;
|
||||||
|
|
||||||
/**
|
/** 生产订单 */
|
||||||
* 生产订单
|
|
||||||
*/
|
|
||||||
private String mfg_order_name;
|
private String mfg_order_name;
|
||||||
|
|
||||||
/**
|
/** 生产日期 */
|
||||||
* 生产日期
|
|
||||||
*/
|
|
||||||
private String manufacture_date;
|
private String manufacture_date;
|
||||||
|
|
||||||
/**
|
/** 管件类型 */
|
||||||
* 管件类型
|
|
||||||
*/
|
|
||||||
private String paper_tube_or_FRP;
|
private String paper_tube_or_FRP;
|
||||||
|
|
||||||
/**
|
/** 纸筒物料编码 */
|
||||||
* 纸筒物料编码
|
|
||||||
*/
|
|
||||||
private String paper_tube_material;
|
private String paper_tube_material;
|
||||||
|
|
||||||
/**
|
/** 纸筒物料描述 */
|
||||||
* 纸筒物料描述
|
|
||||||
*/
|
|
||||||
private String paper_tube_description;
|
private String paper_tube_description;
|
||||||
|
|
||||||
/**
|
/** 纸筒规格 */
|
||||||
* 纸筒规格
|
|
||||||
*/
|
|
||||||
private String paper_tube_model;
|
private String paper_tube_model;
|
||||||
|
|
||||||
/**
|
/** FRP管物料编码 */
|
||||||
* FRP管物料编码
|
|
||||||
*/
|
|
||||||
private String FRP_material;
|
private String FRP_material;
|
||||||
|
|
||||||
/**
|
/** FRP管物料描述 */
|
||||||
* FRP管物料描述
|
|
||||||
*/
|
|
||||||
private String FRP_description;
|
private String FRP_description;
|
||||||
|
|
||||||
/**
|
/** FRP管规格 */
|
||||||
* FRP管规格
|
|
||||||
*/
|
|
||||||
private String FRP_model;
|
private String FRP_model;
|
||||||
|
|
||||||
/**
|
/** 子卷幅宽 */
|
||||||
* 子卷幅宽
|
|
||||||
*/
|
|
||||||
private BigDecimal split_breadth;
|
private BigDecimal split_breadth;
|
||||||
|
|
||||||
/**
|
/** 子卷理论长度 */
|
||||||
* 子卷理论长度
|
|
||||||
*/
|
|
||||||
private BigDecimal split_height;
|
private BigDecimal split_height;
|
||||||
|
|
||||||
/**
|
/** 子卷理论重量 */
|
||||||
* 子卷理论重量
|
|
||||||
*/
|
|
||||||
private BigDecimal split_weight;
|
private BigDecimal split_weight;
|
||||||
|
|
||||||
/**
|
/** 开始时间 */
|
||||||
* 开始时间
|
|
||||||
*/
|
|
||||||
private String start_time;
|
private String start_time;
|
||||||
|
|
||||||
/**
|
/** 结束时间 */
|
||||||
* 结束时间
|
|
||||||
*/
|
|
||||||
private String end_time;
|
private String end_time;
|
||||||
|
|
||||||
/**
|
/** 状态 */
|
||||||
* 状态
|
|
||||||
*/
|
|
||||||
private String status;
|
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_optid;
|
||||||
|
|
||||||
/**
|
/** 修改人姓名 */
|
||||||
* 修改人姓名
|
|
||||||
*/
|
|
||||||
private String update_optname;
|
private String update_optname;
|
||||||
|
|
||||||
/**
|
/** 修改时间 */
|
||||||
* 修改时间
|
|
||||||
*/
|
|
||||||
private String update_time;
|
private String update_time;
|
||||||
|
|
||||||
/**
|
/** 部门ID */
|
||||||
* 部门ID
|
private String sysdeptid;
|
||||||
*/
|
|
||||||
private Long sysdeptid;
|
|
||||||
|
|
||||||
/**
|
/** 公司ID */
|
||||||
* 公司ID
|
private String syscompanyid;
|
||||||
*/
|
|
||||||
private Long syscompanyid;
|
|
||||||
|
|
||||||
/**
|
/** 是否删除 */
|
||||||
* 是否删除
|
|
||||||
*/
|
|
||||||
private String is_delete;
|
private String is_delete;
|
||||||
|
|
||||||
/**
|
/** 上料完成 */
|
||||||
* 上料完成
|
|
||||||
*/
|
|
||||||
private String is_parent_ok;
|
private String is_parent_ok;
|
||||||
|
|
||||||
/**
|
/** 子卷套轴完成 */
|
||||||
* 子卷套轴完成
|
|
||||||
*/
|
|
||||||
private String is_child_tz_ok;
|
private String is_child_tz_ok;
|
||||||
|
|
||||||
/**
|
/** 子卷配送完成 */
|
||||||
* 子卷配送完成
|
|
||||||
*/
|
|
||||||
private String is_child_ps_ok;
|
private String is_child_ps_ok;
|
||||||
|
|
||||||
/**
|
/** 气涨轴编码 */
|
||||||
* 气涨轴编码
|
|
||||||
*/
|
|
||||||
private String qzzno;
|
private String qzzno;
|
||||||
|
|
||||||
/**
|
/** 销售订单及行号 */
|
||||||
* 销售订单及行号
|
|
||||||
*/
|
|
||||||
private String sale_order_name;
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,12 +129,9 @@ public class SlittingproductionplanServiceImpl implements Slittingproductionplan
|
|||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|
||||||
dto.setWorkorder_id(IdUtil.getSnowflake(1, 1).nextId());
|
dto.setWorkorder_id(IdUtil.getSnowflake(1, 1).nextId());
|
||||||
dto.setCreate_id(currentUserId);
|
|
||||||
dto.setCreate_name(nickName);
|
|
||||||
dto.setUpdate_optid(currentUserId);
|
dto.setUpdate_optid(currentUserId);
|
||||||
dto.setUpdate_optname(nickName);
|
dto.setUpdate_optname(nickName);
|
||||||
dto.setUpdate_time(now);
|
dto.setUpdate_time(now);
|
||||||
dto.setCreate_time(now);
|
|
||||||
|
|
||||||
JSONObject jo = (JSONObject) JSON.toJSON(dto);
|
JSONObject jo = (JSONObject) JSON.toJSON(dto);
|
||||||
jo.put("status", "01");
|
jo.put("status", "01");
|
||||||
|
|||||||
@@ -57,7 +57,8 @@
|
|||||||
SELECT
|
SELECT
|
||||||
plan.*,
|
plan.*,
|
||||||
ivt.product_area,
|
ivt.product_area,
|
||||||
ivt.point_code
|
ivt.point_code,
|
||||||
|
'0' as show_edit
|
||||||
FROM
|
FROM
|
||||||
PDM_BI_SlittingProductionPlan plan
|
PDM_BI_SlittingProductionPlan plan
|
||||||
LEFT JOIN ST_IVT_CutPointIvt ivt ON ivt.ext_code = plan.resource_name
|
LEFT JOIN ST_IVT_CutPointIvt ivt ON ivt.ext_code = plan.resource_name
|
||||||
|
|||||||
@@ -504,8 +504,24 @@
|
|||||||
<el-table-column prop="split_breadth" label="子卷幅宽" :formatter="crud.formatNum3" />
|
<el-table-column prop="split_breadth" label="子卷幅宽" :formatter="crud.formatNum3" />
|
||||||
<el-table-column prop="split_height" label="子卷理论长度" width="100px" :formatter="crud.formatNum3" />
|
<el-table-column prop="split_height" label="子卷理论长度" width="100px" :formatter="crud.formatNum3" />
|
||||||
<el-table-column prop="split_weight" label="子卷理论重量" width="100px" :formatter="crud.formatNum3" />
|
<el-table-column prop="split_weight" label="子卷理论重量" width="100px" :formatter="crud.formatNum3" />
|
||||||
<el-table-column prop="weight" label="子卷重量" width="100px" :formatter="crud.formatNum3" />
|
<el-table-column prop="weight" label="子卷重量" width="100px" :formatter="crud.formatNum3">
|
||||||
<el-table-column prop="paper_weight" label="纸管重量" width="100px" :formatter="crud.formatNum3" />
|
<template slot-scope="scope">
|
||||||
|
<el-input v-show="scope.row.show_edit === '1'" v-model="scope.row.weight" type="text" />
|
||||||
|
<span v-show="scope.row.show_edit === '0'">{{ scope.row.weight }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="paper_weight" label="纸管重量" width="100px" :formatter="crud.formatNum3">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input v-show="scope.row.show_edit === '1'" v-model="scope.row.paper_weight" type="text" />
|
||||||
|
<span v-show="scope.row.show_edit === '0'">{{ scope.row.paper_weight }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="joint_type" label="接头数" width="100px" :formatter="crud.formatNum3">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input v-show="scope.row.show_edit === '1'" v-model="scope.row.joint_type" type="text" />
|
||||||
|
<span v-show="scope.row.show_edit === '0'">{{ scope.row.joint_type }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="paper_tube_or_frp" label="管件类型" :formatter="formatTubeName" />
|
<el-table-column prop="paper_tube_or_frp" label="管件类型" :formatter="formatTubeName" />
|
||||||
<el-table-column prop="paper_tube_material" label="纸筒物料编码" min-width="140" show-overflow-tooltip />
|
<el-table-column prop="paper_tube_material" label="纸筒物料编码" min-width="140" show-overflow-tooltip />
|
||||||
<el-table-column prop="paper_tube_description" label="纸筒物料描述" width="120px" show-overflow-tooltip />
|
<el-table-column prop="paper_tube_description" label="纸筒物料描述" width="120px" show-overflow-tooltip />
|
||||||
@@ -530,14 +546,13 @@
|
|||||||
<el-table-column prop="qzzno" label="气涨轴编码" width="160px" />
|
<el-table-column prop="qzzno" label="气涨轴编码" width="160px" />
|
||||||
<el-table-column prop="start_time" label="开始时间" width="150px" />
|
<el-table-column prop="start_time" label="开始时间" width="150px" />
|
||||||
<el-table-column prop="end_time" label="结束时间" width="150px" />
|
<el-table-column prop="end_time" label="结束时间" width="150px" />
|
||||||
<!-- <el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<udOperation
|
<el-button type="text" :disabled="scope.row.show_edit === '1'" @click="edit(scope.row, scope)">编辑</el-button>
|
||||||
:data="scope.row"
|
<el-button type="text" :disabled="scope.row.show_edit === '0'" @click="cancel(scope.row)">取消</el-button>
|
||||||
:permission="permission"
|
<el-button type="text" :disabled="scope.row.show_edit === '0'" @click="save(scope.row)">保存</el-button>
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>-->
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination />
|
||||||
@@ -596,7 +611,10 @@ const defaultForm = {
|
|||||||
is_child_tz_ok: null,
|
is_child_tz_ok: null,
|
||||||
is_child_ps_ok: null,
|
is_child_ps_ok: null,
|
||||||
is_call: null,
|
is_call: null,
|
||||||
qzzno: null
|
qzzno: null,
|
||||||
|
joint_type: null,
|
||||||
|
paper_weight: null,
|
||||||
|
show_edit: false
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
name: 'Slittingproductionplan',
|
name: 'Slittingproductionplan',
|
||||||
@@ -756,6 +774,21 @@ export default {
|
|||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
this.crud.notify('设置成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
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'
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,5 +71,12 @@ export function setDirection(data) {
|
|||||||
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 }
|
||||||
|
|||||||
Reference in New Issue
Block a user