rev: 盘点确认
This commit is contained in:
@@ -43,6 +43,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -343,7 +344,24 @@ public class StIvtCheckmstCpServiceImpl extends ServiceImpl<StIvtCheckmstCpMappe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getBucketrecord(JSONObject whereJson) {
|
public Object getBucketrecord(JSONObject whereJson) {
|
||||||
return mdPbBucketrecordMapper.queryAll(whereJson);
|
|
||||||
|
List<Map> maps = mdPbBucketrecordMapper.queryAll(whereJson);
|
||||||
|
|
||||||
|
if (ObjectUtil.isEmpty(maps)) {
|
||||||
|
JSONObject param = new JSONObject();
|
||||||
|
param.put("checkdtl_id", whereJson.getString("checkdtl_id"));
|
||||||
|
|
||||||
|
List<Map> checkDtl = this.getCheckDtl(param);
|
||||||
|
|
||||||
|
for (Map json : checkDtl) {
|
||||||
|
json.put("storage_qty", json.get("base_qty"));
|
||||||
|
}
|
||||||
|
|
||||||
|
maps = checkDtl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return maps;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
check.getBucketrecord({ 'storagevehicle_code': this.form.storagevehicle_code, 'status': '3' }).then(res => {
|
check.getBucketrecord({ 'storagevehicle_code': this.form.storagevehicle_code, 'status': '3', 'checkdtl_id': this.form.checkdtl_id}).then(res => {
|
||||||
this.tableData = res
|
this.tableData = res
|
||||||
// 将明细变成不可编辑
|
// 将明细变成不可编辑
|
||||||
for (let i = 0; i < this.tableData.length; i++) {
|
for (let i = 0; i < this.tableData.length; i++) {
|
||||||
@@ -248,10 +248,6 @@ export default {
|
|||||||
this.crud.notify('物料不可为空!', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('物料不可为空!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (!row.bucketunique) {
|
|
||||||
this.crud.notify('桶号不可为空!', CRUD.NOTIFICATION_TYPE.INFO)
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
let qty = 0
|
let qty = 0
|
||||||
for (let i = 0; i < this.tableData.length; i++) {
|
for (let i = 0; i < this.tableData.length; i++) {
|
||||||
if ((this.tableData[i].bucketunique === row.bucketunique) && (index !== i)) {
|
if ((this.tableData[i].bucketunique === row.bucketunique) && (index !== i)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user