提交 5af16f2f 编写于 作者: Skyeye云's avatar Skyeye云

生产模块整改

上级 73c91a88
...@@ -72,7 +72,7 @@ layui.config({ ...@@ -72,7 +72,7 @@ layui.config({
childStr: JSON.stringify(childObject) childStr: JSON.stringify(childObject)
}; };
AjaxPostUtil.request({url:reqBasePath + "erpbom002", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpbom002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -10,7 +10,7 @@ layui.config({ ...@@ -10,7 +10,7 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$; var $ = layui.$;
AjaxPostUtil.request({url:reqBasePath + "erpbom003", params: {rowId: parent.rowId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpbom003", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
$("#showForm").html(getDataUseHandlebars($("#mainHtml").html(), json)); $("#showForm").html(getDataUseHandlebars($("#mainHtml").html(), json));
$.fn.zTree.init($("#treeDemo"), setting, json.bean.bomMaterialList); $.fn.zTree.init($("#treeDemo"), setting, json.bean.bomMaterialList);
......
...@@ -26,7 +26,7 @@ layui.config({ ...@@ -26,7 +26,7 @@ layui.config({
//下拉框模板 //下拉框模板
var selTemplate = getFileContent('tpl/template/select-option-must.tpl'); var selTemplate = getFileContent('tpl/template/select-option-must.tpl');
AjaxPostUtil.request({url:reqBasePath + "erpbom005", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpbom005", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
$("#showForm").html(getDataUseHandlebars($("#mainHtml").html(), json)); $("#showForm").html(getDataUseHandlebars($("#mainHtml").html(), json));
textool.init({ textool.init({
...@@ -98,7 +98,7 @@ layui.config({ ...@@ -98,7 +98,7 @@ layui.config({
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "erpbom006", params:params, type: 'json', method: "PUT", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpbom006", params:params, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpbom001', url: flowableBasePath + 'erpbom001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -91,7 +91,7 @@ layui.config({ ...@@ -91,7 +91,7 @@ layui.config({
function deleteAccount(data){ function deleteAccount(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "erpbom004", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpbom004", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -21,7 +21,7 @@ layui.config({ ...@@ -21,7 +21,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpdepartstock001', url: flowableBasePath + 'erpdepartstock001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -65,7 +65,7 @@ layui.config({ ...@@ -65,7 +65,7 @@ layui.config({
chargePerson: chargeUser[0].id, chargePerson: chargeUser[0].id,
farmProcedure: JSON.stringify(procedureMationList) farmProcedure: JSON.stringify(procedureMationList)
}; };
AjaxPostUtil.request({url:reqBasePath + "erpfarm002", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpfarm002", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -21,7 +21,7 @@ layui.config({ ...@@ -21,7 +21,7 @@ layui.config({
var selOption = getFileContent('tpl/template/select-option.tpl'); var selOption = getFileContent('tpl/template/select-option.tpl');
AjaxPostUtil.request({url: reqBasePath + "erpworkprocedure009", params: {}, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "erpworkprocedure009", params: {}, type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
// 加载工序数据 // 加载工序数据
$("#procedureId").html(getDataUseHandlebars(selOption, json)); $("#procedureId").html(getDataUseHandlebars(selOption, json));
...@@ -70,7 +70,7 @@ layui.config({ ...@@ -70,7 +70,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpfarm010', url: flowableBasePath + 'erpfarm010',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -136,7 +136,7 @@ layui.config({ ...@@ -136,7 +136,7 @@ layui.config({
var selectedData = tableCheckBoxUtil.getValue({ var selectedData = tableCheckBoxUtil.getValue({
gridId: 'messageTable' gridId: 'messageTable'
}); });
AjaxPostUtil.request({url:reqBasePath + "erpfarm011", params: {ids: selectedData.toString()}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpfarm011", params: {ids: selectedData.toString()}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.procedureMationList = [].concat(json.rows); parent.procedureMationList = [].concat(json.rows);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpfarm006", url: flowableBasePath + "erpfarm006",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: $("#beanTemplate").html(), template: $("#beanTemplate").html(),
......
...@@ -28,7 +28,7 @@ layui.config({ ...@@ -28,7 +28,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpfarm003", url: flowableBasePath + "erpfarm003",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: $("#beanTemplate").html(), template: $("#beanTemplate").html(),
...@@ -83,7 +83,7 @@ layui.config({ ...@@ -83,7 +83,7 @@ layui.config({
farmProcedure: JSON.stringify(procedureMationList), farmProcedure: JSON.stringify(procedureMationList),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "erpfarm004", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpfarm004", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpfarm001', url: flowableBasePath + 'erpfarm001',
where: getTablePatams(), where: getTablePatams(),
even: true, even: true,
page: true, page: true,
...@@ -104,7 +104,7 @@ layui.config({ ...@@ -104,7 +104,7 @@ layui.config({
// 删除 // 删除
function deletemember(data){ function deletemember(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
AjaxPostUtil.request({url:reqBasePath + "erpfarm005", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpfarm005", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -130,7 +130,7 @@ layui.config({ ...@@ -130,7 +130,7 @@ layui.config({
// 恢复正常 // 恢复正常
function norms(data){ function norms(data){
layer.confirm('确认要恢复正常吗?', { icon: 3, title: '恢复操作' }, function (index) { layer.confirm('确认要恢复正常吗?', { icon: 3, title: '恢复操作' }, function (index) {
AjaxPostUtil.request({url:reqBasePath + "erpfarm008", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpfarm008", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功。", {icon: 1,time: 2000}); winui.window.msg("提交成功。", {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -144,7 +144,7 @@ layui.config({ ...@@ -144,7 +144,7 @@ layui.config({
// 维修整改 // 维修整改
function rectification(data){ function rectification(data){
layer.confirm('确认要维修整改吗?', { icon: 3, title: '维修整改操作' }, function (index) { layer.confirm('确认要维修整改吗?', { icon: 3, title: '维修整改操作' }, function (index) {
AjaxPostUtil.request({url:reqBasePath + "erpfarm009", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpfarm009", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功。", {icon: 1,time: 2000}); winui.window.msg("提交成功。", {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -17,7 +17,7 @@ layui.config({ ...@@ -17,7 +17,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpmachin009', url: flowableBasePath + 'erpmachin009',
where: getTablePatams(), where: getTablePatams(),
even: true, even: true,
page: true, page: true,
......
...@@ -76,7 +76,7 @@ layui.config({ ...@@ -76,7 +76,7 @@ layui.config({
belowNum: $("#belowNum").val(), belowNum: $("#belowNum").val(),
depotId: (subType == 1) ? "" : $("#depotId").val() depotId: (subType == 1) ? "" : $("#depotId").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "erpmachin012", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpmachin012", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -157,7 +157,7 @@ layui.config({ ...@@ -157,7 +157,7 @@ layui.config({
materielStr: JSON.stringify(tableData), materielStr: JSON.stringify(tableData),
procedureJsonStr: JSON.stringify(procedureMationList) procedureJsonStr: JSON.stringify(procedureMationList)
}; };
AjaxPostUtil.request({url:reqBasePath + "erpmachin002", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpmachin002", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -24,7 +24,7 @@ layui.config({ ...@@ -24,7 +24,7 @@ layui.config({
function initData(){ function initData(){
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpmachin006", url: flowableBasePath + "erpmachin006",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: $("#useTemplate").html(), template: $("#useTemplate").html(),
......
...@@ -72,7 +72,7 @@ layui.config({ ...@@ -72,7 +72,7 @@ layui.config({
}); });
function loadData(){ function loadData(){
AjaxPostUtil.request({url:reqBasePath + "erpmachin003", params: {rowId: parent.rowId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpmachin003", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
var data = json.bean; var data = json.bean;
if(!isNull(data.productionId)){ if(!isNull(data.productionId)){
...@@ -229,7 +229,7 @@ layui.config({ ...@@ -229,7 +229,7 @@ layui.config({
procedureJsonStr: JSON.stringify(procedureMationList), procedureJsonStr: JSON.stringify(procedureMationList),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "erpmachin004", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpmachin004", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -14,7 +14,7 @@ layui.config({ ...@@ -14,7 +14,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpmachin006", url: flowableBasePath + "erpmachin006",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: $("#useTemplate").html(), template: $("#useTemplate").html(),
...@@ -42,7 +42,7 @@ layui.config({ ...@@ -42,7 +42,7 @@ layui.config({
status: $("input[name='flag']:checked").val(), status: $("input[name='flag']:checked").val(),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "erpmachin008", params: jStr, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpmachin008", params: jStr, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpmachin001', url: flowableBasePath + 'erpmachin001',
where: getTablePatams(), where: getTablePatams(),
even: true, even: true,
page: true, page: true,
...@@ -116,7 +116,7 @@ layui.config({ ...@@ -116,7 +116,7 @@ layui.config({
// 删除 // 删除
function deletemember(data){ function deletemember(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
AjaxPostUtil.request({url:reqBasePath + "erpmachin005", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpmachin005", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -142,7 +142,7 @@ layui.config({ ...@@ -142,7 +142,7 @@ layui.config({
// 提交审批 // 提交审批
function subExamine(data){ function subExamine(data){
layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) { layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) {
AjaxPostUtil.request({url:reqBasePath + "erpmachin007", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpmachin007", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功。", {icon: 1,time: 2000}); winui.window.msg("提交成功。", {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -24,7 +24,7 @@ layui.config({ ...@@ -24,7 +24,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpmachin010', url: flowableBasePath + 'erpmachin010',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: false, page: false,
...@@ -72,7 +72,7 @@ layui.config({ ...@@ -72,7 +72,7 @@ layui.config({
var obj = res.rows[chooseIndex]; var obj = res.rows[chooseIndex];
//根据加工单id获取该单据下的所有单据中商品以及剩余领料数量 //根据加工单id获取该单据下的所有单据中商品以及剩余领料数量
AjaxPostUtil.request({url: reqBasePath + "erpmachin011", params: {rowId: obj.id}, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "erpmachin011", params: {rowId: obj.id}, type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
obj.norms = [].concat(json.rows); obj.norms = [].concat(json.rows);
parent.machinMation = obj; parent.machinMation = obj;
......
...@@ -128,7 +128,7 @@ layui.config({ ...@@ -128,7 +128,7 @@ layui.config({
materialStr: JSON.stringify(tableData), materialStr: JSON.stringify(tableData),
depotId: $("#depotId").val() depotId: $("#depotId").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "erppick009", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick009", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erppick007", url: flowableBasePath + "erppick007",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: $("#useTemplate").html(), template: $("#useTemplate").html(),
......
...@@ -50,7 +50,7 @@ layui.config({ ...@@ -50,7 +50,7 @@ layui.config({
}); });
function loadData(){ function loadData(){
AjaxPostUtil.request({url:reqBasePath + "erppick010", params: {rowId: parent.rowId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick010", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
var data = json.bean; var data = json.bean;
if(!isNull(data.machinId)){ if(!isNull(data.machinId)){
...@@ -167,7 +167,7 @@ layui.config({ ...@@ -167,7 +167,7 @@ layui.config({
depotId: $("#depotId").val(), depotId: $("#depotId").val(),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "erppick011", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick011", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -20,7 +20,7 @@ layui.config({ ...@@ -20,7 +20,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erppick003', url: flowableBasePath + 'erppick003',
where: getTablePatams(), where: getTablePatams(),
even: true, even: true,
page: true, page: true,
...@@ -108,7 +108,7 @@ layui.config({ ...@@ -108,7 +108,7 @@ layui.config({
//删除 //删除
function deletemember(data){ function deletemember(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
AjaxPostUtil.request({url:reqBasePath + "erppick008", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick008", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -134,7 +134,7 @@ layui.config({ ...@@ -134,7 +134,7 @@ layui.config({
//提交审批 //提交审批
function subExamine(data){ function subExamine(data){
layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) { layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) {
AjaxPostUtil.request({url:reqBasePath + "erppick015", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick015", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功。", {icon: 1,time: 2000}); winui.window.msg("提交成功。", {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -51,7 +51,7 @@ layui.config({ ...@@ -51,7 +51,7 @@ layui.config({
status: $("input[name='flag']:checked").val(), status: $("input[name='flag']:checked").val(),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "erppick016", params: jStr, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick016", params: jStr, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -128,7 +128,7 @@ layui.config({ ...@@ -128,7 +128,7 @@ layui.config({
materialStr: JSON.stringify(tableData), materialStr: JSON.stringify(tableData),
depotId: $("#depotId").val() depotId: $("#depotId").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "erppick004", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick004", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erppick007", url: flowableBasePath + "erppick007",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: $("#useTemplate").html(), template: $("#useTemplate").html(),
......
...@@ -51,7 +51,7 @@ layui.config({ ...@@ -51,7 +51,7 @@ layui.config({
}); });
function loadData(){ function loadData(){
AjaxPostUtil.request({url:reqBasePath + "erppick005", params: {rowId: parent.rowId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick005", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
var data = json.bean; var data = json.bean;
if(!isNull(data.machinId)){ if(!isNull(data.machinId)){
...@@ -177,7 +177,7 @@ layui.config({ ...@@ -177,7 +177,7 @@ layui.config({
depotId: $("#depotId").val(), depotId: $("#depotId").val(),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "erppick006", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick006", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -20,7 +20,7 @@ layui.config({ ...@@ -20,7 +20,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erppick001', url: flowableBasePath + 'erppick001',
where: getTablePatams(), where: getTablePatams(),
even: true, even: true,
page: true, page: true,
...@@ -108,7 +108,7 @@ layui.config({ ...@@ -108,7 +108,7 @@ layui.config({
//删除 //删除
function deletemember(data){ function deletemember(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
AjaxPostUtil.request({url:reqBasePath + "erppick008", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick008", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -134,7 +134,7 @@ layui.config({ ...@@ -134,7 +134,7 @@ layui.config({
//提交审批 //提交审批
function subExamine(data){ function subExamine(data){
layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) { layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) {
AjaxPostUtil.request({url:reqBasePath + "erppick015", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick015", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功。", {icon: 1,time: 2000}); winui.window.msg("提交成功。", {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -122,7 +122,7 @@ layui.config({ ...@@ -122,7 +122,7 @@ layui.config({
materialStr: JSON.stringify(tableData), materialStr: JSON.stringify(tableData),
depotId: $("#depotId").val() depotId: $("#depotId").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "erppick012", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick012", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erppick007", url: flowableBasePath + "erppick007",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: $("#useTemplate").html(), template: $("#useTemplate").html(),
......
...@@ -48,7 +48,7 @@ layui.config({ ...@@ -48,7 +48,7 @@ layui.config({
}); });
function loadData(){ function loadData(){
AjaxPostUtil.request({url:reqBasePath + "erppick013", params: {rowId: parent.rowId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick013", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
var data = json.bean; var data = json.bean;
$("#depotId").val(data.depotId); $("#depotId").val(data.depotId);
...@@ -156,7 +156,7 @@ layui.config({ ...@@ -156,7 +156,7 @@ layui.config({
depotId: $("#depotId").val(), depotId: $("#depotId").val(),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "erppick014", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick014", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -20,7 +20,7 @@ layui.config({ ...@@ -20,7 +20,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erppick002', url: flowableBasePath + 'erppick002',
where: getTablePatams(), where: getTablePatams(),
even: true, even: true,
page: true, page: true,
...@@ -107,7 +107,7 @@ layui.config({ ...@@ -107,7 +107,7 @@ layui.config({
//删除 //删除
function deletemember(data){ function deletemember(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
AjaxPostUtil.request({url:reqBasePath + "erppick008", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick008", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -133,7 +133,7 @@ layui.config({ ...@@ -133,7 +133,7 @@ layui.config({
//提交审批 //提交审批
function subExamine(data){ function subExamine(data){
layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) { layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) {
AjaxPostUtil.request({url:reqBasePath + "erppick015", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erppick015", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功。", {icon: 1,time: 2000}); winui.window.msg("提交成功。", {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -71,7 +71,7 @@ layui.config({ ...@@ -71,7 +71,7 @@ layui.config({
//加载bom方案列表 //加载bom方案列表
function loadBomList(normsId){ function loadBomList(normsId){
AjaxPostUtil.request({url:reqBasePath + "erpbom007", params: {normsId: normsId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpbom007", params: {normsId: normsId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
$("#bomList").html(getDataUseHandlebars(selTemplate, json)); $("#bomList").html(getDataUseHandlebars(selTemplate, json));
form.render("select"); form.render("select");
...@@ -94,7 +94,7 @@ layui.config({ ...@@ -94,7 +94,7 @@ layui.config({
//加载bom方案下的子件列表 //加载bom方案下的子件列表
function loadBomChildProList(bomId){ function loadBomChildProList(bomId){
AjaxPostUtil.request({url:reqBasePath + "erpbom008", params: {bomId: bomId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpbom008", params: {bomId: bomId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
childProList = [].concat(json.rows); childProList = [].concat(json.rows);
$("#tBody").html(getDataUseHandlebars($("#tableBody").html(), {rows: childProList})); $("#tBody").html(getDataUseHandlebars($("#tableBody").html(), {rows: childProList}));
...@@ -172,7 +172,7 @@ layui.config({ ...@@ -172,7 +172,7 @@ layui.config({
//子件清单信息 //子件清单信息
params.childProStr = JSON.stringify(childList); params.childProStr = JSON.stringify(childList);
AjaxPostUtil.request({url:reqBasePath + "erpproduction002", params: params, type: 'json', method: "POST", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpproduction002", params: params, type: 'json', method: "POST", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
...@@ -210,7 +210,7 @@ layui.config({ ...@@ -210,7 +210,7 @@ layui.config({
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
callBack: function(refreshCode){ callBack: function(refreshCode){
if (refreshCode == '0') { if (refreshCode == '0') {
AjaxPostUtil.request({url:reqBasePath + "erpwayprocedure008", params: {rowId: wayProcedureMation.id}, type: 'json', method: "GET", callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpwayprocedure008", params: {rowId: wayProcedureMation.id}, type: 'json', method: "GET", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
procedureMationList = [].concat(json.bean.procedureList); procedureMationList = [].concat(json.bean.procedureList);
loadProcedureMation(); loadProcedureMation();
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$; var $ = layui.$;
AjaxPostUtil.request({url:reqBasePath + "erpproduction006", params: {orderId: parent.rowId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpproduction006", params: {orderId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
json.bean.stateName = getStateName(json.bean); json.bean.stateName = getStateName(json.bean);
$.each(json.bean.procedureMationList, function(i, item){ $.each(json.bean.procedureMationList, function(i, item){
......
...@@ -63,7 +63,7 @@ layui.config({ ...@@ -63,7 +63,7 @@ layui.config({
}); });
//回显数据 //回显数据
AjaxPostUtil.request({url:reqBasePath + "erpproduction003", params: {orderId: parent.rowId}, type: 'json', method: "GET", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpproduction003", params: {orderId: parent.rowId}, type: 'json', method: "GET", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
//商品信息 //商品信息
productMation = { productMation = {
...@@ -126,7 +126,7 @@ layui.config({ ...@@ -126,7 +126,7 @@ layui.config({
//加载bom方案列表 //加载bom方案列表
function loadBomList(normsId){ function loadBomList(normsId){
AjaxPostUtil.request({url:reqBasePath + "erpbom007", params: {normsId: normsId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpbom007", params: {normsId: normsId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
$("#bomList").html(getDataUseHandlebars(selTemplate, json)); $("#bomList").html(getDataUseHandlebars(selTemplate, json));
form.render("select"); form.render("select");
...@@ -149,7 +149,7 @@ layui.config({ ...@@ -149,7 +149,7 @@ layui.config({
//加载bom方案下的子件列表 //加载bom方案下的子件列表
function loadBomChildProList(bomId){ function loadBomChildProList(bomId){
AjaxPostUtil.request({url:reqBasePath + "erpbom008", params: {bomId: bomId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpbom008", params: {bomId: bomId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
childProList = [].concat(json.rows); childProList = [].concat(json.rows);
$("#tBody").html(getDataUseHandlebars($("#tableBody").html(), {rows: childProList})); $("#tBody").html(getDataUseHandlebars($("#tableBody").html(), {rows: childProList}));
...@@ -226,7 +226,7 @@ layui.config({ ...@@ -226,7 +226,7 @@ layui.config({
//子件清单信息 //子件清单信息
params.childProStr = JSON.stringify(childList); params.childProStr = JSON.stringify(childList);
AjaxPostUtil.request({url:reqBasePath + "erpproduction004", params: params, type: 'json', method: "PUT", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpproduction004", params: params, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
...@@ -264,14 +264,14 @@ layui.config({ ...@@ -264,14 +264,14 @@ layui.config({
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
callBack: function(refreshCode){ callBack: function(refreshCode){
if (refreshCode == '0') { if (refreshCode == '0') {
AjaxPostUtil.request({url:reqBasePath + "erpwayprocedure008", params: {rowId: wayProcedureMation.id}, type: 'json', method: "GET", callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpwayprocedure008", params: {rowId: wayProcedureMation.id}, type: 'json', method: "GET", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
procedureMationList = [].concat(json.bean.procedureList); procedureMationList = [].concat(json.bean.procedureList);
loadProcedureMation(); loadProcedureMation();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
} }
}}); }});
} else if (refreshCode == '-9999') { } else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
} }
......
...@@ -10,7 +10,7 @@ layui.config({ ...@@ -10,7 +10,7 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$; var $ = layui.$;
AjaxPostUtil.request({url:reqBasePath + "erpproduction006", params: {orderId: parent.rowId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpproduction006", params: {orderId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
$("#showForm").html(getDataUseHandlebars($("#beanTemplate").html(), json)); $("#showForm").html(getDataUseHandlebars($("#beanTemplate").html(), json));
...@@ -26,7 +26,7 @@ layui.config({ ...@@ -26,7 +26,7 @@ layui.config({
state: $("input[name='flag']:checked").val(), state: $("input[name='flag']:checked").val(),
orderId: parent.rowId orderId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "erpproduction008", params: jStr, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpproduction008", params: jStr, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -20,7 +20,7 @@ layui.config({ ...@@ -20,7 +20,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpproduction001', url: flowableBasePath + 'erpproduction001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -87,7 +87,7 @@ layui.config({ ...@@ -87,7 +87,7 @@ layui.config({
function del(data, obj){ function del(data, obj){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "erpproduction005", params:{orderId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpproduction005", params:{orderId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -131,7 +131,7 @@ layui.config({ ...@@ -131,7 +131,7 @@ layui.config({
//提交审批 //提交审批
function subExamine(data){ function subExamine(data){
layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) { layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) {
AjaxPostUtil.request({url:reqBasePath + "erpproduction007", params: {orderId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpproduction007", params: {orderId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功。", {icon: 1,time: 2000}); winui.window.msg("提交成功。", {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -24,7 +24,7 @@ layui.config({ ...@@ -24,7 +24,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpproduction009', url: flowableBasePath + 'erpproduction009',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: false, page: false,
...@@ -52,7 +52,7 @@ layui.config({ ...@@ -52,7 +52,7 @@ layui.config({
//根据生产计划单id获取该单据下的所有外购商品以及剩余数量 //根据生产计划单id获取该单据下的所有外购商品以及剩余数量
//chooseType:根据生产计划单选择工序时,采购订单需要回显外购一种类型的商品 //chooseType:根据生产计划单选择工序时,采购订单需要回显外购一种类型的商品
AjaxPostUtil.request({url: reqBasePath + "erpproduction010", params: {orderId: obj.id, chooseType: "1"}, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "erpproduction010", params: {orderId: obj.id, chooseType: "1"}, type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
obj.norms = [].concat(json.rows); obj.norms = [].concat(json.rows);
parent.productionMation = obj; parent.productionMation = obj;
......
...@@ -26,7 +26,7 @@ layui.config({ ...@@ -26,7 +26,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpproduction009', url: flowableBasePath + 'erpproduction009',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: false, page: false,
...@@ -172,7 +172,7 @@ layui.config({ ...@@ -172,7 +172,7 @@ layui.config({
//根据生产计划单id获取该单据下的所有外购商品以及剩余数量 //根据生产计划单id获取该单据下的所有外购商品以及剩余数量
//chooseType:根据生产计划单选择工序时,加工单需要回显自产和外购两种类型的商品 //chooseType:根据生产计划单选择工序时,加工单需要回显自产和外购两种类型的商品
AjaxPostUtil.request({url: reqBasePath + "erpproduction010", params: {orderId: chooseMation.id, chooseType: "2"}, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "erpproduction010", params: {orderId: chooseMation.id, chooseType: "2"}, type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
chooseMation.norms = [].concat(json.rows); chooseMation.norms = [].concat(json.rows);
chooseMation.procedureList = procedureList[chooseIndex].procedureArray; chooseMation.procedureList = procedureList[chooseIndex].procedureArray;
......
...@@ -70,7 +70,7 @@ layui.config({ ...@@ -70,7 +70,7 @@ layui.config({
wayName: $("#wayName").val(), wayName: $("#wayName").val(),
procedureMation: JSON.stringify(table.cache.messageTable) procedureMation: JSON.stringify(table.cache.messageTable)
}; };
AjaxPostUtil.request({url:reqBasePath + "erpwayprocedure002", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpwayprocedure002", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -15,7 +15,7 @@ layui.config({ ...@@ -15,7 +15,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpwayprocedure009', url: flowableBasePath + 'erpwayprocedure009',
where: getTablePatams(), where: getTablePatams(),
even: true, even: true,
page: true, page: true,
......
...@@ -17,7 +17,7 @@ layui.config({ ...@@ -17,7 +17,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpwayprocedure008", url: flowableBasePath + "erpwayprocedure008",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
method: "GET", method: "GET",
......
...@@ -27,7 +27,7 @@ layui.config({ ...@@ -27,7 +27,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpwayprocedure003", url: flowableBasePath + "erpwayprocedure003",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: $("#usetableTemplate").html(), template: $("#usetableTemplate").html(),
...@@ -86,7 +86,7 @@ layui.config({ ...@@ -86,7 +86,7 @@ layui.config({
procedureMation: JSON.stringify(table.cache.messageTable), procedureMation: JSON.stringify(table.cache.messageTable),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "erpwayprocedure004", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpwayprocedure004", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpwayprocedure001', url: flowableBasePath + 'erpwayprocedure001',
where: getTablePatams(), where: getTablePatams(),
even: true, even: true,
page: true, page: true,
...@@ -104,7 +104,7 @@ layui.config({ ...@@ -104,7 +104,7 @@ layui.config({
// 删除 // 删除
function deletemember(data){ function deletemember(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
AjaxPostUtil.request({url:reqBasePath + "erpwayprocedure007", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpwayprocedure007", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -130,7 +130,7 @@ layui.config({ ...@@ -130,7 +130,7 @@ layui.config({
// 启用 // 启用
function norms(data){ function norms(data){
layer.confirm(systemLanguage["com.skyeye.enableOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.enableOperation"][languageType]}, function(index) { layer.confirm(systemLanguage["com.skyeye.enableOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.enableOperation"][languageType]}, function(index) {
AjaxPostUtil.request({url:reqBasePath + "erpwayprocedure006", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpwayprocedure006", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.enableOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.enableOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -144,7 +144,7 @@ layui.config({ ...@@ -144,7 +144,7 @@ layui.config({
// 禁用 // 禁用
function rectification(data){ function rectification(data){
layer.confirm(systemLanguage["com.skyeye.disableOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.disableOperation"][languageType]}, function(index) { layer.confirm(systemLanguage["com.skyeye.disableOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.disableOperation"][languageType]}, function(index) {
AjaxPostUtil.request({url:reqBasePath + "erpwayprocedure005", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpwayprocedure005", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.disableOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.disableOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -45,7 +45,7 @@ layui.config({ ...@@ -45,7 +45,7 @@ layui.config({
function loadProcedureType(){ function loadProcedureType(){
showGrid({ showGrid({
id: "procedureType", id: "procedureType",
url: reqBasePath + "erpworkproceduretype008", url: flowableBasePath + "erpworkproceduretype008",
params: {}, params: {},
pagination: false, pagination: false,
template: selOption, template: selOption,
...@@ -78,7 +78,7 @@ layui.config({ ...@@ -78,7 +78,7 @@ layui.config({
}); });
params.procedureUserId = procedureUserId; params.procedureUserId = procedureUserId;
} }
AjaxPostUtil.request({url:reqBasePath + "erpworkprocedure002", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpworkprocedure002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -57,7 +57,7 @@ layui.config({ ...@@ -57,7 +57,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpworkprocedure006', url: flowableBasePath + 'erpworkprocedure006',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -111,7 +111,7 @@ layui.config({ ...@@ -111,7 +111,7 @@ layui.config({
var selectedData = tableCheckBoxUtil.getValue({ var selectedData = tableCheckBoxUtil.getValue({
gridId: 'messageTable' gridId: 'messageTable'
}); });
AjaxPostUtil.request({url:reqBasePath + "erpworkprocedure007", params: {ids: selectedData.toString()}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpworkprocedure007", params: {ids: selectedData.toString()}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.procedureMationList = [].concat(json.rows); parent.procedureMationList = [].concat(json.rows);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpworkprocedure008", url: flowableBasePath + "erpworkprocedure008",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/erpWorkProcedure/erpWorkProcedureDetailTemplate.tpl'), template: getFileContent('tpl/erpWorkProcedure/erpWorkProcedureDetailTemplate.tpl'),
......
...@@ -23,7 +23,7 @@ layui.config({ ...@@ -23,7 +23,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpworkprocedure003", url: flowableBasePath + "erpworkprocedure003",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/erpWorkProcedure/erpWorkProcedureEditTemplate.tpl'), template: getFileContent('tpl/erpWorkProcedure/erpWorkProcedureEditTemplate.tpl'),
...@@ -50,7 +50,7 @@ layui.config({ ...@@ -50,7 +50,7 @@ layui.config({
// 加载工序类别 // 加载工序类别
showGrid({ showGrid({
id: "procedureType", id: "procedureType",
url: reqBasePath + "erpworkproceduretype008", url: flowableBasePath + "erpworkproceduretype008",
params: {}, params: {},
pagination: false, pagination: false,
template: selOption, template: selOption,
...@@ -111,7 +111,7 @@ layui.config({ ...@@ -111,7 +111,7 @@ layui.config({
}); });
params.procedureUserId = procedureUserId; params.procedureUserId = procedureUserId;
} }
AjaxPostUtil.request({url:reqBasePath + "erpworkprocedure005", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpworkprocedure005", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -18,7 +18,7 @@ layui.config({ ...@@ -18,7 +18,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpworkprocedure001', url: flowableBasePath + 'erpworkprocedure001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -87,7 +87,7 @@ layui.config({ ...@@ -87,7 +87,7 @@ layui.config({
function deleteAccount(data){ function deleteAccount(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "erpworkprocedure004", params: {rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpworkprocedure004", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -17,7 +17,7 @@ layui.config({ ...@@ -17,7 +17,7 @@ layui.config({
var params = { var params = {
typeName: $("#typeName").val() typeName: $("#typeName").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "erpworkproceduretype002", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpworkproceduretype002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpworkproceduretype003", url: flowableBasePath + "erpworkproceduretype003",
params: {rowId:parent.rowId}, params: {rowId:parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/erpWorkProcedureType/erpWorkProcedureTypeEditTemplate.tpl'), template: getFileContent('tpl/erpWorkProcedureType/erpWorkProcedureTypeEditTemplate.tpl'),
...@@ -24,7 +24,7 @@ layui.config({ ...@@ -24,7 +24,7 @@ layui.config({
rowId: parent.rowId, rowId: parent.rowId,
typeName: $("#typeName").val() typeName: $("#typeName").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "erpworkproceduretype004", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpworkproceduretype004", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpworkproceduretype001', url: flowableBasePath + 'erpworkproceduretype001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -103,7 +103,7 @@ layui.config({ ...@@ -103,7 +103,7 @@ layui.config({
function delet(data){ function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "erpworkproceduretype007", params:{rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpworkproceduretype007", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -118,7 +118,7 @@ layui.config({ ...@@ -118,7 +118,7 @@ layui.config({
function up(data){ function up(data){
layer.confirm('确认启用选中数据吗?', { icon: 3, title: '启用操作' }, function (index) { layer.confirm('确认启用选中数据吗?', { icon: 3, title: '启用操作' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "erpworkproceduretype006", params:{rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpworkproceduretype006", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
...@@ -133,7 +133,7 @@ layui.config({ ...@@ -133,7 +133,7 @@ layui.config({
function down(data){ function down(data){
layer.confirm('确认禁用选中数据吗?', { icon: 3, title: '禁用操作' }, function (index) { layer.confirm('确认禁用选中数据吗?', { icon: 3, title: '禁用操作' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "erpworkproceduretype005", params:{rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:flowableBasePath + "erpworkproceduretype005", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册