This commit is contained in:
2022-12-04 15:37:53 +08:00
parent 7bcac23742
commit b833fb07bf
9 changed files with 79 additions and 15 deletions

View File

@@ -105,6 +105,9 @@ public class CrmToLmsServiceImpl implements CrmToLmsService {
String customername = jo.getString("customername");
String customerdescription = jo.getString("customerdescription");
String width = jo.getString("width");
String struct_code = jo.getString("struct_code");
String dateoffginbound = jo.getString("dateoffginbound");
String packageboxsn = jo.getString("packageboxsn");
HashMap map = new HashMap<>();
if (StrUtil.isNotEmpty(material_code)) {
@@ -134,6 +137,15 @@ public class CrmToLmsServiceImpl implements CrmToLmsService {
if (StrUtil.isNotEmpty(width)) {
map.put("width", width);
}
if (StrUtil.isNotEmpty(packageboxsn)) {
map.put("packageboxsn", packageboxsn);
}
if (StrUtil.isNotEmpty(dateoffginbound)) {
map.put("dateoffginbound", dateoffginbound);
}
if (StrUtil.isNotEmpty(struct_code)) {
map.put("struct_code", struct_code);
}
//将查询条件带入查询LMS成品库库存信息
JSONArray rows = WQL.getWO("QCRM_001").addParamMap(map).addParam("flag", "1").process().getResultJSONArray(0);

View File

@@ -25,7 +25,9 @@ import org.nl.wms.sch.manage.AbstractAcsTask;
import org.nl.wms.sch.tasks.CoolCutTask;
import org.nl.wms.st.inbill.service.CheckOutBillService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDateTime;
import java.util.HashMap;
@Service
@@ -54,6 +56,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
*/
@LokiLog(type = LokiLogType.MES_TO_LMS)
@Override
@Transactional(rollbackFor = Exception.class)
public JSONObject momRollFoilStart(JSONObject param) {
log.info("momRollFoilStart接口输入参数为-------------------" + param.toString());
@@ -135,6 +138,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
*/
@LokiLog(type = LokiLogType.MES_TO_LMS)
@Override
@Transactional(rollbackFor = Exception.class)
public JSONObject momRollFoilWeighing(JSONObject param) {
log.info("momRollFoilStart接口输入参数为-------------------" + param.toString());
@@ -183,6 +187,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
*/
@LokiLog(type = LokiLogType.MES_TO_LMS)
@Override
@Transactional(rollbackFor = Exception.class)
public JSONObject momRollFoilComplete(JSONObject param) {
log.info("momRollFoilComplete接口输入参数为-------------------" + param.toString());
JSONObject result = new JSONObject();
@@ -242,6 +247,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
*/
@LokiLog(type = LokiLogType.MES_TO_LMS)
@Override
@Transactional(rollbackFor = Exception.class)
public JSONObject momRollBakeNextSpecTransfer(JSONObject param) {
log.info("momRollBakeNextSpecTransfer接口输入参数为-------------------" + param.toString());
JSONObject result = new JSONObject();
@@ -327,6 +333,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
*/
@LokiLog(type = LokiLogType.MES_TO_LMS)
@Override
@Transactional(rollbackFor = Exception.class)
public JSONObject cutPlanTransfer(JSONObject param) {
log.info("cutPlanTransfer接口输入参数为-------------------" + param.toString());
@@ -450,6 +457,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
*/
@LokiLog(type = LokiLogType.MES_TO_LMS)
@Override
@Transactional(rollbackFor = Exception.class)
public JSONObject callNextAssAndMomRoll(JSONObject param) {
log.info("callNextAssAndMomRoll接口输入参数为-------------------" + param.toString());
@@ -636,6 +644,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
*/
@LokiLog(type = LokiLogType.MES_TO_LMS)
@Override
@Transactional(rollbackFor = Exception.class)
public JSONObject childRollCutStartComp(JSONArray param) {
log.info("childRollCutStartComp接口输入参数为-------------------" + param.toString());
JSONObject result = new JSONObject();
@@ -723,6 +732,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
*/
@LokiLog(type = LokiLogType.MES_TO_LMS)
@Override
@Transactional(rollbackFor = Exception.class)
public JSONObject childRollPackComplete(JSONObject param) {
log.info("childRollPackComplete接口输入参数为-------------------" + param.toString());
JSONObject result = new JSONObject();
@@ -732,7 +742,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
// if (StrUtil.equals(is_mesTolms, "1")) {
String isUnPlanProductionBox = param.getString("isUnPlanProductionBox"); // 生产订单
String QuanlityInBox = param.getString("QuanlityInBox"); // 产品编码
String QualityGuaranPeriod = param.getString("QualityGuaranPeriod"); // 分切机台编码
String QualityGuaranPeriod = param.getString("QualityGuaranPeriod"); // 保质期
String ProductName = param.getString("ProductName"); // 来源卷位置
String Description = param.getString("Description"); // 来源卷位置
String DateOfFGInbound = param.getString("DateOfFGInbound"); // 来源卷位置
@@ -765,6 +775,8 @@ public class MesToLmsServiceImpl implements MesToLmsService {
String UnPlanProductProperty2 = detail.getString("UnPlanProductProperty2");
String UnPlanProductProperty3 = detail.getString("UnPlanProductProperty3");
String sap_pcsn = detail.getString("Attribute1");//SAP批次
String thickness_request = detail.getString("Attribute2");//物料主数据厚度
String width_standard = detail.getString("Attribute3");//要求幅宽
JSONObject jo = new JSONObject();
jo.put("workorder_id", IdUtil.getSnowflake(1, 1).nextId());
@@ -776,7 +788,12 @@ public class MesToLmsServiceImpl implements MesToLmsService {
jo.put("box_high", box_high);
jo.put("quanlity_in_box", QuanlityInBox);
// jo.put("box_weight", BoxWeight);
jo.put("quality_guaran_period", QualityGuaranPeriod);
if (QualityGuaranPeriod.equals("0天")){
jo.put("quality_guaran_period", "90天");
}else {
jo.put("quality_guaran_period", QualityGuaranPeriod);
}
jo.put("sale_order_name", SaleOrderName);
jo.put("customer_name", CustomerName);
jo.put("customer_description", CustomerDescription);
@@ -794,6 +811,8 @@ public class MesToLmsServiceImpl implements MesToLmsService {
jo.put("un_plan_product_property1", UnPlanProductProperty1);
jo.put("un_plan_product_property2", UnPlanProductProperty2);
jo.put("un_plan_product_property3", UnPlanProductProperty3);
jo.put("width_standard",width_standard);
jo.put("thickness_request",thickness_request);
jo.put("status", "0");
jo.put("create_id", "1");
jo.put("create_name", "管理员");
@@ -829,6 +848,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
*/
@LokiLog(type = LokiLogType.MES_TO_LMS)
@Override
@Transactional(rollbackFor = Exception.class)
public JSONObject inventoryTransferInfoSync(JSONObject param) {
log.info("inventoryTransferInfoSync接口输入参数为-------------------" + param.toString());
JSONObject result = new JSONObject();
@@ -942,6 +962,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
*/
@LokiLog(type = LokiLogType.MES_TO_LMS)
@Override
@Transactional(rollbackFor = Exception.class)
public JSONObject childRollInfoUpdate(JSONObject param) {
log.info("childRollInfoUpdate接口输入参数为-------------------" + param.toString());
JSONObject result = new JSONObject();

View File

@@ -18,6 +18,9 @@
输入.material_name TYPEAS s_string
输入.mfgordername TYPEAS f_string
输入.customername TYPEAS s_string
输入.packageboxsn TYPEAS s_string
输入.dateoffginbound TYPEAS s_string
输入.struct_code TYPEAS s_string
输入.customerdescription TYPEAS s_string
输入.width TYPEAS f_string
@@ -85,6 +88,15 @@
ENDOPTION
OPTION 输入.width <> ""
sub.width >= 输入.width
ENDOPTION
OPTION 输入.struct_code <> ""
stor.ext_id = 输入.struct_code
ENDOPTION
OPTION 输入.dateoffginbound <> ""
sub.date_of_FG_inbound = 输入.dateoffginbound
ENDOPTION
OPTION 输入.packageboxsn <> ""
sub.package_box_sn = 输入.packageboxsn
ENDOPTION
ENDSELECT
ENDQUERY

View File

@@ -117,4 +117,10 @@ public class SubpackagerelationDto implements Serializable {
/** 高 */
private String box_high;
/** 物料主数据厚度 */
private String thickness_request;
/** 要求幅宽 */
private String width_standard;
}

View File

@@ -109,13 +109,11 @@
ENDOPTION
OPTION 输入.begin_time <> ""
mst.biz_date >= 输入.begin_time
mst.input_time >= 输入.begin_time
ENDOPTION
OPTION 输入.end_time <> ""
mst.biz_date <= 输入.end_time
mst.input_time <= 输入.end_time
ENDOPTION
OPTION 输入.material_search <> ""
(
mb.material_code like 输入.material_search
@@ -123,7 +121,6 @@
mb.material_name like 输入.material_search
)
ENDOPTION
ENDSELECT
ENDPAGEQUERY
ENDIF

View File

@@ -338,6 +338,18 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="物料主数据厚度">
<el-input v-model="form.thickness_request" :controls="false" style="width: 300px;" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="要求幅宽">
<el-input v-model="form.width_standard" style="width: 300px;" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="备注">
@@ -405,7 +417,7 @@
</el-table-column>
<el-table-column prop="create_name" label="创建人" :min-width="flexWidth('create_name',crud.data,'创建人')" />
<el-table-column prop="create_time" label="创建时间" :min-width="flexWidth('create_time',crud.data,'创建时间')" />
<el-table-column v-permission="[]" label="操作" align="center" fixed="right" min-width="120">
<el-table-column v-permission="['admin','sub:edit','sub:del']" label="操作" align="center" fixed="right" min-width="120">
<template slot-scope="scope">
<udOperation
:data="scope.row"
@@ -428,7 +440,7 @@ import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { workorder_id: null, package_box_sn: null, quanlity_in_box: null, box_weight: null, quality_guaran_period: null, sale_order_name: null, customer_name: null, customer_description: null, product_name: null, product_description: null, date_of_fg_inbound: null, container_name: null, width: null, thickness: null, mass_per_unit_area: null, net_weight: null, length: null, date_of_production: null, is_un_plan_production: null, un_plan_product_property1: null, un_plan_product_property2: null, un_plan_product_property3: null, box_type: null, sap_pcsn: null, remark: null, create_id: null, create_name: null, create_time: null, status: null, isreprintpackageboxlabel: null, isunpackbox: null }
const defaultForm = { workorder_id: null, package_box_sn: null, quanlity_in_box: null, box_weight: null, quality_guaran_period: null, sale_order_name: null, customer_name: null, customer_description: null, product_name: null, product_description: null, date_of_fg_inbound: null, container_name: null, width: null, thickness: null, mass_per_unit_area: null, net_weight: null, length: null, date_of_production: null, is_un_plan_production: null, un_plan_product_property1: null, un_plan_product_property2: null, un_plan_product_property3: null, box_type: null, sap_pcsn: null, remark: null, create_id: null, create_name: null, create_time: null, status: null, isreprintpackageboxlabel: null, isunpackbox: null, thickness_request: null, width_standard: null }
export default {
name: 'Subpackagerelation',
dicts: ['sub_package_relation', 'IS_OR_NOT'],
@@ -440,6 +452,9 @@ export default {
data() {
return {
permission: {
add: ['admin', 'sub:add'],
edit: ['admin', 'sub:edit'],
del: ['admin', 'sub:del']
},
isPlanProducList: [
{ 'label': '是', 'value': '1' },

View File

@@ -168,7 +168,7 @@
width="120"
align="center"
/>
<el-table-column key="11" show-overflow-tooltip prop="storagevehicle_code" label="载具"/>
<el-table-column key="11" show-overflow-tooltip prop="storagevehicle_code" label="木箱"/>
<el-table-column key="12" prop="turnout_sect_name" label="库区"/>
<el-table-column key="14" prop="turnout_struct_code" show-overflow-tooltip label="货位"/>
<el-table-column key="15" width="150" prop="sale_order_name" show-overflow-tooltip label="销售订单行号-"/>

View File

@@ -146,13 +146,15 @@
<el-form-item label="创建时间">
<el-date-picker
v-model="query.createTime"
type="daterange"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
range-separator=""
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
@change="crud.toQuery"
/>
end-placeholder="结束日期"
:default-time="['08:00:00', '20:00:00']"
>
</el-date-picker>
</el-form-item>
<rrOperation />
</el-form>
@@ -235,7 +237,6 @@ import crudOperation from '@crud/CRUD.operation'
import pagination from '@crud/Pagination'
import DivDialog from '@/views/wms/statistics/ioStorQuery/DivDialog'
import TaskDialog from '@/views/wms/statistics/ioStorQuery/TaskDialog'
import crudStorattr from '@/views/wms/basedata/st/stor/storattr'
import inandoutreturn from '@/views/wms/st/inAndOutReturn/inandoutreturn'
import checkoutbill from '@/views/wms/st/outbill/checkoutbill'
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'