|
@@ -23,7 +23,7 @@ $(function () {
|
|
|
});
|
|
|
|
|
|
function updateJsonData(newVal, id) {
|
|
|
- postData('/construction/' + tender_id + '/log/' + log_id + '/save', { type: 'update_json', updateData: { key: id, value: newVal } }, function (result) {
|
|
|
+ postData(`/sp/${spid}/construction/${tender_id}/log/${log_id}/save`, { type: 'update_json', updateData: { key: id, value: newVal } }, function (result) {
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -94,7 +94,7 @@ $(function () {
|
|
|
$('dl').on('click', 'dd', function () {
|
|
|
const id = parseInt($(this).data('id'));
|
|
|
if (id) {
|
|
|
- postData('/construction/' + tender_id + '/log/' + log_id + '/save', { type: 'set_shenpi', uid: id }, function (result) {
|
|
|
+ postData(`/sp/${spid}/construction/${tender_id}/log/${log_id}/save`, { type: 'set_shenpi', uid: id }, function (result) {
|
|
|
$('#show-shenpi-btn').hide();
|
|
|
$('#show-shenpi span').text(result.shenpi_username);
|
|
|
$('#show-shenpi').show();
|
|
@@ -103,7 +103,7 @@ $(function () {
|
|
|
});
|
|
|
|
|
|
$('.remove-shenpi-btn').on('click', function () {
|
|
|
- postData('/construction/' + tender_id + '/log/' + log_id + '/save', { type: 'remove_shenpi' }, function (result) {
|
|
|
+ postData(`/sp/${spid}/construction/${tender_id}/log/${log_id}/save`, { type: 'remove_shenpi' }, function (result) {
|
|
|
$('#show-shenpi-btn').show();
|
|
|
$('#show-shenpi span').text('');
|
|
|
$('#show-shenpi').hide();
|
|
@@ -117,7 +117,7 @@ $(function () {
|
|
|
toastr.error('请选择审签人再提交');
|
|
|
return false;
|
|
|
}
|
|
|
- postData('/construction/' + tender_id + '/log/' + log_id + '/save', { type: 'start' }, function (result) {
|
|
|
+ postData(`/sp/${spid}/construction/${tender_id}/log/${log_id}/save`, { type: 'start' }, function (result) {
|
|
|
window.location.reload();
|
|
|
});
|
|
|
});
|
|
@@ -129,7 +129,7 @@ $(function () {
|
|
|
$('.edit-textarea').removeAttr('readonly');
|
|
|
$(this).siblings('span').hide();
|
|
|
$(this).parents('.title-main').append('<a href="javascript:void(0);" id="start-btn" class="btn btn-sm btn-primary pull-right mr-2">提交审签</a>');
|
|
|
- postData('/construction/' + tender_id + '/log/' + log_id + '/save', { type: 'checkNo' }, function (result) {
|
|
|
+ postData(`/sp/${spid}/construction/${tender_id}/log/${log_id}/save`, { type: 'checkNo' }, function (result) {
|
|
|
// window.location.reload();
|
|
|
});
|
|
|
});
|
|
@@ -142,7 +142,7 @@ $(function () {
|
|
|
// });
|
|
|
|
|
|
$('#check-btn').click(function () {
|
|
|
- postData('/construction/' + tender_id + '/log/' + log_id + '/save', { type: 'checked' }, function (result) {
|
|
|
+ postData(`/sp/${spid}/construction/${tender_id}/log/${log_id}/save`, { type: 'checked' }, function (result) {
|
|
|
window.location.reload();
|
|
|
});
|
|
|
});
|
|
@@ -173,7 +173,7 @@ $(function () {
|
|
|
toastr.error('无权限上传!');
|
|
|
return false;
|
|
|
}
|
|
|
- postDataWithFile('/construction/' + tender_id + '/log/' + log_id + '/file/upload', formData, function (data) {
|
|
|
+ postDataWithFile(`/sp/${spid}/construction/${tender_id}/log/${log_id}/file/upload`, formData, function (data) {
|
|
|
attData = data.concat(attData);
|
|
|
// 重新生成List
|
|
|
getAllList();
|
|
@@ -188,7 +188,7 @@ $(function () {
|
|
|
$('body').on('click', '.delete-file', function () {
|
|
|
let attid = $(this).data('attid');
|
|
|
const data = {id: attid};
|
|
|
- postData('/construction/' + tender_id + '/log/' + log_id + '/file/delete', data, function (result) {
|
|
|
+ postData(`/sp/${spid}/construction/${tender_id}/log/${log_id}/file/delete`, data, function (result) {
|
|
|
// 删除到attData中
|
|
|
const att_index = attData.findIndex(function (item) {
|
|
|
return item.id === parseInt(attid);
|
|
@@ -215,7 +215,7 @@ $(function () {
|
|
|
<td class="text-left"><a href="${att.filepath}" target="_blank">${att.filename}${att.fileext}</a></td>
|
|
|
<td width="15%">${moment(att.upload_time).format("YYYY-MM-DD HH:mm:ss")}</td>
|
|
|
<td width="10%">
|
|
|
- <a href="/construction/${tender_id}/log/${log_id}/file/${att.id}/download" class="mr-2" title="下载"><span class="fa fa-download text-primary"></span></a>`
|
|
|
+ <a href="/sp/${spid}/construction/${tender_id}/log/${log_id}/file/${att.id}/download" class="mr-2" title="下载"><span class="fa fa-download text-primary"></span></a>`
|
|
|
html += (att.uid === accountId && (logStatus === constructionStatusConst.checked ? Boolean(att.extra_upload) : true)) ?
|
|
|
`<a href="javascript:void(0)" class="mr-2 delete-file" data-attid="${att.id}" title="删除附件"><span class="fa fa-trash text-danger"></span></a>` : '';
|
|
|
html += `</td>`;
|