
39 changed files with 1158 additions and 167 deletions
@ -0,0 +1,44 @@ |
|||
package com.yxt.anrui.terminal.api.wms.inventorycheckbill; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class HandleBean { |
|||
|
|||
/** |
|||
* 损坏数量,默认 0 |
|||
*/ |
|||
private String badNum; |
|||
private List<String> files; |
|||
/** |
|||
* 商品ID |
|||
*/ |
|||
private String goodsID; |
|||
/** |
|||
* 商品名称 |
|||
*/ |
|||
private String goodsName; |
|||
/** |
|||
* 图号 |
|||
*/ |
|||
private String goodsSkuCode; |
|||
/** |
|||
* 本库位库存 |
|||
*/ |
|||
private String lockNum; |
|||
/** |
|||
* 确认数量/数量,赋值为库存数量 |
|||
*/ |
|||
private String num; |
|||
private String remarks; |
|||
/** |
|||
* 商品记录sid |
|||
*/ |
|||
private String sid; |
|||
/** |
|||
* 单位 |
|||
*/ |
|||
private String unit; |
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.yxt.anrui.terminal.api.wms.inventorycheckbill; |
|||
|
|||
|
|||
import com.yxt.anrui.terminal.api.autoservice.deliveryPlan.OtherDataDto; |
|||
import com.yxt.anrui.terminal.api.risk.loanhomevisitinvestigate.*; |
|||
import com.yxt.anrui.terminal.api.risk.loanhomevisitinvestigate.flowable.CompleteHomeAppealDto; |
|||
import com.yxt.anrui.terminal.api.risk.loanhomevisitinvestigate.flowable.HomeAppealQuery; |
|||
import com.yxt.anrui.terminal.api.risk.loanhomevisitinvestigate.flowable.HomeAppealTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.loanhomevisitinvestigate.flowable.SubmitHomeAppealApplyDto; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.validation.Valid; |
|||
|
|||
/** |
|||
* @Author |
|||
* @Date |
|||
* @Description |
|||
*/ |
|||
@Api(tags = "售后盘点") |
|||
@FeignClient( |
|||
contextId = "terminal-WmsInventoryCheckbill", |
|||
name = "anrui-terminal", |
|||
path = "v1/inventory") |
|||
public interface WmsInventoryCheckbillFeign { |
|||
|
|||
@ApiOperation("盘点列表") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
ResultBean<PagerVo<WmsInventoryCheckbillPageVo>> list(@RequestBody PagerQuery<WmsInventoryCheckbillPageQuery> pagerQuery); |
|||
|
|||
@ApiOperation("盘点-库位商品列表") |
|||
@PostMapping("/fetchByKuWeiSid") |
|||
@ResponseBody |
|||
ResultBean<PagerVo<WmsInventoryCheckbillGoodsPageVo>> fetchByKuWeiSid(@RequestBody PagerQuery<WmsInventoryCheckbillGoodsPageQuery> pagerQuery); |
|||
|
|||
@ApiOperation("办理/扫码保存") |
|||
@PostMapping("/saveInventoryInfo") |
|||
@ResponseBody |
|||
ResultBean saveInventoryInfo(@RequestBody WmsInventoryCheckbillGoodsDto dto); |
|||
|
|||
@ApiOperation("扫描商品码") |
|||
@GetMapping("/scan") |
|||
@ResponseBody |
|||
public ResultBean<HandleBean> scan(@RequestParam("sid") String sid,@RequestParam("content") String content,@RequestParam("houseSid") String houseSid); |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.yxt.anrui.terminal.api.wms.inventorycheckbill; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class WmsInventoryCheckbillGoodsDto implements Dto { |
|||
|
|||
/** |
|||
* 损坏数量 |
|||
*/ |
|||
private String badNum; |
|||
/** |
|||
* 附件 |
|||
*/ |
|||
private List<String> files; |
|||
/** |
|||
* 确认数量/数量 |
|||
*/ |
|||
private String num; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remarks; |
|||
/** |
|||
* 商品记录sid |
|||
*/ |
|||
private String sid; |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.yxt.anrui.terminal.api.wms.inventorycheckbill; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class WmsInventoryCheckbillGoodsPageQuery implements Query { |
|||
|
|||
/** |
|||
* 盘点单sid |
|||
*/ |
|||
private String sid; |
|||
/** |
|||
* 库位sid |
|||
*/ |
|||
private String houseSid; |
|||
private String names; |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.yxt.anrui.terminal.api.wms.inventorycheckbill; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class WmsInventoryCheckbillGoodsPageVo implements Vo { |
|||
|
|||
/** |
|||
* 点击办理时需要的数据 |
|||
*/ |
|||
private HandleBean handleBean; |
|||
private String kuCun; |
|||
private String panSun; |
|||
private String shiPan; |
|||
private String yingKui; |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.yxt.anrui.terminal.api.wms.inventorycheckbill; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class WmsInventoryCheckbillPageQuery implements Query { |
|||
|
|||
private String menuSid; |
|||
/** |
|||
* 仓库/库区/库位 |
|||
*/ |
|||
private String names; |
|||
/** |
|||
* 组织机构sid |
|||
*/ |
|||
private String orgPath; |
|||
private String userSid; |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.yxt.anrui.terminal.api.wms.inventorycheckbill; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class WmsInventoryCheckbillPageVo implements Vo { |
|||
|
|||
@ApiModelProperty("盘点单sid") |
|||
private String sid; |
|||
@ApiModelProperty("库位sid") |
|||
private String houseSid; |
|||
@ApiModelProperty("仓库-库区-库位") |
|||
private String title; |
|||
@ApiModelProperty("应盘数量") |
|||
private String totalNumber; |
|||
@ApiModelProperty("未盘数量") |
|||
private String surplusNumber; |
|||
@ApiModelProperty("盘亏数量") |
|||
private String lossNumber; |
|||
@ApiModelProperty("盘损数量") |
|||
private String damageNumber; |
|||
@ApiModelProperty("盘盈数量") |
|||
private String profitNumber; |
|||
@ApiModelProperty("实盘数量") |
|||
private String actualNumber; |
|||
@ApiModelProperty("是否显示按钮") |
|||
private Boolean showBtn = true; |
|||
} |
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.wms.inventorycheckbill; |
|||
|
|||
import com.yxt.anrui.terminal.api.autoservice.deliveryPlan.OtherDataDto; |
|||
import com.yxt.anrui.terminal.api.wms.inventorycheckbill.*; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
@Api(tags = "售后盘点") |
|||
@RestController |
|||
@RequestMapping("v1/inventory") |
|||
public class WmsInventoryCheckbillRest implements WmsInventoryCheckbillFeign { |
|||
|
|||
@Autowired |
|||
private WmsInventoryCheckbillService wmsInventoryCheckbillService; |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<WmsInventoryCheckbillPageVo>> list(PagerQuery<WmsInventoryCheckbillPageQuery> pagerQuery) { |
|||
return wmsInventoryCheckbillService.pdlist(pagerQuery); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<WmsInventoryCheckbillGoodsPageVo>> fetchByKuWeiSid(PagerQuery<WmsInventoryCheckbillGoodsPageQuery> pagerQuery) { |
|||
return wmsInventoryCheckbillService.fetchByKuWeiSid(pagerQuery); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean saveInventoryInfo(WmsInventoryCheckbillGoodsDto dto) { |
|||
return wmsInventoryCheckbillService.saveInventoryInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<HandleBean> scan(String sid, String content, String houseSid) { |
|||
return wmsInventoryCheckbillService.scan(sid, content, houseSid); |
|||
} |
|||
} |
@ -0,0 +1,98 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.wms.inventorycheckbill; |
|||
|
|||
import com.yxt.anrui.terminal.api.wms.inventorycheckbill.*; |
|||
import com.yxt.anrui.terminal.fegin.wmsInventoryCheckbill.WmsInventoryCheckbillDetailFile; |
|||
import com.yxt.anrui.terminal.fegin.wmsInventoryCheckbill.WmsInventoryCheckbillDetailRackGoodPageListQuery; |
|||
import com.yxt.anrui.terminal.fegin.wmsInventoryCheckbill.WmsInventoryCheckbillDetailRackGoodPageListVo; |
|||
import com.yxt.anrui.terminal.fegin.wmsInventoryCheckbill.WmsInventoryCheckbillFeign; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
@Service |
|||
public class WmsInventoryCheckbillService { |
|||
|
|||
@Resource |
|||
private WmsInventoryCheckbillFeign wmsInventoryCheckbillFeign; |
|||
|
|||
public ResultBean<PagerVo<WmsInventoryCheckbillPageVo>> pdlist(PagerQuery<WmsInventoryCheckbillPageQuery> pagerQuery) { |
|||
return wmsInventoryCheckbillFeign.appDetailRackPageList(pagerQuery); |
|||
} |
|||
|
|||
public ResultBean<PagerVo<WmsInventoryCheckbillGoodsPageVo>> fetchByKuWeiSid(PagerQuery<WmsInventoryCheckbillGoodsPageQuery> pagerQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerQuery<WmsInventoryCheckbillDetailRackGoodPageListQuery> query = new PagerQuery<>(); |
|||
WmsInventoryCheckbillDetailRackGoodPageListQuery wmsInventoryCheckbillDetailRackGoodPageListQuery = new WmsInventoryCheckbillDetailRackGoodPageListQuery(); |
|||
WmsInventoryCheckbillGoodsPageQuery params = pagerQuery.getParams(); |
|||
wmsInventoryCheckbillDetailRackGoodPageListQuery.setBillSid(params.getSid()); |
|||
wmsInventoryCheckbillDetailRackGoodPageListQuery.setWarehouseRackSid(params.getHouseSid()); |
|||
wmsInventoryCheckbillDetailRackGoodPageListQuery.setNames(params.getNames()); |
|||
query.setParams(wmsInventoryCheckbillDetailRackGoodPageListQuery); |
|||
PagerVo<WmsInventoryCheckbillDetailRackGoodPageListVo> data = wmsInventoryCheckbillFeign.detailRackGoodPageList(query).getData(); |
|||
PagerVo<WmsInventoryCheckbillGoodsPageVo> wmsInventoryCheckbillGoodsPageVoPagerVo = new PagerVo<>(); |
|||
for (WmsInventoryCheckbillDetailRackGoodPageListVo record : data.getRecords()) { |
|||
WmsInventoryCheckbillGoodsPageVo wmsInventoryCheckbillGoodsPageVo = new WmsInventoryCheckbillGoodsPageVo(); |
|||
wmsInventoryCheckbillGoodsPageVo.setKuCun(record.getBookCount().toString()); |
|||
wmsInventoryCheckbillGoodsPageVo.setShiPan(record.getRealCount().toString()); |
|||
wmsInventoryCheckbillGoodsPageVo.setYingKui(record.getProfitAndLoseCount().toString()); |
|||
wmsInventoryCheckbillGoodsPageVo.setPanSun(record.getLossCount().toString()); |
|||
HandleBean handleBean = new HandleBean(); |
|||
handleBean.setBadNum(record.getLossCount().toString()); |
|||
List<WmsInventoryCheckbillDetailFile> fileList = record.getFileList(); |
|||
List<String> files = new ArrayList<>(); |
|||
for (WmsInventoryCheckbillDetailFile wmsInventoryCheckbillDetailFile : fileList) { |
|||
files.add(wmsInventoryCheckbillDetailFile.getUrl()); |
|||
} |
|||
handleBean.setFiles(files); |
|||
handleBean.setGoodsID(record.getGoodsID()); |
|||
handleBean.setGoodsName(record.getGoodsSkuTitle()); |
|||
handleBean.setGoodsSkuCode(record.getGoodsSkuCode()); |
|||
handleBean.setLockNum(record.getBookCount().toString()); |
|||
handleBean.setNum(record.getBookCount().toString()); |
|||
handleBean.setRemarks(record.getRemarks()); |
|||
handleBean.setSid(record.getSid()); |
|||
handleBean.setUnit(record.getUnit()); |
|||
wmsInventoryCheckbillGoodsPageVo.setHandleBean(handleBean); |
|||
wmsInventoryCheckbillGoodsPageVoPagerVo.getRecords().add(wmsInventoryCheckbillGoodsPageVo); |
|||
} |
|||
return rb.success().setData(wmsInventoryCheckbillGoodsPageVoPagerVo); |
|||
} |
|||
|
|||
public ResultBean saveInventoryInfo(WmsInventoryCheckbillGoodsDto dto) { |
|||
return wmsInventoryCheckbillFeign.saveInventoryInfo(dto); |
|||
} |
|||
|
|||
public ResultBean<HandleBean> scan(String sid, String content, String houseSid) { |
|||
return wmsInventoryCheckbillFeign.scan(sid, content, houseSid); |
|||
} |
|||
} |
@ -0,0 +1,35 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.fegin.wmsInventoryCheckbill; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class WmsInventoryCheckbillDetailFile implements Vo { |
|||
|
|||
private String url; |
|||
} |
@ -0,0 +1,63 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.fegin.wmsInventoryCheckbill; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-wms(仓储) <br/> |
|||
* File: WmsInventoryCheckbillDetailVo.java <br/> |
|||
* Class: com.yxt.wms.api.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailVo <br/> |
|||
* Description: 库存盘点-明细 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-22 09:25:02 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "库存盘点-明细 视图数据详情", description = "库存盘点-明细 视图数据详情") |
|||
public class WmsInventoryCheckbillDetailRackGoodPageListQuery implements Query { |
|||
|
|||
@ApiModelProperty("盘点sid") |
|||
private String billSid; |
|||
@ApiModelProperty("库位sid") |
|||
private String warehouseRackSid; // 库位sid
|
|||
@ApiModelProperty("商品ID") |
|||
private String goodsID; // 商品ID
|
|||
@ApiModelProperty("商品名称") |
|||
private String goodsSkuTitle; // 商品名称
|
|||
@ApiModelProperty("图号") |
|||
private String goodsSkuCode; // 图号
|
|||
|
|||
private String names; |
|||
} |
@ -0,0 +1,95 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.fegin.wmsInventoryCheckbill; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-wms(仓储) <br/> |
|||
* File: WmsInventoryCheckbillDetailVo.java <br/> |
|||
* Class: com.yxt.wms.api.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailVo <br/> |
|||
* Description: 库存盘点-明细 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-22 09:25:02 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "库存盘点-明细 视图数据详情", description = "库存盘点-明细 视图数据详情") |
|||
public class WmsInventoryCheckbillDetailRackGoodPageListVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("商品ID") |
|||
private String goodsID; // 商品ID
|
|||
@ApiModelProperty("商品名称") |
|||
private String goodsSkuTitle; // 商品名称
|
|||
@ApiModelProperty("图号") |
|||
private String goodsSkuCode; // 图号
|
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; |
|||
@ApiModelProperty("库区名称") |
|||
private String warehouseArea; |
|||
@ApiModelProperty("库位名称") |
|||
private String warehouseRackName; |
|||
@ApiModelProperty("单位") |
|||
private String unit; |
|||
@ApiModelProperty("成本单价") |
|||
private BigDecimal cost; |
|||
@ApiModelProperty("应盘数量") |
|||
private BigDecimal bookCount; |
|||
@ApiModelProperty("应盘金额") |
|||
private BigDecimal bookAmount; |
|||
@ApiModelProperty("实盘数量") |
|||
private BigDecimal realCount; |
|||
@ApiModelProperty("实盘金额") |
|||
private BigDecimal realAmount; |
|||
@ApiModelProperty("状态") |
|||
private String state; |
|||
@ApiModelProperty("盈亏数量") |
|||
private BigDecimal profitAndLoseCount; |
|||
@ApiModelProperty("盈亏金额") |
|||
private BigDecimal profitAndLoseAmount; |
|||
@ApiModelProperty("盘损数量") |
|||
private BigDecimal lossCount; |
|||
@ApiModelProperty("盘损金额") |
|||
private BigDecimal lossAmount; |
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("附件") |
|||
private List<WmsInventoryCheckbillDetailFile> fileList = new ArrayList<>(); |
|||
} |
@ -0,0 +1,46 @@ |
|||
package com.yxt.anrui.terminal.fegin.wmsInventoryCheckbill; |
|||
|
|||
|
|||
import com.yxt.anrui.terminal.api.wms.inventorycheckbill.HandleBean; |
|||
import com.yxt.anrui.terminal.api.wms.inventorycheckbill.WmsInventoryCheckbillGoodsDto; |
|||
import com.yxt.anrui.terminal.api.wms.inventorycheckbill.WmsInventoryCheckbillPageQuery; |
|||
import com.yxt.anrui.terminal.api.wms.inventorycheckbill.WmsInventoryCheckbillPageVo; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @Author |
|||
* @Date |
|||
* @Description |
|||
*/ |
|||
@Api(tags = "售后盘点") |
|||
@FeignClient( |
|||
contextId = "yxt-wms-WmsInventoryCheckbill", |
|||
name = "yxt-wms", |
|||
path = "v1/wmsinventorycheckbill") |
|||
public interface WmsInventoryCheckbillFeign { |
|||
|
|||
@ApiOperation("app-盘点-查看库位盘点列表") |
|||
@PostMapping("/appDetailRackPageList") |
|||
public ResultBean<PagerVo<WmsInventoryCheckbillPageVo>> appDetailRackPageList(@RequestBody PagerQuery<WmsInventoryCheckbillPageQuery> pq); |
|||
|
|||
|
|||
@ApiOperation("查看库位商品盘点列表") |
|||
@PostMapping("/detailRackGoodPageList") |
|||
public ResultBean<PagerVo<WmsInventoryCheckbillDetailRackGoodPageListVo>> detailRackGoodPageList(@RequestBody PagerQuery<WmsInventoryCheckbillDetailRackGoodPageListQuery> pq); |
|||
|
|||
@ApiOperation("办理/扫码保存") |
|||
@PostMapping("/saveInventoryInfo") |
|||
@ResponseBody |
|||
ResultBean saveInventoryInfo(@RequestBody WmsInventoryCheckbillGoodsDto dto); |
|||
|
|||
@ApiOperation("扫描商品码") |
|||
@GetMapping("/scan") |
|||
@ResponseBody |
|||
public ResultBean<HandleBean> scan(@RequestParam("sid") String sid, @RequestParam("content") String content, @RequestParam("houseSid") String houseSid); |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.app; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class HandleBean { |
|||
|
|||
/** |
|||
* 损坏数量,默认 0 |
|||
*/ |
|||
private String badNum; |
|||
private List<String> files; |
|||
/** |
|||
* 商品ID |
|||
*/ |
|||
private String goodsID; |
|||
/** |
|||
* 商品名称 |
|||
*/ |
|||
private String goodsName; |
|||
/** |
|||
* 图号 |
|||
*/ |
|||
private String goodsSkuCode; |
|||
/** |
|||
* 本库位库存 |
|||
*/ |
|||
private String lockNum; |
|||
/** |
|||
* 确认数量/数量,赋值为库存数量 |
|||
*/ |
|||
private String num; |
|||
private String remarks; |
|||
/** |
|||
* 商品记录sid |
|||
*/ |
|||
private String sid; |
|||
/** |
|||
* 单位 |
|||
*/ |
|||
private String unit; |
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.app; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class WmsInventoryCheckbillGoodsDto implements Dto { |
|||
|
|||
/** |
|||
* 损坏数量 |
|||
*/ |
|||
private String badNum; |
|||
/** |
|||
* 附件 |
|||
*/ |
|||
private List<String> files; |
|||
/** |
|||
* 确认数量/数量 |
|||
*/ |
|||
private String num; |
|||
/** |
|||
* 库存数量 |
|||
*/ |
|||
private String lockNum; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remarks; |
|||
/** |
|||
* 商品记录sid |
|||
*/ |
|||
private String sid; |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.app; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class WmsInventoryCheckbillPageQuery implements Query { |
|||
|
|||
private String menuSid; |
|||
/** |
|||
* 仓库/库区/库位 |
|||
*/ |
|||
private String names; |
|||
/** |
|||
* 组织机构sid |
|||
*/ |
|||
private String orgPath; |
|||
private String userSid; |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.app; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class WmsInventoryCheckbillPageVo implements Vo { |
|||
|
|||
@ApiModelProperty("盘点单sid") |
|||
private String sid; |
|||
@ApiModelProperty("库位sid") |
|||
private String houseSid; |
|||
@ApiModelProperty("仓库-库区-库位") |
|||
private String title; |
|||
@ApiModelProperty("应盘数量") |
|||
private String totalNumber; |
|||
@ApiModelProperty("未盘数量") |
|||
private String surplusNumber; |
|||
@ApiModelProperty("盘亏数量") |
|||
private String lossNumber; |
|||
@ApiModelProperty("盘损数量") |
|||
private String damageNumber; |
|||
@ApiModelProperty("盘盈数量") |
|||
private String profitNumber; |
|||
@ApiModelProperty("实盘数量") |
|||
private String actualNumber; |
|||
@ApiModelProperty("是否显示按钮") |
|||
private Boolean showBtn = false; |
|||
} |
Loading…
Reference in new issue