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

ERP整改

上级 9843bfd0
...@@ -27,7 +27,7 @@ layui.config({ ...@@ -27,7 +27,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'statistics005', url: flowableBasePath + 'statistics005',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -42,7 +42,7 @@ layui.config({ ...@@ -42,7 +42,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'statistics007', url: flowableBasePath + 'statistics007',
where: {materialName: $("#materialName").val(), operTime: operTime}, where: {materialName: $("#materialName").val(), operTime: operTime},
even: true, even: true,
page: true, page: true,
......
...@@ -40,7 +40,7 @@ layui.config({ ...@@ -40,7 +40,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'statistics003', url: flowableBasePath + 'statistics003',
where: {materialName: $("#materialName").val(), operTime: operTime}, where: {materialName: $("#materialName").val(), operTime: operTime},
even: true, even: true,
page: true, page: true,
......
...@@ -59,7 +59,7 @@ layui.config({ ...@@ -59,7 +59,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'statistics002', url: flowableBasePath + 'statistics002',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -41,7 +41,7 @@ layui.config({ ...@@ -41,7 +41,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'statistics008', url: flowableBasePath + 'statistics008',
where: {materialName: $("#materialName").val(), operTime: operTime}, where: {materialName: $("#materialName").val(), operTime: operTime},
even: true, even: true,
page: true, page: true,
......
...@@ -41,7 +41,7 @@ layui.config({ ...@@ -41,7 +41,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'statistics004', url: flowableBasePath + 'statistics004',
where: {materialName: $("#materialName").val(), operTime: operTime}, where: {materialName: $("#materialName").val(), operTime: operTime},
even: true, even: true,
page: true, page: true,
......
...@@ -41,7 +41,7 @@ layui.config({ ...@@ -41,7 +41,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'statistics006', url: flowableBasePath + 'statistics006',
where: {operTime: operTime, organName: $("#organName").val()}, where: {operTime: operTime, organName: $("#organName").val()},
even: true, even: true,
page: true, page: true,
......
...@@ -68,7 +68,7 @@ layui.config({ ...@@ -68,7 +68,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'statistics001', url: flowableBasePath + 'statistics001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -191,7 +191,7 @@ layui.config({ ...@@ -191,7 +191,7 @@ layui.config({
subType: subType, subType: subType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "otheroutlets002", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "otheroutlets002", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -58,7 +58,7 @@ layui.config({ ...@@ -58,7 +58,7 @@ layui.config({
//渲染数据到页面 //渲染数据到页面
function initDataToShow(){ function initDataToShow(){
AjaxPostUtil.request({url: reqBasePath + "otheroutlets003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "otheroutlets003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
submitType = json.bean.submitType; submitType = json.bean.submitType;
...@@ -262,7 +262,7 @@ layui.config({ ...@@ -262,7 +262,7 @@ layui.config({
approvalId: approvalId, approvalId: approvalId,
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "otheroutlets004", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "otheroutlets004", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -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 + 'otheroutlets001', url: flowableBasePath + 'otheroutlets001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -160,7 +160,7 @@ layui.config({ ...@@ -160,7 +160,7 @@ layui.config({
// 导出excel // 导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'otheroutlets005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'otheroutlets005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -177,7 +177,7 @@ layui.config({ ...@@ -177,7 +177,7 @@ layui.config({
subType: subType, subType: subType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "otherwarehous002", params: params, type: 'json', method: "POST", callback: function (json) { AjaxPostUtil.request({url: flowableBasePath + "otherwarehous002", params: params, type: 'json', method: "POST", callback: function (json) {
if (json.returnCode == 0) { if (json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -55,7 +55,7 @@ layui.config({ ...@@ -55,7 +55,7 @@ layui.config({
//渲染数据到页面 //渲染数据到页面
function initDataToShow(){ function initDataToShow(){
AjaxPostUtil.request({url: reqBasePath + "otherwarehous003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "otherwarehous003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
submitType = json.bean.submitType; submitType = json.bean.submitType;
...@@ -247,7 +247,7 @@ layui.config({ ...@@ -247,7 +247,7 @@ layui.config({
approvalId: approvalId, approvalId: approvalId,
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "otherwarehous004", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "otherwarehous004", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -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 + 'otherwarehous001', url: flowableBasePath + 'otherwarehous001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -160,7 +160,7 @@ layui.config({ ...@@ -160,7 +160,7 @@ layui.config({
// 导出excel // 导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'otherwarehous005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'otherwarehous005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -182,7 +182,7 @@ layui.config({ ...@@ -182,7 +182,7 @@ layui.config({
subType: subType, subType: subType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "purchaseorder002", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchaseorder002", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -60,7 +60,7 @@ layui.config({ ...@@ -60,7 +60,7 @@ layui.config({
//渲染数据到页面 //渲染数据到页面
function initDataToShow(){ function initDataToShow(){
AjaxPostUtil.request({url: reqBasePath + "purchaseorder004", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchaseorder004", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
submitType = json.bean.submitType; submitType = json.bean.submitType;
// 供应商信息赋值 // 供应商信息赋值
...@@ -255,7 +255,7 @@ layui.config({ ...@@ -255,7 +255,7 @@ layui.config({
approvalId: approvalId, approvalId: approvalId,
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "purchaseorder005", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchaseorder005", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -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 + 'purchaseorder001', url: flowableBasePath + 'purchaseorder001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -204,7 +204,7 @@ layui.config({ ...@@ -204,7 +204,7 @@ layui.config({
// 导出excel // 导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'purchaseorder010?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'purchaseorder010?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -69,7 +69,7 @@ layui.config({ ...@@ -69,7 +69,7 @@ layui.config({
// 初始化回显数据 // 初始化回显数据
function initDataShow(){ function initDataShow(){
AjaxPostUtil.request({url: reqBasePath + "purchaseorder008", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchaseorder008", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
if(isNull(json.bean)){ if(isNull(json.bean)){
$("#showForm").html(""); $("#showForm").html("");
...@@ -292,7 +292,7 @@ layui.config({ ...@@ -292,7 +292,7 @@ layui.config({
} }
function sendRequest(params){ function sendRequest(params){
AjaxPostUtil.request({url: reqBasePath + "purchaseorder009", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchaseorder009", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -205,7 +205,7 @@ layui.config({ ...@@ -205,7 +205,7 @@ layui.config({
subType: subType, subType: subType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "purchaseput002", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchaseput002", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -64,7 +64,7 @@ layui.config({ ...@@ -64,7 +64,7 @@ layui.config({
//初始化回显数据 //初始化回显数据
function initDataShow(){ function initDataShow(){
AjaxPostUtil.request({url: reqBasePath + "purchaseput003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchaseput003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
submitType = json.bean.submitType; submitType = json.bean.submitType;
...@@ -288,7 +288,7 @@ layui.config({ ...@@ -288,7 +288,7 @@ layui.config({
approvalId: approvalId, approvalId: approvalId,
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "purchaseput004", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchaseput004", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -25,7 +25,7 @@ layui.config({ ...@@ -25,7 +25,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'purchaseput001', url: flowableBasePath + 'purchaseput001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -180,7 +180,7 @@ layui.config({ ...@@ -180,7 +180,7 @@ layui.config({
// 导出excel // 导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'purchaseput005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'purchaseput005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -207,7 +207,7 @@ layui.config({ ...@@ -207,7 +207,7 @@ layui.config({
subType: subType, subType: subType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "purchasereturns002", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchasereturns002", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -66,7 +66,7 @@ layui.config({ ...@@ -66,7 +66,7 @@ layui.config({
//初始化回显数据 //初始化回显数据
function initDataShow(){ function initDataShow(){
AjaxPostUtil.request({url: reqBasePath + "purchasereturns003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchasereturns003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
submitType = json.bean.submitType; submitType = json.bean.submitType;
...@@ -283,7 +283,7 @@ layui.config({ ...@@ -283,7 +283,7 @@ layui.config({
approvalId: approvalId, approvalId: approvalId,
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "purchasereturns004", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "purchasereturns004", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -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 + 'purchasereturns001', url: flowableBasePath + 'purchasereturns001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -169,7 +169,7 @@ layui.config({ ...@@ -169,7 +169,7 @@ layui.config({
// 导出excel // 导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'purchasereturns005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'purchasereturns005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -233,7 +233,7 @@ layui.config({ ...@@ -233,7 +233,7 @@ layui.config({
subType: subType, subType: subType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "retailoutlet002", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "retailoutlet002", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -34,7 +34,7 @@ layui.config({ ...@@ -34,7 +34,7 @@ layui.config({
var orderObject = []; var orderObject = [];
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "retailoutlet003", url: flowableBasePath + "retailoutlet003",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
...@@ -294,7 +294,7 @@ layui.config({ ...@@ -294,7 +294,7 @@ layui.config({
approvalId: approvalId, approvalId: approvalId,
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "retailoutlet004", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "retailoutlet004", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -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 + 'retailoutlet001', url: flowableBasePath + 'retailoutlet001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -161,7 +161,7 @@ layui.config({ ...@@ -161,7 +161,7 @@ layui.config({
// 导出excel // 导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'retailoutlet005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'retailoutlet005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -231,7 +231,7 @@ layui.config({ ...@@ -231,7 +231,7 @@ layui.config({
subType: subType, subType: subType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "retailreturns002", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "retailreturns002", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -34,7 +34,7 @@ layui.config({ ...@@ -34,7 +34,7 @@ layui.config({
var orderObject = []; var orderObject = [];
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "retailreturns003", url: flowableBasePath + "retailreturns003",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
...@@ -292,7 +292,7 @@ layui.config({ ...@@ -292,7 +292,7 @@ layui.config({
approvalId: approvalId, approvalId: approvalId,
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "retailreturns004", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "retailreturns004", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -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 + 'retailreturns001', url: flowableBasePath + 'retailreturns001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -161,7 +161,7 @@ layui.config({ ...@@ -161,7 +161,7 @@ layui.config({
//导出excel //导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'retailreturns005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'retailreturns005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -71,7 +71,7 @@ layui.config({ ...@@ -71,7 +71,7 @@ layui.config({
lateProduceTime: $("#lateProduceTime").val(), lateProduceTime: $("#lateProduceTime").val(),
lateQualityTime: $("#lateQualityTime").val() lateQualityTime: $("#lateQualityTime").val()
}; };
AjaxPostUtil.request({url: reqBasePath + "erpordersaleoverplan002", params: params, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "erpordersaleoverplan002", 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';
......
...@@ -22,7 +22,7 @@ layui.config({ ...@@ -22,7 +22,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpordersaleoverplan001', url: flowableBasePath + 'erpordersaleoverplan001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -67,7 +67,7 @@ layui.config({ ...@@ -67,7 +67,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'salesorder012', url: flowableBasePath + 'salesorder012',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: false, page: false,
......
...@@ -215,7 +215,7 @@ layui.config({ ...@@ -215,7 +215,7 @@ layui.config({
subType: subType, subType: subType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "salesorder002", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesorder002", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -42,7 +42,7 @@ layui.config({ ...@@ -42,7 +42,7 @@ layui.config({
// 加载统筹信息 // 加载统筹信息
function loadOverPlan(){ function loadOverPlan(){
AjaxPostUtil.request({url: reqBasePath + "erpordersaleoverplan003", params: {rowId: parent.rowId}, type: 'json', method: 'GET', callback: function(data) { AjaxPostUtil.request({url: flowableBasePath + "erpordersaleoverplan003", params: {rowId: parent.rowId}, type: 'json', method: 'GET', callback: function(data) {
if(data.returnCode == 0) { if(data.returnCode == 0) {
$("#showForm").append(getDataUseHandlebars($("#overPlanTemplate").html(), data)); $("#showForm").append(getDataUseHandlebars($("#overPlanTemplate").html(), data));
} else { } else {
......
...@@ -69,7 +69,7 @@ layui.config({ ...@@ -69,7 +69,7 @@ layui.config({
// 初始化回显数据 // 初始化回显数据
function initDataShow(){ function initDataShow(){
AjaxPostUtil.request({url: reqBasePath + "salesorder004", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesorder004", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
submitType = json.bean.submitType; submitType = json.bean.submitType;
// 客户信息赋值 // 客户信息赋值
...@@ -314,7 +314,7 @@ layui.config({ ...@@ -314,7 +314,7 @@ layui.config({
approvalId: approvalId, approvalId: approvalId,
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "salesorder005", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesorder005", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -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 + 'salesorder001', url: flowableBasePath + 'salesorder001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -186,7 +186,7 @@ layui.config({ ...@@ -186,7 +186,7 @@ layui.config({
// 导出excel // 导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'salesorder010?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'salesorder010?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -79,7 +79,7 @@ layui.config({ ...@@ -79,7 +79,7 @@ layui.config({
//初始化回显数据 //初始化回显数据
function initDataShow(){ function initDataShow(){
AjaxPostUtil.request({url: reqBasePath + "salesorder008", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesorder008", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
if(isNull(json.bean)){ if(isNull(json.bean)){
$("#showForm").html(""); $("#showForm").html("");
...@@ -333,7 +333,7 @@ layui.config({ ...@@ -333,7 +333,7 @@ layui.config({
} }
function sendRequest(params){ function sendRequest(params){
AjaxPostUtil.request({url: reqBasePath + "salesorder009", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesorder009", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -224,7 +224,7 @@ layui.config({ ...@@ -224,7 +224,7 @@ layui.config({
subType: subType, subType: subType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "salesoutlet002", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesoutlet002", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -75,7 +75,7 @@ layui.config({ ...@@ -75,7 +75,7 @@ layui.config({
// 初始化回显数据 // 初始化回显数据
function initDataShow(){ function initDataShow(){
AjaxPostUtil.request({url: reqBasePath + "salesoutlet003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesoutlet003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
submitType = json.bean.submitType; submitType = json.bean.submitType;
// 客户信息赋值 // 客户信息赋值
...@@ -325,7 +325,7 @@ layui.config({ ...@@ -325,7 +325,7 @@ layui.config({
approvalId: approvalId, approvalId: approvalId,
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "salesoutlet004", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesoutlet004", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -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 + 'salesoutlet001', url: flowableBasePath + 'salesoutlet001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -172,7 +172,7 @@ layui.config({ ...@@ -172,7 +172,7 @@ layui.config({
//导出excel //导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'salesoutlet005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'salesoutlet005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -225,7 +225,7 @@ layui.config({ ...@@ -225,7 +225,7 @@ layui.config({
subType: subType, subType: subType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "salesreturns002", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesreturns002", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -75,7 +75,7 @@ layui.config({ ...@@ -75,7 +75,7 @@ layui.config({
// 初始化回显数据 // 初始化回显数据
function initDataShow(){ function initDataShow(){
AjaxPostUtil.request({url: reqBasePath + "salesreturns003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesreturns003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
submitType = json.bean.submitType; submitType = json.bean.submitType;
// 客户信息赋值 // 客户信息赋值
...@@ -325,7 +325,7 @@ layui.config({ ...@@ -325,7 +325,7 @@ layui.config({
approvalId: approvalId, approvalId: approvalId,
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "salesreturns004", params: params, type: 'json', method: "PUT", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "salesreturns004", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.savePageData("dsFormShow", json.bean.id); dsFormUtil.savePageData("dsFormShow", json.bean.id);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -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 + 'salesreturns001', url: flowableBasePath + 'salesreturns001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -172,7 +172,7 @@ layui.config({ ...@@ -172,7 +172,7 @@ layui.config({
// 导出excel // 导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'salesreturns005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'salesreturns005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -198,7 +198,7 @@ layui.config({ ...@@ -198,7 +198,7 @@ layui.config({
remark: $("#remark").val(), remark: $("#remark").val(),
depotheadStr: JSON.stringify(tableData) depotheadStr: JSON.stringify(tableData)
}; };
AjaxPostUtil.request({url: reqBasePath + "splitlist002", params: params, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "splitlist002", 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';
......
...@@ -26,7 +26,7 @@ layui.config({ ...@@ -26,7 +26,7 @@ layui.config({
var orderObject = []; var orderObject = [];
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "splitlist003", url: flowableBasePath + "splitlist003",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
...@@ -244,7 +244,7 @@ layui.config({ ...@@ -244,7 +244,7 @@ layui.config({
depotheadStr: JSON.stringify(tableData), depotheadStr: JSON.stringify(tableData),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "splitlist004", params: params, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "splitlist004", 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';
......
...@@ -43,12 +43,12 @@ layui.config({ ...@@ -43,12 +43,12 @@ layui.config({
status: $("input[name='flag']:checked").val(), status: $("input[name='flag']:checked").val(),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "storehouseapproval006", params: jStr, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "storehouseapproval006", 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';
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
......
...@@ -28,7 +28,7 @@ layui.config({ ...@@ -28,7 +28,7 @@ layui.config({
initDepotHtml(); initDepotHtml();
//初始化仓库 //初始化仓库
function initDepotHtml() { function initDepotHtml() {
AjaxPostUtil.request({url: reqBasePath + "storehouse009", params: {}, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "storehouse009", params: {}, type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
//加载仓库数据 //加载仓库数据
$("#depotId").html(getDataUseHandlebars(selOption, json)); $("#depotId").html(getDataUseHandlebars(selOption, json));
...@@ -49,7 +49,7 @@ layui.config({ ...@@ -49,7 +49,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'storehouseapproval005', url: flowableBasePath + 'storehouseapproval005',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -28,7 +28,7 @@ layui.config({ ...@@ -28,7 +28,7 @@ layui.config({
initDepotHtml(); initDepotHtml();
//初始化仓库 //初始化仓库
function initDepotHtml() { function initDepotHtml() {
AjaxPostUtil.request({url: reqBasePath + "storehouse009", params: {}, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "storehouse009", params: {}, type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
//加载仓库数据 //加载仓库数据
$("#depotId").html(getDataUseHandlebars(selOption, json)); $("#depotId").html(getDataUseHandlebars(selOption, json));
...@@ -49,7 +49,7 @@ layui.config({ ...@@ -49,7 +49,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'storehouseapproval009', url: flowableBasePath + 'storehouseapproval009',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -18,7 +18,7 @@ layui.config({ ...@@ -18,7 +18,7 @@ layui.config({
done: function(page, next) { //到达临界点(默认滚动触发),触发下一页 done: function(page, next) { //到达临界点(默认滚动触发),触发下一页
var lis = []; var lis = [];
//以jQuery的Ajax请求为例,请求下一页数据(注意:page是从2开始返回) //以jQuery的Ajax请求为例,请求下一页数据(注意:page是从2开始返回)
AjaxPostUtil.request({url:reqBasePath + "erpstockinventory003", params:{page: page, limit: 15, normsId: parent.normsId, depotId: parent.depotId}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "erpstockinventory003", params: {page: page, limit: 15, normsId: parent.normsId, depotId: parent.depotId}, type: 'json', callback:function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
var jsonStr = "";//实体json对象 var jsonStr = "";//实体json对象
$.each(json.rows, function(index, bean) { $.each(json.rows, function(index, bean) {
...@@ -32,7 +32,7 @@ layui.config({ ...@@ -32,7 +32,7 @@ layui.config({
//pages为Ajax返回的总页数,只有当前页小于总页数的情况下,才会继续出现加载更多 //pages为Ajax返回的总页数,只有当前页小于总页数的情况下,才会继续出现加载更多
next(lis.join(''), (page * 1000) < json.total); next(lis.join(''), (page * 1000) < json.total);
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
} }
......
...@@ -24,7 +24,7 @@ layui.config({ ...@@ -24,7 +24,7 @@ layui.config({
initDepotHtml(); initDepotHtml();
//初始化仓库 //初始化仓库
function initDepotHtml() { function initDepotHtml() {
AjaxPostUtil.request({url: reqBasePath + "storehouse009", params: {}, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "storehouse009", params: {}, type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
//加载仓库数据 //加载仓库数据
$("#depotId").html(getDataUseHandlebars(selOption, json)); $("#depotId").html(getDataUseHandlebars(selOption, json));
...@@ -46,7 +46,7 @@ layui.config({ ...@@ -46,7 +46,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'erpstockinventory002', url: flowableBasePath + 'erpstockinventory002',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -116,7 +116,7 @@ layui.config({ ...@@ -116,7 +116,7 @@ layui.config({
number: value, number: value,
depotId: data.depotId depotId: data.depotId
}; };
AjaxPostUtil.request({url: reqBasePath + "erpstockinventory001", params: params, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "erpstockinventory001", params: params, 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});
} else { } else {
......
...@@ -47,12 +47,12 @@ layui.config({ ...@@ -47,12 +47,12 @@ layui.config({
params.principal = userId; params.principal = userId;
} }
AjaxPostUtil.request({url:reqBasePath + "storehouse002", params:params, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "storehouse002", 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';
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
} }
......
...@@ -20,7 +20,7 @@ layui.config({ ...@@ -20,7 +20,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "storehouse003", url: flowableBasePath + "storehouse003",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: $("#beanTemplate").html(), template: $("#beanTemplate").html(),
...@@ -86,12 +86,12 @@ layui.config({ ...@@ -86,12 +86,12 @@ layui.config({
params.principal = userId; params.principal = userId;
} }
AjaxPostUtil.request({url:reqBasePath + "storehouse005", params:params, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "storehouse005", 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';
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
} }
......
...@@ -11,7 +11,7 @@ layui.config({ ...@@ -11,7 +11,7 @@ layui.config({
var simpleTemplate = $("#simpleTemplate").html(); var simpleTemplate = $("#simpleTemplate").html();
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "storehouse007", url: flowableBasePath + "storehouse007",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: simpleTemplate, template: simpleTemplate,
......
...@@ -16,7 +16,7 @@ layui.config({ ...@@ -16,7 +16,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'storehouse001', url: flowableBasePath + 'storehouse001',
where: {houseName:$("#houseName").val()}, where: {houseName:$("#houseName").val()},
even: true, even: true,
page: true, page: true,
...@@ -95,12 +95,12 @@ layui.config({ ...@@ -95,12 +95,12 @@ layui.config({
var params = { var params = {
rowId: data.id rowId: data.id
}; };
AjaxPostUtil.request({url:reqBasePath + "storehouse004", params:params, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "storehouse004", params: params, 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();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
...@@ -112,12 +112,12 @@ layui.config({ ...@@ -112,12 +112,12 @@ layui.config({
var params = { var params = {
rowId: data.id rowId: data.id
}; };
AjaxPostUtil.request({url:reqBasePath + "storehouse006", params:params, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "storehouse006", params: params, 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();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
......
...@@ -16,7 +16,7 @@ layui.config({ ...@@ -16,7 +16,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'supplier009', url: flowableBasePath + 'supplier009',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -39,12 +39,12 @@ layui.config({ ...@@ -39,12 +39,12 @@ layui.config({
accountNumber: $("#accountNumber").val(), accountNumber: $("#accountNumber").val(),
taxRate: isNull($("#taxRate").val()) ? '0' : $("#taxRate").val() taxRate: isNull($("#taxRate").val()) ? '0' : $("#taxRate").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "supplier002", params:params, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "supplier002", 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';
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
} }
......
...@@ -11,8 +11,8 @@ layui.config({ ...@@ -11,8 +11,8 @@ layui.config({
textool = layui.textool; textool = layui.textool;
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "supplier003", url: flowableBasePath + "supplier003",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/supplier/suppliereditTemplate.tpl'), template: getFileContent('tpl/supplier/suppliereditTemplate.tpl'),
ajaxSendLoadBefore: function(hdb){}, ajaxSendLoadBefore: function(hdb){},
...@@ -48,12 +48,12 @@ layui.config({ ...@@ -48,12 +48,12 @@ layui.config({
accountNumber: $("#accountNumber").val(), accountNumber: $("#accountNumber").val(),
taxRate: isNull($("#taxRate").val()) ? '0' : $("#taxRate").val() taxRate: isNull($("#taxRate").val()) ? '0' : $("#taxRate").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "supplier005", params:params, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "supplier005", 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';
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
} }
......
...@@ -11,7 +11,7 @@ layui.config({ ...@@ -11,7 +11,7 @@ layui.config({
var simpleTemplate = $("#simpleTemplate").html(); var simpleTemplate = $("#simpleTemplate").html();
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "supplier008", url: flowableBasePath + "supplier008",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: simpleTemplate, template: simpleTemplate,
......
...@@ -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 + 'supplier001', url: flowableBasePath + 'supplier001',
where: {supplierName:$("#supplierName").val(), where: {supplierName:$("#supplierName").val(),
telephone: $("#telephone").val(), telephone: $("#telephone").val(),
email: $("#email").val(), email: $("#email").val(),
...@@ -109,12 +109,12 @@ layui.config({ ...@@ -109,12 +109,12 @@ layui.config({
function deleteSupplier(data){ function deleteSupplier(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 + "supplier004", params: {rowId: data.id}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "supplier004", 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();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
...@@ -123,12 +123,12 @@ layui.config({ ...@@ -123,12 +123,12 @@ layui.config({
//设置启用状态 //设置启用状态
function editEnabled(data){ function editEnabled(data){
layer.confirm('确认要更改该供应商为启用状态吗?', { icon: 3, title: '状态变更' }, function (index) { layer.confirm('确认要更改该供应商为启用状态吗?', { icon: 3, title: '状态变更' }, function (index) {
AjaxPostUtil.request({url:reqBasePath + "supplier006", params: {rowId: data.id}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "supplier006", 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();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
...@@ -137,12 +137,12 @@ layui.config({ ...@@ -137,12 +137,12 @@ layui.config({
//设置禁用状态 //设置禁用状态
function editNotEnabled(data){ function editNotEnabled(data){
layer.confirm('确认要更改该供应商为禁用状态吗?', { icon: 3, title: '状态变更' }, function (index) { layer.confirm('确认要更改该供应商为禁用状态吗?', { icon: 3, title: '状态变更' }, function (index) {
AjaxPostUtil.request({url:reqBasePath + "supplier007", params: {rowId: data.id}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "supplier007", 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();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册