优化
This commit is contained in:
@@ -32,8 +32,8 @@ public class ToErpApiController {
|
|||||||
/**
|
/**
|
||||||
* 回传其他出入库单
|
* 回传其他出入库单
|
||||||
*/
|
*/
|
||||||
//@Scheduled(fixedDelay = 1500)
|
@Scheduled(fixedDelay = 1500)
|
||||||
// public void callbackTransferBill() {
|
public void callbackTransferBill() {
|
||||||
// toErpService.callbackTransferBill();
|
toErpService.callbackTransferBill();
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ import com.ruoyi.job.mydojobdetail.domain.MydoJobDetail;
|
|||||||
import com.ruoyi.job.mydojobdetail.service.IMydoJobDetailService;
|
import com.ruoyi.job.mydojobdetail.service.IMydoJobDetailService;
|
||||||
import com.ruoyi.log.service.IRequestLogService;
|
import com.ruoyi.log.service.IRequestLogService;
|
||||||
import com.ruoyi.out.outStockout.service.IOutStockoutService;
|
import com.ruoyi.out.outStockout.service.IOutStockoutService;
|
||||||
|
import com.ruoyi.pda.mapper.PdaMapper;
|
||||||
import com.ruoyi.stock.stock.domain.BasStock;
|
import com.ruoyi.stock.stock.domain.BasStock;
|
||||||
import com.ruoyi.stock.stock.service.IBasStockService;
|
import com.ruoyi.stock.stock.service.IBasStockService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@@ -86,6 +87,9 @@ public class ToWmsServiceImpl implements IToWmsService {
|
|||||||
private IRequestLogService requestLogService;
|
private IRequestLogService requestLogService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IBasStockService stockService;
|
private IBasStockService stockService;
|
||||||
|
@Autowired
|
||||||
|
private PdaMapper pdaMapper;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -326,10 +330,11 @@ public class ToWmsServiceImpl implements IToWmsService {
|
|||||||
return AjaxResult.error("没有任务");
|
return AjaxResult.error("没有任务");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//TODO
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult jobFinish(WmsJobRequest wmsJobRequest) {
|
public AjaxResult jobFinish(WmsJobRequest wmsJobRequest) {
|
||||||
MydoJob mydoJobParam = new MydoJob();
|
MydoJob mydoJobParam = new MydoJob();
|
||||||
|
StringBuilder stringBuilder = new StringBuilder();
|
||||||
switch (wmsJobRequest.getWmsType()) {
|
switch (wmsJobRequest.getWmsType()) {
|
||||||
case "1":
|
case "1":
|
||||||
|
|
||||||
@@ -363,6 +368,13 @@ public class ToWmsServiceImpl implements IToWmsService {
|
|||||||
MydoJob outJob = outMydoJobs.get(0);
|
MydoJob outJob = outMydoJobs.get(0);
|
||||||
outJob.setExecutionPhase("2");
|
outJob.setExecutionPhase("2");
|
||||||
mydoJobService.updateMydoJob(outJob);
|
mydoJobService.updateMydoJob(outJob);
|
||||||
|
HashMap<String, Object> map = new HashMap<>();
|
||||||
|
map.put("v_tray_code", outJob.getTrayCode());
|
||||||
|
pdaMapper.outMakeSure(map);
|
||||||
|
String result=map.get("v_result").toString();
|
||||||
|
if(!"10".equals(result)){
|
||||||
|
stringBuilder.append(",").append(map.get("v_resultmsg"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -76,11 +76,11 @@ public class ViewProductAndStock extends BaseEntity
|
|||||||
|
|
||||||
/** 净重 */
|
/** 净重 */
|
||||||
@Excel(name = "净重")
|
@Excel(name = "净重")
|
||||||
private BigDecimal netWeight;
|
private String netWeight;
|
||||||
|
|
||||||
/** 毛重 */
|
/** 毛重 */
|
||||||
@Excel(name = "毛重")
|
@Excel(name = "毛重")
|
||||||
private BigDecimal grossWeight;
|
private String grossWeight;
|
||||||
|
|
||||||
/** 分销 */
|
/** 分销 */
|
||||||
@Excel(name = "分销")
|
@Excel(name = "分销")
|
||||||
@@ -242,22 +242,22 @@ public class ViewProductAndStock extends BaseEntity
|
|||||||
return phase;
|
return phase;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNetWeight(BigDecimal netWeight)
|
public void setNetWeight(String netWeight)
|
||||||
{
|
{
|
||||||
this.netWeight = netWeight;
|
this.netWeight = netWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getNetWeight()
|
public String getNetWeight()
|
||||||
{
|
{
|
||||||
return netWeight;
|
return netWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGrossWeight(BigDecimal grossWeight)
|
public void setGrossWeight(String grossWeight)
|
||||||
{
|
{
|
||||||
this.grossWeight = grossWeight;
|
this.grossWeight = grossWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getGrossWeight()
|
public String getGrossWeight()
|
||||||
{
|
{
|
||||||
return grossWeight;
|
return grossWeight;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="订单号" prop="序列号"><!-- 库存id -->
|
<el-form-item label="订单号" prop="orderId"><!-- 库存id -->
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.序列号"
|
v-model="queryParams.orderId"
|
||||||
placeholder="请输入订单号"
|
placeholder="请输入订单号"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
@@ -230,7 +230,8 @@ export default {
|
|||||||
spare4: null,
|
spare4: null,
|
||||||
spare5: null,
|
spare5: null,
|
||||||
spare6: null,
|
spare6: null,
|
||||||
roadwayId: null
|
roadwayId: null,
|
||||||
|
orderId:null
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user