审核上传特批文件

dev_2.0.2
‘wangjiuyun 2024-12-26 10:11:56 +08:00
parent 433928a444
commit d4aed274eb
2 changed files with 69 additions and 6 deletions

View File

@ -264,7 +264,7 @@
<input readonly value=""/>
</#if>
</td>
<td colspan="3"></td>
<td colspan="3"></td>
</tr>
<tr class="am-text-nowrap">
@ -616,7 +616,8 @@
<input readonly value=""/>
</#if>
</td>
<th class="table-title" colspan="1"><span style="font-size: 15px">解决方案协同:</span>
<th class="table-title" colspan="1"><span
style="font-size: 15px">解决方案协同:</span>
</th>
<td class="table-title" colspan="2">
<#if projectBudget.resolvePlanSynergy??>
@ -3287,8 +3288,10 @@
</div>
<div class="time-axis-title">
${node.taskComment}
<#-- <#if node.fileUrl! !=""><a href="${node.fileUrl}" download-->
<#-- target="_blank">下载会签单</a></#if>-->
<#if node.fileUrl! !=""><a href="${node.fileUrl}" download
target="_blank">下载会签单</a></#if>
target="_blank">特批报备记录</a></#if>
</div>
</li>
</#list>
@ -3811,6 +3814,28 @@
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top" style="display:<#if currentTask.name=="财务人员">flex <#else> none</#if> ;">
<div class="am-u-sm-4 am-u-md-2 am-text-right">
特批报备记录
</div>
<div class="am-u-sm-4 am-u-md-4" style="display: flex;flex-direction: row;gap: 10px">
<button type="button" class="am-btn am-btn-default" style="padding: 0">
<label class="file-label" for="file_upload_image"
style="cursor: pointer; height: 40px;
line-height: 40px;
margin: 0 5px">
<span class="am-icon-upload"></span>选择图片
</label>
</button>
<input id="file_upload_image" type="file" style="display:none;" accept=".png,.jpg,.jpeg" />
<span onclick="downFile3()" id="file_upload_image_check" style="margin-left: 5px;cursor: pointer"
>
</span>
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
</div>
</div>
@ -3904,6 +3929,11 @@
<script src="${base}/assets/js/project_budget_cost.js"></script>
<script src="${base}/assets/js/project_budget_cost_project_manage.js"></script>
<script src="${base}/assets/js/project_budget_plan.js"></script>
<script src="${base}/common/jQuery-File-Upload/js/vendor/jquery.ui.widget.js"></script>
<script type="text/javascript" src="${base}/common/jQuery-File-Upload/js/jquery.iframe-transport.js"></script>
<script type="text/javascript" src="${base}/common/jQuery-File-Upload/js/jquery.fileupload.js"></script>
<script src="${base}/common/jQuery-File-Upload/js/jquery.fileupload-process.js"></script>
<script src="${base}/common/jQuery-File-Upload/js/jquery.fileupload-validate.js"></script>
<script src="${base}/layui/layui.js"></script>
@ -3982,6 +4012,8 @@
var completeTask = function (projectId) {
var message = $("#doc-vld-ta-2").val();
var approvetype = $("#type").val();
var fileUrl = $("#file_upload_image_check").attr('fileUrl');
if (message == '') {
layer.alert("请填写审核意见");
return;
@ -3990,7 +4022,8 @@
var type = $("input[name='docVlGender']:checked").val();
var params = {
type: type,
message: message
message: message,
fileUrl
};
$.ajax({
url: '${base}/project/completeTask/' + projectId + "/" + approvetype,
@ -4146,7 +4179,11 @@
if (url)
location.href = url
}
function downFile3() {
var url = $('#file_upload_image_check').attr('fileUrl')
if (url)
location.href = url
}
function closeEmpty() {
$('.tr-budget-plan-empty').css('display', 'none');
$('.openEmpty').css('display', 'inline-block');
@ -4182,4 +4219,31 @@
})
}
})
var generateFileupload3 = function (name) {
$("#file_upload_image").fileupload({
url: "${base}/file/upload",
dataType: 'json',
maxFileSize: 50 * 1024 * 1024,
maxNumberOfFiles: 1,
start: function (e) {
},
done: function (e, data) {
console.log(data);
//设置服务器返回的url
$("#fileUrl_image").val(data.result.data.url);
$("#file_upload_image_check").text(data.result.data.newName).attr('fileUrl', data.result.data.url);
},
progressall: function (e, data) {
},
error: function (jqXHR2, textStatus, errorThrown) {
},
fail: function (jqXHR2, textStatus) {
},
processfail: function (e, data) {
}
});
};
generateFileupload3()
</script>

View File

@ -2503,7 +2503,6 @@
},
error: function (data, status, e) {
console.log("--------error---------" + data)
layer.alert("-----------------" + data);
// if ($('#modal')) {
// $('#modal').modal('close');
// }