rev:修改单据作业任务回显问题;add:手持拣选功能;fix:入阻挡分配到原来货位问题
This commit is contained in:
@@ -33,8 +33,6 @@
|
|||||||
<artifactId>dynamic-tp-spring-boot-starter-adapter-webserver</artifactId>
|
<artifactId>dynamic-tp-spring-boot-starter-adapter-webserver</artifactId>
|
||||||
<version>1.1.7</version>
|
<version>1.1.7</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.groovy</groupId>
|
<groupId>org.codehaus.groovy</groupId>
|
||||||
<artifactId>groovy-all</artifactId>
|
<artifactId>groovy-all</artifactId>
|
||||||
@@ -291,6 +289,12 @@
|
|||||||
<groupId>com.yomahub</groupId>
|
<groupId>com.yomahub</groupId>
|
||||||
<artifactId>tlog-all-spring-boot-starter</artifactId>
|
<artifactId>tlog-all-spring-boot-starter</artifactId>
|
||||||
<version>1.5.0</version>
|
<version>1.5.0</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>tlog-hutool-http</artifactId>
|
||||||
|
<groupId>com.yomahub</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
@ServletComponentScan
|
@ServletComponentScan
|
||||||
@EnableTransactionManagement
|
@EnableTransactionManagement
|
||||||
@MapperScan("org.nl.**.mapper")
|
@MapperScan("org.nl.**.mapper")
|
||||||
@EnableDynamicTp
|
//@EnableDynamicTp
|
||||||
public class AppRun implements CommandLineRunner {
|
public class AppRun implements CommandLineRunner {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(AppRun.class, args);
|
SpringApplication.run(AppRun.class, args);
|
||||||
|
|||||||
@@ -29,10 +29,11 @@ public class SecurityUtils {
|
|||||||
return json.toBean(CurrentUser.class);
|
return json.toBean(CurrentUser.class);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
CurrentUser currentUser = new CurrentUser();
|
CurrentUser currentUser = new CurrentUser();
|
||||||
currentUser.setId("2");
|
currentUser.setId("1");
|
||||||
currentUser.setPresonName("外部系统用户");
|
currentUser.setPresonName("外部系统用户");
|
||||||
currentUser.setUsername("default");
|
currentUser.setUsername("admin");
|
||||||
return currentUser;
|
return currentUser;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -56,9 +56,9 @@
|
|||||||
LEFT JOIN st_ivt_structattr ON md_pb_vehicleMater.vehicle_code = st_ivt_structattr.vehicle_code
|
LEFT JOIN st_ivt_structattr ON md_pb_vehicleMater.vehicle_code = st_ivt_structattr.vehicle_code
|
||||||
LEFT JOIN md_me_materialbase ON md_pb_vehicleMater.material_id = md_me_materialbase.material_id
|
LEFT JOIN md_me_materialbase ON md_pb_vehicleMater.material_id = md_me_materialbase.material_id
|
||||||
LEFT JOIN sch_base_task ON md_pb_vehicleMater.task_code = sch_base_task.task_code
|
LEFT JOIN sch_base_task ON md_pb_vehicleMater.task_code = sch_base_task.task_code
|
||||||
where md_pb_vehicleMater.vehicle_code in
|
where md_pb_vehicleMater.id in
|
||||||
<foreach collection="vehicles" item="vehicle_code" open="(" close=")" separator=",">
|
<foreach collection="vehicles" item="vehicle_id" open="(" close=")" separator=",">
|
||||||
#{vehicle_code}
|
#{vehicle_id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -87,11 +87,11 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Map> getByVehicle(String vehicle_code) {
|
public List<Map> getByVehicle(String vehicle_id) {
|
||||||
if (StringUtils.isEmpty(vehicle_code)) {
|
if (StringUtils.isEmpty(vehicle_id)) {
|
||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
return this.baseMapper.getByVehicle(ListOf.of(vehicle_code.split(",")));
|
return this.baseMapper.getByVehicle(ListOf.of(vehicle_id.split(",")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -220,12 +220,13 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa
|
|||||||
case "rm":
|
case "rm":
|
||||||
return dicisionStruct(struct_code, stIvtStructattr, task);
|
return dicisionStruct(struct_code, stIvtStructattr, task);
|
||||||
case "rzd":
|
case "rzd":
|
||||||
|
JSONObject struct = dicisionStruct(struct_code, stIvtStructattr, task);
|
||||||
iStIvtStructattrService.update(new UpdateWrapper<StIvtStructattr>()
|
iStIvtStructattrService.update(new UpdateWrapper<StIvtStructattr>()
|
||||||
.set("update_time", DateUtil.now())
|
.set("update_time", DateUtil.now())
|
||||||
.set("vehicle_code", null)
|
.set("vehicle_code", null)
|
||||||
.set("lock_type", StatusEnum.LOCK.code("无锁"))
|
.set("lock_type", StatusEnum.LOCK.code("无锁"))
|
||||||
.eq("struct_code", task.getPoint_code2()));
|
.eq("struct_code", task.getPoint_code2()));
|
||||||
return dicisionStruct(struct_code, stIvtStructattr, task);
|
return struct;
|
||||||
case "czd":
|
case "czd":
|
||||||
moveTask(task_code, struct_code, stIvtStructattr);
|
moveTask(task_code, struct_code, stIvtStructattr);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|||||||
import org.nl.common.TableDataInfo;
|
import org.nl.common.TableDataInfo;
|
||||||
import org.nl.common.anno.Log;
|
import org.nl.common.anno.Log;
|
||||||
import org.nl.common.domain.entity.PageQuery;
|
import org.nl.common.domain.entity.PageQuery;
|
||||||
|
import org.nl.common.utils.MapOf;
|
||||||
import org.nl.wms.dispatch_manage.task.service.ISchBaseTaskService;
|
import org.nl.wms.dispatch_manage.task.service.ISchBaseTaskService;
|
||||||
import org.nl.wms.pda_manage.palletio.service.PalletIostorinvService;
|
import org.nl.wms.pda_manage.palletio.service.PalletIostorinvService;
|
||||||
import org.nl.wms.stor_manage.io.service.dto.StorInvQuery;
|
import org.nl.wms.stor_manage.io.service.dto.StorInvQuery;
|
||||||
@@ -18,6 +19,7 @@ import org.springframework.http.HttpStatus;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@@ -32,7 +34,11 @@ import java.util.Map;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/pdaPalletIostorinv")
|
@RequestMapping("api/pdaPalletIostorinv")
|
||||||
public class PalletStIvtIostorinvController {
|
public class PalletStIvtIostorinvController {
|
||||||
|
public static Map<String,String> Pallet_OutPoint =
|
||||||
|
MapOf.of("一楼左侧","1119"
|
||||||
|
,"一楼右侧","1131"
|
||||||
|
,"二楼左侧","2115"
|
||||||
|
,"二楼右侧","2127","三楼出库点","3110");
|
||||||
@Autowired
|
@Autowired
|
||||||
private PalletIostorinvService palletIostorinvService;
|
private PalletIostorinvService palletIostorinvService;
|
||||||
|
|
||||||
@@ -51,6 +57,17 @@ public class PalletStIvtIostorinvController {
|
|||||||
palletIostorinvService.outStorage(form);
|
palletIostorinvService.outStorage(form);
|
||||||
return new ResponseEntity<>(TableDataInfo.build(),HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(),HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
@RequestMapping("targetPoint")
|
||||||
|
@SaIgnore
|
||||||
|
@Log("手持托盘出库点")
|
||||||
|
public ResponseEntity<Object> targetPoint() {
|
||||||
|
List<Object> result = new ArrayList<>();
|
||||||
|
for (String label : Pallet_OutPoint.keySet()) {
|
||||||
|
String value = Pallet_OutPoint.get(label);
|
||||||
|
result.add(MapOf.of("label",value,value));
|
||||||
|
}
|
||||||
|
return new ResponseEntity<>(TableDataInfo.build(result),HttpStatus.OK);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
package org.nl.wms.pda_manage.pick;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.dev33.satoken.annotation.SaIgnore;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import org.nl.common.TableDataInfo;
|
||||||
|
import org.nl.common.anno.Log;
|
||||||
|
import org.nl.wms.md_manage.group_dick.service.IMdGruopDickService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 出入库单主表 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author generator
|
||||||
|
* @since 2024-03-28
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("api/pda/pick")
|
||||||
|
public class PdaPickController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IMdGruopDickService iMdGruopDickService;
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping("savePickTask")
|
||||||
|
@SaIgnore
|
||||||
|
@Log("手持拣选确认")
|
||||||
|
public ResponseEntity<Object> inStorage(@RequestBody JSONObject form) {
|
||||||
|
iMdGruopDickService.groupDick(form);
|
||||||
|
return new ResponseEntity<>(TableDataInfo.build(),HttpStatus.OK);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -6,6 +6,7 @@ package org.nl.wms.system_manage.controller.login;
|
|||||||
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.nl.common.TableDataInfo;
|
||||||
import org.nl.common.anno.Log;
|
import org.nl.common.anno.Log;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
@@ -41,7 +42,7 @@ public class HandLoginController {
|
|||||||
@Log("手持登陆验证")
|
@Log("手持登陆验证")
|
||||||
//("手持登陆验证")
|
//("手持登陆验证")
|
||||||
public ResponseEntity<Object> handlogin(@RequestBody Map<String, String> whereJson) {
|
public ResponseEntity<Object> handlogin(@RequestBody Map<String, String> whereJson) {
|
||||||
return ResponseEntity.ok(handLoginService.handleLogin(whereJson));
|
return new ResponseEntity<>(TableDataInfo.buildJson(handLoginService.handleLogin(whereJson)),HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
//("修改密码")
|
//("修改密码")
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ public class HandLoginServiceImpl implements HandLoginService {
|
|||||||
put("user", jsonObject);
|
put("user", jsonObject);
|
||||||
}};
|
}};
|
||||||
redisUtils.set("pe-satoken", StpUtil.getTokenValue(), StpUtil.getTokenTimeout());
|
redisUtils.set("pe-satoken", StpUtil.getTokenValue(), StpUtil.getTokenTimeout());
|
||||||
return resultJson;
|
return authInfo;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class CurrentUser implements Serializable {
|
public class CurrentUser implements Serializable {
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
//账号
|
//账号
|
||||||
|
|||||||
@@ -79,8 +79,8 @@
|
|||||||
<!--开发环境:打印控制台-->
|
<!--开发环境:打印控制台-->
|
||||||
<springProfile name="dev3">
|
<springProfile name="dev3">
|
||||||
<root level="info">
|
<root level="info">
|
||||||
<appender-ref ref="CONSOLE"/>
|
|
||||||
<appender-ref ref="asyncLuceneAppender"/>
|
<appender-ref ref="asyncLuceneAppender"/>
|
||||||
|
<appender-ref ref="CONSOLE"/>
|
||||||
</root>
|
</root>
|
||||||
<logger name="jdbc" level="ERROR" additivity="true">
|
<logger name="jdbc" level="ERROR" additivity="true">
|
||||||
<appender-ref ref="asyncFileAppender"/>
|
<appender-ref ref="asyncFileAppender"/>
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<!-- <parent>-->
|
<parent>
|
||||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
<groupId>org.springframework.boot</groupId>
|
||||||
<!-- <artifactId>spring-boot-starter-parent</artifactId>-->
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<!-- <version>2.6.2</version>-->
|
<version>2.6.2</version>
|
||||||
<!-- <relativePath/> <!– lookup parent from repository –>-->
|
<relativePath/> <!-- lookup parent from repository -->
|
||||||
<!-- </parent>-->
|
</parent>
|
||||||
<groupId>org.nl</groupId>
|
<groupId>org.nl</groupId>
|
||||||
<artifactId>wms</artifactId>
|
<artifactId>wms</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ export default {
|
|||||||
|
|
||||||
queryTableDdis() {
|
queryTableDdis() {
|
||||||
if (this.currentDtl !== null && this.currentDtl.vehicle_code != null) {
|
if (this.currentDtl !== null && this.currentDtl.vehicle_code != null) {
|
||||||
crudProduct.getVehicleTask({'vehicle_code': this.currentDtl.vehicle_code}).then(res => {
|
crudProduct.getVehicleTask({'vehicle_id': this.currentDtl.vehicle_id}).then(res => {
|
||||||
this.tabledis = res
|
this.tabledis = res
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.tabledis = []
|
this.tabledis = []
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ export default {
|
|||||||
},
|
},
|
||||||
queryTableDdis() {
|
queryTableDdis() {
|
||||||
if (this.currentdtl !== null && this.currentdtl.vehicle_code!=null) {
|
if (this.currentdtl !== null && this.currentdtl.vehicle_code!=null) {
|
||||||
crudProductIn.getVehicleTask({ 'vehicle_code': this.currentdtl.vehicle_code }).then(res => {
|
crudProductIn.getVehicleTask({ 'vehicle_id': this.currentdtl.vehicle_id }).then(res => {
|
||||||
this.tabledis = res
|
this.tabledis = res
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.tabledis = []
|
this.tabledis = []
|
||||||
|
|||||||
@@ -210,12 +210,21 @@ export default {
|
|||||||
if (current !== null) {
|
if (current !== null) {
|
||||||
this.tabledis = []
|
this.tabledis = []
|
||||||
this.currentdtl = current
|
this.currentdtl = current
|
||||||
this.divdis(this.currentdtl)
|
this.queryTableDdis()
|
||||||
} else {
|
} else {
|
||||||
this.tabledis = []
|
this.tabledis = []
|
||||||
this.currentdtl = {}
|
this.currentdtl = {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
queryTableDdis() {
|
||||||
|
if (this.currentdtl !== null && this.currentdtl.vehicle_code!=null) {
|
||||||
|
crudProductIn.getVehicleTask({ 'vehicle_id': this.currentdtl.vehicle_id }).then(res => {
|
||||||
|
this.tabledis = res
|
||||||
|
}).catch(() => {
|
||||||
|
this.tabledis = []
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
invtypeFormat(row, column) {
|
invtypeFormat(row, column) {
|
||||||
for (const item of this.billtypelist) {
|
for (const item of this.billtypelist) {
|
||||||
if (item.code === row.source_bill_type) {
|
if (item.code === row.source_bill_type) {
|
||||||
|
|||||||
@@ -67,6 +67,14 @@ export function taskOpen(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getVehicleTask(data) {
|
||||||
|
return request({
|
||||||
|
url: '/api/schBaseTask/getVehicleTask',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function cancelMst(id) {
|
export function cancelMst(id) {
|
||||||
return request({
|
return request({
|
||||||
url: "/api/stIvtIostorinvOut/cancelMst/" + id,
|
url: "/api/stIvtIostorinvOut/cancelMst/" + id,
|
||||||
@@ -84,4 +92,5 @@ export default {
|
|||||||
divDis,
|
divDis,
|
||||||
cancelMst,
|
cancelMst,
|
||||||
taskOpen,
|
taskOpen,
|
||||||
|
getVehicleTask
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
queryTableDis(currentDtl) {
|
queryTableDis(currentDtl) {
|
||||||
crudStructattr.getVehicleTask({ 'vehicle_code': currentDtl.vehicle_code }).then(res => {
|
crudStructattr.getVehicleTask({ 'vehicle_id': currentDtl.vehicle_id }).then(res => {
|
||||||
this.tabledis = res
|
this.tabledis = res
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
queryTableDis(currentDtl) {
|
queryTableDis(currentDtl) {
|
||||||
crudStructattr.getVehicleTask({ 'vehicle_code': currentDtl.vehicle_code }).then(res => {
|
crudStructattr.getVehicleTask({ 'vehicle_id': currentDtl.vehicle_id }).then(res => {
|
||||||
this.tabledis = res
|
this.tabledis = res
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user