This commit is contained in:
zj
2026-01-15 14:11:38 +08:00
parent f2c47d26ce
commit 0ca5e1050e
4 changed files with 27 additions and 14 deletions

View File

@@ -32,8 +32,8 @@ public class ToErpApiController {
/**
* 回传其他出入库单
*/
//@Scheduled(fixedDelay = 1500)
// public void callbackTransferBill() {
// toErpService.callbackTransferBill();
// }
@Scheduled(fixedDelay = 1500)
public void callbackTransferBill() {
toErpService.callbackTransferBill();
}
}

View File

@@ -35,6 +35,7 @@ import com.ruoyi.job.mydojobdetail.domain.MydoJobDetail;
import com.ruoyi.job.mydojobdetail.service.IMydoJobDetailService;
import com.ruoyi.log.service.IRequestLogService;
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.service.IBasStockService;
import lombok.extern.slf4j.Slf4j;
@@ -86,6 +87,9 @@ public class ToWmsServiceImpl implements IToWmsService {
private IRequestLogService requestLogService;
@Autowired
private IBasStockService stockService;
@Autowired
private PdaMapper pdaMapper;
@Override
@@ -326,10 +330,11 @@ public class ToWmsServiceImpl implements IToWmsService {
return AjaxResult.error("没有任务");
}
}
//TODO
@Override
public AjaxResult jobFinish(WmsJobRequest wmsJobRequest) {
MydoJob mydoJobParam = new MydoJob();
StringBuilder stringBuilder = new StringBuilder();
switch (wmsJobRequest.getWmsType()) {
case "1":
@@ -363,6 +368,13 @@ public class ToWmsServiceImpl implements IToWmsService {
MydoJob outJob = outMydoJobs.get(0);
outJob.setExecutionPhase("2");
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;
default:

View File

@@ -76,11 +76,11 @@ public class ViewProductAndStock extends BaseEntity
/** 净重 */
@Excel(name = "净重")
private BigDecimal netWeight;
private String netWeight;
/** 毛重 */
@Excel(name = "毛重")
private BigDecimal grossWeight;
private String grossWeight;
/** 分销 */
@Excel(name = "分销")
@@ -242,22 +242,22 @@ public class ViewProductAndStock extends BaseEntity
return phase;
}
public void setNetWeight(BigDecimal netWeight)
public void setNetWeight(String netWeight)
{
this.netWeight = netWeight;
}
public BigDecimal getNetWeight()
public String getNetWeight()
{
return netWeight;
}
public void setGrossWeight(BigDecimal grossWeight)
public void setGrossWeight(String grossWeight)
{
this.grossWeight = grossWeight;
}
public BigDecimal getGrossWeight()
public String getGrossWeight()
{
return grossWeight;
}

View File

@@ -9,9 +9,9 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="订单号" prop="序列号"><!-- 库存id -->
<el-form-item label="订单号" prop="orderId"><!-- 库存id -->
<el-input
v-model="queryParams.序列号"
v-model="queryParams.orderId"
placeholder="请输入订单号"
clearable
@keyup.enter.native="handleQuery"
@@ -230,7 +230,8 @@ export default {
spare4: null,
spare5: null,
spare6: null,
roadwayId: null
roadwayId: null,
orderId:null
},
// 表单参数
form: {},