|
@@ -0,0 +1,969 @@
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
+<%@ include file="/webpage/include/taglib.jsp"%>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <title>投标项目管理</title>
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
+ <style>
|
|
|
+ #projectType-error{
|
|
|
+ left:0;
|
|
|
+ top:40px;
|
|
|
+ }
|
|
|
+ #projectSituation-error{
|
|
|
+ left:0;
|
|
|
+ top:80px;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var validateForm;
|
|
|
+ function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
|
+
|
|
|
+ if(obj == 2){
|
|
|
+ $("#inputForm").attr("action","${ctx}/workbidproject/workBidProject/store");
|
|
|
+ }else{
|
|
|
+ $("#inputForm").attr("action","${ctx}/workbidproject/workBidProject/save");
|
|
|
+ }
|
|
|
+ if(validateForm.form()){
|
|
|
+ if($("#sign").val() == 'tbzy'){
|
|
|
+ top.layer.alert('该数据处于投标专员节点,请投标专员前往首页待办列表处理,非投标专员禁止操作!', {icon: 0});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $("#inputForm").submit();
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ $(document).ready(function() {
|
|
|
+ validateForm = $("#inputForm").validate({
|
|
|
+ submitHandler: function(form){
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
+ form.submit();
|
|
|
+ },
|
|
|
+ errorContainer: "#messageBox",
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
+ $("#messageBox").text("输入有误,请先更正。");
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
+ } else {
|
|
|
+ error.insertAfter(element);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ laydate.render({
|
|
|
+ elem: '#registrationDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
+ event: 'focus' //响应事件。如果没有传入event,则按照默认的click
|
|
|
+ });
|
|
|
+ laydate.render({
|
|
|
+ elem: '#bidDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
+ event: 'focus' //响应事件。如果没有传入event,则按照默认的click
|
|
|
+ });
|
|
|
+ laydate.render({
|
|
|
+ elem: '#trialDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
+ event: 'focus' //响应事件。如果没有传入event,则按照默认的click
|
|
|
+ });
|
|
|
+ laydate.render({
|
|
|
+ elem: '#purchaseDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
+ event: 'focus' //响应事件。如果没有传入event,则按照默认的click
|
|
|
+ });
|
|
|
+ laydate.render({
|
|
|
+ elem: '#refundDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
+ event: 'focus' //响应事件。如果没有传入event,则按照默认的click
|
|
|
+ });
|
|
|
+ laydate.render({
|
|
|
+ elem: '#giveDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
+ event: 'focus' //响应事件。如果没有传入event,则按照默认的click
|
|
|
+ });
|
|
|
+ $("#attachment_btn").click(function () {
|
|
|
+ $("#attachment_file").click();
|
|
|
+ });
|
|
|
+ $("#attachment_btn2").click(function () {
|
|
|
+ $("#attachment_file2").click();
|
|
|
+ });
|
|
|
+ $("#attachment_btn3").click(function () {
|
|
|
+ $("#attachment_file3").click();
|
|
|
+ });
|
|
|
+ $("#attachment_btn4").click(function () {
|
|
|
+ $("#attachment_file4").click();
|
|
|
+ });
|
|
|
+ $("input[name='isExt']").on('ifChecked', function(event){
|
|
|
+ var radioVal = $(this).val();
|
|
|
+ console.log(radioVal+"----------radioVal");
|
|
|
+ if(radioVal == 1){
|
|
|
+ $("#tr1").hide()
|
|
|
+ $("#tr2").show()
|
|
|
+ //$("#extCompany").val("");
|
|
|
+ }else{
|
|
|
+ $("#tr1").show()
|
|
|
+ $("#tr2").hide()
|
|
|
+ // $("#extCompany").val("");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if("${workBidProject.isExt}" == "1"){
|
|
|
+ $("#ext1").iCheck('check')
|
|
|
+ }else{
|
|
|
+ $("#ext").iCheck('check')
|
|
|
+ }
|
|
|
+ /*var isExt = "${workBidProject.isExt}";
|
|
|
+ if(isExt==0){
|
|
|
+ $("#contact").show();
|
|
|
+ $("#extContact").hide();
|
|
|
+ }else{
|
|
|
+ $("#extContact").show();
|
|
|
+ $("#contact").hide();
|
|
|
+ }*/
|
|
|
+
|
|
|
+ });
|
|
|
+ function insertTitle(tValue){
|
|
|
+ var list = "${workBidProject.workAttachments}";
|
|
|
+ var size = (list.split('url')).length-1;
|
|
|
+ var files = $("#attachment_file")[0].files; for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
|
+ var attachmentId = "";
|
|
|
+ var attachmentFlag = "95";
|
|
|
+ console.log(file);
|
|
|
+ var timestamp=new Date().getTime();
|
|
|
+
|
|
|
+ var storeAs = "attachment-file/workBidProject/"+timestamp+"/"+file['name'];
|
|
|
+ var uploadPath="http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/"+storeAs;/*将这段字符串存到数据库即可*/
|
|
|
+ var divId = "_attachment";
|
|
|
+ $("#addFile"+divId).show();
|
|
|
+ multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size);}
|
|
|
+ }
|
|
|
+ function insertTitle2(tValue){
|
|
|
+ var list = "${workBidProject.workAttachmentsprice}";
|
|
|
+ var size = (list.split('url')).length-1;
|
|
|
+ var files = $("#attachment_file2")[0].files; for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
|
+ var attachmentId = "";
|
|
|
+ var attachmentFlag = "96";
|
|
|
+ console.log(file);
|
|
|
+ var timestamp=new Date().getTime();
|
|
|
+
|
|
|
+ var storeAs = "attachment-file/workBidProject/"+timestamp+"/"+file['name'];
|
|
|
+ var uploadPath="http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/"+storeAs;/*将这段字符串存到数据库即可*/
|
|
|
+ var divId = "_attachment2";
|
|
|
+ $("#addFile"+divId).show();
|
|
|
+ multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size);}
|
|
|
+ }
|
|
|
+ function insertTitle3(tValue){
|
|
|
+ var list = "${workBidProject.workAttachmentsbid}";
|
|
|
+ var size = (list.split('url')).length-1;
|
|
|
+ var files = $("#attachment_file3")[0].files; for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
|
+ var attachmentId = "";
|
|
|
+ var attachmentFlag = "97";
|
|
|
+ console.log(file);
|
|
|
+ var timestamp=new Date().getTime();
|
|
|
+
|
|
|
+ var storeAs = "attachment-file/workBidProject/"+timestamp+"/"+file['name'];
|
|
|
+ var uploadPath="http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/"+storeAs;/*将这段字符串存到数据库即可*/
|
|
|
+ var divId = "_attachment3";
|
|
|
+ $("#addFile"+divId).show();
|
|
|
+ multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size);}
|
|
|
+ }
|
|
|
+ function insertTitle4(tValue){
|
|
|
+ var list = "${workBidProject.workAttachmentsopenbid}";
|
|
|
+ var size = (list.split('url')).length-1;
|
|
|
+ var files = $("#attachment_file4")[0].files; for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
|
+ var attachmentId = "";
|
|
|
+ var attachmentFlag = "98";
|
|
|
+ console.log(file);
|
|
|
+ var timestamp=new Date().getTime();
|
|
|
+
|
|
|
+ var storeAs = "attachment-file/workBidProject/"+timestamp+"/"+file['name'];
|
|
|
+ var uploadPath="http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/"+storeAs;/*将这段字符串存到数据库即可*/
|
|
|
+ var divId = "_attachment4";
|
|
|
+ $("#addFile"+divId).show();
|
|
|
+ multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size);}
|
|
|
+ }
|
|
|
+ function addRow(list, idx, workClientLinkmanTpl, row) {
|
|
|
+ $(list).append(Mustache.render(workClientLinkmanTpl, {
|
|
|
+ idx: idx, delBtn: true, row: row
|
|
|
+ }));
|
|
|
+ $(list + idx).find("select").each(function () {
|
|
|
+ $(this).val($(this).attr("data-value"));
|
|
|
+ });
|
|
|
+ $(list + idx).find("input[type='checkbox'], input[type='radio']").each(function () {
|
|
|
+ var ss = $(this).attr("data-value").split(',');
|
|
|
+ for (var i = 0; i < ss.length; i++) {
|
|
|
+ if ($(this).val() == ss[i]) {
|
|
|
+ $(this).attr("checked", "checked");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function delRow(obj, prefix){
|
|
|
+ var id = $(prefix+"_id");
|
|
|
+ var delFlag = $(prefix+"_delFlag");
|
|
|
+ if (id.val() == ""){
|
|
|
+ $(obj).parent().parent().remove();
|
|
|
+ }else if(delFlag.val() == "0"){
|
|
|
+ delFlag.val("1");
|
|
|
+ $(obj).parent().parent().hide();
|
|
|
+ $(obj).html("÷").attr("title", "撤回删除");
|
|
|
+ $(obj).parent().parent().addClass("error");
|
|
|
+ }else if(delFlag.val() == "1"){
|
|
|
+ delFlag.val("0");
|
|
|
+ $(obj).html("×").attr("title", "删除");
|
|
|
+ $(obj).parent().parent().removeClass("error");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /*function setRule() {
|
|
|
+ //giveDate,refundDate
|
|
|
+ laydate.render({
|
|
|
+ elem: dateId, //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
+ event: 'click', //响应事件。如果没有传入event,则按照默认的click
|
|
|
+ value:new Date(),
|
|
|
+ done:function(value,date){
|
|
|
+ validateTime(value,dateId);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function validateTime(val,dateId) {
|
|
|
+ var regDate = strToDate(val);
|
|
|
+ var now = new Date();
|
|
|
+ var days = Math.ceil(Math.abs(regDate.getTime()-now.getTime())/(24*60*60*1000))
|
|
|
+ if(days>10){
|
|
|
+ parent.layer.msg("登记日期与当前时间差不能超过10天", {icon: 5});
|
|
|
+ $(dateId).val(new Date().format("yyyy-MM-dd"));
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ var arrDate = strToDate($("#arrivalDate").val());
|
|
|
+ if(regDate.getTime()<arrDate.getTime()){
|
|
|
+ parent.layer.msg("登记日期不能早于到账日期", {icon: 5});
|
|
|
+ $(dateId).val(new Date().format("yyyy-MM-dd"));
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ function strToDate(dateStr){
|
|
|
+ var dateStr = dateStr.replace(/-/g, "/");//现将yyyy-MM-dd类型转换为yyyy/MM/dd
|
|
|
+ var dateTime = Date.parse(dateStr);//将日期字符串转换为表示日期的秒数
|
|
|
+ //注意:Date.parse(dateStr)默认情况下只能转换:月/日/年 格式的字符串,但是经测试年/月/日格式的字符串也能被解析
|
|
|
+ var data = new Date(dateTime);//将日期秒数转换为日期格式
|
|
|
+ return data;
|
|
|
+ }*/
|
|
|
+ /*function display(n){
|
|
|
+ if(n==0){
|
|
|
+ $("#contact").show();
|
|
|
+ $("#extContact").hide();
|
|
|
+ }else{
|
|
|
+ $("#extContact").show();
|
|
|
+ $("#contact").hide();
|
|
|
+ }
|
|
|
+
|
|
|
+ //显示系统外客户联系人
|
|
|
+ if(n==1){
|
|
|
+ getExtCompany();
|
|
|
+ }
|
|
|
+ }*/
|
|
|
+ /* function getExtCompany(){
|
|
|
+ var workBidProjectId =$("#workBidProjectId").val(); console.log("id="+workBidProjectId);
|
|
|
+ $.get("${ctx}/workprequalification/workPrequalification/getExtCompany", {"workBidProjectId": workBidProjectId},
|
|
|
+ function(data,textStatus){
|
|
|
+ data = data.body.list;
|
|
|
+ if(data !=null){
|
|
|
+ for (var i=0; i<data.length; i++){
|
|
|
+ addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl, data[i]);
|
|
|
+ workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }*/
|
|
|
+ /* function changeTypeExplain(obj) {
|
|
|
+ if (obj.value == 4){
|
|
|
+ $("#typeExplain").attr("class","form-control required");
|
|
|
+ }else {
|
|
|
+ $("#typeExplain").attr("class","form-control");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ function changeSourceExplain(obj) {
|
|
|
+ if (obj.value == 3){
|
|
|
+ $("#sourceExplain").attr("class","form-control required");
|
|
|
+ }else {
|
|
|
+ $("#sourceExplain").attr("class","form-control");
|
|
|
+ }
|
|
|
+ }*/
|
|
|
+ </script>
|
|
|
+ <script type="text/javascript">
|
|
|
+ /**
|
|
|
+ * 设置系统内客户信息
|
|
|
+ * @param obj
|
|
|
+ */
|
|
|
+
|
|
|
+ function setValuee(obj){
|
|
|
+ $('#workClientLinkmanList').html("");
|
|
|
+ $.get("${ctx}/workclientinfo/workClientInfo/selectLinkman", { clientId: obj},
|
|
|
+ function(data,textStatus){
|
|
|
+ data = data.body.list;
|
|
|
+ if(data !=null){
|
|
|
+ for (var i=0; i<data.length; i++){
|
|
|
+ addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl, data[i]);
|
|
|
+ workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ $(document).ready(function() {
|
|
|
+ console.log($('#workClientLinkmanLists tbody'))
|
|
|
+ })
|
|
|
+ </script>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<div class="single-form">
|
|
|
+ <div class="container">
|
|
|
+ <form:form id="inputForm" modelAttribute="workBidProject" action="${ctx}/workbidproject/workBidProject/save" method="post" class="form-horizontal">
|
|
|
+ <form:hidden path="id"/>
|
|
|
+ <form:hidden path="status"/>
|
|
|
+ <input id="sign" name="sign" value="${workBidProject.sign}" type="hidden">
|
|
|
+ <div class="form-group layui-row first lw16">
|
|
|
+ <div class="form-group-label"><h2>基础信息</h2></div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>投标名称:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:input path="projectName" htmlEscape="false" class="form-control required layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">投标编号:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <div class="input-group">
|
|
|
+ <form:input path="projectNumber" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
+ <span class="input-group-btn">
|
|
|
+ <label class="form-status"><c:choose><c:when test="${not empty workBidProject.status}">${fns:getDictLabel(workBidProject.status, 'audit_state', '')}</c:when><c:otherwise>新添</c:otherwise></c:choose></label>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>工程分类:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:select path="projectType" class="form-control required simple-select"><%--onChange="changeTypeExplain(this)--%>
|
|
|
+ <form:option value="" label="--请选择工程分类--"/>
|
|
|
+ <form:options items="${fns:getMainDictList('contract_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">类型说明:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:input path="typeExplain" htmlEscape="false" class="form-control layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">项目来源:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:select path="projectSource" class="form-control simple-select">
|
|
|
+ <form:option value="" label=""/>
|
|
|
+ <form:options items="${fns:getMainDictList('bidProjectSource')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">来源说明:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:input path="sourceExplain" htmlEscape="false" class="form-control layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">项目规模:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:input path="projectScale" htmlEscape="false" class="form-control layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">规模类型:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:select path="scaleType" class="form-control selectpicker required layui-input">
|
|
|
+ <form:option value="" label="--请选择规模类型--"/>
|
|
|
+ <form:options items="${fns:getMainDictList('scale_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">规模单位:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:select path="scaleUnit" class="form-control selectpicker required layui-input">
|
|
|
+ <form:option value="" label="--请选择规模--"/>
|
|
|
+ <form:options items="${fns:getMainDictList('scale_unit')}" itemLabel="label"
|
|
|
+ itemValue="value" htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">投资额(万元):</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:input path="investMoney" htmlEscape="false" class="form-control number layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">是否外部招标单位:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input type="radio" class="i-checks" name="isExt" checked id="ext" value="0">
|
|
|
+ <label for="ext">系统内招标单位</label>
|
|
|
+ <input type="radio" class="i-checks" name="isExt" id="ext1" value="1">
|
|
|
+ <label for="ext1">系统外招标单位</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>招标单位:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <div id ="tr2" style="display:none">
|
|
|
+ <form:input id="extCompany" path="extCompany" htmlEscape="false" class="form-control required layui-input"/>
|
|
|
+ </div>
|
|
|
+ <div id ="tr1" style="display:block">
|
|
|
+ <sys:gridselect url="${ctx}/workbidproject/workBidProject/selectbidCompany" id="bidCompany" name="bidCompany.id" value="${workBidProject.bidCompany.id}" title="选择招标单位" labelName="bidCompany.name"
|
|
|
+ labelValue="${workBidProject.bidCompany.name}" cssClass="form-control required layui-input" fieldLabels="客户" fieldKeys="name" searchLabel="客户名称" searchKey="name" ></sys:gridselect>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">招标编号:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:input path="bidNumber" htmlEscape="false" class="form-control layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">所属部门:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workBidProject.officeName}"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-group layui-row">
|
|
|
+ <div class="form-group-label"><h2>联系人</h2></div>
|
|
|
+ <div class="layui-item nav-btns">
|
|
|
+ <a class="nav-btn nav-btn-add" onclick="addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl);workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;" title="新增"><i class="fa fa-plus"></i> 新增</a>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
+ <table id="contentTable2" class="table table-bordered table-condensed can-edit no-bottom-margin">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th width="100px"><span class="require-item">*</span>联系人姓名</th>
|
|
|
+ <th width="100px">部门</th>
|
|
|
+ <th width="100px">职务</th>
|
|
|
+ <th width="100px">QQ</th>
|
|
|
+ <th width="100px"><span class="require-item">*</span>联系方式1</th>
|
|
|
+ <th width="100px">联系方式2</th>
|
|
|
+ <th width="100px">E-mail</th>
|
|
|
+ <th width="150px">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="workClientLinkmanList">
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <script type="text/template" id="workClientLinkmanTpl">//<!--
|
|
|
+ <tr id="workClientLinkmanList{{idx}}">
|
|
|
+ <td class="hide">
|
|
|
+ <input id="workClientLinkmanList{{idx}}_id" name="workClientLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}" />
|
|
|
+ <input id="workClientLinkmanList{{idx}}_delFlag" name="workClientLinkmanList[{{idx}}].delFlag" type="hidden" value="0" />
|
|
|
+ <input id="workClientLinkmanList{{idx}}_remarks" name="workClientLinkmanList[{{idx}}].remarks" type="hidden" value="0" />
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanList{{idx}}_name" name="workClientLinkmanList[{{idx}}].name" type="text" value="{{row.name}}" class="form-control required"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanList{{idx}}_office" name="workClientLinkmanList[{{idx}}].office" type="text" value="{{row.office}}" class="form-control "/>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanList{{idx}}_position" name="workClientLinkmanList[{{idx}}].position" type="text" value="{{row.position}}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanList{{idx}}_qq" name="workClientLinkmanList[{{idx}}].qq" type="text" value="{{row.qq}}" class="form-control digits" />
|
|
|
+ </td>
|
|
|
+
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanList{{idx}}_linkPhone" name="workClientLinkmanList[{{idx}}].linkPhone" type="text" value="{{row.linkPhone}}" class="form-control isTel required"/>
|
|
|
+ </td>
|
|
|
+
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanList{{idx}}_linkMobile" name="workClientLinkmanList[{{idx}}].linkMobile" type="text" value="{{row.linkMobile}}" class="form-control isPhone" />
|
|
|
+ </td>
|
|
|
+
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanList{{idx}}_email" name="workClientLinkmanList[{{idx}}].email" type="text" value="{{row.email}}" class="form-control email"/>
|
|
|
+ </td>
|
|
|
+ <td class="text-center op-td" >
|
|
|
+ {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workClientLinkmanList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
|
+ </td>
|
|
|
+ </tr>//-->
|
|
|
+ </script>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="form-group layui-row">
|
|
|
+ <div class="form-group-label"><h2>招标代理机构</h2></div>
|
|
|
+ <div class="layui-item nav-btns">
|
|
|
+ <a class="nav-btn nav-btn-add" onclick="addRow('#workClientLinkmanLists', workClientLinkmansRowIdx, workClientLinkmansTpl);workClientLinkmansRowIdx = workClientLinkmansRowIdx + 1;" title="新增"><i class="fa fa-plus"></i> 新增</a>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
+ <table id="contentTable3" class="table table-bordered table-condensed can-edit no-bottom-margin">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th width="120px"><span class="require-item">*</span>机构名称</th>
|
|
|
+ <th width="120px">姓名</th>
|
|
|
+ <th width="120px"><span class="require-item">*</span>联系人电话</th>
|
|
|
+ <th width="120px">QQ</th>
|
|
|
+ <th width="120px">E-mail</th>
|
|
|
+ <th width="150px">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="workClientLinkmanLists">
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <script type="text/template" id="workClientLinkmansTpl">//<!--
|
|
|
+ <tr id="workClientLinkmanLists{{idx}}">
|
|
|
+ <td class="hide">
|
|
|
+ <input id="workClientLinkmanLists{{idx}}_id" name="workClientLinkmanLists[{{idx}}].id" type="hidden" value="{{row.id}}" />
|
|
|
+ <input id="workClientLinkmanLists{{idx}}_delFlag" name="workClientLinkmanLists[{{idx}}].delFlag" type="hidden" value="0" />
|
|
|
+ <input id="workClientLinkmanLists{{idx}}_remarks" name="workClientLinkmanLists[{{idx}}].remarks" type="hidden" value="1" />
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanLists{{idx}}_office" name="workClientLinkmanLists[{{idx}}].office" type="text" value="{{row.office}}" class="form-control required"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanLists{{idx}}_name" name="workClientLinkmanLists[{{idx}}].name" type="text" value="{{row.name}}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanLists{{idx}}_linkPhone" name="workClientLinkmanLists[{{idx}}].linkPhone" type="text" value="{{row.linkPhone}}" class="form-control isTel required"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanLists{{idx}}_qq" name="workClientLinkmanLists[{{idx}}].qq" type="text" value="{{row.qq}}" class="form-control digits" />
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="workClientLinkmanLists{{idx}}_email" name="workClientLinkmanLists[{{idx}}].email" type="text" value="{{row.email}}" class="form-control email"/>
|
|
|
+ </td>
|
|
|
+ <td class="text-center op-td" >
|
|
|
+ {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workClientLinkmanLists{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
|
+ </td>
|
|
|
+ </tr>//-->
|
|
|
+ </script>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var workClientLinkmanRowIdx = 0, workClientLinkmanTpl = $("#workClientLinkmanTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
|
|
|
+ var workClientLinkmansRowIdx = 0, workClientLinkmansTpl = $("#workClientLinkmansTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
|
|
|
+ $(document).ready(function() {
|
|
|
+ var data = ${fns:toJson(workBidProject.workClientLinkmanList)};
|
|
|
+ var data2 = ${fns:toJson(workBidProject.workClientLinkmanLists)};
|
|
|
+ if(data !=null){
|
|
|
+ for (var i=0; i<data.length; i++){
|
|
|
+ addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl, data[i]);
|
|
|
+ workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(data2 !=null){
|
|
|
+ for (var i=0; i<data2.length; i++){
|
|
|
+ addRow('#workClientLinkmanLists', workClientLinkmansRowIdx, workClientLinkmansTpl, data2[i]);
|
|
|
+ workClientLinkmansRowIdx = workClientLinkmansRowIdx + 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ </script>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="form-group layui-row lw16">
|
|
|
+ <div class="form-group-label"><h2>投标详情</h2></div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">报名日期:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input id="registrationDate" name="registrationDate" type="text" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon"
|
|
|
+ value="<fmt:formatDate value="${workBidProject.registrationDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>投标日期:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input id="bidDate" name="bidDate" type="text" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon required"
|
|
|
+ value="<fmt:formatDate value="${workBidProject.bidDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">资审日期:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input id="trialDate" name="trialDate" type="text" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon"
|
|
|
+ value="<fmt:formatDate value="${workBidProject.trialDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">资格审查:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:select path="trialType" class="form-control simple-select">
|
|
|
+ <form:option value="" label=""/>
|
|
|
+ <form:options items="${fns:getDictList('trial_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">文件费用(元):</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:input path="documentCost" htmlEscape="false" class="form-control number layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">投标保证金(元):</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:input path="bidBond" htmlEscape="false" class="form-control number layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">投标保证金形式:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:select path="bondStyle" class="form-control simple-select">
|
|
|
+ <form:option value="" label="--请选择保证金形式--"/>
|
|
|
+ <form:options items="${fns:getMainDictList('bond_style')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">投标保证金交付时间:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <input id="giveDate" name="giveDate" type="text" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon"
|
|
|
+ value="<fmt:formatDate value="${workBidProject.giveDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">投标保证金退还时间:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input id="refundDate" name="refundDate" onchange="setRule()" type="text" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon"
|
|
|
+ value="<fmt:formatDate value="${workBidProject.refundDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">项目协作部门:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <sys:treeselect id="office" name="office.id" value="${workBidProject.office.id}" labelName="office.name"
|
|
|
+ labelValue="${workBidProject.office.name}"
|
|
|
+ title="部门" url="/sys/office/treeDataAll?type=2" cssClass="form-control layui-input"
|
|
|
+ allowClear="true" notAllowSelectParent="true"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">是否联合体投标:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:select path="isBid" class="form-control simple-select">
|
|
|
+ <form:option value="" label=""/>
|
|
|
+ <form:options items="${fns:getDictList('is_bid')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">业务类型:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:select path="businessType" class="form-control simple-select">
|
|
|
+ <form:option value="" label="--请选择业务类型--"/>
|
|
|
+ <form:options items="${fns:getMainDictList('business_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm12">
|
|
|
+ <label class="layui-form-label">对外协作单位:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:input path="subcontractCompany" htmlEscape="false" class="form-control layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm12 with-textarea">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>项目概况:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:textarea path="projectSituation" htmlEscape="false" rows="4" maxlength="1000" class="form-control required"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm12 with-textarea">
|
|
|
+ <label class="layui-form-label">服务内容:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:textarea path="serviceContent" htmlEscape="false" rows="4" maxlength="1000" class="form-control"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm12 with-textarea">
|
|
|
+ <label class="layui-form-label">备注信息:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-group layui-row">
|
|
|
+ <div class="form-group-label"><h2>投标附件信息</h2></div>
|
|
|
+ <%--<div class="layui-item nav-btns">
|
|
|
+ <a id="attachment_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>
|
|
|
+ </div>--%>
|
|
|
+ <div id="addFile_attachment" style="display: none" class="upload-progress">
|
|
|
+ <span id="fileName_attachment" ></span>
|
|
|
+ <b><span id="baifenbi_attachment" ></span></b>
|
|
|
+ <div class="progress">
|
|
|
+ <div id="jindutiao_attachment" class="progress-bar" style="width: 0%" aria-valuenow="0">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input id="attachment_file" type="file" name="attachment_file" multiple="multiple" style="display: none;" onChange="if(this.value)insertTitle(this.value);"/>
|
|
|
+ <span id="attachment_title"></span>
|
|
|
+ <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
+ <table id="upTable" class="table table-bordered table-condensed details">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>文件预览</th>
|
|
|
+ <th>上传人</th>
|
|
|
+ <th>上传时间</th>
|
|
|
+ <th width="150px">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="file_attachment">
|
|
|
+
|
|
|
+ <c:forEach items="${workBidProject.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
|
+ <tr>
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}"></td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <td><a href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%','1')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <td><a href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ <td>${workClientAttachment.createBy.name}</td>
|
|
|
+ <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
+ <td class="op-td">
|
|
|
+ <div class="op-btn-box" >
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workClientAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
+
|
|
|
+ <c:if test="${workClientAttachment.createBy.id eq fns:getUser().id}">
|
|
|
+ <a href="javascript:void(0)" onclick="deleteFileFromAliyun(this,'${ctx}/sys/workattachment/deleteFileFromAliyun?url=${workClientAttachment.url}&id=${workClientAttachment.id}&type=2','addFile')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i> 删除</a>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-group layui-row">
|
|
|
+ <div class="form-group-label"><h2>价格附件信息</h2></div>
|
|
|
+ <%--<div class="layui-item nav-btns">
|
|
|
+ <a id="attachment_btn2" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>
|
|
|
+ </div>--%>
|
|
|
+ <div id="addFile_attachment2" style="display: none" class="upload-progress">
|
|
|
+ <span id="fileName_attachment2" ></span>
|
|
|
+ <b><span id="baifenbi_attachment2" ></span></b>
|
|
|
+ <div class="progress">
|
|
|
+ <div id="jindutiao_attachment2" class="progress-bar" style="width: 0%" aria-valuenow="0">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input id="attachment_file2" type="file" name="attachment_file2" style="display: none;" multiple="multiple" onChange="if(this.value)insertTitle2(this.value);"/>
|
|
|
+ <span id="attachment_title2"></span>
|
|
|
+ <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
+ <table id="upTable2" class="table table-bordered table-condensed details">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <%-- <th>序号</th>--%>
|
|
|
+ <th>文件名称</th>
|
|
|
+ <th>上传人</th>
|
|
|
+ <th>上传时间</th>
|
|
|
+ <th width="150px">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="file_attachment2">
|
|
|
+ <c:forEach items="${workBidProject.workAttachmentsprice}" var = "workClientAttachment" varStatus="status">
|
|
|
+ <tr>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}"></td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <td><a href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%','1')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <td><a href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ <td>${workClientAttachment.createBy.name}</td>
|
|
|
+ <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
+ <td class="op-td">
|
|
|
+ <div class="op-btn-box" >
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workClientAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
+
|
|
|
+ <c:if test="${workClientAttachment.createBy.id eq fns:getUser().id}">
|
|
|
+ <a href="javascript:void(0)" onclick="deleteFileFromAliyun(this,'${ctx}/sys/workattachment/deleteFileFromAliyun?url=${workClientAttachment.url}&id=${workClientAttachment.id}&type=2','addFile')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i> 删除</a>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-group layui-row">
|
|
|
+ <div class="form-group-label"><h2>招投标附件信息</h2></div>
|
|
|
+ <%-- <div class="layui-item nav-btns">
|
|
|
+ <a id="attachment_btn3" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>
|
|
|
+ </div>--%>
|
|
|
+ <div id="addFile_attachment3" style="display: none" class="upload-progress">
|
|
|
+ <span id="fileName_attachment3" ></span>
|
|
|
+ <b><span id="baifenbi_attachment3" ></span></b>
|
|
|
+ <div class="progress">
|
|
|
+ <div id="jindutiao_attachment3" class="progress-bar" style="width: 0%" aria-valuenow="0">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input id="attachment_file3" type="file" name="attachment_file3" style="display: none;" multiple="multiple" onChange="if(this.value)insertTitle3(this.value);"/>
|
|
|
+ <span id="attachment_title3"></span>
|
|
|
+ <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
+ <table id="upTable3" class="table table-bordered table-condensed details">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <%-- <th>序号</th>--%>
|
|
|
+ <th>文件名称</th>
|
|
|
+ <th>上传人</th>
|
|
|
+ <th>上传时间</th>
|
|
|
+ <th width="150px">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="file_attachment3">
|
|
|
+ <c:forEach items="${workBidProject.workAttachmentsbid}" var = "workClientAttachment" varStatus="status">
|
|
|
+ <tr>
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}"></td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <td><a href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%','1')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <td><a href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ <td>${workClientAttachment.createBy.name}</td>
|
|
|
+ <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
+ <td class="op-td">
|
|
|
+ <div class="op-btn-box" >
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workClientAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
+
|
|
|
+ <c:if test="${workClientAttachment.createBy.id eq fns:getUser().id}">
|
|
|
+ <a href="javascript:void(0)" onclick="deleteFileFromAliyun(this,'${ctx}/sys/workattachment/deleteFileFromAliyun?url=${workClientAttachment.url}&id=${workClientAttachment.id}&type=2','addFile')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i> 删除</a>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-group layui-row">
|
|
|
+ <div class="form-group-label"><h2>开标附件信息</h2></div>
|
|
|
+ <%--<div class="layui-item nav-btns">
|
|
|
+ <a id="attachment_btn4" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>
|
|
|
+ </div>--%>
|
|
|
+ <div id="addFile_attachment4" style="display: none" class="upload-progress">
|
|
|
+ <span id="fileName_attachment4" ></span>
|
|
|
+ <b><span id="baifenbi_attachment4" ></span></b>
|
|
|
+ <div class="progress">
|
|
|
+ <div id="jindutiao_attachment4" class="progress-bar" style="width: 0%" aria-valuenow="0">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input id="attachment_file4" type="file" name="attachment_file4" multiple="multiple" style="display: none;" onChange="if(this.value)insertTitle4(this.value);"/>
|
|
|
+ <span id="attachment_title4"></span>
|
|
|
+ <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
+
|
|
|
+ <table id="upTable4" class="table table-bordered table-condensed details">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <%-- <th>序号</th>--%>
|
|
|
+ <th>文件名称</th>
|
|
|
+ <th>上传人</th>
|
|
|
+ <th>上传时间</th>
|
|
|
+ <th width="150px">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="file_attachment4">
|
|
|
+ <c:forEach items="${workBidProject.workAttachmentsopenbid}" var = "workClientAttachment" varStatus="status">
|
|
|
+ <tr>
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}"></td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <td><a href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%','1')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <td><a href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ <td>${workClientAttachment.createBy.name}</td>
|
|
|
+ <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
+ <td class="op-td">
|
|
|
+ <div class="op-btn-box" >
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workClientAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
+
|
|
|
+ <c:if test="${workClientAttachment.createBy.id eq fns:getUser().id}">
|
|
|
+ <a href="javascript:void(0)" onclick="deleteFileFromAliyun(this,'${ctx}/sys/workattachment/deleteFileFromAliyun?url=${workClientAttachment.url}&id=${workClientAttachment.id}&type=2','addFile')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i> 删除</a>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group layui-row page-end"></div>
|
|
|
+ </form:form>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+</body>
|
|
|
+</html>
|