add:外协发货详情添加物料参数
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user