rev:1.发货出库不能强控优化2.出库实际重量显示真是发货重量3.B开头子卷保质期为180天优化4.发货信息回传sap优化5.库存报表字段优化6.一键新增仓位优化
This commit is contained in:
@@ -28,10 +28,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.function.BiConsumer;
|
import java.util.function.BiConsumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@@ -541,8 +538,9 @@ public class StructattrServiceImpl implements StructattrService {
|
|||||||
int createNum = whereJson.getIntValue("num");
|
int createNum = whereJson.getIntValue("num");
|
||||||
// 开始生成数
|
// 开始生成数
|
||||||
int createNum_start = 1;
|
int createNum_start = 1;
|
||||||
|
|
||||||
// 前缀
|
// 前缀
|
||||||
String prefix = whereJson.getString("prefix");
|
String prefix = "";
|
||||||
|
|
||||||
if (ObjectUtil.isNotEmpty(jsonAttr)) {
|
if (ObjectUtil.isNotEmpty(jsonAttr)) {
|
||||||
String struct_code = jsonAttr.getString("struct_code");
|
String struct_code = jsonAttr.getString("struct_code");
|
||||||
@@ -559,6 +557,21 @@ public class StructattrServiceImpl implements StructattrService {
|
|||||||
createNum_start += Integer.parseInt(result);
|
createNum_start += Integer.parseInt(result);
|
||||||
|
|
||||||
prefix = struct_code.substring(0, firstIndex);
|
prefix = struct_code.substring(0, firstIndex);
|
||||||
|
} else {
|
||||||
|
// 截取第一个 - 之前的数据集合
|
||||||
|
|
||||||
|
List<JSONObject> attrList = WQL.getWO("QST_STRUCT_ATTR").addParam("flag", "2").process()
|
||||||
|
.getResultJSONArray(0).toJavaList(JSONObject.class);
|
||||||
|
|
||||||
|
List<String> subStringList = attrList.stream()
|
||||||
|
.filter(row -> row.getString("struct_code").contains("-"))
|
||||||
|
.map(row -> row.getString("struct_code").substring(0, row.getString("struct_code").indexOf("-")))
|
||||||
|
.distinct()
|
||||||
|
.sorted()
|
||||||
|
.filter(row -> row.matches("-?\\d+(\\.\\d+)?"))
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
prefix = String.valueOf(Integer.parseInt(subStringList.get(subStringList.size() - 1)) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -651,13 +664,16 @@ public class StructattrServiceImpl implements StructattrService {
|
|||||||
/*
|
/*
|
||||||
* 判断前缀是否存在
|
* 判断前缀是否存在
|
||||||
*/
|
*/
|
||||||
List<JSONObject> attrList = attrTab.query("1 = 1").getResultJSONArray(0).toJavaList(JSONObject.class);
|
List<JSONObject> attrList = WQL.getWO("QST_STRUCT_ATTR").addParam("flag", "2").process()
|
||||||
|
.getResultJSONArray(0).toJavaList(JSONObject.class);
|
||||||
|
|
||||||
// 截取第一个 - 之前的数据集合
|
// 截取第一个 - 之前的数据集合
|
||||||
List<String> subStringList = attrList.stream()
|
List<String> subStringList = attrList.stream()
|
||||||
.filter(row -> row.getString("struct_code").contains("-"))
|
.filter(row -> row.getString("struct_code").contains("-"))
|
||||||
.map(row -> row.getString("struct_code").substring(0, row.getString("struct_code").indexOf("-")))
|
.map(row -> row.getString("struct_code").substring(0, row.getString("struct_code").indexOf("-")))
|
||||||
.distinct()
|
.distinct()
|
||||||
|
.sorted()
|
||||||
|
.filter(row -> row.matches("-?\\d+(\\.\\d+)?"))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
// 判断是否有相同的前缀
|
// 判断是否有相同的前缀
|
||||||
|
|||||||
@@ -86,5 +86,19 @@
|
|||||||
ENDPAGEQUERY
|
ENDPAGEQUERY
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|
||||||
|
IF 输入.flag = "2"
|
||||||
|
QUERY
|
||||||
|
SELECT
|
||||||
|
struct.*
|
||||||
|
FROM
|
||||||
|
st_ivt_structattr struct
|
||||||
|
LEFT JOIN st_ivt_sectattr sect ON sect.sect_id = struct.sect_id
|
||||||
|
WHERE
|
||||||
|
sect.sect_type_attr = '09'
|
||||||
|
|
||||||
|
ENDSELECT
|
||||||
|
ENDQUERY
|
||||||
|
ENDIF
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -295,4 +295,12 @@ public interface CheckOutBillService {
|
|||||||
* @throws IOException /
|
* @throws IOException /
|
||||||
*/
|
*/
|
||||||
void download(Map map, HttpServletResponse response, String[] stor_id, String[] bill_status, String[] bill_type) throws IOException;
|
void download(Map map, HttpServletResponse response, String[] stor_id, String[] bill_status, String[] bill_type) throws IOException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新是否超期
|
||||||
|
* @param whereJson {
|
||||||
|
* 主表数据
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
JSONObject updataIsOverdue(JSONObject whereJson);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -312,4 +312,11 @@ public class CheckOutBillController {
|
|||||||
public void download(@RequestParam Map map, HttpServletResponse response, String[] stor_id, String[] bill_status, String[] bill_type) throws IOException {
|
public void download(@RequestParam Map map, HttpServletResponse response, String[] stor_id, String[] bill_status, String[] bill_type) throws IOException {
|
||||||
checkOutBillService.download(map, response, stor_id, bill_status, bill_type);
|
checkOutBillService.download(map, response, stor_id, bill_status, bill_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping("/updataIsOverdue")
|
||||||
|
@Log("更新是否超期")
|
||||||
|
public ResponseEntity<Object> updataIsOverdue(@RequestBody JSONObject whereJson) {
|
||||||
|
return new ResponseEntity<>(checkOutBillService.updataIsOverdue(whereJson),HttpStatus.OK);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1022,6 +1022,32 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
FileUtil.downloadExcel(list, response);
|
FileUtil.downloadExcel(list, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JSONObject updataIsOverdue(JSONObject whereJson) {
|
||||||
|
// 出入库主表
|
||||||
|
WQLObject mstTab = WQLObject.getWQLObject("st_ivt_iostorinv");
|
||||||
|
// 出入库分配明细表
|
||||||
|
WQLObject disTab = WQLObject.getWQLObject("st_ivt_iostorinvdis");
|
||||||
|
|
||||||
|
// 更新主表
|
||||||
|
JSONObject jsonMst = mstTab.query("iostorinv_id = '" + whereJson.getString("iostorinv_id") + "'").uniqueResult(0);
|
||||||
|
jsonMst.put("is_overdue", whereJson.getString("is_overdue"));
|
||||||
|
mstTab.update(jsonMst);
|
||||||
|
|
||||||
|
// 计算超期数量
|
||||||
|
List<JSONObject> disList = disTab.query("iostorinvdtl_id = '" + whereJson.getString("iostorinvdtl_id") + "' AND is_overdue = '1'")
|
||||||
|
.getResultJSONArray(0).toJavaList(JSONObject.class);
|
||||||
|
|
||||||
|
double overdue_qyt = disList.stream()
|
||||||
|
.map(row -> row.getDoubleValue("plan_qty"))
|
||||||
|
.reduce(Double::sum).orElse(0.00);
|
||||||
|
|
||||||
|
JSONObject result = new JSONObject();
|
||||||
|
result.put("overdue_qyt",overdue_qyt);
|
||||||
|
result.put("mst", jsonMst);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void update(JSONObject whereJson) {
|
public void update(JSONObject whereJson) {
|
||||||
@@ -1290,11 +1316,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
dtl.put("work_status", "00");
|
dtl.put("work_status", "00");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断是否超期
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
if (ivt2.getString("is_overdue").equals("1")) {
|
// 判断是否超期
|
||||||
dtl.put("work_status", "01");
|
if (ivt2.getString("is_overdue").equals("1")) {
|
||||||
|
dtl.put("work_status", "01");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wo_dis.insert(dtl);
|
wo_dis.insert(dtl);
|
||||||
}
|
}
|
||||||
//记录需锁定的仓位
|
//记录需锁定的仓位
|
||||||
@@ -1358,9 +1385,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 判断是否超期
|
// 判断是否超期
|
||||||
if (jsonIvt.getString("is_overdue").equals("1")) {
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
dtl.put("work_status", "01");
|
if (jsonIvt.getString("is_overdue").equals("1")) {
|
||||||
|
dtl.put("work_status", "01");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wo_dis.insert(dtl);
|
wo_dis.insert(dtl);
|
||||||
|
|
||||||
//记录需锁定的仓位 (如果此明细有相同物料的且子卷号不能为空的则在最后一个明细分配完成后锁定仓位)
|
//记录需锁定的仓位 (如果此明细有相同物料的且子卷号不能为空的则在最后一个明细分配完成后锁定仓位)
|
||||||
@@ -1534,6 +1564,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
dtl.put("is_issued", "0");
|
dtl.put("is_issued", "0");
|
||||||
dtl.put("plan_qty", ivt2.getDoubleValue("change_qty"));
|
dtl.put("plan_qty", ivt2.getDoubleValue("change_qty"));
|
||||||
dtl.put("real_qty", ivt2.getDoubleValue("change_qty"));
|
dtl.put("real_qty", ivt2.getDoubleValue("change_qty"));
|
||||||
|
dtl.put("is_overdue", ivt2.getString("is_overdue"));
|
||||||
dtl.put("instorage_time", ivt2.getString("instorage_time"));
|
dtl.put("instorage_time", ivt2.getString("instorage_time"));
|
||||||
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
||||||
JSONObject jsonSect = wo_sect.query("sect_id = '" + ivt2.getString("sect_id") + "'").uniqueResult(0);
|
JSONObject jsonSect = wo_sect.query("sect_id = '" + ivt2.getString("sect_id") + "'").uniqueResult(0);
|
||||||
@@ -1542,6 +1573,14 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
} else {
|
} else {
|
||||||
dtl.put("work_status", "00");
|
dtl.put("work_status", "00");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
|
// 判断是否超期
|
||||||
|
if (ivt2.getString("is_overdue").equals("1")) {
|
||||||
|
dtl.put("work_status", "01");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wo_dis.insert(dtl);
|
wo_dis.insert(dtl);
|
||||||
}
|
}
|
||||||
//记录需锁定的仓位
|
//记录需锁定的仓位
|
||||||
@@ -1594,6 +1633,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
dtl.put("is_issued", "0");
|
dtl.put("is_issued", "0");
|
||||||
dtl.put("plan_qty", jsonIvt.getDoubleValue("change_qty"));
|
dtl.put("plan_qty", jsonIvt.getDoubleValue("change_qty"));
|
||||||
dtl.put("real_qty", jsonIvt.getDoubleValue("change_qty"));
|
dtl.put("real_qty", jsonIvt.getDoubleValue("change_qty"));
|
||||||
|
dtl.put("is_overdue", jsonIvt.getString("is_overdue"));
|
||||||
dtl.put("instorage_time", jsonIvt.getString("instorage_time"));
|
dtl.put("instorage_time", jsonIvt.getString("instorage_time"));
|
||||||
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
||||||
JSONObject jsonSect = wo_sect.query("sect_id = '" + jsonIvt.getString("sect_id") + "'").uniqueResult(0);
|
JSONObject jsonSect = wo_sect.query("sect_id = '" + jsonIvt.getString("sect_id") + "'").uniqueResult(0);
|
||||||
@@ -1602,6 +1642,14 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
} else {
|
} else {
|
||||||
dtl.put("work_status", "00");
|
dtl.put("work_status", "00");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
|
// 判断是否超期
|
||||||
|
if (jsonIvt.getString("is_overdue").equals("1")) {
|
||||||
|
dtl.put("work_status", "01");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wo_dis.insert(dtl);
|
wo_dis.insert(dtl);
|
||||||
//记录需锁定的仓位
|
//记录需锁定的仓位
|
||||||
Struct_map.put(jsonIvt.getString("struct_id"), jsonIvt);
|
Struct_map.put(jsonIvt.getString("struct_id"), jsonIvt);
|
||||||
@@ -1658,6 +1706,8 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
json.put("is_issued", "0");
|
json.put("is_issued", "0");
|
||||||
json.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
json.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
||||||
json.put("real_qty", ivt.getDoubleValue("change_qty"));
|
json.put("real_qty", ivt.getDoubleValue("change_qty"));
|
||||||
|
json.put("is_overdue", ivt.getString("is_overdue"));
|
||||||
|
json.put("instorage_time", ivt.getString("instorage_time"));
|
||||||
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
||||||
JSONObject jsonSect = wo_sect.query("sect_id = '" + ivt.getString("sect_id") + "'").uniqueResult(0);
|
JSONObject jsonSect = wo_sect.query("sect_id = '" + ivt.getString("sect_id") + "'").uniqueResult(0);
|
||||||
if (StrUtil.equals(jsonSect.getString("sect_type_attr"), "09")) {
|
if (StrUtil.equals(jsonSect.getString("sect_type_attr"), "09")) {
|
||||||
@@ -1665,6 +1715,14 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
} else {
|
} else {
|
||||||
json.put("work_status", "00");
|
json.put("work_status", "00");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 判断是否超期
|
||||||
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
|
if (ivt.getString("is_overdue").equals("1")) {
|
||||||
|
json.put("work_status", "01");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wo_dis.insert(json);
|
wo_dis.insert(json);
|
||||||
|
|
||||||
// 更新明细
|
// 更新明细
|
||||||
@@ -4384,6 +4442,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
dtl.put("is_issued", "0");
|
dtl.put("is_issued", "0");
|
||||||
dtl.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
dtl.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
||||||
dtl.put("real_qty", ivt.getDoubleValue("change_qty"));
|
dtl.put("real_qty", ivt.getDoubleValue("change_qty"));
|
||||||
|
dtl.put("is_overdue", ivt.getString("is_overdue"));
|
||||||
dtl.put("instorage_time", ivt.getString("instorage_time"));
|
dtl.put("instorage_time", ivt.getString("instorage_time"));
|
||||||
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
||||||
JSONObject jsonSect = wo_sect.query("sect_id = '" + ivt.getString("sect_id") + "'").uniqueResult(0);
|
JSONObject jsonSect = wo_sect.query("sect_id = '" + ivt.getString("sect_id") + "'").uniqueResult(0);
|
||||||
@@ -4392,6 +4451,14 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
} else {
|
} else {
|
||||||
dtl.put("work_status", "00");
|
dtl.put("work_status", "00");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 判断是否超期
|
||||||
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
|
if (ivt.getString("is_overdue").equals("1")) {
|
||||||
|
dtl.put("work_status", "01");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wo_dis.insert(dtl);
|
wo_dis.insert(dtl);
|
||||||
//记录需锁定的仓位
|
//记录需锁定的仓位
|
||||||
Struct_map.put(ivt.getString("struct_id"), ivt);
|
Struct_map.put(ivt.getString("struct_id"), ivt);
|
||||||
@@ -4453,6 +4520,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
json.put("is_issued", "0");
|
json.put("is_issued", "0");
|
||||||
json.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
json.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
||||||
json.put("real_qty", ivt.getDoubleValue("change_qty"));
|
json.put("real_qty", ivt.getDoubleValue("change_qty"));
|
||||||
|
json.put("is_overdue", ivt.getString("is_overdue"));
|
||||||
json.put("instorage_time", ivt.getString("instorage_time"));
|
json.put("instorage_time", ivt.getString("instorage_time"));
|
||||||
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
// 如果所属仓位是虚拟区 则将分配明细状态变为生成
|
||||||
JSONObject jsonSect = wo_sect.query("sect_id = '" + ivt.getString("sect_id") + "'").uniqueResult(0);
|
JSONObject jsonSect = wo_sect.query("sect_id = '" + ivt.getString("sect_id") + "'").uniqueResult(0);
|
||||||
@@ -4461,6 +4529,14 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
} else {
|
} else {
|
||||||
json.put("work_status", "00");
|
json.put("work_status", "00");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 判断是否超期
|
||||||
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
|
if (ivt.getString("is_overdue").equals("1")) {
|
||||||
|
json.put("work_status", "01");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wo_dis.insert(json);
|
wo_dis.insert(json);
|
||||||
|
|
||||||
// 更新明细
|
// 更新明细
|
||||||
@@ -4585,8 +4661,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
dis.put("bill_code", jo_mst.getString("bill_code"));
|
dis.put("bill_code", jo_mst.getString("bill_code"));
|
||||||
dis.put("bill_table", "ST_IVT_IOStorInv");
|
dis.put("bill_table", "ST_IVT_IOStorInv");
|
||||||
|
|
||||||
if (dis.getString("is_overdue").equals("1")) {
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
storPublicService.IOStor(dis, "12");
|
if (dis.getString("is_overdue").equals("1")) {
|
||||||
|
storPublicService.IOStor(dis, "12");
|
||||||
|
} else {
|
||||||
|
storPublicService.IOStor(dis, "21");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
storPublicService.IOStor(dis, "21");
|
storPublicService.IOStor(dis, "21");
|
||||||
}
|
}
|
||||||
@@ -4596,15 +4676,23 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
from_start.put("struct_id", dis.getString("struct_id"));
|
from_start.put("struct_id", dis.getString("struct_id"));
|
||||||
from_start.put("lock_type", "1");
|
from_start.put("lock_type", "1");
|
||||||
from_start.put("is_overdue", dis.getString("is_overdue"));
|
from_start.put("is_overdue", dis.getString("is_overdue"));
|
||||||
if (dis.getString("is_overdue").equals("1")) {
|
|
||||||
from_start.put("storagevehicle_code", dis.getString("box_no"));
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
|
if (dis.getString("is_overdue").equals("1")) {
|
||||||
|
from_start.put("storagevehicle_code", dis.getString("box_no"));
|
||||||
|
} else {
|
||||||
|
from_start.put("storagevehicle_code", "");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
from_start.put("storagevehicle_code", "");
|
from_start.put("storagevehicle_code", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
storPublicService.updateStructAndPoint(from_start);
|
storPublicService.updateStructAndPoint(from_start);
|
||||||
|
|
||||||
if (dis.getString("is_overdue").equals("1")) {
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
continue;
|
if (dis.getString("is_overdue").equals("1")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//查询对应明细
|
//查询对应明细
|
||||||
@@ -4664,7 +4752,14 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
JSONObject mst_row = mst_wql.query("iostorinv_id = '" + iostorinv_id + "'").uniqueResult(0);
|
JSONObject mst_row = mst_wql.query("iostorinv_id = '" + iostorinv_id + "'").uniqueResult(0);
|
||||||
JSONArray dis_rows = dis_wql.query("iostorinv_id = '" + iostorinv_id + "' and is_overdue = '0'").getResultJSONArray(0);
|
|
||||||
|
JSONArray dis_rows = new JSONArray();
|
||||||
|
|
||||||
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
|
dis_rows = dis_wql.query("iostorinv_id = '" + iostorinv_id + "' and is_overdue = '0'").getResultJSONArray(0);
|
||||||
|
} else {
|
||||||
|
dis_rows = dis_wql.query("iostorinv_id = '" + iostorinv_id + "'").getResultJSONArray(0);
|
||||||
|
}
|
||||||
|
|
||||||
//生成手工入库单
|
//生成手工入库单
|
||||||
String new_iostorinv_id = IdUtil.getSnowflake(1, 1).nextId() + "";
|
String new_iostorinv_id = IdUtil.getSnowflake(1, 1).nextId() + "";
|
||||||
@@ -4767,7 +4862,13 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
|
|
||||||
if ("1003".equals(out_jo.getString("bill_type")) || "1006".equals(out_jo.getString("bill_type"))) {
|
if ("1003".equals(out_jo.getString("bill_type")) || "1006".equals(out_jo.getString("bill_type"))) {
|
||||||
//如果为返检出库或者改切出库删除对应的包装关系
|
//如果为返检出库或者改切出库删除对应的包装关系
|
||||||
JSONArray dis_rows = WQLObject.getWQLObject("ST_IVT_IOStorInvDis").query("iostorinv_id = '" + iostorinv_id + "' and is_overdue = '0'").getResultJSONArray(0);
|
JSONArray dis_rows = new JSONArray();
|
||||||
|
if (jo_mst.getString("is_overdue").equals("1")) {
|
||||||
|
dis_rows = WQLObject.getWQLObject("ST_IVT_IOStorInvDis").query("iostorinv_id = '" + iostorinv_id + "' and is_overdue = '0'").getResultJSONArray(0);
|
||||||
|
} else {
|
||||||
|
dis_rows = WQLObject.getWQLObject("ST_IVT_IOStorInvDis").query("iostorinv_id = '" + iostorinv_id + "'").getResultJSONArray(0);
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 0; i < dis_rows.size(); i++) {
|
for (int i = 0; i < dis_rows.size(); i++) {
|
||||||
JSONObject dis_row = dis_rows.getJSONObject(i);
|
JSONObject dis_row = dis_rows.getJSONObject(i);
|
||||||
String sect_code = dis_row.getString("sect_code");
|
String sect_code = dis_row.getString("sect_code");
|
||||||
@@ -5329,12 +5430,15 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
// 回传sap
|
// 回传sap
|
||||||
JSONObject jsonMst = mstTab.query("iostorinv_id = '" + whereJson.getString("iostorinv_id") + "'").uniqueResult(0);
|
JSONObject jsonMst = mstTab.query("iostorinv_id = '" + whereJson.getString("iostorinv_id") + "'").uniqueResult(0);
|
||||||
|
|
||||||
JSONArray jsonArr = new JSONArray();
|
// 判断单据是否是完成状态:只回传完成状态的单据
|
||||||
jsonArr.add(jsonMst);
|
if (jsonMst.getString("bill_status").equals("99")) {
|
||||||
|
JSONArray jsonArr = new JSONArray();
|
||||||
|
jsonArr.add(jsonMst);
|
||||||
|
|
||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
param.put("rows", jsonArr);
|
param.put("rows", jsonArr);
|
||||||
inAndOutReturnService.uploadSAP(param);
|
inAndOutReturnService.uploadSAP(param);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -97,6 +97,7 @@
|
|||||||
cu.cust_simple_name,
|
cu.cust_simple_name,
|
||||||
a.plan_qty,
|
a.plan_qty,
|
||||||
attr.stor_name AS out_stor_name
|
attr.stor_name AS out_stor_name
|
||||||
|
|
||||||
FROM
|
FROM
|
||||||
ST_IVT_IOStorInv ios
|
ST_IVT_IOStorInv ios
|
||||||
LEFT JOIN md_cs_customerbase cu ON ios.cust_code = cu.cust_code
|
LEFT JOIN md_cs_customerbase cu ON ios.cust_code = cu.cust_code
|
||||||
@@ -106,15 +107,32 @@
|
|||||||
LEFT JOIN pdm_bi_subpackagerelationrecord sub ON sub.container_name = dis.pcsn AND dis.box_no = sub.package_box_sn AND sub.bill_code = ios.bill_code
|
LEFT JOIN pdm_bi_subpackagerelationrecord sub ON sub.container_name = dis.pcsn AND dis.box_no = sub.package_box_sn AND sub.bill_code = ios.bill_code
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
SELECT
|
SELECT
|
||||||
SUM(a.assign_qty) AS plan_qty,
|
SUM(a.plan_qty) AS plan_qty,
|
||||||
a.iostorinv_id
|
a.iostorinv_id
|
||||||
FROM
|
FROM
|
||||||
st_ivt_iostorinvdtl a
|
st_ivt_iostorinvdis a
|
||||||
LEFT JOIN ST_IVT_IOStorInv b ON a.iostorinv_id = b.iostorinv_id
|
LEFT JOIN ST_IVT_IOStorInv b ON a.iostorinv_id = b.iostorinv_id
|
||||||
WHERE
|
WHERE
|
||||||
b.io_type = '1'
|
b.io_type = '1'
|
||||||
and b.is_delete='0'
|
and b.is_delete='0'
|
||||||
|
and a.is_overdue = '0'
|
||||||
|
and b.is_overdue = '1'
|
||||||
GROUP BY a.iostorinv_id
|
GROUP BY a.iostorinv_id
|
||||||
|
|
||||||
|
UNION
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
SUM(a.plan_qty) AS plan_qty,
|
||||||
|
a.iostorinv_id
|
||||||
|
FROM
|
||||||
|
st_ivt_iostorinvdis a
|
||||||
|
LEFT JOIN ST_IVT_IOStorInv b ON a.iostorinv_id = b.iostorinv_id
|
||||||
|
WHERE
|
||||||
|
b.io_type = '1'
|
||||||
|
and b.is_delete='0'
|
||||||
|
and b.is_overdue = '0'
|
||||||
|
GROUP BY a.iostorinv_id
|
||||||
|
|
||||||
) a ON a.iostorinv_id = ios.iostorinv_id
|
) a ON a.iostorinv_id = ios.iostorinv_id
|
||||||
WHERE
|
WHERE
|
||||||
ios.io_type = '1'
|
ios.io_type = '1'
|
||||||
@@ -369,7 +387,14 @@
|
|||||||
struct.storagevehicle_id,
|
struct.storagevehicle_id,
|
||||||
struct.storagevehicle_code,
|
struct.storagevehicle_code,
|
||||||
point.point_id,
|
point.point_id,
|
||||||
sub.sap_pcsn
|
sub.sap_pcsn,
|
||||||
|
CASE
|
||||||
|
WHEN SUBSTRING(sub.container_name,1,1) = 'B' AND DATEDIFF( NOW(), sub.date_of_production ) > '180'
|
||||||
|
THEN '1'
|
||||||
|
WHEN SUBSTRING(sub.container_name,1,1) != 'B' AND DATEDIFF( NOW(), sub.date_of_production ) > '90'
|
||||||
|
THEN '1'
|
||||||
|
ELSE '0'
|
||||||
|
END AS is_overdue
|
||||||
FROM
|
FROM
|
||||||
ST_IVT_StructIvt ivt
|
ST_IVT_StructIvt ivt
|
||||||
LEFT JOIN st_ivt_structattr struct ON struct.struct_id = ivt.struct_id
|
LEFT JOIN st_ivt_structattr struct ON struct.struct_id = ivt.struct_id
|
||||||
@@ -437,7 +462,14 @@
|
|||||||
struct.storagevehicle_id,
|
struct.storagevehicle_id,
|
||||||
struct.storagevehicle_code,
|
struct.storagevehicle_code,
|
||||||
point.point_id,
|
point.point_id,
|
||||||
sub.sap_pcsn
|
sub.sap_pcsn,
|
||||||
|
CASE
|
||||||
|
WHEN SUBSTRING(sub.container_name,1,1) = 'B' AND DATEDIFF( NOW(), sub.date_of_production ) > '180'
|
||||||
|
THEN '1'
|
||||||
|
WHEN SUBSTRING(sub.container_name,1,1) != 'B' AND DATEDIFF( NOW(), sub.date_of_production ) > '90'
|
||||||
|
THEN '1'
|
||||||
|
ELSE '0'
|
||||||
|
END AS is_overdue
|
||||||
FROM
|
FROM
|
||||||
ST_IVT_StructIvt ivt2
|
ST_IVT_StructIvt ivt2
|
||||||
LEFT JOIN st_ivt_structattr struct ON struct.struct_id = ivt2.struct_id
|
LEFT JOIN st_ivt_structattr struct ON struct.struct_id = ivt2.struct_id
|
||||||
|
|||||||
@@ -62,7 +62,11 @@
|
|||||||
attr.struct_name,
|
attr.struct_name,
|
||||||
attr.struct_code,
|
attr.struct_code,
|
||||||
CASE
|
CASE
|
||||||
WHEN DATEDIFF( NOW(), sub.date_of_production ) > '90' THEN '1' ELSE '0'
|
WHEN SUBSTRING(sub.container_name,1,1) = 'B' AND DATEDIFF( NOW(), sub.date_of_production ) > '180'
|
||||||
|
THEN '1'
|
||||||
|
WHEN SUBSTRING(sub.container_name,1,1) != 'B' AND DATEDIFF( NOW(), sub.date_of_production ) > '90'
|
||||||
|
THEN '1'
|
||||||
|
ELSE '0'
|
||||||
END AS is_overdue
|
END AS is_overdue
|
||||||
FROM
|
FROM
|
||||||
ST_IVT_StructIvt ivt
|
ST_IVT_StructIvt ivt
|
||||||
@@ -164,7 +168,11 @@
|
|||||||
attr.struct_name,
|
attr.struct_name,
|
||||||
attr.struct_code,
|
attr.struct_code,
|
||||||
CASE
|
CASE
|
||||||
WHEN DATEDIFF( NOW(), sub.date_of_production ) > '90' THEN '1' ELSE '0'
|
WHEN SUBSTRING(sub.container_name,1,1) = 'B' AND DATEDIFF( NOW(), sub.date_of_production ) > '180'
|
||||||
|
THEN '1'
|
||||||
|
WHEN SUBSTRING(sub.container_name,1,1) != 'B' AND DATEDIFF( NOW(), sub.date_of_production ) > '90'
|
||||||
|
THEN '1'
|
||||||
|
ELSE '0'
|
||||||
END AS is_overdue
|
END AS is_overdue
|
||||||
FROM
|
FROM
|
||||||
ST_IVT_StructIvt ivt
|
ST_IVT_StructIvt ivt
|
||||||
|
|||||||
@@ -241,7 +241,7 @@
|
|||||||
<el-table-column prop="unit_name" label="计量单位"/>
|
<el-table-column prop="unit_name" label="计量单位"/>
|
||||||
<el-table-column prop="instorage_time" label="入库时间" min-width="150"/>
|
<el-table-column prop="instorage_time" label="入库时间" min-width="150"/>
|
||||||
<el-table-column prop="sub_type" label="子卷状态" min-width="150" :formatter="formatSubType"/>
|
<el-table-column prop="sub_type" label="子卷状态" min-width="150" :formatter="formatSubType"/>
|
||||||
<el-table-column prop="stock_age" label="库龄" min-width="100" />
|
<el-table-column prop="stock_age" label="生产时长(天)" min-width="120" />
|
||||||
<el-table-column prop="paper_type" label="管件类型" min-width="150"/>
|
<el-table-column prop="paper_type" label="管件类型" min-width="150"/>
|
||||||
<el-table-column prop="paper_code" label="管件编码" min-width="150"/>
|
<el-table-column prop="paper_code" label="管件编码" min-width="150"/>
|
||||||
<el-table-column prop="paper_name" label="管件描述" min-width="250"/>
|
<el-table-column prop="paper_name" label="管件描述" min-width="250"/>
|
||||||
|
|||||||
@@ -25,11 +25,11 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="8">
|
<!-- <el-col :span="8">
|
||||||
<el-form-item label="仓位前缀:">
|
<el-form-item label="仓位前缀:">
|
||||||
<el-input v-model="formMst.prefix" placeholder="如:91、B21、C31等" size="mini" style="width: 210px" @blur="blurQuery" />
|
<el-input v-model="formMst.prefix" placeholder="如:91、B21、C31等" size="mini" style="width: 210px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
|
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="生成数量:">
|
<el-form-item label="生成数量:">
|
||||||
@@ -126,10 +126,6 @@ export default {
|
|||||||
return this.crud.notify('库区不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
return this.crud.notify('库区不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.formMst.prefix === '') {
|
|
||||||
return this.crud.notify('前缀不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.formMst.num === '') {
|
if (this.formMst.num === '') {
|
||||||
return this.crud.notify('数量不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
return this.crud.notify('数量不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,6 +143,7 @@
|
|||||||
<el-form-item label="待分配" prop="unassign_qty">
|
<el-form-item label="待分配" prop="unassign_qty">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="form2.unassign_qty"
|
v-model="form2.unassign_qty"
|
||||||
|
style="width: 100px;"
|
||||||
:controls="false"
|
:controls="false"
|
||||||
:precision="3"
|
:precision="3"
|
||||||
:min="0"
|
:min="0"
|
||||||
@@ -152,6 +153,7 @@
|
|||||||
<el-form-item label="已分配" prop="assign_qty">
|
<el-form-item label="已分配" prop="assign_qty">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="form2.assign_qty"
|
v-model="form2.assign_qty"
|
||||||
|
style="width: 100px;"
|
||||||
:controls="false"
|
:controls="false"
|
||||||
:precision="3"
|
:precision="3"
|
||||||
:min="0"
|
:min="0"
|
||||||
@@ -164,7 +166,7 @@
|
|||||||
clearable
|
clearable
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
style="width: 200px;"
|
style="width: 150px;"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in pointList"
|
v-for="item in pointList"
|
||||||
@@ -177,6 +179,20 @@
|
|||||||
<el-form-item prop="checked">
|
<el-form-item prop="checked">
|
||||||
<el-checkbox v-model="checked">是否异常出库</el-checkbox>
|
<el-checkbox v-model="checked">是否异常出库</el-checkbox>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="超期发货:" prop="is_overdue">
|
||||||
|
<el-radio v-model="rowmst.is_overdue" label="1" :disabled="rowmst.bill_status === '40'" @change="updataIsOverdue">是</el-radio>
|
||||||
|
<el-radio v-model="rowmst.is_overdue" label="0" :disabled="rowmst.bill_status === '40'" @change="updataIsOverdue">否</el-radio>
|
||||||
|
</el-form-item>
|
||||||
|
<!--<el-form-item label="超期数量:" prop="assign_qty" v-if="rowmst.is_overdue === '1'">
|
||||||
|
<el-input-number
|
||||||
|
v-model="overdue_qyt"
|
||||||
|
style="width: 100px;"
|
||||||
|
:controls="false"
|
||||||
|
:precision="3"
|
||||||
|
:min="0"
|
||||||
|
disabled
|
||||||
|
/>
|
||||||
|
</el-form-item>-->
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<span class="crud-opts-right2">
|
<span class="crud-opts-right2">
|
||||||
@@ -227,6 +243,7 @@
|
|||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
max-height="400"
|
max-height="400"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
:row-style="rowStyle"
|
||||||
border
|
border
|
||||||
:highlight-current-row="true"
|
:highlight-current-row="true"
|
||||||
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
||||||
@@ -256,7 +273,7 @@
|
|||||||
<el-table-column show-overflow-tooltip prop="plan_qty" label="出库重量" :formatter="crud.formatNum3" align="center" />
|
<el-table-column show-overflow-tooltip prop="plan_qty" label="出库重量" :formatter="crud.formatNum3" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="struct_code" width="150px" label="仓位编码" align="center" />
|
<el-table-column show-overflow-tooltip prop="struct_code" width="150px" label="仓位编码" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="struct_name" width="150px" label="仓位名称" align="center" />
|
<el-table-column show-overflow-tooltip prop="struct_name" width="150px" label="仓位名称" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="is_overdue" width="150px" label="是否超期" align="center" :formatter="formatOverdue"/>
|
<el-table-column show-overflow-tooltip prop="is_overdue" width="150px" label="是否超期" align="center" :formatter="formatOverdue" />
|
||||||
<el-table-column show-overflow-tooltip prop="instorage_time" width="150px" label="入库时间" align="center" />
|
<el-table-column show-overflow-tooltip prop="instorage_time" width="150px" label="入库时间" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="task_code" width="150px" label="任务号" align="center" />
|
<el-table-column show-overflow-tooltip prop="task_code" width="150px" label="任务号" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="point_code" width="150px" label="出库点" align="center" />
|
<el-table-column show-overflow-tooltip prop="point_code" width="150px" label="出库点" align="center" />
|
||||||
@@ -268,7 +285,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
<pointDialog ref="child" :dialog-show.sync="pointshow" :dialog-typedisable="typedisable" :dialog-areatype="areatype" @PointChanged="PointChanged" />
|
<pointDialog ref="child" :dialog-show.sync="pointshow" :dialog-typedisable="typedisable" :dialog-areatype="areatype" @PointChanged="PointChanged" />
|
||||||
<StructIvt :dialog-show.sync="structshow" :stor-id="storId" :open-array="openParam" :rowmst="openRow" @StructIvtClosed="queryTableDtl" />
|
<StructIvt :dialog-show.sync="structshow" :stor-id="storId" :open-array="openParam" :rowmst="openRow" @StructIvtClosed="queryTableDtl2" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -338,7 +355,8 @@ export default {
|
|||||||
invtypelist: [],
|
invtypelist: [],
|
||||||
pointList: [],
|
pointList: [],
|
||||||
rules: {
|
rules: {
|
||||||
}
|
},
|
||||||
|
overdue_qyt: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -459,6 +477,7 @@ export default {
|
|||||||
deleteRow(row) {
|
deleteRow(row) {
|
||||||
checkoutbill.oneCancel(row).then(res => {
|
checkoutbill.oneCancel(row).then(res => {
|
||||||
this.queryTableDtl()
|
this.queryTableDtl()
|
||||||
|
this.updataIsOverdue()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDtlCurrentChange(current) {
|
handleDtlCurrentChange(current) {
|
||||||
@@ -517,6 +536,7 @@ export default {
|
|||||||
checkoutbill.allDiv(this.mstrow).then(res => {
|
checkoutbill.allDiv(this.mstrow).then(res => {
|
||||||
this.crud.notify('分配成功!', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('分配成功!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
this.queryTableDtl()
|
this.queryTableDtl()
|
||||||
|
this.updataIsOverdue()
|
||||||
this.loadingAlldiv = false
|
this.loadingAlldiv = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadingAlldiv = false
|
this.loadingAlldiv = false
|
||||||
@@ -532,6 +552,7 @@ export default {
|
|||||||
this.mstrow.iostorinvdtl_id = this.currentRow.iostorinvdtl_id
|
this.mstrow.iostorinvdtl_id = this.currentRow.iostorinvdtl_id
|
||||||
checkoutbill.allDivOne(this.mstrow).then(res => {
|
checkoutbill.allDivOne(this.mstrow).then(res => {
|
||||||
this.queryTableDtl()
|
this.queryTableDtl()
|
||||||
|
this.updataIsOverdue()
|
||||||
this.loadingAutodiv = false
|
this.loadingAutodiv = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadingAutodiv = false
|
this.loadingAutodiv = false
|
||||||
@@ -542,6 +563,7 @@ export default {
|
|||||||
this.loadingAlldiv = true
|
this.loadingAlldiv = true
|
||||||
checkoutbill.allCancel(this.mstrow).then(res => {
|
checkoutbill.allCancel(this.mstrow).then(res => {
|
||||||
this.queryTableDtl()
|
this.queryTableDtl()
|
||||||
|
this.updataIsOverdue()
|
||||||
this.loadingAlldiv = false
|
this.loadingAlldiv = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadingAlldiv = false
|
this.loadingAlldiv = false
|
||||||
@@ -553,6 +575,7 @@ export default {
|
|||||||
checkoutbill.allCancel(this.currentRow).then(res => {
|
checkoutbill.allCancel(this.currentRow).then(res => {
|
||||||
this.queryTableDtl()
|
this.queryTableDtl()
|
||||||
this.loadingAlldiv = false
|
this.loadingAlldiv = false
|
||||||
|
this.updataIsOverdue()
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadingAlldiv = false
|
this.loadingAlldiv = false
|
||||||
})
|
})
|
||||||
@@ -673,6 +696,10 @@ export default {
|
|||||||
this.tableDtl = res
|
this.tableDtl = res
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
queryTableDtl2() {
|
||||||
|
this.queryTableDtl()
|
||||||
|
this.updataIsOverdue()
|
||||||
|
},
|
||||||
queryTableDdis(iostorinvdtl_id) {
|
queryTableDdis(iostorinvdtl_id) {
|
||||||
checkoutbill.getOutBillDis2({ 'iostorinvdtl_id': iostorinvdtl_id, 'bill_status': '01' }).then(res => {
|
checkoutbill.getOutBillDis2({ 'iostorinvdtl_id': iostorinvdtl_id, 'bill_status': '01' }).then(res => {
|
||||||
this.tabledis = res
|
this.tabledis = res
|
||||||
@@ -689,6 +716,23 @@ export default {
|
|||||||
return 'background: yellow'
|
return 'background: yellow'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
rowStyle({ row, rowIndex }) {
|
||||||
|
const stylejson = {}
|
||||||
|
|
||||||
|
if (this.rowmst.is_overdue === '1') {
|
||||||
|
if (row.is_overdue === '1') {
|
||||||
|
stylejson.background = '#f3f071'
|
||||||
|
return stylejson
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
updataIsOverdue() {
|
||||||
|
this.rowmst.iostorinvdtl_id = this.currentRow.iostorinvdtl_id
|
||||||
|
checkoutbill.updataIsOverdue(this.rowmst).then(res => {
|
||||||
|
this.overdue_qyt = res.overdue_qyt
|
||||||
|
this.rowmst = res.mst
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -241,4 +241,11 @@ export function outReturn(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export default { add, edit, del, allDiv, allCancel, getOutBillDtl, getOutBillDis, getOutBillDis2, setPoint, oneSetPoint, getOutBillTask, getStructIvt, manualDiv, confirm, issueTask, finishTask, cancleTaskfinish, getInvTypes, paramByCodeType, schAreaType, backConfirm, getOutBillDisDtl, getType, allDivOne, moneySubmit, getDisNum, queryBox, getOutBillTask2, oneCancel, cancelTask, allSetPoint, oneSetPoint2, outReturn }
|
export function updataIsOverdue(data) {
|
||||||
|
return request({
|
||||||
|
url: '/api/checkoutbill/updataIsOverdue',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export default { add, edit, del, allDiv, allCancel, getOutBillDtl, getOutBillDis, getOutBillDis2, setPoint, oneSetPoint, getOutBillTask, getStructIvt, manualDiv, confirm, issueTask, finishTask, cancleTaskfinish, getInvTypes, paramByCodeType, schAreaType, backConfirm, getOutBillDisDtl, getType, allDivOne, moneySubmit, getDisNum, queryBox, getOutBillTask2, oneCancel, cancelTask, allSetPoint, oneSetPoint2, outReturn, updataIsOverdue }
|
||||||
|
|||||||
@@ -319,6 +319,7 @@
|
|||||||
<el-table-column show-overflow-tooltip label="交货单号" align="center" prop="vbeln" width="100" />
|
<el-table-column show-overflow-tooltip label="交货单号" align="center" prop="vbeln" width="100" />
|
||||||
<el-table-column show-overflow-tooltip label="是否回传" align="center" prop="is_upload" width="80" :formatter="formatIsUpload" />
|
<el-table-column show-overflow-tooltip label="是否回传" align="center" prop="is_upload" width="80" :formatter="formatIsUpload" />
|
||||||
<el-table-column show-overflow-tooltip :formatter="create_modeFormat" prop="create_mode" label="生成方式" width="100" />
|
<el-table-column show-overflow-tooltip :formatter="create_modeFormat" prop="create_mode" label="生成方式" width="100" />
|
||||||
|
<el-table-column show-overflow-tooltip :formatter="isOverdue" prop="is_overdue" label="是否超期发货" width="120" />
|
||||||
<el-table-column show-overflow-tooltip label="备注" align="center" prop="remark" width="100" />
|
<el-table-column show-overflow-tooltip label="备注" align="center" prop="remark" width="100" />
|
||||||
<el-table-column show-overflow-tooltip label="制单人" align="center" prop="input_optname" />
|
<el-table-column show-overflow-tooltip label="制单人" align="center" prop="input_optname" />
|
||||||
<el-table-column show-overflow-tooltip label="制单时间" align="center" prop="input_time" width="140" />
|
<el-table-column show-overflow-tooltip label="制单时间" align="center" prop="input_time" width="140" />
|
||||||
@@ -375,7 +376,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mixins: [presenter(), header(), crud()],
|
mixins: [presenter(), header(), crud()],
|
||||||
// 数据字典
|
// 数据字典
|
||||||
dicts: ['io_bill_status', 'ST_CREATE_MODE', 'ST_INV_OUT_TYPE', 'is_upload'],
|
dicts: ['io_bill_status', 'ST_CREATE_MODE', 'ST_INV_OUT_TYPE', 'is_upload', 'IS_OR_NOT'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
height: document.documentElement.clientHeight - 180 + 'px;',
|
height: document.documentElement.clientHeight - 180 + 'px;',
|
||||||
@@ -510,6 +511,9 @@ export default {
|
|||||||
create_modeFormat(row) {
|
create_modeFormat(row) {
|
||||||
return this.dict.label.ST_CREATE_MODE[row.create_mode]
|
return this.dict.label.ST_CREATE_MODE[row.create_mode]
|
||||||
},
|
},
|
||||||
|
isOverdue(row) {
|
||||||
|
return this.dict.label.IS_OR_NOT[row.is_overdue]
|
||||||
|
},
|
||||||
handleCurrentChange(current) {
|
handleCurrentChange(current) {
|
||||||
if (current === null) {
|
if (current === null) {
|
||||||
this.dis_flag = true
|
this.dis_flag = true
|
||||||
|
|||||||
Reference in New Issue
Block a user