提交 62e2cefe 编写于 作者: L LAPTOP-UV1MNL38\18023

feat:修改bug

上级 f4b3f9ce
......@@ -14,6 +14,7 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$;
var id = GetUrlParam("id");
let initFirst = false
// 加工单转领料单
AjaxPostUtil.request({url: sysMainMation.erpBasePath + "queryMachinTransRequestById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) {
......@@ -25,16 +26,18 @@ layui.config({
saveData: function (params) {
// 保存数据
AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertMachinToPickRequest", params: params, type: 'json', method: "POST", callback: function(json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
parent.layer.close(index);
parent.refreshCode = '0';
}});
},
loadComponentCallback: function () {
$("#addRow" + tableId).click();
$("div[controlType='pickFromType']").remove();
},
tableAddRowCallback: function (tableId) {
tableDeleteRowCallback: function (tableId) {
if (!initFirst) {
initFirst = true;
$("#addRow" + tableId).click();
}
}
});
}});
......
......@@ -14,6 +14,7 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$;
var id = GetUrlParam("id");
let initFirst = false
// 加工单转退料单
AjaxPostUtil.request({url: sysMainMation.erpBasePath + "queryMachinTransReturnById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) {
......@@ -33,8 +34,11 @@ layui.config({
loadComponentCallback: function () {
$("div[controlType='pickFromType']").remove();
},
tableAddRowCallback: function (tableId) {
tableDeleteRowCallback: function (tableId) {
if (!initFirst) {
initFirst = true;
$("#addRow" + tableId).click();
}
}
});
}});
......
......@@ -14,6 +14,7 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$;
var id = GetUrlParam("id");
let initFirst = false
// 加工单转补料单
AjaxPostUtil.request({url: sysMainMation.erpBasePath + "queryMachinTransRequestById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) {
......@@ -33,8 +34,11 @@ layui.config({
loadComponentCallback: function () {
$("div[controlType='pickFromType']").remove();
},
tableAddRowCallback: function (tableId) {
tableDeleteRowCallback: function (tableId) {
if (!initFirst) {
initFirst = true;
$("#addRow" + tableId).click();
}
}
});
}});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册