|
@@ -31,7 +31,7 @@ $(function () {
|
|
if (used) {
|
|
if (used) {
|
|
routes.push('used=' + used);
|
|
routes.push('used=' + used);
|
|
}
|
|
}
|
|
- window.location.href = '/financial/' + spid + '/pay' + (routes.length ? '?' + routes.join('&') : '');
|
|
|
|
|
|
+ window.location.href = `/sp/${spid}/financial/pay` + (routes.length ? '?' + routes.join('&') : '');
|
|
}
|
|
}
|
|
|
|
|
|
let timer = null
|
|
let timer = null
|
|
@@ -248,7 +248,7 @@ $(function () {
|
|
const id = parseInt($(this).data('id'));
|
|
const id = parseInt($(this).data('id'));
|
|
if (!id) return;
|
|
if (!id) return;
|
|
if (!isNaN(id) && id !== 0) {
|
|
if (!isNaN(id) && id !== 0) {
|
|
- postData('/financial/'+ spid + '/pay/save', {type: 'add-tender-audit', id: id, tid: tender.id }, function (result) {
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, {type: 'add-tender-audit', id: id, tid: tender.id }, function (result) {
|
|
tender.permissionList = result;
|
|
tender.permissionList = result;
|
|
auditUtils.makeReportListHtml(tender);
|
|
auditUtils.makeReportListHtml(tender);
|
|
})
|
|
})
|
|
@@ -265,7 +265,7 @@ $(function () {
|
|
}
|
|
}
|
|
const id = parseInt($(this).data('id'));
|
|
const id = parseInt($(this).data('id'));
|
|
deleteAfterHint(function () {
|
|
deleteAfterHint(function () {
|
|
- postData('/financial/'+ spid + '/pay/save', {type: 'del-tender-audit', id, tid: tender.id }, function (result) {
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, {type: 'del-tender-audit', id, tid: tender.id }, function (result) {
|
|
tender.permissionList = result.permissionList;
|
|
tender.permissionList = result.permissionList;
|
|
tender.auditGroupList = result.auditGroupList;
|
|
tender.auditGroupList = result.auditGroupList;
|
|
auditUtils.makeReportListHtml(tender);
|
|
auditUtils.makeReportListHtml(tender);
|
|
@@ -289,7 +289,7 @@ $(function () {
|
|
toastr.error('该用户不存在');
|
|
toastr.error('该用户不存在');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- postData('/financial/'+ spid + '/pay/save', {type: 'save-permission', updateData: { id, is_report: isReport } }, function (result) {
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, {type: 'save-permission', updateData: { id, is_report: isReport } }, function (result) {
|
|
permission.is_report = isReport;
|
|
permission.is_report = isReport;
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -314,7 +314,7 @@ $(function () {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
deleteAfterHint(function () {
|
|
deleteAfterHint(function () {
|
|
- postData('/financial/'+ spid + '/pay/save', {type: 'del-tender-audit', id: ids, tid: tender.id }, function (result) {
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, {type: 'del-tender-audit', id: ids, tid: tender.id }, function (result) {
|
|
tender.permissionList = result.permissionList;
|
|
tender.permissionList = result.permissionList;
|
|
tender.auditGroupList = result.auditGroupList;
|
|
tender.auditGroupList = result.auditGroupList;
|
|
auditUtils.makeReportListHtml(tender);
|
|
auditUtils.makeReportListHtml(tender);
|
|
@@ -356,7 +356,7 @@ $(function () {
|
|
this_tid: tender.id,
|
|
this_tid: tender.id,
|
|
}
|
|
}
|
|
data.tidList = tenderList.join(',');
|
|
data.tidList = tenderList.join(',');
|
|
- postData('/financial/'+ spid + '/pay/save', data, function (result) {
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, data, function (result) {
|
|
toastr.success('已同步到其它勾选标段');
|
|
toastr.success('已同步到其它勾选标段');
|
|
for (let i = 0; i < num; i++) {
|
|
for (let i = 0; i < num; i++) {
|
|
const tid = parseInt($('#shenpi-tender-list input:checked').eq(i).parents('tr').data('tid'));
|
|
const tid = parseInt($('#shenpi-tender-list input:checked').eq(i).parents('tr').data('tid'));
|
|
@@ -402,7 +402,7 @@ $(function () {
|
|
audit_order: $(this).parents('li').index() + 1,
|
|
audit_order: $(this).parents('li').index() + 1,
|
|
};
|
|
};
|
|
const _self = $(this);
|
|
const _self = $(this);
|
|
- postData('/financial/' + spid + '/pay/save', { type: 'add-shenpi-audit', shenpi: prop, tid }, function (result) {
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, { type: 'add-shenpi-audit', shenpi: prop, tid }, function (result) {
|
|
const data = result.shenpi;
|
|
const data = result.shenpi;
|
|
const auditGroup = auditUtils.addAudit(tender, { audit_id: data.audit_id, name: user.name, audit_type: data.audit_type, audit_order: data.audit_order }, prop.audit_order - 1);
|
|
const auditGroup = auditUtils.addAudit(tender, { audit_id: data.audit_id, name: user.name, audit_type: data.audit_type, audit_order: data.audit_order }, prop.audit_order - 1);
|
|
if (_self.parents('ul').find('.add-audit').length === 0) {
|
|
if (_self.parents('ul').find('.add-audit').length === 0) {
|
|
@@ -534,7 +534,7 @@ $(function () {
|
|
}
|
|
}
|
|
data.tidList = tenderList.join(',');
|
|
data.tidList = tenderList.join(',');
|
|
console.log(data);
|
|
console.log(data);
|
|
- postData('/financial/' + spid + '/pay/save', data, function (result) {
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, data, function (result) {
|
|
toastr.success('已同步到其它勾选标段');
|
|
toastr.success('已同步到其它勾选标段');
|
|
for (let i = 0; i < num; i++) {
|
|
for (let i = 0; i < num; i++) {
|
|
const tid = parseInt($('#shenpi-tender-list input:checked').eq(i).parents('tr').data('tid'));
|
|
const tid = parseInt($('#shenpi-tender-list input:checked').eq(i).parents('tr').data('tid'));
|
|
@@ -605,15 +605,15 @@ $(function () {
|
|
code: code,
|
|
code: code,
|
|
used: $('#add-pay-used').val(),
|
|
used: $('#add-pay-used').val(),
|
|
};
|
|
};
|
|
- postData('/financial/'+ spid + '/pay/save', { type: 'add-pay', updateData: prop }, function (result) {
|
|
|
|
- window.location.href = '/financial/' + spid + '/pay/' + result.id + '/detail';
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, { type: 'add-pay', updateData: prop }, function (result) {
|
|
|
|
+ window.location.href = `/sp/${spid}/financial/pay/${result.id}/detail`;
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
$('body').on('click', '#pay-list .del-pay-btn', function () {
|
|
$('body').on('click', '#pay-list .del-pay-btn', function () {
|
|
const fpid = $(this).data('id');
|
|
const fpid = $(this).data('id');
|
|
deleteAfterHint(function () {
|
|
deleteAfterHint(function () {
|
|
- postData('/financial/'+ spid + '/pay/save', {type: 'del-pay', postData: { node: fpid }}, function (result) {
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, {type: 'del-pay', postData: { node: fpid }}, function (result) {
|
|
window.location.reload();
|
|
window.location.reload();
|
|
})
|
|
})
|
|
}, '确认删除该资金支付?');
|
|
}, '确认删除该资金支付?');
|
|
@@ -709,7 +709,7 @@ $(function () {
|
|
toastr.error('请填写开户账号');
|
|
toastr.error('请填写开户账号');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- postData('/financial/'+ spid + '/pay/save', { type: 'set-pay-tender', updateData: data }, function (result) {
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, { type: 'set-pay-tender', updateData: data }, function (result) {
|
|
toastr.success('保存成功');
|
|
toastr.success('保存成功');
|
|
tender.pt = result;
|
|
tender.pt = result;
|
|
});
|
|
});
|
|
@@ -768,7 +768,7 @@ $(function () {
|
|
type: 'get-auditors',
|
|
type: 'get-auditors',
|
|
id: $(this).attr('c-id'),
|
|
id: $(this).attr('c-id'),
|
|
};
|
|
};
|
|
- postData('/financial/'+ spid + '/pay/save', data, function (result) {
|
|
|
|
|
|
+ postData(`/sp/${spid}/financial/pay/save`, data, function (result) {
|
|
const { auditHistory, auditors2, user } = result;
|
|
const { auditHistory, auditors2, user } = result;
|
|
let auditorsHTML = [];
|
|
let auditorsHTML = [];
|
|
auditors2.forEach((group, idx) => {
|
|
auditors2.forEach((group, idx) => {
|