Commit ad712b3c by liuyang

修复库存类型和库存名称联动

parent 6e3c82a8
...@@ -12,6 +12,7 @@ $(function() { ...@@ -12,6 +12,7 @@ $(function() {
"result": { "result": {
columns: [{ columns: [{
field: "whCode", field: "whCode",
title: "仓库名称",
template: function (dataItem) { template: function (dataItem) {
for (let i = 0; i < whNameGlobalData.length; i++) { for (let i = 0; i < whNameGlobalData.length; i++) {
if (whNameGlobalData[i]['valueField'] === dataItem['whCode']) { if (whNameGlobalData[i]['valueField'] === dataItem['whCode']) {
...@@ -32,6 +33,7 @@ $(function() { ...@@ -32,6 +33,7 @@ $(function() {
} }
}, { }, {
field: "inventName", field: "inventName",
title: "存货名称",
template: function (dataItem) { template: function (dataItem) {
//let flag = false; //let flag = false;
for (let i = 0; i < inventNameGlobalData.length; i++) { for (let i = 0; i < inventNameGlobalData.length; i++) {
...@@ -54,7 +56,7 @@ $(function() { ...@@ -54,7 +56,7 @@ $(function() {
var eiInfo = new EiInfo(); var eiInfo = new EiInfo();
eiInfo.set("inqu_status-0-inventTypes", [1, 2, 5]); eiInfo.set("inqu_status-0-inventTypes", [1, 2, 5]);
eiInfo.set("inqu_status-0-inventType", options.model["inventType"]); eiInfo.set("inventType", options.model["inventType"]);
eiInfo.set("isSplicingSymbol",false); eiInfo.set("isSplicingSymbol",false);
//eiInfo.set("inqu_status-0-inventTypes", [1, 2, 5]); //eiInfo.set("inqu_status-0-inventTypes", [1, 2, 5]);
//eiInfo.set("inqu_status-0-inventCode", options.model["inventCode"]); //eiInfo.set("inqu_status-0-inventCode", options.model["inventCode"]);
...@@ -92,6 +94,7 @@ $(function() { ...@@ -92,6 +94,7 @@ $(function() {
}*/ }*/
}, { }, {
field: "inventRecordId", field: "inventRecordId",
title: "规格",
template: function (dataItem) { template: function (dataItem) {
for (let i = 0; i < specGlobalData.length; i++) { for (let i = 0; i < specGlobalData.length; i++) {
if (specGlobalData[i]['valueField'] === dataItem['inventRecordId']) { if (specGlobalData[i]['valueField'] === dataItem['inventRecordId']) {
......
...@@ -211,6 +211,7 @@ $(function () { ...@@ -211,6 +211,7 @@ $(function () {
columns: [ columns: [
{ {
field: "operator", field: "operator",
title: "操作",
template: function (item) { template: function (item) {
console.log(item) console.log(item)
let auditStatus = item.status; let auditStatus = item.status;
...@@ -235,6 +236,7 @@ $(function () { ...@@ -235,6 +236,7 @@ $(function () {
} }
},{ },{
field: "prdtName", field: "prdtName",
title: "部件名称",
/*query: function (container, options) { /*query: function (container, options) {
let eiInfo = new EiInfo(); let eiInfo = new EiInfo();
eiInfo.set("inqu_status-0-inventTypes", [3, 4]); eiInfo.set("inqu_status-0-inventTypes", [3, 4]);
...@@ -259,7 +261,14 @@ $(function () { ...@@ -259,7 +261,14 @@ $(function () {
input.attr("id", options.field); input.attr("id", options.field);
input.appendTo(container); input.appendTo(container);
let eiInfo = new EiInfo(); let eiInfo = new EiInfo();
eiInfo.set("inventType", 4); let selectTreeNode = IPLATUI.EFTree.materialTree.selectTreeNode;
if (selectTreeNode.lv == 1){
eiInfo.set("inventType", 4);
}else if (selectTreeNode.lv == 2){
eiInfo.set("inventType", 3);
}else {
eiInfo.set("inventTypes", [3,4]);
}
eiInfo.set("isSplicingSymbol",false); eiInfo.set("isSplicingSymbol",false);
var dataSource; var dataSource;
EiCommunicator.send("HPPZ004", "queryComboBox", eiInfo, { EiCommunicator.send("HPPZ004", "queryComboBox", eiInfo, {
......
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