提交 5590da3a 编写于 作者: doc_wei's avatar doc_wei

解决撤销流程申请404的问题

上级 f939048e
......@@ -93,7 +93,7 @@ layui.config({
var msg = '确认撤销该用品采购申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "assetarticles035", params: {processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "assetarticles035", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadCaigouTable();
......
......@@ -105,7 +105,7 @@ layui.config({
var msg = '确认撤销该用品领用申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "assetarticles034", params: {processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "assetarticles034", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadLingyongTable();
......
......@@ -101,7 +101,7 @@ layui.config({
var msg = '确认撤销该资产采购申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "asset037", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "asset037", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadCaigouTable();
......
......@@ -104,7 +104,7 @@ layui.config({
var msg = '确认撤销该资产归还申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "asset038", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "asset038", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadReturnTable();
......
......@@ -104,7 +104,7 @@ layui.config({
var msg = '确认撤销该资产领用申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "asset036", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "asset036", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadLingyongTable();
......
......@@ -95,7 +95,7 @@ layui.config({
var params = {
processInstanceId: data.processInstanceId
};
AjaxPostUtil.request({url: flowableBasePath + "conferenceroomreserve010", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "conferenceroomreserve010", params: params, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadReserveTable();
......
......@@ -92,7 +92,7 @@ layui.config({
var msg = '确认撤销该借用申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "licenceborrow010", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "licenceborrow010", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadBorrowTable();
......
......@@ -92,7 +92,7 @@ layui.config({
var msg = '确认撤销该归还申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "licencerevert010", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "licencerevert010", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadRevertTable();
......
......@@ -91,7 +91,7 @@ layui.config({
var msg = '确认撤销该借用申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作'}, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "sealborrow010", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "sealborrow010", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadBorrowTable();
......
......@@ -92,7 +92,7 @@ layui.config({
var msg = '确认撤销该归还申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "sealrevert010", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "sealrevert010", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadRevertTable();
......
......@@ -87,7 +87,7 @@ layui.config({
function revoke(data){
layer.confirm('确认撤销该用车申请吗?', {icon: 3, title: '撤销操作'}, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "vehicle022", params: {processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "vehicle022", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -106,7 +106,7 @@ layui.config({
function revoke(data){
layer.confirm('确认撤销该申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "checkworkbusinesstrip009", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "checkworkbusinesstrip009", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -106,7 +106,7 @@ layui.config({
function revoke(data){
layer.confirm('确认撤销该申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "checkworkcancelleave009", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "checkworkcancelleave009", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -106,7 +106,7 @@ layui.config({
function revoke(data){
layer.confirm('确认撤销该申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "checkworkleave009", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "checkworkleave009", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -106,7 +106,7 @@ layui.config({
function revoke(data){
layer.confirm('确认撤销该申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "checkworkovertime009", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "checkworkovertime009", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -101,7 +101,7 @@ layui.config({
function revoke(data){
layer.confirm('确认撤销该商机审批申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "opportunity027", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "opportunity027", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -99,7 +99,7 @@ layui.config({
function revoke(data){
layer.confirm('确认撤销该商机审批申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "opportunity027", params:{rowId: data.id, processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "opportunity027", params:{rowId: data.id, processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -161,7 +161,7 @@ layui.config({
function revorke(data){
layer.confirm('确认撤销该申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "income009", params: {processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "income009", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -87,7 +87,7 @@ layui.config({
var msg = '确认从工作流中撤销选中数据吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "procostexpense007", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "procostexpense007", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -152,7 +152,7 @@ layui.config({
function revoke(data){
layer.confirm("确定撤销申请吗?", {icon: 3, title: '撤销操作'}, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "proproject010", params: {processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "proproject010", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("撤销成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -88,7 +88,7 @@ layui.config({
var msg = '确认从工作流中撤销选中数据吗?';
layer.confirm(msg, { icon: 3, title: '撤销任务审批申请' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "proworkload005", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "proworkload005", params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
......
......@@ -168,7 +168,7 @@ var erpOrderUtil = {
processInstanceId: processInstanceId,
orderType: orderType
};
AjaxPostUtil.request({url: flowableBasePath + "erpcommon003", params: params, method: "GET", type: 'json', callback: function(json) {
AjaxPostUtil.request({url: flowableBasePath + "erpcommon003", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) {
winui.window.msg("撤销成功。", {icon: 1,time: 2000});
if(typeof(callback) == "function") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册