现场问题修改
This commit is contained in:
@@ -548,6 +548,7 @@ public class InStockinServiceImpl implements IInStockinService
|
||||
basProduct.setProductId(material.getCode());
|
||||
basProduct.setSpare9(material.getCode());
|
||||
basProduct.setSpare8(material.getName());
|
||||
basProduct.setProductName(material.getName());
|
||||
basProduct.setSpare4(Convert.toStr(material.getSingleWeight()));
|
||||
basProduct.setQuantity(material.getQuantity());
|
||||
basProduct.setSpare3(material.getRoute());
|
||||
|
||||
@@ -143,6 +143,8 @@ public class InStockinDetail extends BaseEntity
|
||||
@Excel(name = "毛重")
|
||||
private String spare8;
|
||||
|
||||
private String assignedStatus;
|
||||
|
||||
private String spare9;
|
||||
|
||||
private String status;
|
||||
|
||||
@@ -548,10 +548,12 @@ public class MydoJobServiceImpl implements IMydoJobService {
|
||||
log.error("任务不存在");
|
||||
return AjaxResult.error(jobId+"任务不存在");
|
||||
}
|
||||
if ("1".equals(job.getStatus()) || "2".equals(job.getStatus())){
|
||||
AjaxResult ajaxResult = iToWcsService.cancelTaskByTaskNo(job);
|
||||
if(!ajaxResult.isSuccess()){
|
||||
return AjaxResult.error(jobId+"任务取消失败");
|
||||
if ("1".equals(job.getStatus()) || "2".equals(job.getStatus())) {
|
||||
if (job.getStatus().equals("2")){
|
||||
AjaxResult ajaxResult = iToWcsService.cancelTaskByTaskNo(job);
|
||||
if (!ajaxResult.isSuccess()) {
|
||||
return AjaxResult.error(jobId + "任务取消失败");
|
||||
}
|
||||
}
|
||||
MydoJobDetail mydoJobDetail = new MydoJobDetail();
|
||||
mydoJobDetail.setJobId(jobId);
|
||||
@@ -565,7 +567,7 @@ public class MydoJobServiceImpl implements IMydoJobService {
|
||||
basStock.setOutQuantity(String.valueOf(substract));
|
||||
basStockMapper.updateBasStock(basStock);
|
||||
}
|
||||
if ("20".equals(job.getInOrOut())|| "21".equals(job.getInOrOut())){
|
||||
if ("20".equals(job.getInOrOut()) || "21".equals(job.getInOrOut())) {
|
||||
//修改单据数量
|
||||
OutStockoutDetail outStockoutDetail = outStockoutDetailService.selectOutStockoutDetailByStockoutDetailId(detail.getInOrOutDId());
|
||||
if (outStockoutDetail != null) {
|
||||
@@ -591,9 +593,9 @@ public class MydoJobServiceImpl implements IMydoJobService {
|
||||
|
||||
//删除分配详情
|
||||
outStockAllotInfoService.deleteInfoByJobId(jobId);
|
||||
}else {
|
||||
} else {
|
||||
log.error("任务处理异常");
|
||||
return AjaxResult.error(jobId+"任务处理异常");
|
||||
return AjaxResult.error(jobId + "任务处理异常");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -108,6 +108,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="scanNum != null and scanNum != ''"> and isd.scan_num = #{scanNum}</if>
|
||||
<if test="scanNumX != null and scanNumX != ''"> and isd.scan_num_x = #{scanNumX}</if>
|
||||
<if test="scanNumJ != null and scanNumJ != ''"> and isd.scan_num_j = #{scanNumJ}</if>
|
||||
<if test="assignedStatus != null and assignedStatus == 'assigned'"> and isd.assign_num > 0</if>
|
||||
<if test="assignedStatus != null and assignedStatus == 'unassigned'"> and isd.assign_num = 0</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
const { run } = require('runjs')
|
||||
const chalk = require('chalk')
|
||||
const config = require('../vue.config.js')
|
||||
const rawArgv = process.argv.slice(2)
|
||||
const args = rawArgv.join(' ')
|
||||
|
||||
if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
|
||||
const report = rawArgv.includes('--report')
|
||||
|
||||
run(`vue-cli-service build ${args}`)
|
||||
|
||||
const port = 9526
|
||||
const publicPath = config.publicPath
|
||||
|
||||
var connect = require('connect')
|
||||
var serveStatic = require('serve-static')
|
||||
const app = connect()
|
||||
|
||||
app.use(
|
||||
publicPath,
|
||||
serveStatic('./dist', {
|
||||
index: ['index.html', '/']
|
||||
})
|
||||
)
|
||||
|
||||
app.listen(port, function () {
|
||||
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
|
||||
if (report) {
|
||||
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
|
||||
}
|
||||
|
||||
})
|
||||
} else {
|
||||
run(`vue-cli-service build ${args}`)
|
||||
}
|
||||
Reference in New Issue
Block a user