代码更新
This commit is contained in:
@@ -43,6 +43,7 @@ public class StructivtServiceImpl implements StructivtService {
|
|||||||
String material = MapUtil.getStr(whereJson, "material");
|
String material = MapUtil.getStr(whereJson, "material");
|
||||||
String struct = MapUtil.getStr(whereJson, "struct");
|
String struct = MapUtil.getStr(whereJson, "struct");
|
||||||
String region_id = MapUtil.getStr(whereJson, "region_id");
|
String region_id = MapUtil.getStr(whereJson, "region_id");
|
||||||
|
String pcsn = MapUtil.getStr(whereJson, "pcsn");
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("flag", "1");
|
map.put("flag", "1");
|
||||||
map.put("region_id", region_id);
|
map.put("region_id", region_id);
|
||||||
@@ -52,6 +53,9 @@ public class StructivtServiceImpl implements StructivtService {
|
|||||||
if (StrUtil.isNotEmpty(struct)) {
|
if (StrUtil.isNotEmpty(struct)) {
|
||||||
map.put("struct", "%" + struct + "%");
|
map.put("struct", "%" + struct + "%");
|
||||||
}
|
}
|
||||||
|
if (StrUtil.isNotEmpty(pcsn)) {
|
||||||
|
map.put("pcsn", "%" + pcsn + "%");
|
||||||
|
}
|
||||||
JSONObject jsonObject = WQL.getWO("QST_STRUCTIVT001").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "ivt.instorage_time desc");
|
JSONObject jsonObject = WQL.getWO("QST_STRUCTIVT001").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "ivt.instorage_time desc");
|
||||||
return jsonObject;
|
return jsonObject;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
输入.struct TYPEAS s_string
|
输入.struct TYPEAS s_string
|
||||||
输入.material TYPEAS s_string
|
输入.material TYPEAS s_string
|
||||||
输入.region_id TYPEAS f_string
|
输入.region_id TYPEAS f_string
|
||||||
|
输入.pcsn TYPEAS s_string
|
||||||
|
|
||||||
[临时表]
|
[临时表]
|
||||||
--这边列出来的临时表就会在运行期动态创建
|
--这边列出来的临时表就会在运行期动态创建
|
||||||
@@ -75,6 +76,9 @@
|
|||||||
mater.material_name like 输入.material
|
mater.material_name like 输入.material
|
||||||
)
|
)
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
|
OPTION 输入.pcsn <> ""
|
||||||
|
ivt.pcsn like 输入.pcsn
|
||||||
|
ENDOPTION
|
||||||
|
|
||||||
OPTION 输入.region_id <> ""
|
OPTION 输入.region_id <> ""
|
||||||
ivt.region_id = 输入.region_id
|
ivt.region_id = 输入.region_id
|
||||||
|
|||||||
@@ -194,4 +194,6 @@ public interface CheckOutBillService {
|
|||||||
* @param whereJson /
|
* @param whereJson /
|
||||||
*/
|
*/
|
||||||
JSONArray queryBox(JSONObject whereJson);
|
JSONArray queryBox(JSONObject whereJson);
|
||||||
|
|
||||||
|
JSONArray getOutBillTask2(Map whereJson);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,6 +123,12 @@ public class CheckOutBillController {
|
|||||||
public ResponseEntity<Object> getOutBillTask(@RequestParam Map whereJson){
|
public ResponseEntity<Object> getOutBillTask(@RequestParam Map whereJson){
|
||||||
return new ResponseEntity<>(checkOutBillService.getOutBillTask(whereJson), HttpStatus.OK);
|
return new ResponseEntity<>(checkOutBillService.getOutBillTask(whereJson), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
@PostMapping("/getOutBillTask2")
|
||||||
|
@Log("详情查询出库单分配任务2")
|
||||||
|
@ApiOperation("详情查询出库单分配任务2")
|
||||||
|
public ResponseEntity<Object> getOutBillTask2(@RequestBody Map whereJson){
|
||||||
|
return new ResponseEntity<>(checkOutBillService.getOutBillTask2(whereJson), HttpStatus.OK);
|
||||||
|
}
|
||||||
@GetMapping("/getStructIvt")
|
@GetMapping("/getStructIvt")
|
||||||
@Log("查询可分配库存")
|
@Log("查询可分配库存")
|
||||||
@ApiOperation("查询可分配库存")
|
@ApiOperation("查询可分配库存")
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
map.put("flag", "7");
|
map.put("flag", "7");
|
||||||
map.put("begin_time", MapUtil.getStr(whereJson, "begin_time"));
|
map.put("begin_time", MapUtil.getStr(whereJson, "begin_time"));
|
||||||
map.put("end_time", MapUtil.getStr(whereJson, "end_time"));
|
map.put("end_time", MapUtil.getStr(whereJson, "end_time"));
|
||||||
|
map.put("canuse_qty", "0");
|
||||||
|
|
||||||
if (StrUtil.isNotEmpty(map.get("material_code"))) {
|
if (StrUtil.isNotEmpty(map.get("material_code"))) {
|
||||||
map.put("material_code", "%" + map.get("material_code") + "%");
|
map.put("material_code", "%" + map.get("material_code") + "%");
|
||||||
@@ -203,18 +204,25 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
WQLObject ivtTab = WQLObject.getWQLObject("ST_IVT_StructIvt");
|
WQLObject ivtTab = WQLObject.getWQLObject("ST_IVT_StructIvt");
|
||||||
//明细另一种写法
|
//明细另一种写法
|
||||||
//JSONArray jsonArr = JSONArray.fromObject(whereJson.get("tableData"));
|
//JSONArray jsonArr = JSONArray.fromObject(whereJson.get("tableData"));
|
||||||
JSONArray rows = map.getJSONArray("tableData");
|
JSONArray array = map.getJSONArray("tableData");
|
||||||
|
JSONArray rows = new JSONArray();
|
||||||
// 过滤相同箱号的明细
|
// 过滤相同箱号的明细
|
||||||
HashSet<String> boxSet = new HashSet<>();
|
HashSet<String> boxSet = new HashSet<>();
|
||||||
for (int i = 0; i < rows.size(); i++) {
|
for (int i = 0; i < array.size(); i++) {
|
||||||
JSONObject json = rows.getJSONObject(i);
|
JSONObject json = array.getJSONObject(i);
|
||||||
boxSet.add(json.getString("box_no"));
|
if (ObjectUtil.isNotEmpty(json.getString("box_no"))) {
|
||||||
|
boxSet.add(json.getString("box_no"));
|
||||||
|
} else {
|
||||||
|
rows.add(json);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
rows.clear();
|
if (ObjectUtil.isNotEmpty(boxSet)) {
|
||||||
// 遍历
|
// rows.clear();
|
||||||
for (String box_no : boxSet) {
|
// 遍历
|
||||||
JSONObject jsonObject = WQL.getWO("QST_IVT_CHECKOUTBILL").addParam("flag", "7").addParam("box_no", box_no).process().uniqueResult(0);
|
for (String box_no : boxSet) {
|
||||||
rows.add(jsonObject);
|
JSONObject jsonObject = WQL.getWO("QST_IVT_CHECKOUTBILL").addParam("flag", "7").addParam("box_no", box_no).process().uniqueResult(0);
|
||||||
|
rows.add(jsonObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
map.remove("tableData");
|
map.remove("tableData");
|
||||||
@@ -265,6 +273,11 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
int num = rows.size(); // 明细数
|
int num = rows.size(); // 明细数
|
||||||
for (int i = 0; i < rows.size(); i++) {
|
for (int i = 0; i < rows.size(); i++) {
|
||||||
JSONObject row = rows.getJSONObject(i);
|
JSONObject row = rows.getJSONObject(i);
|
||||||
|
// 校验计划数量不能为零
|
||||||
|
double plan_qty = row.getDoubleValue("plan_qty");
|
||||||
|
if (plan_qty == 0.0) {
|
||||||
|
throw new BadRequestException("数量不能为0");
|
||||||
|
}
|
||||||
JSONObject jsonDtl = new JSONObject();
|
JSONObject jsonDtl = new JSONObject();
|
||||||
jsonDtl.put("iostorinvdtl_id", IdUtil.getSnowflake(1, 1).nextId() + "");
|
jsonDtl.put("iostorinvdtl_id", IdUtil.getSnowflake(1, 1).nextId() + "");
|
||||||
jsonDtl.put("iostorinv_id", iostorinv_id);
|
jsonDtl.put("iostorinv_id", iostorinv_id);
|
||||||
@@ -301,7 +314,6 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
for (int j = 0; j < ivtArr.size(); j++) {
|
for (int j = 0; j < ivtArr.size(); j++) {
|
||||||
JSONObject jsonIvt = ivtArr.getJSONObject(j);
|
JSONObject jsonIvt = ivtArr.getJSONObject(j);
|
||||||
JSONObject jsonDtl2 = new JSONObject();
|
JSONObject jsonDtl2 = new JSONObject();
|
||||||
|
|
||||||
jsonDtl2.put("iostorinvdtl_id", IdUtil.getSnowflake(1, 1).nextId() + "");
|
jsonDtl2.put("iostorinvdtl_id", IdUtil.getSnowflake(1, 1).nextId() + "");
|
||||||
jsonDtl2.put("iostorinv_id", iostorinv_id);
|
jsonDtl2.put("iostorinv_id", iostorinv_id);
|
||||||
jsonDtl2.put("seq_no", i + 2 + j);
|
jsonDtl2.put("seq_no", i + 2 + j);
|
||||||
@@ -317,6 +329,11 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
jsonDtl2.put("assign_qty", "0");
|
jsonDtl2.put("assign_qty", "0");
|
||||||
jsonDtl2.put("unassign_qty", jsonIvt.get("canuse_qty"));
|
jsonDtl2.put("unassign_qty", jsonIvt.get("canuse_qty"));
|
||||||
jsonDtl2.put("source_billdtl_id", jsonDtl.getString("iostorinvdtl_id"));
|
jsonDtl2.put("source_billdtl_id", jsonDtl.getString("iostorinvdtl_id"));
|
||||||
|
// 校验计划数量不能为零
|
||||||
|
double plan_qty2 = jsonDtl2.getDoubleValue("plan_qty");
|
||||||
|
if (plan_qty2 == 0.0) {
|
||||||
|
throw new BadRequestException("数量不能为0");
|
||||||
|
}
|
||||||
WQLObject.getWQLObject("ST_IVT_IOStorInvDtl").insert(jsonDtl2);
|
WQLObject.getWQLObject("ST_IVT_IOStorInvDtl").insert(jsonDtl2);
|
||||||
|
|
||||||
qty += jsonDtl2.getDoubleValue("plan_qty");
|
qty += jsonDtl2.getDoubleValue("plan_qty");
|
||||||
@@ -388,6 +405,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
int num = rows.size(); // 明细数
|
int num = rows.size(); // 明细数
|
||||||
for (int i = 0; i < rows.size(); i++) {
|
for (int i = 0; i < rows.size(); i++) {
|
||||||
JSONObject row = rows.getJSONObject(i);
|
JSONObject row = rows.getJSONObject(i);
|
||||||
|
// 校验计划数量不能为零
|
||||||
|
double plan_qty = row.getDoubleValue("plan_qty");
|
||||||
|
if (plan_qty == 0.0) {
|
||||||
|
throw new BadRequestException("数量不能为0");
|
||||||
|
}
|
||||||
|
|
||||||
JSONObject jsonDtl = new JSONObject();
|
JSONObject jsonDtl = new JSONObject();
|
||||||
jsonDtl.put("iostorinvdtl_id", IdUtil.getSnowflake(1, 1).nextId() + "");
|
jsonDtl.put("iostorinvdtl_id", IdUtil.getSnowflake(1, 1).nextId() + "");
|
||||||
jsonDtl.put("iostorinv_id", iostorinv_id);
|
jsonDtl.put("iostorinv_id", iostorinv_id);
|
||||||
@@ -440,6 +463,11 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
jsonDtl2.put("assign_qty", "0");
|
jsonDtl2.put("assign_qty", "0");
|
||||||
jsonDtl2.put("unassign_qty", jsonIvt.get("canuse_qty"));
|
jsonDtl2.put("unassign_qty", jsonIvt.get("canuse_qty"));
|
||||||
jsonDtl2.put("source_billdtl_id", jsonDtl.getString("iostorinvdtl_id"));
|
jsonDtl2.put("source_billdtl_id", jsonDtl.getString("iostorinvdtl_id"));
|
||||||
|
// 校验计划数量不能为零
|
||||||
|
double plan_qty2 = jsonDtl2.getDoubleValue("plan_qty");
|
||||||
|
if (plan_qty2 == 0.0) {
|
||||||
|
throw new BadRequestException("数量不能为0");
|
||||||
|
}
|
||||||
WQLObject.getWQLObject("ST_IVT_IOStorInvDtl").insert(jsonDtl2);
|
WQLObject.getWQLObject("ST_IVT_IOStorInvDtl").insert(jsonDtl2);
|
||||||
|
|
||||||
qty += jsonDtl2.getDoubleValue("plan_qty");
|
qty += jsonDtl2.getDoubleValue("plan_qty");
|
||||||
@@ -502,6 +530,33 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
return jo;
|
return jo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JSONArray getOutBillTask2(Map whereJson) {
|
||||||
|
HashMap<String, String> map = new HashMap<>(whereJson);
|
||||||
|
map.put("flag", "101");
|
||||||
|
JSONArray jo = new JSONArray();
|
||||||
|
if (map.containsKey("iostorinvdtl_id")) {
|
||||||
|
jo = WQL.getWO("QST_IVT_CHECKOUTBILL")
|
||||||
|
.addParamMap(map)
|
||||||
|
.process()
|
||||||
|
.getResultJSONArray(0);
|
||||||
|
}
|
||||||
|
for (int i = 0; i < jo.size(); i++) {
|
||||||
|
JSONObject json = jo.getJSONObject(i);
|
||||||
|
String task_status = json.getString("task_status");
|
||||||
|
if (ObjectUtil.isEmpty(task_status)) {
|
||||||
|
String work_status = json.getString("work_status");
|
||||||
|
if (StrUtil.equals(work_status, "01")) {
|
||||||
|
json.put("task_status","01");
|
||||||
|
}
|
||||||
|
if (StrUtil.equals(work_status, "99")) {
|
||||||
|
json.put("task_status","07");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return jo;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void update(JSONObject whereJson) {
|
public void update(JSONObject whereJson) {
|
||||||
@@ -522,24 +577,38 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
String iostorinv_id = (String) whereJson.get("iostorinv_id");
|
String iostorinv_id = (String) whereJson.get("iostorinv_id");
|
||||||
wo_dtl.delete("iostorinv_id = '" + iostorinv_id + "'");
|
wo_dtl.delete("iostorinv_id = '" + iostorinv_id + "'");
|
||||||
|
|
||||||
JSONArray rows = whereJson.getJSONArray("tableData");
|
JSONArray array = whereJson.getJSONArray("tableData");
|
||||||
|
JSONArray rows = new JSONArray();
|
||||||
|
|
||||||
// 过滤相同箱号的明细
|
// 过滤相同箱号的明细
|
||||||
HashSet<String> boxSet = new HashSet<>();
|
HashSet<String> boxSet = new HashSet<>();
|
||||||
for (int i = 0; i < rows.size(); i++) {
|
for (int i = 0; i < array.size(); i++) {
|
||||||
JSONObject json = rows.getJSONObject(i);
|
JSONObject json = array.getJSONObject(i);
|
||||||
boxSet.add(json.getString("box_no"));
|
if (ObjectUtil.isNotEmpty(json.getString("box_no"))) {
|
||||||
|
boxSet.add(json.getString("box_no"));
|
||||||
|
} else {
|
||||||
|
rows.add(json);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
rows.clear();
|
if (ObjectUtil.isNotEmpty(boxSet)) {
|
||||||
// 遍历
|
// rows.clear();
|
||||||
for (String box_no : boxSet) {
|
// 遍历
|
||||||
JSONObject jsonObject = WQL.getWO("QST_IVT_CHECKOUTBILL").addParam("flag", "7").addParam("box_no", box_no).process().uniqueResult(0);
|
for (String box_no : boxSet) {
|
||||||
rows.add(jsonObject);
|
JSONObject jsonObject = WQL.getWO("QST_IVT_CHECKOUTBILL").addParam("flag", "7").addParam("box_no", box_no).process().uniqueResult(0);
|
||||||
|
rows.add(jsonObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
double qty = 0.0; // 主表重量
|
double qty = 0.0; // 主表重量
|
||||||
int num = rows.size(); // 明细数
|
int num = rows.size(); // 明细数
|
||||||
for (int i = 0; i < rows.size(); i++) {
|
for (int i = 0; i < rows.size(); i++) {
|
||||||
JSONObject row = rows.getJSONObject(i);
|
JSONObject row = rows.getJSONObject(i);
|
||||||
|
// 校验计划数量不能为零
|
||||||
|
double plan_qty = row.getDoubleValue("plan_qty");
|
||||||
|
if (plan_qty == 0.0) {
|
||||||
|
throw new BadRequestException("数量不能为0");
|
||||||
|
}
|
||||||
|
|
||||||
JSONObject jsonDtl = new JSONObject();
|
JSONObject jsonDtl = new JSONObject();
|
||||||
jsonDtl.put("iostorinvdtl_id", IdUtil.getSnowflake(1, 1).nextId() + "");
|
jsonDtl.put("iostorinvdtl_id", IdUtil.getSnowflake(1, 1).nextId() + "");
|
||||||
jsonDtl.put("iostorinv_id", iostorinv_id);
|
jsonDtl.put("iostorinv_id", iostorinv_id);
|
||||||
@@ -576,7 +645,6 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
for (int j = 0; j < ivtArr.size(); j++) {
|
for (int j = 0; j < ivtArr.size(); j++) {
|
||||||
JSONObject jsonIvt = ivtArr.getJSONObject(j);
|
JSONObject jsonIvt = ivtArr.getJSONObject(j);
|
||||||
JSONObject jsonDtl2 = new JSONObject();
|
JSONObject jsonDtl2 = new JSONObject();
|
||||||
|
|
||||||
jsonDtl2.put("iostorinvdtl_id", IdUtil.getSnowflake(1, 1).nextId() + "");
|
jsonDtl2.put("iostorinvdtl_id", IdUtil.getSnowflake(1, 1).nextId() + "");
|
||||||
jsonDtl2.put("iostorinv_id", iostorinv_id);
|
jsonDtl2.put("iostorinv_id", iostorinv_id);
|
||||||
jsonDtl2.put("seq_no", i + 2 + j);
|
jsonDtl2.put("seq_no", i + 2 + j);
|
||||||
@@ -592,6 +660,11 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
jsonDtl2.put("assign_qty", "0");
|
jsonDtl2.put("assign_qty", "0");
|
||||||
jsonDtl2.put("unassign_qty", jsonIvt.get("canuse_qty"));
|
jsonDtl2.put("unassign_qty", jsonIvt.get("canuse_qty"));
|
||||||
jsonDtl2.put("source_billdtl_id", jsonDtl.getString("iostorinvdtl_id"));
|
jsonDtl2.put("source_billdtl_id", jsonDtl.getString("iostorinvdtl_id"));
|
||||||
|
// 校验计划数量不能为零
|
||||||
|
double plan_qty2 = jsonDtl2.getDoubleValue("plan_qty");
|
||||||
|
if (plan_qty2 == 0.0) {
|
||||||
|
throw new BadRequestException("数量不能为0");
|
||||||
|
}
|
||||||
WQLObject.getWQLObject("ST_IVT_IOStorInvDtl").insert(jsonDtl2);
|
WQLObject.getWQLObject("ST_IVT_IOStorInvDtl").insert(jsonDtl2);
|
||||||
|
|
||||||
qty += jsonDtl2.getDoubleValue("plan_qty");
|
qty += jsonDtl2.getDoubleValue("plan_qty");
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
输入.deptIds TYPEAS f_string
|
输入.deptIds TYPEAS f_string
|
||||||
输入.sale_order_name TYPEAS s_string
|
输入.sale_order_name TYPEAS s_string
|
||||||
输入.box_no TYPEAS s_string
|
输入.box_no TYPEAS s_string
|
||||||
|
输入.canuse_qty TYPEAS s_string
|
||||||
[临时表]
|
[临时表]
|
||||||
--这边列出来的临时表就会在运行期动态创建
|
--这边列出来的临时表就会在运行期动态创建
|
||||||
|
|
||||||
@@ -485,6 +486,10 @@
|
|||||||
attr.storagevehicle_code = 输入.box_no
|
attr.storagevehicle_code = 输入.box_no
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
|
|
||||||
|
OPTION 输入.canuse_qty <> ""
|
||||||
|
ivt.canuse_qty > 输入.canuse_qty
|
||||||
|
ENDOPTION
|
||||||
|
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
ENDPAGEQUERY
|
ENDPAGEQUERY
|
||||||
ENDIF
|
ENDIF
|
||||||
@@ -572,6 +577,41 @@
|
|||||||
ENDQUERY
|
ENDQUERY
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|
||||||
|
IF 输入.flag = "101"
|
||||||
|
QUERY
|
||||||
|
SELECT
|
||||||
|
dis.*,
|
||||||
|
mater.material_code,
|
||||||
|
mater.material_name,
|
||||||
|
point.point_code AS next_point_code,
|
||||||
|
task.task_code,
|
||||||
|
task.task_type,
|
||||||
|
task.task_status
|
||||||
|
FROM
|
||||||
|
st_ivt_iostorinvdis dis
|
||||||
|
LEFT JOIN md_me_materialbase mater ON dis.material_id = mater.material_id
|
||||||
|
LEFT JOIN sch_base_point point ON dis.point_id = point.point_id
|
||||||
|
LEFT JOIN sch_base_task task ON dis.task_id = task.task_id
|
||||||
|
WHERE
|
||||||
|
1=1
|
||||||
|
|
||||||
|
OPTION 输入.iostorinvdtl_id <> ""
|
||||||
|
dis.iostorinvdtl_id = 输入.iostorinvdtl_id
|
||||||
|
ENDOPTION
|
||||||
|
OPTION 输入.iostorinv_id <> ""
|
||||||
|
dis.iostorinv_id = 输入.iostorinv_id
|
||||||
|
ENDOPTION
|
||||||
|
OPTION 输入.is_issued <> ""
|
||||||
|
dis.is_issued = 输入.is_issued
|
||||||
|
ENDOPTION
|
||||||
|
OPTION 输入.struct_id <> ""
|
||||||
|
dis.struct_id = 输入.struct_id
|
||||||
|
ENDOPTION
|
||||||
|
|
||||||
|
ENDSELECT
|
||||||
|
ENDQUERY
|
||||||
|
ENDIF
|
||||||
|
|
||||||
IF 输入.flag = "11"
|
IF 输入.flag = "11"
|
||||||
QUERY
|
QUERY
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
@@ -31,6 +31,16 @@
|
|||||||
class="filter-item"
|
class="filter-item"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="子卷号">
|
||||||
|
<el-input
|
||||||
|
v-model="query.pcsn"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
placeholder="子卷号"
|
||||||
|
style="width: 200px;"
|
||||||
|
class="filter-item"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="下料区域">
|
<el-form-item label="下料区域">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="query.region_id"
|
v-model="query.region_id"
|
||||||
@@ -66,7 +76,7 @@
|
|||||||
{{ dict.label.ST_QUALITY_SCODE[scope.row.quality_scode] }}
|
{{ dict.label.ST_QUALITY_SCODE[scope.row.quality_scode] }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="pcsn" label="批次" min-width="120" show-overflow-tooltip />
|
<el-table-column prop="pcsn" label="子卷号" min-width="120" show-overflow-tooltip />
|
||||||
<el-table-column prop="canuse_qty" label="可用数" :formatter="rounding" />
|
<el-table-column prop="canuse_qty" label="可用数" :formatter="rounding" />
|
||||||
<el-table-column prop="frozen_qty" label="冻结数" :formatter="rounding" />
|
<el-table-column prop="frozen_qty" label="冻结数" :formatter="rounding" />
|
||||||
<el-table-column prop="ivt_qty" label="库存数" :formatter="rounding" />
|
<el-table-column prop="ivt_qty" label="库存数" :formatter="rounding" />
|
||||||
|
|||||||
@@ -95,7 +95,8 @@ export default {
|
|||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
opendtlParam: '',
|
opendtlParam: '',
|
||||||
rows: []
|
rows: [],
|
||||||
|
openShow: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -113,6 +114,12 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
[CRUD.HOOK.beforeRefresh]() {
|
[CRUD.HOOK.beforeRefresh]() {
|
||||||
this.crud.query.mater_type = this.opendtlParam
|
this.crud.query.mater_type = this.opendtlParam
|
||||||
|
if (this.openShow) {
|
||||||
|
this.openShow = false
|
||||||
|
return false
|
||||||
|
} else {
|
||||||
|
return true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.crud.resetQuery(false)
|
this.crud.resetQuery(false)
|
||||||
@@ -120,7 +127,7 @@ export default {
|
|||||||
},
|
},
|
||||||
open() {
|
open() {
|
||||||
this.crud.query.mater_type = this.opendtlParam
|
this.crud.query.mater_type = this.opendtlParam
|
||||||
this.crud.toQuery()
|
// this.crud.toQuery()
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
this.rows = this.$refs.multipleTable.selection
|
this.rows = this.$refs.multipleTable.selection
|
||||||
|
|||||||
@@ -136,10 +136,10 @@
|
|||||||
>
|
>
|
||||||
<el-table-column min-width="120" show-overflow-tooltip prop="material_code" label="物料编码" align="center" />
|
<el-table-column min-width="120" show-overflow-tooltip prop="material_code" label="物料编码" align="center" />
|
||||||
<el-table-column min-width="120" show-overflow-tooltip prop="material_name" label="物料名称" align="center" />
|
<el-table-column min-width="120" show-overflow-tooltip prop="material_name" label="物料名称" align="center" />
|
||||||
<el-table-column prop="pcsn" label="子卷批次号" align="center" />
|
<el-table-column prop="pcsn" label="子卷批次号" align="center" show-overflow-tooltip />
|
||||||
<el-table-column prop="storagevehicle_code" label="箱号" align="center" />
|
<el-table-column prop="storagevehicle_code" label="箱号" align="center" width="200px" show-overflow-tooltip />
|
||||||
<el-table-column prop="plan_qty" :formatter="crud.formatNum3" label="重量" align="center" />
|
<el-table-column prop="plan_qty" :formatter="crud.formatNum3" label="重量" align="center" />
|
||||||
<el-table-column prop="struct_code" label="起始位置" align="center" />
|
<el-table-column prop="struct_code" label="起始位置" align="center" show-overflow-tooltip />
|
||||||
<el-table-column prop="next_point_code" label="目的位置" align="center" />
|
<el-table-column prop="next_point_code" label="目的位置" align="center" />
|
||||||
<el-table-column prop="task_code" label="任务号" align="center" />
|
<el-table-column prop="task_code" label="任务号" align="center" />
|
||||||
<el-table-column prop="task_type" label="任务类型" align="center" width="150px" :formatter="taskdtl_typeFormat" />
|
<el-table-column prop="task_type" label="任务类型" align="center" width="150px" :formatter="taskdtl_typeFormat" />
|
||||||
@@ -253,7 +253,7 @@ export default {
|
|||||||
},
|
},
|
||||||
queryTableDdis() {
|
queryTableDdis() {
|
||||||
if (this.currentdtl !== null) {
|
if (this.currentdtl !== null) {
|
||||||
checkoutbill.getOutBillTask({ 'iostorinvdtl_id': this.currentdtl.iostorinvdtl_id }).then(res => {
|
checkoutbill.getOutBillTask2({ 'iostorinvdtl_id': this.currentdtl.iostorinvdtl_id }).then(res => {
|
||||||
this.tabledis = res
|
this.tabledis = res
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.tabledis = []
|
this.tabledis = []
|
||||||
|
|||||||
@@ -183,4 +183,11 @@ export function queryBox(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export default { add, edit, del, allDiv, allCancel, getOutBillDtl, getOutBillDis, setPoint, getOutBillTask, getStructIvt, manualDiv, confirm, issueTask, finishTask, cancleTaskfinish, getInvTypes, paramByCodeType, schAreaType, backConfirm, getOutBillDisDtl, getType, allDivOne, moneySubmit, getDisNum, queryBox }
|
export function getOutBillTask2(data) {
|
||||||
|
return request({
|
||||||
|
url: '/api/checkoutbill/getOutBillTask2',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export default { add, edit, del, allDiv, allCancel, getOutBillDtl, getOutBillDis, setPoint, getOutBillTask, getStructIvt, manualDiv, confirm, issueTask, finishTask, cancleTaskfinish, getInvTypes, paramByCodeType, schAreaType, backConfirm, getOutBillDisDtl, getType, allDivOne, moneySubmit, getDisNum, queryBox, getOutBillTask2 }
|
||||||
|
|||||||
Reference in New Issue
Block a user