Merge branch 'master' of http://121.40.234.130:8899/root/lanzhouhailiang_one
# Conflicts: # lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/pdm.xls
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
package org.nl.start;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.modules.common.utils.SecurityUtils;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.springframework.boot.ApplicationArguments;
|
||||
import org.springframework.boot.ApplicationRunner;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -15,6 +20,50 @@ import org.springframework.stereotype.Component;
|
||||
public class Init implements ApplicationRunner {
|
||||
@Override
|
||||
public void run(ApplicationArguments args) throws Exception {
|
||||
/*WQLObject tab = WQLObject.getWQLObject("ST_IVT_StructAttr");
|
||||
|
||||
String now = DateUtil.now();
|
||||
for (int i = 1; i < 10000; i++) {
|
||||
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("struct_id", IdUtil.getSnowflake(1,1).nextId());
|
||||
|
||||
if (i < 10) {
|
||||
json.put("struct_code", "01-"+"000"+i+"-01");
|
||||
json.put("struct_name", "01排"+"000"+i+"列-01层");
|
||||
|
||||
}else if (i >= 10 && i < 100) {
|
||||
json.put("struct_code", "01-"+"00"+i+"-01");
|
||||
json.put("struct_name", "01排"+"00"+i+"列-01层");
|
||||
}else if (i >= 100 && i < 1000) {
|
||||
json.put("struct_code", "01-"+"0"+i+"-01");
|
||||
json.put("struct_name", "01排"+"0"+i+"列-01层");
|
||||
} else {
|
||||
json.put("struct_code", "01-"+i+"-01");
|
||||
json.put("struct_name", "01排"+i+"列-01层");
|
||||
}
|
||||
json.put("simple_name", json.getString("struct_name"));
|
||||
json.put("sect_id", "1586913215886004224");
|
||||
json.put("sect_code", "XN01");
|
||||
json.put("sect_name", "虚拟区");
|
||||
json.put("stor_id", "1582991156504039424");
|
||||
json.put("stor_code", "CP01");
|
||||
json.put("stor_name", "成品仓库");
|
||||
json.put("row_num", 1);
|
||||
json.put("col_num", i);
|
||||
json.put("layer_num", 1);
|
||||
json.put("block_num", 1);
|
||||
json.put("in_order_seq", i);
|
||||
json.put("out_order_seq", i);
|
||||
json.put("in_empty_seq", i);
|
||||
json.put("out_empty_seq", i);
|
||||
json.put("create_id", "1");
|
||||
json.put("create_name", "管理员");
|
||||
json.put("create_time", now);
|
||||
json.put("material_height_type", 1);
|
||||
tab.insert(json);
|
||||
}*/
|
||||
|
||||
System.out.println("项目启动成功!");
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
@@ -209,6 +209,7 @@ public class BakingServiceImpl implements BakingService {
|
||||
jsonCool.put("pcsn", "");
|
||||
jsonCool.put("bill_status", "10");
|
||||
jsonCool.put("task_id", task_id);
|
||||
jsonCool.put("qty_unit_id", "1");
|
||||
jsonCool.put("start_point_code", point_code1);
|
||||
jsonCool.put("end_point_code", jsonHotIvt.getString("point_code"));
|
||||
jsonCool.put("create_mode", "03");
|
||||
@@ -354,6 +355,7 @@ public class BakingServiceImpl implements BakingService {
|
||||
param.put("point_code2", jsonCooIvt.getString("full_point_code"));
|
||||
param.put("container_name", container_name);
|
||||
|
||||
|
||||
InCoolIvtTask inCoolIvtTask = new InCoolIvtTask();
|
||||
String task_id = inCoolIvtTask.createTask(param);
|
||||
|
||||
@@ -378,6 +380,7 @@ public class BakingServiceImpl implements BakingService {
|
||||
jsonCool.put("material_id", "");
|
||||
jsonCool.put("pcsn", "");
|
||||
jsonCool.put("bill_status", "10");
|
||||
jsonCool.put("qty_unit_id", "1");
|
||||
jsonCool.put("task_id", task_id);
|
||||
jsonCool.put("start_point_code", point_code1);
|
||||
jsonCool.put("end_point_code", jsonCooIvt.getString("full_point_code"));
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
|
||||
package org.nl.wms.pda.st.rest;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.modules.logging.annotation.Log;
|
||||
import org.nl.wms.pda.st.service.ProductionOutService;
|
||||
import org.nl.wms.pda.st.service.VirtualOutService;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @author liuxy
|
||||
* @date 2022-05-25
|
||||
**/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@Api(tags = "虚拟区发货")
|
||||
@RequestMapping("/api/pda/virtual")
|
||||
@Slf4j
|
||||
public class VirtualOutController {
|
||||
|
||||
private final VirtualOutService virtualOutService;
|
||||
|
||||
@PostMapping("/billQuery")
|
||||
@Log("出库初始化查询")
|
||||
@ApiOperation("出库初始化查询")
|
||||
public ResponseEntity<Object> ivtQuery(@RequestBody JSONObject whereJson){
|
||||
return new ResponseEntity<>(virtualOutService.ivtQuery(whereJson),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/billType")
|
||||
@Log("获取单据类型")
|
||||
@ApiOperation("获取单据类型")
|
||||
public ResponseEntity<Object> billType(@RequestBody JSONObject whereJson){
|
||||
return new ResponseEntity<>(virtualOutService.billType(whereJson),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/ivtQuery")
|
||||
@Log("分配明细查询")
|
||||
@ApiOperation("分配明细查询")
|
||||
public ResponseEntity<Object> ivtDisQuery(@RequestBody JSONObject whereJson){
|
||||
return new ResponseEntity<>(virtualOutService.ivtDisQuery(whereJson),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/outConfirm")
|
||||
@Log("出库确认")
|
||||
@ApiOperation("出库确认")
|
||||
public ResponseEntity<Object> outConfirm(@RequestBody JSONObject whereJson){
|
||||
return new ResponseEntity<>(virtualOutService.outConfirm(whereJson),HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
package org.nl.wms.pda.st.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
/**
|
||||
* @description 服务接口
|
||||
* @author liuxy
|
||||
* @date 2022-05-25
|
||||
**/
|
||||
public interface VirtualOutService {
|
||||
|
||||
/**
|
||||
* 出库初始化查询
|
||||
* @param whereJson /
|
||||
* @return JSONObject /
|
||||
*/
|
||||
JSONObject ivtQuery(JSONObject whereJson);
|
||||
|
||||
/**
|
||||
* 获取单据类型
|
||||
* @param whereJson /
|
||||
* @return JSONObject /
|
||||
*/
|
||||
JSONObject billType(JSONObject whereJson);
|
||||
|
||||
/**
|
||||
* 分配明细查询
|
||||
* @param whereJson /
|
||||
* @return JSONObject /
|
||||
*/
|
||||
JSONObject ivtDisQuery(JSONObject whereJson);
|
||||
|
||||
/**
|
||||
* 出库确认
|
||||
* @param whereJson /
|
||||
* @return JSONObject /
|
||||
*/
|
||||
JSONObject outConfirm(JSONObject whereJson);
|
||||
}
|
||||
@@ -32,15 +32,9 @@ public class ProductionOutServiceImpl implements ProductionOutService {
|
||||
|
||||
@Override
|
||||
public JSONObject ivtQuery(JSONObject whereJson) {
|
||||
/* option
|
||||
* 0-生产区查询
|
||||
* 1-虚拟区查询
|
||||
*/
|
||||
String option = whereJson.getString("option");
|
||||
|
||||
JSONObject map = new JSONObject();
|
||||
if (StrUtil.equals(option, "0")) map.put("flag", "1");
|
||||
if (StrUtil.equals(option, "1")) map.put("flag", "2");
|
||||
map.put("flag", "1");
|
||||
map.put("box_no", whereJson.getString("box_no"));
|
||||
map.put("point_code", whereJson.getString("point_code"));
|
||||
JSONArray resultJSONArray = WQL.getWO("PDA_PRODUVTIONOUT").addParamMap(map).process().getResultJSONArray(0);
|
||||
@@ -66,32 +60,14 @@ public class ProductionOutServiceImpl implements ProductionOutService {
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public JSONObject outConfirm(JSONObject whereJson) {
|
||||
/* option
|
||||
* 0-生产区确认
|
||||
* 1-虚拟区确认
|
||||
*/
|
||||
|
||||
WQLObject pointTab = WQLObject.getWQLObject("sch_base_point"); // 点位表
|
||||
WQLObject ivtTab = WQLObject.getWQLObject("ST_IVT_StructIvt"); // 仓位库存表
|
||||
WQLObject subTab = WQLObject.getWQLObject("PDM_BI_SubPackageRelation"); // 子卷包装关系表
|
||||
WQLObject ioMstTab = WQLObject.getWQLObject("ST_IVT_IOStorInv"); // 出入库单主表
|
||||
WQLObject ioDtlTab = WQLObject.getWQLObject("ST_IVT_IOStorInvDtl"); // 出入库单明细表
|
||||
WQLObject ioDidsTab = WQLObject.getWQLObject("ST_IVT_IOStorInvDis"); // 出入库单分配表
|
||||
|
||||
String option = whereJson.getString("option");
|
||||
JSONObject box_no = whereJson.getJSONObject("box_no");
|
||||
|
||||
Long deptId = SecurityUtils.getDeptId();
|
||||
Long currentUserId = SecurityUtils.getCurrentUserId();
|
||||
String nickName = SecurityUtils.getCurrentNickName();
|
||||
String now = DateUtil.now();
|
||||
|
||||
JSONObject jsonSub = subTab.query("package_box_SN = '" + box_no + "'").uniqueResult(0);
|
||||
|
||||
JSONObject jsonPoint = pointTab.query("vehicle_code = '" + box_no + "' and is_delete = '0' and is_used = '1'").uniqueResult(0);
|
||||
if (StrUtil.equals(option, "0")) {
|
||||
/*
|
||||
* 0 - 生产区确认
|
||||
* 生产区确认
|
||||
* a.解锁出库点位、清除木箱号
|
||||
*/
|
||||
jsonPoint.put("point_status", "00");
|
||||
@@ -100,60 +76,10 @@ public class ProductionOutServiceImpl implements ProductionOutService {
|
||||
jsonPoint.put("vehicle_type", "");
|
||||
jsonPoint.put("vehicle_qty", 0);
|
||||
pointTab.update(jsonPoint);
|
||||
} else {
|
||||
/*
|
||||
* 1 - 虚拟区确认
|
||||
* a.生成出库单主表、明细表、分配表并确认
|
||||
* b.更新库存
|
||||
* c.更新点位
|
||||
*/
|
||||
|
||||
JSONObject jsonIvt = ivtTab.query("pcsn = '" + jsonSub.getString("container_name") + "'").uniqueResult(0);
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("message", "出库成功!");
|
||||
|
||||
// 生成出库单主表
|
||||
JSONObject jsonMst = new JSONObject();
|
||||
jsonMst.put("iostorinv_id", IdUtil.getSnowflake(1,1).nextId());
|
||||
jsonMst.put("bill_code", CodeUtil.getNewCode("IO_CODE"));
|
||||
jsonMst.put("io_type", "1");
|
||||
jsonMst.put("buss_type", "");
|
||||
jsonMst.put("bill_type", "");
|
||||
jsonMst.put("biz_date", DateUtil.today());
|
||||
jsonMst.put("detail_count", 1);
|
||||
jsonMst.put("bill_status", "99");
|
||||
jsonMst.put("create_mode", "02");
|
||||
jsonMst.put("input_optid", currentUserId);
|
||||
jsonMst.put("input_optname", nickName);
|
||||
jsonMst.put("input_time", now);
|
||||
jsonMst.put("update_optid", currentUserId);
|
||||
jsonMst.put("update_optname", nickName);
|
||||
jsonMst.put("update_time", now);
|
||||
jsonMst.put("dis_optid", currentUserId);
|
||||
jsonMst.put("dis_optname", nickName);
|
||||
jsonMst.put("dis_time", now);
|
||||
jsonMst.put("confirm_optid", currentUserId);
|
||||
jsonMst.put("confirm_optname", nickName);
|
||||
jsonMst.put("confirm_time", now);
|
||||
jsonMst.put("sysdeptid", deptId);
|
||||
jsonMst.put("syscompanyid", deptId);
|
||||
ioMstTab.insert(jsonMst);
|
||||
|
||||
// 生成出库单明细表
|
||||
JSONObject jsonDtl = new JSONObject();
|
||||
jsonDtl.put("iostorinvdtl_id", IdUtil.getSnowflake(1,1).nextId());
|
||||
jsonDtl.put("iostorinv_id", jsonMst.getString("iostorinv_id"));
|
||||
jsonDtl.put("seq_no", 1);
|
||||
// jsonDtl.put("material_id", "");
|
||||
jsonDtl.put("pcsn", jsonSub.getString("container_name"));
|
||||
jsonDtl.put("box_no", box_no);
|
||||
jsonDtl.put("bill_status", "99");
|
||||
jsonDtl.put("qty_unit_id", 1);
|
||||
jsonDtl.put("qty_unit_name", "KG");
|
||||
jsonDtl.put("plan_qty", jsonIvt.getDoubleValue("ivt_qty"));
|
||||
jsonDtl.put("real_qty", jsonIvt.getDoubleValue("ivt_qty"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
return null;
|
||||
return jo;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
|
||||
package org.nl.wms.pda.st.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.wms.pda.st.service.VirtualOutService;
|
||||
import org.nl.wms.st.inbill.service.CheckOutBillService;
|
||||
import org.nl.wms.st.outbill.service.impl.CheckOutBillServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
/**
|
||||
* @author liuxy
|
||||
* @description 服务实现
|
||||
* @date 2022-05-25
|
||||
**/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class VirtualOutServiceImpl implements VirtualOutService {
|
||||
|
||||
private final CheckOutBillService checkOutBillService;
|
||||
|
||||
@Override
|
||||
public JSONObject ivtQuery(JSONObject whereJson) {
|
||||
|
||||
JSONObject map = new JSONObject();
|
||||
map.put("flag", "1");
|
||||
map.put("box_no", whereJson.getString("box_no"));
|
||||
map.put("bill_code", whereJson.getString("bill_code"));
|
||||
map.put("bill_type", whereJson.getString("bill_type"));
|
||||
JSONArray resultJSONArray = WQL.getWO("PDA_VIRTUALOUT").addParamMap(map).process().getResultJSONArray(0);
|
||||
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("data", resultJSONArray);
|
||||
jo.put("message", "查询成功!");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject billType(JSONObject whereJson) {
|
||||
JSONArray resultJSONArray = WQL.getWO("PDA_VIRTUALOUT").addParam("flag", "3").process().getResultJSONArray(0);
|
||||
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("rows", resultJSONArray);
|
||||
jo.put("message", "查询成功!");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public JSONObject ivtDisQuery(JSONObject whereJson) {
|
||||
|
||||
JSONObject map = new JSONObject();
|
||||
map.put("flag", "2");
|
||||
map.put("box_no", whereJson.getString("box_no"));
|
||||
map.put("bill_code", whereJson.getString("bill_code"));
|
||||
map.put("material_code", whereJson.getString("material_code"));
|
||||
|
||||
JSONArray resultJSONArray = WQL.getWO("PDA_VIRTUALOUT").addParamMap(map).process().getResultJSONArray(0);
|
||||
|
||||
for (int i = 0; i < resultJSONArray.size(); i++) {
|
||||
JSONObject jsonObject = resultJSONArray.getJSONObject(i);
|
||||
String isRePrintPackageBoxLabel = jsonObject.getString("isRePrintPackageBoxLabel");
|
||||
String isUnPackBox = jsonObject.getString("isUnPackBox");
|
||||
|
||||
if (StrUtil.equals(isRePrintPackageBoxLabel, "1") || StrUtil.equals(isUnPackBox, "1")) {
|
||||
jsonObject.put("colro_flag", "1");
|
||||
} else {
|
||||
jsonObject.put("colro_flag", "0");
|
||||
}
|
||||
}
|
||||
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("data", resultJSONArray);
|
||||
jo.put("message", "查询成功!");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public JSONObject outConfirm(JSONObject whereJson) {
|
||||
|
||||
WQLObject disTab = WQLObject.getWQLObject("ST_IVT_IOStorInvDis"); // 出入库分配明细表
|
||||
WQLObject dtlTab = WQLObject.getWQLObject("ST_IVT_IOStorInvDtl"); // 出入库明细表
|
||||
|
||||
String box_no = whereJson.getString("box_no"); // 箱号
|
||||
|
||||
JSONArray disArr = disTab.query("box_no = '" + box_no + "' and work_status <> '99'").getResultJSONArray(0);
|
||||
for (int i = 0; i < disArr.size(); i++) {
|
||||
JSONObject jsonDis = disArr.getJSONObject(i);
|
||||
// 更新状态为完成
|
||||
jsonDis.put("work_status", "99");
|
||||
disTab.update(jsonDis);
|
||||
|
||||
// 判断分配明细是否全部完成
|
||||
JSONArray disNoArr = disTab.query("iostorinvdtl_id = '" + jsonDis.getString("iostorinvdtl_id") + "' and work_status <> '99'").getResultJSONArray(0);
|
||||
if (ObjectUtil.isEmpty(disNoArr)) {
|
||||
// 更新明细表状态为完成
|
||||
JSONObject jsonDtl = dtlTab.query("iostorinvdtl_id = '" + jsonDis.getString("iostorinvdtl_id") + "'").uniqueResult(0);
|
||||
jsonDtl.put("bill_status", "99");
|
||||
dtlTab.update(jsonDtl);
|
||||
|
||||
// 判断此明细是否全部完成
|
||||
JSONArray dtlNoArr = dtlTab.query("iostorinv_id = '" + jsonDis.getString("iostorinv_id") + "' and bill_status <> '99'").getResultJSONArray(0);
|
||||
if (ObjectUtil.isEmpty(dtlNoArr)) {
|
||||
// 调用强制完成接口
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("iostorinv_id",jsonDis.getString("iostorinv_id"));
|
||||
checkOutBillService.confirm(param);
|
||||
}
|
||||
}
|
||||
}
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("message", "出库成功!");
|
||||
return jo;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
[交易说明]
|
||||
交易名: 成品出库
|
||||
交易名: 发货区出库
|
||||
所属模块:
|
||||
功能简述:
|
||||
版权所有:
|
||||
@@ -83,48 +83,3 @@
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
IF 输入.flag = "2"
|
||||
QUERY
|
||||
SELECT
|
||||
sub.package_box_SN AS package_box_SN,
|
||||
sub.container_name AS container_name,
|
||||
sub.product_name AS product_name,
|
||||
sub.product_description AS product_description,
|
||||
sub.net_weight AS net_weight,
|
||||
(
|
||||
CASE
|
||||
sub.isRePrintPackageBoxLabel
|
||||
WHEN '1' THEN '是'
|
||||
WHEN '0' THEN '否'
|
||||
END
|
||||
) AS change_out,
|
||||
(
|
||||
CASE
|
||||
sub.isUnPackBox
|
||||
WHEN '1' THEN '是'
|
||||
WHEN '0' THEN '否'
|
||||
END
|
||||
) AS change_in,
|
||||
|
||||
sub.isRePrintPackageBoxLabel,
|
||||
sub.isUnPackBox,
|
||||
attr.struct_code AS point_code
|
||||
FROM
|
||||
PDM_BI_SubPackageRelation sub
|
||||
LEFT JOIN ST_IVT_StructIvt ivt ON sub.container_name = ivt.pcsn
|
||||
LEFT JOIN ST_IVT_StructAttr attr ON attr.struct_id = ivt.struct_id
|
||||
WHERE
|
||||
1=1
|
||||
|
||||
OPTION 输入.box_no <> ""
|
||||
attr.storagevehicle_code = 输入.box_no
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.point_code <> ""
|
||||
attr.struct_code = 输入.point_code
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
[交易说明]
|
||||
交易名: 虚拟区出库
|
||||
所属模块:
|
||||
功能简述:
|
||||
版权所有:
|
||||
表引用:
|
||||
版本经历:
|
||||
|
||||
[数据库]
|
||||
--指定数据库,为空采用默认值,默认为db.properties中列出的第一个库
|
||||
|
||||
[IO定义]
|
||||
#################################################
|
||||
## 表字段对应输入参数
|
||||
#################################################
|
||||
输入.flag TYPEAS s_string
|
||||
输入.bill_code TYPEAS s_string
|
||||
输入.bill_type TYPEAS s_string
|
||||
输入.material_code TYPEAS s_string
|
||||
输入.box_no TYPEAS s_string
|
||||
|
||||
|
||||
[临时表]
|
||||
--这边列出来的临时表就会在运行期动态创建
|
||||
|
||||
[临时变量]
|
||||
--所有中间过程变量均可在此处定义
|
||||
|
||||
[业务过程]
|
||||
|
||||
##########################################
|
||||
# 1、输入输出检查 #
|
||||
##########################################
|
||||
|
||||
|
||||
##########################################
|
||||
# 2、主过程前处理 #
|
||||
##########################################
|
||||
|
||||
|
||||
##########################################
|
||||
# 3、业务主过程 #
|
||||
##########################################
|
||||
|
||||
IF 输入.flag = "1"
|
||||
QUERY
|
||||
SELECT
|
||||
mst.iostorinv_id,
|
||||
mst.bill_code,
|
||||
(
|
||||
CASE
|
||||
mst.bill_type
|
||||
WHEN '1001' THEN '发货出库'
|
||||
WHEN '1002' THEN '报废出库'
|
||||
WHEN '1003' THEN '改切出库'
|
||||
WHEN '1009' THEN '手工出库'
|
||||
END
|
||||
) AS bill_type_name,
|
||||
mst.source_id AS source_bill_code,
|
||||
mst.biz_date,
|
||||
mst.input_optname AS person_name
|
||||
FROM
|
||||
ST_IVT_IOStorInv mst
|
||||
LEFT JOIN ST_IVT_IOStorInvDis dis ON dis.iostorinv_id = mst.iostorinv_id
|
||||
WHERE
|
||||
dis.sect_id = '1586913215886004224'
|
||||
AND mst.is_delete = '0'
|
||||
AND mst.bill_status <> '99'
|
||||
|
||||
OPTION 输入.box_no <> ""
|
||||
dis.box_no = 输入.box_no
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.bill_code <> ""
|
||||
mst.bill_code = 输入.bill_code
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.bill_type <> ""
|
||||
mst.bill_type = 输入.bill_type
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
IF 输入.flag = "2"
|
||||
QUERY
|
||||
SELECT
|
||||
dis.box_no AS package_box_SN,
|
||||
dis.pcsn AS container_name,
|
||||
mater.material_code AS product_name,
|
||||
mater.material_name AS product_description,
|
||||
sub.net_weight,
|
||||
sub.isRePrintPackageBoxLabel,
|
||||
sub.isUnPackBox,
|
||||
(
|
||||
CASE
|
||||
sub.isRePrintPackageBoxLabel
|
||||
WHEN '0' THEN '否'
|
||||
WHEN '1' THEN '是'
|
||||
END
|
||||
) AS change_out,
|
||||
(
|
||||
CASE
|
||||
sub.isUnPackBox
|
||||
WHEN '0' THEN '否'
|
||||
WHEN '1' THEN '是'
|
||||
END
|
||||
) AS change_in,
|
||||
dis.iostorinvdis_id
|
||||
FROM
|
||||
ST_IVT_IOStorInvDis dis
|
||||
LEFT JOIN ST_IVT_IOStorInv mst ON dis.iostorinv_id = mst.iostorinv_id
|
||||
LEFT JOIN md_me_materialbase mater ON dis.material_id = mater.material_id
|
||||
LEFT JOIN PDM_BI_SubPackageRelation sub ON dis.pcsn = sub.container_name
|
||||
WHERE
|
||||
dis.sect_id = '1586913215886004224'
|
||||
AND mst.is_delete = '0'
|
||||
AND dis.work_status <> '99'
|
||||
|
||||
OPTION 输入.box_no <> ""
|
||||
dis.box_no = 输入.box_no
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.bill_code <> ""
|
||||
mst.bill_code = 输入.bill_code
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.material_code <> ""
|
||||
mater.material_code = 输入.material_code
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
IF 输入.flag = "3"
|
||||
QUERY
|
||||
SELECT
|
||||
label,
|
||||
value
|
||||
FROM
|
||||
sys_dict_detail
|
||||
WHERE
|
||||
name = 'ST_INV_OUT_TYPE'
|
||||
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
@@ -64,4 +64,11 @@ public class HotPointIvtController {
|
||||
hotpointivtService.deleteAll(ids);
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
|
||||
@GetMapping("/taskDtlQuery")
|
||||
@Log("查询烘烤任务明细")
|
||||
@ApiOperation("查询烘烤任务明细")
|
||||
public ResponseEntity<Object> taskDtlQuery(@RequestParam Map whereJson, Pageable page){
|
||||
return new ResponseEntity<>(hotpointivtService.taskDtlQuery(whereJson,page),HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,4 +61,13 @@ public interface HotPointIvtService {
|
||||
* @param ids /
|
||||
*/
|
||||
void deleteAll(Long[] ids);
|
||||
|
||||
/**
|
||||
* 任务明细分页查询
|
||||
* @param whereJson 条件
|
||||
* @param page 分页参数
|
||||
* @return Map<String,Object>
|
||||
*/
|
||||
Map<String,Object> taskDtlQuery(Map whereJson, Pageable page);
|
||||
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package org.nl.wms.pdm.ivt.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
@@ -137,4 +138,26 @@ public class HotPointIvtServiceImpl implements HotPointIvtService {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> taskDtlQuery(Map whereJson, Pageable page) {
|
||||
|
||||
String task_code = MapUtil.getStr(whereJson, "task_code");
|
||||
String start_point_code = MapUtil.getStr(whereJson, "start_point_code");
|
||||
String next_point_code = MapUtil.getStr(whereJson, "next_point_code");
|
||||
|
||||
JSONObject map = new JSONObject();
|
||||
map.put("flag","2");
|
||||
map.put("bill_code", MapUtil.getStr(whereJson,"bill_code"));
|
||||
map.put("dtl_status", MapUtil.getStr(whereJson,"dtl_status"));
|
||||
map.put("begin_time", whereJson.get("begin_time"));
|
||||
map.put("end_time", whereJson.get("end_time"));
|
||||
if (ObjectUtil.isNotEmpty(task_code)) map.put("task_code","%"+task_code+"%");
|
||||
if (ObjectUtil.isNotEmpty(start_point_code)) map.put("start_point_code","%"+start_point_code+"%");
|
||||
if (ObjectUtil.isNotEmpty(next_point_code)) map.put("next_point_code","%"+next_point_code+"%");
|
||||
|
||||
JSONObject json = WQL.getWO("ST_IVT_HOTPOINTIVT").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "create_time DESC");
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ public class RawfoilworkorderServiceImpl implements RawfoilworkorderService {
|
||||
WQLObject tab = WQLObject.getWQLObject("PDM_BI_RawFoilWorkOrder");
|
||||
|
||||
JSONObject json = tab.query("workorder_id = '" + workorder_id + "'").uniqueResult(0);
|
||||
json.put("status", "2");
|
||||
json.put("status", "09");
|
||||
json.put("finish_type", "02");
|
||||
json.put("realend_time", DateUtil.now());
|
||||
json.put("update_optid", currentUserId);
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
输入.is_used TYPEAS s_string
|
||||
输入.begin_time TYPEAS s_string
|
||||
输入.end_time TYPEAS s_string
|
||||
输入.bill_code TYPEAS s_string
|
||||
输入.dtl_status TYPEAS s_string
|
||||
输入.task_code TYPEAS s_string
|
||||
输入.start_point_code TYPEAS s_string
|
||||
输入.next_point_code TYPEAS s_string
|
||||
|
||||
|
||||
[临时表]
|
||||
@@ -72,3 +77,71 @@
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
IF 输入.flag = "2"
|
||||
PAGEQUERY
|
||||
SELECT
|
||||
mst.bill_code,
|
||||
dtl.start_point_code,
|
||||
dtl.next_point_code,
|
||||
dtl.temperature,
|
||||
dtl.oven_time,
|
||||
dtl.create_name,
|
||||
dtl.create_time,
|
||||
dtl.confirm_optname,
|
||||
dtl.confirm_time,
|
||||
(
|
||||
CASE
|
||||
dtl.dtl_status
|
||||
WHEN '10' THEN '生成'
|
||||
WHEN '40' THEN '执行中'
|
||||
WHEN '50' THEN '确认'
|
||||
END
|
||||
) AS dtl_status,
|
||||
(
|
||||
CASE
|
||||
dtl.task_type
|
||||
WHEN '0' THEN 'AGV任务'
|
||||
WHEN '1' THEN '桁架任务'
|
||||
END
|
||||
) AS task_type,
|
||||
task.task_code
|
||||
FROM
|
||||
ST_IVT_HotRegionIODtl dtl
|
||||
LEFT JOIN ST_IVT_HotRegionIOMst mst ON mst.iostorinv_id = dtl.iostorinv_id
|
||||
LEFT JOIN sch_base_task task ON task.task_id = dtl.task_id
|
||||
|
||||
WHERE
|
||||
mst.is_delete = '0'
|
||||
|
||||
OPTION 输入.bill_code <> ""
|
||||
mst.bill_code = 输入.bill_code
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.dtl_status <> ""
|
||||
dtl.dtl_status = 输入.dtl_status
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.task_code <> ""
|
||||
task.task_code like 输入.task_code
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.start_point_code <> ""
|
||||
dtl.start_point_code like 输入.start_point_code
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.next_point_code <> ""
|
||||
dtl.next_point_code like 输入.next_point_code
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.begin_time <> ""
|
||||
dtl.create_time >= 输入.begin_time
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.end_time <> ""
|
||||
dtl.create_time <= 输入.end_time
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
Binary file not shown.
Binary file not shown.
@@ -324,12 +324,12 @@ public class PointServiceImpl implements PointService {
|
||||
structMap.put("point_id", IdUtil.getSnowflake(1,1).nextId());
|
||||
structMap.put("point_code", json.getString("struct_code"));
|
||||
structMap.put("point_name", json.getString("struct_name"));
|
||||
structMap.put("region_id", "");
|
||||
structMap.put("region_code", "");
|
||||
structMap.put("region_name", "");
|
||||
structMap.put("point_type", "01");
|
||||
structMap.put("point_status", "00");
|
||||
structMap.put("lock_type", "1");
|
||||
structMap.put("region_id", json.get("sect_id"));
|
||||
structMap.put("region_code", json.getString("sect_code"));
|
||||
structMap.put("region_name", json.getString("sect_name"));
|
||||
structMap.put("point_type", "2");
|
||||
structMap.put("point_status", "1");
|
||||
structMap.put("lock_type", json.getString("lock_type"));
|
||||
structMap.put("block_num", json.getIntValue("block_num"));
|
||||
structMap.put("row_num", json.getIntValue("row_num"));
|
||||
structMap.put("col_num", json.getIntValue("col_num"));
|
||||
|
||||
@@ -72,8 +72,9 @@ public class TaskServiceImpl implements TaskService {
|
||||
map.put("vehicle_code", "%" + whereJson.getString("vehicle_code") + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(whereJson.getString("task_type"))) {
|
||||
ClassstandardDto task_type = classstandardService.findById(whereJson.getString("task_type"));
|
||||
map.put("task_type", task_type.getClass_code());
|
||||
ClassstandardDto dto = classstandardService.findById(whereJson.getString("task_type"));
|
||||
String task_type = classstandardService.getChildIdStr(dto.getClass_id().toString());
|
||||
map.put("task_type", task_type);
|
||||
}
|
||||
if (StrUtil.isNotEmpty(whereJson.getString("finishTypeList"))) {
|
||||
map.put("finishTypeList", whereJson.getString("finishTypeList"));
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
FROM
|
||||
ST_IVT_StructAttr struct
|
||||
left join
|
||||
SCH_BASE_Region region on struct.region_id = region.region_id
|
||||
SCH_BASE_Region region on struct.sect_id = region.region_id
|
||||
WHERE
|
||||
struct.is_delete = '0'
|
||||
ENDSELECT
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
输入.flag TYPEAS s_string
|
||||
输入.task_status TYPEAS s_string
|
||||
输入.finished_type TYPEAS s_string
|
||||
输入.task_type TYPEAS s_string
|
||||
输入.task_type TYPEAS f_string
|
||||
输入.point_code1 TYPEAS s_string
|
||||
输入.point_code2 TYPEAS s_string
|
||||
输入.task_code TYPEAS s_string
|
||||
@@ -60,7 +60,7 @@
|
||||
WHERE
|
||||
task.is_delete = '0'
|
||||
OPTION 输入.task_type <> ""
|
||||
task.task_type = 输入.task_type
|
||||
md.class_id in 输入.task_type
|
||||
ENDOPTION
|
||||
OPTION 输入.finished_type <> ""
|
||||
task.finished_type = 输入.finished_type
|
||||
@@ -83,7 +83,7 @@
|
||||
OPTION 输入.task_code <> ""
|
||||
(task.task_code like 输入.task_code)
|
||||
ENDOPTION
|
||||
OPTION 输入.point_code <> ""
|
||||
OPTION 输入.point_code1 <> ""
|
||||
(task.point_code1 like 输入.point_code1)
|
||||
ENDOPTION
|
||||
OPTION 输入.begin_time <> ""
|
||||
|
||||
@@ -393,13 +393,19 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
dtl.put("struct_code", ivt.getString("struct_code"));
|
||||
dtl.put("struct_name", ivt.getString("struct_name"));
|
||||
dtl.put("pcsn", ivt.getString("pcsn"));
|
||||
dtl.put("work_status", "00");
|
||||
dtl.put("box_no", ivt.getString("storagevehicle_code"));
|
||||
dtl.put("storagevehicle_id", ivt.getString("storagevehicle_id"));
|
||||
dtl.put("storagevehicle_code", ivt.getString("storagevehicle_code"));
|
||||
dtl.put("storagevehicle_type", ivt.getString("storagevehicle_type"));
|
||||
dtl.put("is_issued", "0");
|
||||
dtl.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
||||
dtl.put("real_qty", ivt.getDoubleValue("change_qty"));
|
||||
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
||||
if (StrUtil.equals(ivt.getString("sect_code"), "XN01")) {
|
||||
dtl.put("work_status", "01");
|
||||
} else {
|
||||
dtl.put("work_status", "00");
|
||||
}
|
||||
wo_dis.insert(dtl);
|
||||
//记录需锁定的仓位
|
||||
Struct_map.put(ivt.getString("struct_id"), ivt);
|
||||
@@ -423,7 +429,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
Collection<JSONObject> c = Struct_map.values();
|
||||
Iterator<JSONObject> it = c.iterator();
|
||||
JSONObject from_start = new JSONObject();
|
||||
from_start.put("lock_type", "01");
|
||||
from_start.put("lock_type", "2");
|
||||
for (; it.hasNext(); ) {
|
||||
JSONObject Struct = it.next();
|
||||
from_start.put("struct_id", Struct.getString("struct_id"));
|
||||
@@ -528,13 +534,13 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
//解锁起点仓位点位
|
||||
JSONObject from_start = new JSONObject();
|
||||
from_start.put("struct_id", dis.getString("struct_id"));
|
||||
from_start.put("lock_type", "00");
|
||||
from_start.put("lock_type", "1");
|
||||
storPublicService.updateStructAndPoint(from_start);
|
||||
//解锁终点仓位点位
|
||||
if (StrUtil.isNotEmpty(dis.getString("point_code"))) {
|
||||
JSONObject from_end = new JSONObject();
|
||||
from_end.put("point_code", dis.getString("point_code"));
|
||||
from_end.put("lock_type", "00");
|
||||
from_end.put("lock_type", "1");
|
||||
storPublicService.updateStructAndPoint(from_end);
|
||||
}
|
||||
} else {//仓位载具扔有冻结数,需改任务类型为拣选出库
|
||||
@@ -572,11 +578,11 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
if (ObjectUtil.isEmpty(jo_mst)) {
|
||||
throw new BadRequestException("未查到相关出库单");
|
||||
}
|
||||
JSONObject point = wo_Point.query("lock_type='00' and (vehicle_code='' or vehicle_code IS NULL) and point_code='" + point_code + "'").uniqueResult(0);
|
||||
JSONObject point = wo_Point.query("lock_type='1' and (vehicle_code='' or vehicle_code IS NULL) and point_code='" + point_code + "'").uniqueResult(0);
|
||||
//如果终点站点被锁定或者有载具号,则不允许设置点位
|
||||
/* if (ObjectUtil.isEmpty(point)) {
|
||||
if (ObjectUtil.isEmpty(point)) {
|
||||
throw new BadRequestException("该站点被锁定或者有载具号,不允许设置!");
|
||||
}*/
|
||||
}
|
||||
//查询未生成和生成未下发的分配记录
|
||||
JSONArray diss = WQL.getWO("QST_IVT_CHECKOUTBILL")
|
||||
.addParam("flag", "5")
|
||||
@@ -613,7 +619,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
//解锁原终点
|
||||
JSONObject from_end = new JSONObject();
|
||||
from_end.put("point_code", dis.getString("point_code"));
|
||||
from_end.put("lock_type", "00");
|
||||
from_end.put("lock_type", "1");
|
||||
storPublicService.updateStructAndPoint(from_end);
|
||||
} else {//生成任务
|
||||
task = new JSONObject();
|
||||
@@ -747,13 +753,19 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
dtl.put("struct_code", ivt.getString("struct_code"));
|
||||
dtl.put("struct_name", ivt.getString("struct_name"));
|
||||
dtl.put("pcsn", ivt.getString("pcsn"));
|
||||
dtl.put("work_status", "00");
|
||||
dtl.put("box_no", ivt.getString("storagevehicle_code"));
|
||||
dtl.put("storagevehicle_id", ivt.getString("storagevehicle_id"));
|
||||
dtl.put("storagevehicle_code", ivt.getString("storagevehicle_code"));
|
||||
dtl.put("storagevehicle_type", ivt.getString("storagevehicle_type"));
|
||||
dtl.put("is_issued", "0");
|
||||
dtl.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
||||
dtl.put("real_qty", ivt.getDoubleValue("change_qty"));
|
||||
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
||||
if (StrUtil.equals(ivt.getString("sect_code"), "XN01")) {
|
||||
dtl.put("work_status", "01");
|
||||
} else {
|
||||
dtl.put("work_status", "00");
|
||||
}
|
||||
wo_dis.insert(dtl);
|
||||
//记录需锁定的仓位
|
||||
Struct_map.put(ivt.getString("struct_id"), ivt);
|
||||
@@ -789,7 +801,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
//锁定起点仓位点位
|
||||
JSONObject from_start = new JSONObject();
|
||||
from_start.put("struct_id", Struct.getString("struct_id"));
|
||||
from_start.put("lock_type", "01");
|
||||
from_start.put("lock_type", "2");
|
||||
from_start.put("inv_type", jo_mst.getString("bill_type"));
|
||||
from_start.put("inv_id", jo_mst.getString("iostorinv_id"));
|
||||
from_start.put("inv_code", jo_mst.getString("bill_code"));
|
||||
@@ -888,7 +900,9 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
//解锁起点
|
||||
JSONObject from_start = new JSONObject();
|
||||
from_start.put("struct_id", dis.getString("struct_id"));
|
||||
from_start.put("lock_type", "00");
|
||||
from_start.put("lock_type", "1");
|
||||
from_start.put("storagevehicle_code", "");
|
||||
// from_start.put("vehicle_code", "");
|
||||
if ("02".equals(dis.getString("taskdtl_type"))) {
|
||||
from_start.put("is_free", "1");
|
||||
}
|
||||
@@ -996,9 +1010,9 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
wo_dis.update(map, "task_id='" + task_id + "'");
|
||||
|
||||
// 更新明细为完成
|
||||
/* JSONObject jsonDtl = wo_dtl.query("iostorinvdtl_id = '" + whereJson.getString("iostorinvdtl_id") + "'").uniqueResult(0);
|
||||
JSONObject jsonDtl = wo_dtl.query("iostorinvdtl_id = '" + whereJson.getString("iostorinvdtl_id") + "'").uniqueResult(0);
|
||||
jsonDtl.put("bill_status", "99");
|
||||
wo_dtl.update(jsonDtl);*/
|
||||
wo_dtl.update(jsonDtl);
|
||||
|
||||
//判断是否还有未完成的明细
|
||||
JSONArray ja = wo_dtl.query("bill_status<>'99' and iostorinv_id='" + whereJson.getString("iostorinv_id") + "'").getResultJSONArray(0);
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
LEFT JOIN md_me_materialbase mb ON mb.material_id = ivt.material_id
|
||||
LEFT JOIN SCH_BASE_Point point ON struct.struct_id = point.source_id
|
||||
WHERE
|
||||
1 = 1 and struct.lock_type='01'
|
||||
1 = 1 and struct.lock_type='1'
|
||||
and struct.struct_id in (
|
||||
SELECT
|
||||
dis.struct_id
|
||||
@@ -217,7 +217,7 @@
|
||||
LEFT JOIN md_me_materialbase mb ON mb.material_id = ivt2.material_id
|
||||
LEFT JOIN SCH_BASE_Point point ON struct.struct_id = point.source_id
|
||||
WHERE
|
||||
1 = 1 and struct.lock_type='00'
|
||||
1 = 1 and struct.lock_type='1'
|
||||
OPTION 输入.material_id <> ""
|
||||
ivt2.material_id = 输入.material_id
|
||||
ENDOPTION
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
<span slot="label"><i class="el-icon-date"></i> 库存查询</span>
|
||||
<Inventory/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="生箔下料">
|
||||
<!-- <el-tab-pane label="生箔下料">
|
||||
<CoolRegionIO/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="出烘箱">出烘箱</el-tab-pane>
|
||||
</el-tab-pane>-->
|
||||
<!-- <el-tab-pane label="出烘箱">出烘箱</el-tab-pane>-->
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -279,7 +279,7 @@ export default {
|
||||
crudMethod: { ...crudStIvtCoolpointivt },
|
||||
optShow: {
|
||||
add: false,
|
||||
edit: true,
|
||||
edit: false,
|
||||
del: false,
|
||||
download: false,
|
||||
reset: true
|
||||
|
||||
@@ -216,7 +216,7 @@ export default {
|
||||
crudMethod: { ...crudCutpointivt },
|
||||
optShow: {
|
||||
add: false,
|
||||
edit: true,
|
||||
edit: false,
|
||||
del: false,
|
||||
download: false,
|
||||
reset: true
|
||||
|
||||
@@ -210,7 +210,7 @@ export default {
|
||||
crudMethod: { ...crudDeliverypointivt },
|
||||
optShow: {
|
||||
add: false,
|
||||
edit: true,
|
||||
edit: false,
|
||||
del: false,
|
||||
download: false,
|
||||
reset: true
|
||||
|
||||
@@ -1,226 +1,23 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="90px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="点位编码">
|
||||
<el-input
|
||||
v-model="query.point_code"
|
||||
clearable
|
||||
placeholder="输入点位编码"
|
||||
style="width: 185px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="点位状态">
|
||||
<el-select
|
||||
v-model="query.point_status"
|
||||
clearable
|
||||
filterable
|
||||
size="mini"
|
||||
class="filter-item"
|
||||
style="width: 185px;"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.sch_point_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产区域">
|
||||
<el-select
|
||||
v-model="query.product_area"
|
||||
clearable
|
||||
filterable
|
||||
size="mini"
|
||||
class="filter-item"
|
||||
style="width: 185px;"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.product_area"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否启用">
|
||||
<el-switch
|
||||
@change="hand"
|
||||
v-model="query.is_used"
|
||||
active-value="0"
|
||||
inactive-value="1"
|
||||
active-color="#C0CCDA"
|
||||
inactive-color="#409EFF"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="入箱时间">
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@change="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<rrOperation :crud="crud" />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission" />
|
||||
<!--表单组件-->
|
||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="520px">
|
||||
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="100px">
|
||||
<el-form-item label="点位编码" prop="point_code">
|
||||
<el-input v-model="form.point_code" style="width: 370px;" :disabled="true"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="点位状态" prop="point_status">
|
||||
<el-select
|
||||
v-model="form.point_status"
|
||||
clearable
|
||||
filterable
|
||||
size="mini"
|
||||
class="filter-item"
|
||||
style="width: 370px;"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.sch_point_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="母卷号">
|
||||
<el-input v-model="form.container_name" style="width: 370px;" :disabled="true"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="批次">
|
||||
<el-input v-model="form.pcsn" style="width: 370px;" :disabled="true"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="温度">
|
||||
<el-input v-model="form.temperature" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否启用" prop="is_used">
|
||||
<el-switch v-model="form.is_used" active-value="1" inactive-value="0"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="text" @click="crud.cancelCU">取消</el-button>
|
||||
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!--表格渲染-->
|
||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="point_code" label="点位编码" />
|
||||
<el-table-column prop="point_status" label="点位状态" >
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.sch_point_status[scope.row.point_status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="is_used" label="是否启用" >
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.is_used[scope.row.is_used] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="container_name" label="母卷号" />
|
||||
<el-table-column prop="full_vehicle_code" label="母卷轴编码" min-width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="pcsn" label="批次" />
|
||||
<el-table-column prop="ivt_qty" label="库存数" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="instorage_time" label="入箱时间" />
|
||||
<el-table-column prop="product_area" label="生产区域" >
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.product_area[scope.row.product_area] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="temperature" label="温度" />
|
||||
<el-table-column prop="group_name" label="组别" />
|
||||
<el-table-column prop="point_location" label="位置" >
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.point_location[scope.row.point_location] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="备注" />
|
||||
<el-table-column prop="update_time" label="修改时间" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<udOperation
|
||||
:data="scope.row"
|
||||
:permission="permission"
|
||||
:is-visiable-del="false"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
</div>
|
||||
<el-tabs type="border-card">
|
||||
<el-tab-pane>
|
||||
<span slot="label"><i class="el-icon-date"></i> 库存查询</span>
|
||||
<PointIvt/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="烘箱任务">
|
||||
<TaskDtl/>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudHotpointivt from './hotpointivt'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
|
||||
const defaultForm = { ivt_id: null, point_code: null, point_status: null, container_name: null, workorder_id: null, full_vehicle_code: null, pcsn: null, ivt_qty: null, qty_unit_id: null, instorage_time: null, product_area: null, temperature: null, group_name: null, point_location: null, sort_seq: null, is_used: null, remark: null, create_id: null, create_name: null, create_time: null, update_optid: null, update_optname: null, update_time: null }
|
||||
import PointIvt from '@/views/wms/pdm/ivt/hotpointivt/pointIvt'
|
||||
import TaskDtl from '@/views/wms/pdm/ivt/hotpointivt/taskDtl'
|
||||
export default {
|
||||
name: 'HotPointIvt',
|
||||
components: { pagination, crudOperation, rrOperation, udOperation },
|
||||
dicts: ['sch_point_status', 'product_area', 'is_used', 'point_location'],
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
cruds() {
|
||||
return CRUD({
|
||||
title: '烘烤区点位库存',
|
||||
url: 'api/hotpointivt',
|
||||
idField: 'ivt_id',
|
||||
sort: 'ivt_id,desc',
|
||||
crudMethod: { ...crudHotpointivt },
|
||||
optShow: {
|
||||
add: false,
|
||||
edit: true,
|
||||
del: false,
|
||||
download: false,
|
||||
reset: true
|
||||
}
|
||||
})
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
permission: {
|
||||
},
|
||||
rules: {
|
||||
point_code: [
|
||||
{ required: true, message: '点位编码不能为空', trigger: 'blur' }
|
||||
],
|
||||
point_status: [
|
||||
{ required: true, message: '点位状态不能为空', trigger: 'blur' }
|
||||
]
|
||||
}}
|
||||
},
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
return true
|
||||
},
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
}
|
||||
}
|
||||
name: 'StIvtHotpointivt',
|
||||
components: { PointIvt, TaskDtl }
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
229
lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/pointIvt.vue
Normal file
229
lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/pointIvt.vue
Normal file
@@ -0,0 +1,229 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="90px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="点位编码">
|
||||
<el-input
|
||||
v-model="query.point_code"
|
||||
clearable
|
||||
placeholder="输入点位编码"
|
||||
style="width: 185px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="点位状态">
|
||||
<el-select
|
||||
v-model="query.point_status"
|
||||
clearable
|
||||
filterable
|
||||
size="mini"
|
||||
class="filter-item"
|
||||
style="width: 185px;"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.sch_hot_point_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产区域">
|
||||
<el-select
|
||||
v-model="query.product_area"
|
||||
clearable
|
||||
filterable
|
||||
size="mini"
|
||||
class="filter-item"
|
||||
style="width: 185px;"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.product_area"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否启用">
|
||||
<el-switch
|
||||
@change="hand"
|
||||
v-model="query.is_used"
|
||||
active-value="0"
|
||||
inactive-value="1"
|
||||
active-color="#C0CCDA"
|
||||
inactive-color="#409EFF"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="入箱时间">
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@change="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<rrOperation :crud="crud" />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission" />
|
||||
<!--表单组件-->
|
||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="520px">
|
||||
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="100px">
|
||||
<el-form-item label="点位编码" prop="point_code">
|
||||
<el-input v-model="form.point_code" style="width: 370px;" :disabled="true"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="点位状态" prop="point_status">
|
||||
<el-select
|
||||
v-model="form.point_status"
|
||||
clearable
|
||||
filterable
|
||||
size="mini"
|
||||
class="filter-item"
|
||||
style="width: 370px;"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.sch_hot_point_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="母卷号">
|
||||
<el-input v-model="form.container_name" style="width: 370px;" :disabled="true"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="批次">
|
||||
<el-input v-model="form.pcsn" style="width: 370px;" :disabled="true"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="温度">
|
||||
<el-input v-model="form.temperature" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否启用" prop="is_used">
|
||||
<el-switch v-model="form.is_used" active-value="1" inactive-value="0"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="text" @click="crud.cancelCU">取消</el-button>
|
||||
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!--表格渲染-->
|
||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="point_code" label="点位编码" />
|
||||
<el-table-column prop="point_status" label="点位状态" >
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.sch_hot_point_status[scope.row.point_status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="is_used" label="是否启用" >
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.is_used[scope.row.is_used] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="container_name" label="母卷号" />
|
||||
<el-table-column prop="full_vehicle_code" label="母卷轴编码" min-width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="pcsn" label="批次" />
|
||||
<el-table-column prop="ivt_qty" label="库存数" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="instorage_time" label="入箱时间" />
|
||||
<el-table-column prop="product_area" label="生产区域" >
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.product_area[scope.row.product_area] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="temperature" label="温度" />
|
||||
<el-table-column prop="group_name" label="组别" />
|
||||
<el-table-column prop="point_location" label="位置" >
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.point_location[scope.row.point_location] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="备注" />
|
||||
<el-table-column prop="update_time" label="修改时间" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<udOperation
|
||||
:data="scope.row"
|
||||
:permission="permission"
|
||||
:is-visiable-del="false"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudHotpointivt from './hotpointivt'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
|
||||
const defaultForm = { ivt_id: null, point_code: null, point_status: null, container_name: null, workorder_id: null, full_vehicle_code: null, pcsn: null, ivt_qty: null, qty_unit_id: null, instorage_time: null, product_area: null, temperature: null, group_name: null, point_location: null, sort_seq: null, is_used: null, remark: null, create_id: null, create_name: null, create_time: null, update_optid: null, update_optname: null, update_time: null }
|
||||
export default {
|
||||
name: 'HotPointIvt',
|
||||
components: { pagination, crudOperation, rrOperation, udOperation },
|
||||
dicts: [ 'product_area', 'is_used', 'point_location', 'sch_hot_point_status'],
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
cruds() {
|
||||
return CRUD({
|
||||
title: '烘烤区点位库存',
|
||||
url: 'api/hotpointivt',
|
||||
idField: 'ivt_id',
|
||||
sort: 'ivt_id,desc',
|
||||
crudMethod: { ...crudHotpointivt },
|
||||
optShow: {
|
||||
add: false,
|
||||
edit: false,
|
||||
del: false,
|
||||
download: false,
|
||||
reset: true
|
||||
}
|
||||
})
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
permission: {
|
||||
},
|
||||
rules: {
|
||||
point_code: [
|
||||
{ required: true, message: '点位编码不能为空', trigger: 'blur' }
|
||||
],
|
||||
point_status: [
|
||||
{ required: true, message: '点位状态不能为空', trigger: 'blur' }
|
||||
]
|
||||
}}
|
||||
},
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
return true
|
||||
},
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
164
lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/taskDtl.vue
Normal file
164
lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/taskDtl.vue
Normal file
@@ -0,0 +1,164 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="90px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="单据编码">
|
||||
<el-input
|
||||
v-model="query.bill_code"
|
||||
clearable
|
||||
placeholder="单据编码"
|
||||
style="width: 185px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务编码">
|
||||
<el-input
|
||||
v-model="query.task_code"
|
||||
clearable
|
||||
placeholder="任务编码"
|
||||
style="width: 185px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="起点编码">
|
||||
<el-input
|
||||
v-model="query.start_point_code"
|
||||
clearable
|
||||
placeholder="起点编码"
|
||||
style="width: 185px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="终点编码">
|
||||
<el-input
|
||||
v-model="query.next_point_code"
|
||||
clearable
|
||||
placeholder="终点编码"
|
||||
style="width: 185px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="明细状态">
|
||||
<el-select
|
||||
v-model="query.dtl_status"
|
||||
clearable
|
||||
filterable
|
||||
size="mini"
|
||||
class="filter-item"
|
||||
style="width: 185px;"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in statusDtlList"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间">
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@change="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<rrOperation :crud="crud" />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission" />
|
||||
<!--表格渲染-->
|
||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column prop="bill_code" label="单据编码" :min-width="flexWidth('bill_code',crud.data,'单据编码')" />
|
||||
<el-table-column prop="dtl_status" label="明细状态" :min-width="flexWidth('dtl_status',crud.data,'明细状态')" />
|
||||
<el-table-column prop="start_point_code" label="起始点位" :min-width="flexWidth('start_point_code',crud.data,'起始点位')" />
|
||||
<el-table-column prop="next_point_code" label="终点点位" :min-width="flexWidth('next_point_code',crud.data,'终点点位')" />
|
||||
<el-table-column prop="temperature" label="烤箱温度" :min-width="flexWidth('temperature',crud.data,'烤箱温度')" />
|
||||
<el-table-column prop="oven_time" label="烘烤时间" :min-width="flexWidth('oven_time',crud.data,'烘烤时间')" />
|
||||
<el-table-column prop="task_type" label="任务类型" :min-width="flexWidth('task_type',crud.data,'任务类型')" />
|
||||
<el-table-column prop="task_code" label="任务编码" :min-width="flexWidth('task_code',crud.data,'任务编码')" />
|
||||
<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 prop="confirm_optname" label="确认人" :min-width="flexWidth('confirm_optname',crud.data,'确认人')" />
|
||||
<el-table-column prop="confirm_time" label="确认时间" :min-width="flexWidth('confirm_time',crud.data,'确认时间')" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudHotpointivt from './hotpointivt'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
|
||||
const defaultForm = { }
|
||||
export default {
|
||||
name: 'HotPointIvtTask',
|
||||
components: { pagination, crudOperation, rrOperation, udOperation },
|
||||
dicts: [],
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
cruds() {
|
||||
return CRUD({
|
||||
title: '烘烤区任务明细',
|
||||
url: 'api/hotpointivt/taskDtlQuery',
|
||||
idField: 'ivt_id',
|
||||
sort: 'ivt_id,desc',
|
||||
crudMethod: { ...crudHotpointivt },
|
||||
optShow: {
|
||||
add: false,
|
||||
edit: false,
|
||||
del: false,
|
||||
download: false,
|
||||
reset: true
|
||||
}
|
||||
})
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
statusDtlList: [
|
||||
{ 'label': '生成', 'value': '10' },
|
||||
{ 'label': '执行中', 'value': '40' },
|
||||
{ 'label': '确认', 'value': '50' }
|
||||
],
|
||||
permission: {
|
||||
},
|
||||
rules: {
|
||||
}}
|
||||
},
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
return true
|
||||
},
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -167,7 +167,7 @@ export default {
|
||||
crudMethod: { ...crudSbpointivt },
|
||||
optShow: {
|
||||
add: false,
|
||||
edit: true,
|
||||
edit: false,
|
||||
del: false,
|
||||
download: false,
|
||||
reset: true
|
||||
|
||||
@@ -162,6 +162,8 @@
|
||||
<udOperation
|
||||
:data="scope.row"
|
||||
:permission="permission"
|
||||
:disabled-dle="scope.row.status !== '01'"
|
||||
:disabled-edit="scope.row.status !== '01'"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -254,8 +256,8 @@ export default {
|
||||
compelEnd() {
|
||||
const _selectData = this.$refs.table.selection
|
||||
const data = _selectData[0]
|
||||
if (data.status !== '01') {
|
||||
return this.crud.notify('只能对开始状态的工单结束', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
if (data.status === '09') {
|
||||
return this.crud.notify('不能对完成状态的工单强制结束', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
}
|
||||
crudRawfoilworkorder.compelEnd(data).then(res => {
|
||||
this.crud.toQuery()
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="(query.region_id=='1557539288307077120' || query.region_id=='1582909373552922624')" label="块">
|
||||
<!-- <el-form-item v-if="(query.region_id=='1557539288307077120' || query.region_id=='1582909373552922624')" label="块">
|
||||
<el-input
|
||||
v-model="query.block_num"
|
||||
clearable
|
||||
@@ -104,16 +104,24 @@
|
||||
placeholder="层"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
|
||||
<el-form-item label="锁定类型">
|
||||
<el-switch
|
||||
<el-select
|
||||
v-model="query.lock_type"
|
||||
active-value="2"
|
||||
inactive-value="1"
|
||||
active-color="#409EFF"
|
||||
inactive-color="#C0CCDA"
|
||||
clearable
|
||||
filterable
|
||||
size="mini"
|
||||
placeholder="锁定类型"
|
||||
class="filter-item"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.d_lock_type"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="是否启用">
|
||||
@@ -186,8 +194,8 @@
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="el-icon-refresh"
|
||||
@click="sync"
|
||||
:loading="sync_flag"
|
||||
@click="sync"
|
||||
>
|
||||
仓位同步
|
||||
</el-button>
|
||||
@@ -234,7 +242,7 @@
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="item in pointStatusList"
|
||||
v-for="item in pointStatusDialogList"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
@@ -255,16 +263,16 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="点位类型" prop="device_point_type">
|
||||
<el-form-item label="点位类型" prop="point_type">
|
||||
<el-select
|
||||
v-model="form.point_type"
|
||||
size="mini"
|
||||
placeholder="设备点位类型"
|
||||
placeholder="点位类型"
|
||||
class="filter-item"
|
||||
style="width: 370px;"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in pointTypesList"
|
||||
v-for="item in pointTypesDialogList"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
@@ -299,13 +307,14 @@
|
||||
<el-table-column prop="point_type_name" label="点位类型" />
|
||||
<el-table-column prop="point_status_name" label="点位状态" />
|
||||
<el-table-column prop="lock_type_name" label="锁定类型" />
|
||||
<el-table-column prop="vehicle_type" label="载具类型" min-width="120">
|
||||
<!-- <el-table-column prop="vehicle_type" label="载具类型" min-width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.vehicle_type[scope.row.vehicle_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>-->
|
||||
<el-table-column prop="vehicle_code" label="载具编码" />
|
||||
<el-table-column prop="vehicle_qty" label="载具数量" />
|
||||
<el-table-column prop="product_area" label="生产区域" />
|
||||
<el-table-column prop="remark" label="备注" min-width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="is_used" label="是否启用">
|
||||
<template slot-scope="scope">
|
||||
@@ -336,7 +345,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudRegion from '@/views/wms/sch/region'
|
||||
import crudRegion from '@/views/wms/sch/region/region'
|
||||
import crudPoint, { changeActive } from '@/views/wms/sch/point/point'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
@@ -388,6 +397,9 @@ export default {
|
||||
point_type: [
|
||||
{ required: true, message: '点位类型不能为空', trigger: 'blur' }
|
||||
],
|
||||
point_status: [
|
||||
{ required: true, message: '点位状态不能为空', trigger: 'blur' }
|
||||
],
|
||||
region_id: [
|
||||
{ required: true, message: '区域类型不能为空', trigger: 'blur' }
|
||||
],
|
||||
@@ -439,6 +451,7 @@ export default {
|
||||
})
|
||||
},
|
||||
getPointStatusAndTypeList(id, flag) {
|
||||
debugger
|
||||
if (id) {
|
||||
this.getPointStatusList(id, flag)
|
||||
this.getPointTypeList(id, flag)
|
||||
@@ -446,6 +459,7 @@ export default {
|
||||
if (flag === 1) { this.crud.toQuery() }
|
||||
},
|
||||
getPointStatusList(id, flag) {
|
||||
debugger
|
||||
crudRegion.getPointStatusSelectById(id).then(res => {
|
||||
if (flag === 1) {
|
||||
this.pointStatusList = res
|
||||
@@ -456,7 +470,11 @@ export default {
|
||||
},
|
||||
getPointTypeList(id, flag) {
|
||||
crudRegion.getPointTypeSelectById(id).then(res => {
|
||||
if (flag === 1) { this.pointTypesList = res } else { this.pointTypesDialogList = res }
|
||||
if (flag === 1) {
|
||||
this.pointTypesList = res
|
||||
} else {
|
||||
this.pointTypesDialogList = res
|
||||
}
|
||||
})
|
||||
},
|
||||
changeUsed(data, flag) { // 更改启用状态
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudRegion, { changeActive } from '@/views/wms/sch/region'
|
||||
import crudRegion, { changeActive } from '@/views/wms/sch/region/region'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
|
||||
@@ -26,13 +26,13 @@
|
||||
v-model="query.vehicle_code"
|
||||
clearable
|
||||
style="width: 180px"
|
||||
placeholder="载具号"
|
||||
placeholder="载具号1"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="点位编码">
|
||||
<el-input
|
||||
v-model="query.point_code"
|
||||
v-model="query.point_code1"
|
||||
clearable
|
||||
style="width: 180px"
|
||||
placeholder="起点"
|
||||
@@ -48,24 +48,6 @@
|
||||
placeholder="请选择"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="完成方式">
|
||||
<el-select
|
||||
v-model="query.finished_type"
|
||||
style="width: 180px"
|
||||
placeholder="完成方式"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in finishTypeList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="创建时间">
|
||||
<el-date-picker
|
||||
@@ -112,37 +94,19 @@
|
||||
style="width: 100%;"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="selection" width="50" />
|
||||
<!-- <el-table-column v-if="true" prop="task_id" label="任务标识" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column v-if="true" prop="material_id" label="物料标识" min-width="150" show-overflow-tooltip />-->
|
||||
<el-table-column prop="task_code" label="任务编码" min-width="100" show-overflow-tooltip />
|
||||
<el-table-column v-if="false" prop="task_type" label="任务类型" />
|
||||
<!--<el-table-column prop="acs_task_type" label="acs任务类型" min-width="120" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.acs_task_type[scope.row.acs_task_type] }}
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<el-table-column prop="task_name" label="任务描述" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column v-if="false" prop="task_type_name" label="任务类型" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column v-if="false" prop="task_status" label="任务状态" />
|
||||
<el-table-column prop="task_type_name" label="任务类型" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column prop="task_status_name" label="任务状态" width="95px" :formatter="formatTaskStatusName" />
|
||||
<!--<el-table-column prop="vehicle_type" label="载具类型" min-width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.vehicle_type[scope.row.vehicle_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="vehicle_code" label="载具编码" min-width="100" show-overflow-tooltip />-->
|
||||
<el-table-column prop="point_code1" label="点位1" width="100" />
|
||||
<el-table-column prop="point1_region_name" label="区域1" width="100" />
|
||||
<el-table-column prop="point_code2" label="点位2" min-width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="point2_region_name" label="区域2" min-width="120" show-overflow-tooltip />
|
||||
<!--<el-table-column prop="point_code3" label="点位3" min-width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="point3_region_name" label="区域3" min-width="120" show-overflow-tooltip />-->
|
||||
<!--<el-table-column prop="point_code3" label="点位3" width="85" />
|
||||
<el-table-column prop="point_code4" label="点位4" width="85" />-->
|
||||
<el-table-column prop="remark" label="备注" width="120" show-overflow-tooltip />
|
||||
<el-table-column prop="create_time" label="创建时间" width="135" />
|
||||
<el-table-column prop="update_time" label="修改时间" width="135" />
|
||||
<el-table-column prop="point_code1" label="点位1" width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="point_code2" label="点位2" width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="point_code3" label="点位3" width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="point_code4" label="点位4" width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="material_code" label="物料编码" width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="vehicle_code" label="载具编码1" width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="vehicle_code2" label="载具编码2" width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="task_name" label="任务描述" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column prop="create_time" label="创建时间" width="135" show-overflow-tooltip />
|
||||
<el-table-column prop="update_time" label="修改时间" width="135" show-overflow-tooltip />
|
||||
<el-table-column
|
||||
v-permission="['admin','instruction:edit','instruction:del']"
|
||||
fixed="right"
|
||||
|
||||
@@ -151,6 +151,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="material_name" label="物料名称" align="center" min-width="150px" show-overflow-tooltip />
|
||||
<el-table-column prop="box_no" label="箱号" align="center" min-width="150px" show-overflow-tooltip />
|
||||
<el-table-column show-overflow-tooltip prop="pcsn" label="子卷号" align="center">
|
||||
<template scope="scope">
|
||||
<el-input v-show="!scope.row.edit" v-model="scope.row.pcsn" size="mini" />
|
||||
|
||||
Reference in New Issue
Block a user