add:外协发货详情添加物料参数
This commit is contained in:
@@ -655,8 +655,18 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
|
|||||||
public Map<String, Object> bucketQuery(Map whereJson, Pageable page) {
|
public Map<String, Object> bucketQuery(Map whereJson, Pageable page) {
|
||||||
// 仓位属性表【ST_IVT_StructAttr】
|
// 仓位属性表【ST_IVT_StructAttr】
|
||||||
Object storagevehicleCode = whereJson.get("storagevehicle_code");
|
Object storagevehicleCode = whereJson.get("storagevehicle_code");
|
||||||
|
Object materialCode = whereJson.get("material_code");
|
||||||
|
//转id
|
||||||
|
if (materialCode == null || storagevehicleCode==null){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
JSONObject meMaterialbase = WQLObject.getWQLObject("md_me_materialbase").query("material_code = '" + materialCode + "'").uniqueResult(0);
|
||||||
|
if (meMaterialbase == null){
|
||||||
|
throw new BadRequestException("物料编号:"+materialCode+" 查询不到对应物料信息");
|
||||||
|
}
|
||||||
Map<String, Object> paramMap = new HashMap<>();
|
Map<String, Object> paramMap = new HashMap<>();
|
||||||
paramMap.put("storagevehicle_code",storagevehicleCode);
|
paramMap.put("storagevehicle_code",storagevehicleCode);
|
||||||
|
paramMap.put("material_id",meMaterialbase.getString("material_id"));
|
||||||
paramMap.put("flag","6");
|
paramMap.put("flag","6");
|
||||||
JSONObject jsonObject = WQL.getWO("statistical_report_query_02").addParamMap(paramMap).pageQuery(WqlUtil.getHttpContext(page), "bucketunique");
|
JSONObject jsonObject = WQL.getWO("statistical_report_query_02").addParamMap(paramMap).pageQuery(WqlUtil.getHttpContext(page), "bucketunique");
|
||||||
return jsonObject;
|
return jsonObject;
|
||||||
|
|||||||
@@ -289,6 +289,9 @@
|
|||||||
OPTION 输入.storagevehicle_code <> ""
|
OPTION 输入.storagevehicle_code <> ""
|
||||||
procedureoffline.storagevehicle_code = 输入.storagevehicle_code
|
procedureoffline.storagevehicle_code = 输入.storagevehicle_code
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
|
OPTION 输入.material_id <> ""
|
||||||
|
procedureoffline.material_id = 输入.material_id
|
||||||
|
ENDOPTION
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
ENDPAGEQUERY
|
ENDPAGEQUERY
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|||||||
@@ -72,9 +72,7 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
openParam: {
|
openParam: {}
|
||||||
type: String
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -86,7 +84,8 @@ export default {
|
|||||||
dialogShow: {
|
dialogShow: {
|
||||||
handler(newValue, oldValue) {
|
handler(newValue, oldValue) {
|
||||||
this.dialogVisible = newValue
|
this.dialogVisible = newValue
|
||||||
this.crud.query.storagevehicle_code = this.openParam
|
this.crud.query.storagevehicle_code = this.openParam.storagevehicle_code
|
||||||
|
this.crud.query.material_code = this.openParam.material_code
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ export default {
|
|||||||
currentRow: {},
|
currentRow: {},
|
||||||
Depts: [],
|
Depts: [],
|
||||||
resultPutDialog: false,
|
resultPutDialog: false,
|
||||||
openParam: null,
|
openParam: {},
|
||||||
query_flag: true,
|
query_flag: true,
|
||||||
passList: [
|
passList: [
|
||||||
{ 'label': '未出库', 'value': '0' },
|
{ 'label': '未出库', 'value': '0' },
|
||||||
@@ -264,7 +264,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
openBucket(row) {
|
openBucket(row) {
|
||||||
this.openParam = row.storagevehicle_code
|
this.openParam.storagevehicle_code = row.storagevehicle_code
|
||||||
|
this.openParam.material_code = row.material_code
|
||||||
this.bucketDialog = true
|
this.bucketDialog = true
|
||||||
},
|
},
|
||||||
orgFormat(row) {
|
orgFormat(row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user