add:外协发货详情添加物料参数

This commit is contained in:
zhangzhiqiang
2023-02-06 17:43:24 +08:00
parent 077393cd37
commit 37ccceed6b
4 changed files with 19 additions and 6 deletions

View File

@@ -655,8 +655,18 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
public Map<String, Object> bucketQuery(Map whereJson, Pageable page) {
// 仓位属性表【ST_IVT_StructAttr】
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<>();
paramMap.put("storagevehicle_code",storagevehicleCode);
paramMap.put("material_id",meMaterialbase.getString("material_id"));
paramMap.put("flag","6");
JSONObject jsonObject = WQL.getWO("statistical_report_query_02").addParamMap(paramMap).pageQuery(WqlUtil.getHttpContext(page), "bucketunique");
return jsonObject;

View File

@@ -289,6 +289,9 @@
OPTION 输入.storagevehicle_code <> ""
procedureoffline.storagevehicle_code = 输入.storagevehicle_code
ENDOPTION
OPTION 输入.material_id <> ""
procedureoffline.material_id = 输入.material_id
ENDOPTION
ENDSELECT
ENDPAGEQUERY
ENDIF

View File

@@ -72,9 +72,7 @@ export default {
type: Boolean,
default: false
},
openParam: {
type: String
}
openParam: {}
},
data() {
return {
@@ -86,7 +84,8 @@ export default {
dialogShow: {
handler(newValue, oldValue) {
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
}
}
},

View File

@@ -217,7 +217,7 @@ export default {
currentRow: {},
Depts: [],
resultPutDialog: false,
openParam: null,
openParam: {},
query_flag: true,
passList: [
{ 'label': '未出库', 'value': '0' },
@@ -264,7 +264,8 @@ export default {
})
},
openBucket(row) {
this.openParam = row.storagevehicle_code
this.openParam.storagevehicle_code = row.storagevehicle_code
this.openParam.material_code = row.material_code
this.bucketDialog = true
},
orgFormat(row) {