Commit 41f58779 by 江和松

物料清单bug修改

parent 142ac3b5
...@@ -359,8 +359,8 @@ ...@@ -359,8 +359,8 @@
<isNotEmpty prepend=" AND " property="parInventType"> <isNotEmpty prepend=" AND " property="parInventType">
b.PAR_INVENT_TYPE = #parInventType# b.PAR_INVENT_TYPE = #parInventType#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="inventName"> <isNotEmpty prepend=" AND " property="inventTypeDetail">
a.INVENT_NAME = #inventName# b.INVENT_TYPE_DETAIL = #inventTypeDetail#
</isNotEmpty> </isNotEmpty>
ORDER BY INVENT_CODE ORDER BY INVENT_CODE
</select> </select>
......
...@@ -62,8 +62,17 @@ $(function () { ...@@ -62,8 +62,17 @@ $(function () {
let eiInfo = new EiInfo(); let eiInfo = new EiInfo();
if (nodeData.lv == 2) { if (nodeData.lv == 2) {
eiInfo.set("inqu_status-0-parInventType", "root"); eiInfo.set("inqu_status-0-parInventType", "root");
//3级节点选择只能是构建
eiInfo.set("inqu_status-0-inventTypeDetail", "1");
} else if (nodeData.lv == 3) { } else if (nodeData.lv == 3) {
eiInfo.set("inqu_status-0-parInventType", nodeData.inventType); //4级节点选择只能是构建
eiInfo.set("inqu_status-0-inventTypeDetail", "2");
// inInfo.set("inqu_status-0-parInventType", nodeData.inventType);
}else if (nodeData.lv == 4) {
//上方刷新过树结构了
//4级节点选择只能是构建
eiInfo.set("inqu_status-0-inventTypeDetail", "2");
// inInfo.set("inqu_status-0-parInventType", nodeData.inventType);
} }
var dataSource; var dataSource;
EiCommunicator.send("HGSC004A", "queryProductComboBox", eiInfo, { EiCommunicator.send("HGSC004A", "queryProductComboBox", eiInfo, {
...@@ -130,6 +139,8 @@ $(function () { ...@@ -130,6 +139,8 @@ $(function () {
item['inventType'] = productCodeBox[i]['param2Field']; item['inventType'] = productCodeBox[i]['param2Field'];
console.log(item) console.log(item)
template = productCodeBox[i]['valueField']; template = productCodeBox[i]['valueField'];
}else{
template = item.productCode;
} }
} }
} }
...@@ -141,11 +152,17 @@ $(function () { ...@@ -141,11 +152,17 @@ $(function () {
var nodeData = IPLATUI.EFTree.materialTree.selectTreeNode; var nodeData = IPLATUI.EFTree.materialTree.selectTreeNode;
if (nodeData.lv == 2) { if (nodeData.lv == 2) {
inInfo.set("inqu_status-0-parInventType", "root"); inInfo.set("inqu_status-0-parInventType", "root");
//3级节点选择只能是构建
inInfo.set("inqu_status-0-inventTypeDetail", "1");
} else if (nodeData.lv == 3) { } else if (nodeData.lv == 3) {
inInfo.set("inqu_status-0-parInventType", nodeData.inventType); //4级节点选择只能是构建
inInfo.set("inqu_status-0-inventTypeDetail", "2");
// inInfo.set("inqu_status-0-parInventType", nodeData.inventType);
}else if (nodeData.lv == 4) { }else if (nodeData.lv == 4) {
//上方刷新过树结构了 //上方刷新过树结构了
inInfo.set("inqu_status-0-parInventType", nodeData.inventType); //4级节点选择只能是构建
inInfo.set("inqu_status-0-inventTypeDetail", "2");
// inInfo.set("inqu_status-0-parInventType", nodeData.inventType);
} }
inInfo.set("field", options.field); inInfo.set("field", options.field);
let dataSource = inventNameGlobalData; let dataSource = inventNameGlobalData;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment