Commit 075721b8 authored by yaobaizheng's avatar yaobaizheng

合伙招商后台

parent 84137aad
......@@ -11,10 +11,14 @@ public class ChangeStatusVO {
private Integer status;
private Long chanyezhidaoPeojectId;
private String feedBack;
private Integer repeateType;
private Integer projectInfoConfirm;
public Long getId() {
return id;
}
......@@ -55,6 +59,22 @@ public class ChangeStatusVO {
this.projectId = projectId;
}
public Long getChanyezhidaoPeojectId() {
return chanyezhidaoPeojectId;
}
public void setChanyezhidaoPeojectId(Long chanyezhidaoPeojectId) {
this.chanyezhidaoPeojectId = chanyezhidaoPeojectId;
}
public Integer getProjectInfoConfirm() {
return projectInfoConfirm;
}
public void setProjectInfoConfirm(Integer projectInfoConfirm) {
this.projectInfoConfirm = projectInfoConfirm;
}
@Override
public String toString() {
return "ChangeStatusVO{" +
......@@ -63,6 +83,8 @@ public class ChangeStatusVO {
", status=" + status +
", feedBack='" + feedBack + '\'' +
", repeateType=" + repeateType +
", chanyezhidaoPeojectId=" + chanyezhidaoPeojectId +
", projectInfoConfirm=" + projectInfoConfirm +
'}';
}
}
package com.ruoyi.system.VO;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
/**
* 产业知道项目信息对象 project_info
*
* @author ruoyi
* @date 2023-10-27
*/
public class SelectProjectInfoVO extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 项目编号(年月日) */
@Excel(name = "项目编号", readConverterExp = "年=月日")
private String projectNumber;
/** 项目编号(UUID) */
@Excel(name = "项目编号", readConverterExp = "U=UID")
private String projectId;
/** 项目名称 */
@Excel(name = "项目名称")
private String projectName;
/** 投资方企业ID */
@Excel(name = "投资方企业ID")
private Long cid;
@Excel(name = "投资方企业ID")
private String entName;
/** 应用领域 */
@Excel(name = "应用领域")
private String applyScope;
/** 投资动因ID */
@Excel(name = "投资动因ID")
private Integer investReasonId;
/** 载体类型 1-基地 2-厂房 3-混合 */
@Excel(name = "载体类型 1-基地 2-厂房 3-混合")
private Integer baseType;
/** 总投资额(亿元) */
@Excel(name = "总投资额", readConverterExp = "亿=元")
private BigDecimal investAmount;
/** 固定资产投资额(亿元) */
@Excel(name = "固定资产投资额", readConverterExp = "亿=元")
private BigDecimal fixAssetInvestAmount;
/** 达产后年产值(亿元) */
@Excel(name = "达产后年产值", readConverterExp = "亿=元")
private BigDecimal futureOutputValue;
/** 达产后年纳税(亿元) */
@Excel(name = "达产后年纳税", readConverterExp = "亿=元")
private BigDecimal futureTax;
/** 达产后拉动就业人数(人) */
@Excel(name = "达产后拉动就业人数", readConverterExp = "人=")
private Long futureJobNum;
/** 当前状态 1-待审批 2-进行中 3-中止 4-终止 5-草稿 6-结束 */
@Excel(name = "当前状态 1-待审批 2-进行中 3-中止 4-终止 5-草稿 6-结束")
private Integer currentStatus;
/** 当前状态 1-项目线索 2-初期沟通 3-区域匹配/确认 4-政企互访 5-项目谈判 6-项目签约 */
@Excel(name = "当前状态 1-项目线索 2-初期沟通 3-区域匹配/确认 4-政企互访 5-项目谈判 6-项目签约")
private Integer currentStage;
/** 创建者 */
@Excel(name = "创建者")
private String creator;
/** 投资内容 */
@Excel(name = "投资内容")
private String investContent;
/** 终止原因类型 */
@Excel(name = "终止原因类型")
private Integer endCauseType;
/** 终止原因描述 */
@Excel(name = "终止原因描述")
private String endCauseDesc;
/** 项目状态 1 储备 2 在推 */
@Excel(name = "项目状态 1 储备 2 在推")
private Integer projectStatus;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setProjectNumber(String projectNumber)
{
this.projectNumber = projectNumber;
}
public String getProjectNumber()
{
return projectNumber;
}
public void setProjectId(String projectId)
{
this.projectId = projectId;
}
public String getProjectId()
{
return projectId;
}
public void setProjectName(String projectName)
{
this.projectName = projectName;
}
public String getProjectName()
{
return projectName;
}
public void setCid(Long cid)
{
this.cid = cid;
}
public Long getCid()
{
return cid;
}
public void setApplyScope(String applyScope)
{
this.applyScope = applyScope;
}
public String getApplyScope()
{
return applyScope;
}
public void setInvestReasonId(Integer investReasonId)
{
this.investReasonId = investReasonId;
}
public Integer getInvestReasonId()
{
return investReasonId;
}
public void setBaseType(Integer baseType)
{
this.baseType = baseType;
}
public Integer getBaseType()
{
return baseType;
}
public void setInvestAmount(BigDecimal investAmount)
{
this.investAmount = investAmount;
}
public BigDecimal getInvestAmount()
{
return investAmount;
}
public void setFixAssetInvestAmount(BigDecimal fixAssetInvestAmount)
{
this.fixAssetInvestAmount = fixAssetInvestAmount;
}
public BigDecimal getFixAssetInvestAmount()
{
return fixAssetInvestAmount;
}
public void setFutureOutputValue(BigDecimal futureOutputValue)
{
this.futureOutputValue = futureOutputValue;
}
public BigDecimal getFutureOutputValue()
{
return futureOutputValue;
}
public void setFutureTax(BigDecimal futureTax)
{
this.futureTax = futureTax;
}
public BigDecimal getFutureTax()
{
return futureTax;
}
public void setFutureJobNum(Long futureJobNum)
{
this.futureJobNum = futureJobNum;
}
public Long getFutureJobNum()
{
return futureJobNum;
}
public void setCurrentStatus(Integer currentStatus)
{
this.currentStatus = currentStatus;
}
public Integer getCurrentStatus()
{
return currentStatus;
}
public void setCurrentStage(Integer currentStage)
{
this.currentStage = currentStage;
}
public Integer getCurrentStage()
{
return currentStage;
}
public void setCreator(String creator)
{
this.creator = creator;
}
public String getCreator()
{
return creator;
}
public void setInvestContent(String investContent)
{
this.investContent = investContent;
}
public String getInvestContent()
{
return investContent;
}
public void setEndCauseType(Integer endCauseType)
{
this.endCauseType = endCauseType;
}
public Integer getEndCauseType()
{
return endCauseType;
}
public void setEndCauseDesc(String endCauseDesc)
{
this.endCauseDesc = endCauseDesc;
}
public String getEndCauseDesc()
{
return endCauseDesc;
}
public void setProjectStatus(Integer projectStatus)
{
this.projectStatus = projectStatus;
}
public Integer getProjectStatus()
{
return projectStatus;
}
public String getEntName() {
return entName;
}
public void setEntName(String entName) {
this.entName = entName;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("projectNumber", getProjectNumber())
.append("projectId", getProjectId())
.append("projectName", getProjectName())
.append("cid", getCid())
.append("applyScope", getApplyScope())
.append("investReasonId", getInvestReasonId())
.append("baseType", getBaseType())
.append("investAmount", getInvestAmount())
.append("fixAssetInvestAmount", getFixAssetInvestAmount())
.append("futureOutputValue", getFutureOutputValue())
.append("futureTax", getFutureTax())
.append("futureJobNum", getFutureJobNum())
.append("currentStatus", getCurrentStatus())
.append("currentStage", getCurrentStage())
.append("creator", getCreator())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("investContent", getInvestContent())
.append("endCauseType", getEndCauseType())
.append("endCauseDesc", getEndCauseDesc())
.append("projectStatus", getProjectStatus())
.append("entName", getEntName())
.toString();
}
}
package com.ruoyi.system.controller;
import java.util.List;
import com.ruoyi.system.VO.SelectProjectInfoVO;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
......@@ -41,6 +43,22 @@ public class ProjectInfoController extends BaseController
return prefix + "/info";
}
@GetMapping("/selectProjectInfo")
public String selectProjectInfo()
{
return prefix + "/selectProjectInfo";
}
@PostMapping("/listProjectInfo")
@ResponseBody
public TableDataInfo listProjectInfo(SelectProjectInfoVO projectInfo)
{
startPage();
List<SelectProjectInfoVO> list = projectInfoService.selectCYZDProjectInfoList(projectInfo);
return getDataTable(list);
}
/**
* 查询产业知道项目信息列表
*/
......
......@@ -8,6 +8,9 @@ public enum PartnerProjectStatusEnum {
PROJECT_NO_REPRATE(0,"未重复"),
PROJECT_REPRATE(1,"重复"),
PROJECTINFO_NO_CONFIRM(0,"未确认"),
PROJECTINFO_CONFIRM(1,"已确认"),
CURRENT_NODES_START(0,"未进行"),
CURRENT_NODES_STARTING(1,"进行中"),
CURRENT_NODES_END(2,"已完成");
......
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.VO.SelectProjectInfoVO;
import com.ruoyi.system.domain.ProjectInfo;
/**
......@@ -27,6 +29,8 @@ public interface ProjectInfoMapper
*/
public List<ProjectInfo> selectProjectInfoList(ProjectInfo projectInfo);
public List<SelectProjectInfoVO> selectCYZDProjectInfoList(SelectProjectInfoVO projectInfo);
/**
* 新增产业知道项目信息
*
......
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.VO.SelectProjectInfoVO;
import com.ruoyi.system.domain.ProjectInfo;
/**
......@@ -27,6 +29,8 @@ public interface IProjectInfoService
*/
public List<ProjectInfo> selectProjectInfoList(ProjectInfo projectInfo);
public List<SelectProjectInfoVO> selectCYZDProjectInfoList(SelectProjectInfoVO projectInfo);
/**
* 新增产业知道项目信息
*
......
......@@ -9,6 +9,7 @@ import com.ruoyi.system.enumerate.PartnerProjectExamineEnum;
import com.ruoyi.system.enumerate.PartnerProjectStatusEnum;
import com.ruoyi.system.enumerate.PartnerProjectToDoEnum;
import com.ruoyi.system.service.IPartnerProjectStatusChangeLogService;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PartnerProjectInfoMapper;
......@@ -111,14 +112,43 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
@Override
public int updateChangeStatus(ChangeStatusVO changeStatusVO){
//更新项目的信息
PartnerProjectInfo partnerProjectInfoUp = new PartnerProjectInfo();
partnerProjectInfoUp.setStatus(changeStatusVO.getStatus());
partnerProjectInfoUp.setStatusDescription(PartnerProjectExamineEnum.getValueByCode(changeStatusVO.getStatus()));
partnerProjectInfoUp.setId(changeStatusVO.getProjectId());
partnerProjectInfoMapper.updatePartnerProjectInfo(partnerProjectInfoUp);
//更新当前节点
PartnerProjectStatusChangeLog statusChange = new PartnerProjectStatusChangeLog();
statusChange.setId(changeStatusVO.getId());
statusChange.setDescription(changeStatusVO.getFeedBack());
if(changeStatusVO.getRepeateType() == PartnerProjectStatusEnum.PROJECT_REPRATE.getCode()){
statusChange.setTodoStatus(PartnerProjectToDoEnum.TODOSTATUS0.getCode());
if(changeStatusVO.getStatus() == PartnerProjectExamineEnum.PROJECTSTATUS2.getCode()){
if(changeStatusVO.getRepeateType() == PartnerProjectStatusEnum.PROJECT_REPRATE.getCode()){
statusChange.setTodoStatus(PartnerProjectToDoEnum.TODOSTATUS0.getCode());
}
if(changeStatusVO.getRepeateType() == PartnerProjectStatusEnum.PROJECT_NO_REPRATE.getCode()){
statusChange.setTodoStatus(null);
}
}
if(changeStatusVO.getStatus() == PartnerProjectExamineEnum.PROJECTSTATUS7.getCode()){
if(changeStatusVO.getProjectInfoConfirm() == PartnerProjectStatusEnum.PROJECTINFO_NO_CONFIRM.getCode()){
statusChange.setTodoStatus(PartnerProjectToDoEnum.TODOSTATUS1.getCode());
}
if(changeStatusVO.getProjectInfoConfirm() == PartnerProjectStatusEnum.PROJECTINFO_CONFIRM.getCode()){
statusChange.setTodoStatus(null);
}
}
statusChange.setCurrentNodeStatus(PartnerProjectStatusEnum.CURRENT_NODES_END.getCode());
projectStatusChangeService.updatePartnerProjectStatusChangeLog(statusChange);
//关联产业知道id
if(changeStatusVO.getStatus() == PartnerProjectExamineEnum.PROJECTSTATUS4.getCode()){
PartnerProjectInfo partnerProjectInfo = new PartnerProjectInfo();
partnerProjectInfo.setProjectId(changeStatusVO.getChanyezhidaoPeojectId());
partnerProjectInfo.setId(changeStatusVO.getProjectId());
partnerProjectInfoMapper.updatePartnerProjectInfo(partnerProjectInfo);
}
PartnerProjectStatusChangeLog statusChangeNext = new PartnerProjectStatusChangeLog();
int nextCode = PartnerProjectExamineEnum.getNextCodeByCode(changeStatusVO.getStatus());
......@@ -128,9 +158,9 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
statusChangeNext.setProjectStatus(nextCode);
statusChangeNext.setProjectId(changeStatusVO.getProjectId());
List<PartnerProjectStatusChangeLog> partnerProjectStatusChangeLogs = projectStatusChangeService.selectPartnerProjectStatusChangeLogList(statusChangeNext);
//更新下一个节点
PartnerProjectStatusChangeLog partnerProjectStatusChangeLog = partnerProjectStatusChangeLogs.get(0);
partnerProjectStatusChangeLog.setCurrentNodeStatus(PartnerProjectStatusEnum.CURRENT_NODES_STARTING.getCode());
return projectStatusChangeService.updatePartnerProjectStatusChangeLog(statusChange);
return projectStatusChangeService.updatePartnerProjectStatusChangeLog(partnerProjectStatusChangeLog);
}
}
......@@ -2,6 +2,7 @@ package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.VO.SelectProjectInfoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProjectInfoMapper;
......@@ -45,6 +46,12 @@ public class ProjectInfoServiceImpl implements IProjectInfoService
return projectInfoMapper.selectProjectInfoList(projectInfo);
}
@Override
public List<SelectProjectInfoVO> selectCYZDProjectInfoList(SelectProjectInfoVO projectInfo)
{
return projectInfoMapper.selectCYZDProjectInfoList(projectInfo);
}
/**
* 新增产业知道项目信息
*
......
......@@ -29,6 +29,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="projectStatus" column="project_status" />
</resultMap>
<resultMap type="com.ruoyi.system.VO.SelectProjectInfoVO" id="SelectProjectInfoResult">
<result property="id" column="id" />
<result property="projectNumber" column="project_number" />
<result property="projectId" column="project_id" />
<result property="projectName" column="project_name" />
<result property="cid" column="cid" />
<result property="entName" column="ent_name" />
<result property="applyScope" column="apply_scope" />
<result property="investReasonId" column="invest_reason_id" />
<result property="baseType" column="base_type" />
<result property="investAmount" column="invest_amount" />
<result property="fixAssetInvestAmount" column="fix_asset_invest_amount" />
<result property="futureOutputValue" column="future_output_value" />
<result property="futureTax" column="future_tax" />
<result property="futureJobNum" column="future_job_num" />
<result property="currentStatus" column="current_status" />
<result property="currentStage" column="current_stage" />
<result property="creator" column="creator" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="investContent" column="invest_content" />
<result property="endCauseType" column="end_cause_type" />
<result property="endCauseDesc" column="end_cause_desc" />
<result property="projectStatus" column="project_status" />
</resultMap>
<sql id="selectProjectInfoVo">
select id, project_number, project_id, project_name, cid, apply_scope, invest_reason_id, base_type, invest_amount, fix_asset_invest_amount, future_output_value, future_tax, future_job_num, current_status, current_stage, creator, create_time, update_time, invest_content, end_cause_type, end_cause_desc, project_status from project_info
</sql>
......@@ -58,6 +84,38 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="projectStatus != null "> and project_status = #{projectStatus}</if>
</where>
</select>
<select id="selectCYZDProjectInfoList" parameterType="com.ruoyi.system.VO.SelectProjectInfoVO" resultMap="SelectProjectInfoResult">
select p.id, p.project_number, p.project_id, p.project_name, p.cid,c.ent_name, p.apply_scope,
p.invest_reason_id, p.base_type, p.invest_amount, p.fix_asset_invest_amount,
p.future_output_value, p.future_tax, p.future_job_num, p.current_status,
p.current_stage, p.creator, p.create_time, p.update_time, p.invest_content,
p.end_cause_type, p.end_cause_desc, p.project_status from project_info p
LEFT JOIN company c ON c.id = p.cid
<where>
<if test="id != null and id != ''"> and p.id = #{id}</if>
<if test="projectNumber != null and projectNumber != ''"> and p.project_number = #{projectNumber}</if>
<if test="projectId != null and projectId != ''"> and p.project_id = #{projectId}</if>
<if test="projectName != null and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
<if test="cid != null "> and p.cid = #{cid}</if>
<if test="entName != null and entName != ''"> and c.ent_name like concat('%', #{entName},'%')</if>
<if test="applyScope != null and applyScope != ''"> and p.apply_scope = #{applyScope}</if>
<if test="investReasonId != null "> and p.invest_reason_id = #{investReasonId}</if>
<if test="baseType != null "> and p.base_type = #{baseType}</if>
<if test="investAmount != null "> and p.invest_amount = #{investAmount}</if>
<if test="fixAssetInvestAmount != null "> and p.fix_asset_invest_amount = #{fixAssetInvestAmount}</if>
<if test="futureOutputValue != null "> and p.future_output_value = #{futureOutputValue}</if>
<if test="futureTax != null "> and p.future_tax = #{futureTax}</if>
<if test="futureJobNum != null "> and p.future_job_num = #{futureJobNum}</if>
<if test="currentStatus != null "> and p.current_status = #{currentStatus}</if>
<if test="currentStage != null "> and p.current_stage = #{currentStage}</if>
<if test="creator != null and creator != ''"> and p.creator = #{creator}</if>
<if test="investContent != null and investContent != ''"> and p.invest_content = #{investContent}</if>
<if test="endCauseType != null "> and p.end_cause_type = #{endCauseType}</if>
<if test="endCauseDesc != null and endCauseDesc != ''"> and p.end_cause_desc = #{endCauseDesc}</if>
<if test="projectStatus != null "> and p.project_status = #{projectStatus}</if>
</where>
</select>
<select id="selectProjectInfoById" parameterType="Long" resultMap="ProjectInfoResult">
<include refid="selectProjectInfoVo"/>
......
......@@ -103,7 +103,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="operaterId != null">operater_id = #{operaterId},</if>
<if test="tenantId != null">tenant_id = #{tenantId},</if>
<if test="description != null">description = #{description},</if>
<if test="todoStatus != null">todo_status = #{todoStatus},</if>
<!-- <if test="todoStatus != null">todo_status = #{todoStatus},</if>-->
todo_status = #{todoStatus},
<if test="todoStatusDescription != null">todo_status_description = #{todoStatusDescription},</if>
<if test="currentNodeStatus != null">current_node_status = #{currentNodeStatus},</if>
</trim>
......
<!DOCTYPE html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html lang="zh">
<head>
<th:block th:include="include :: header('基本表单')"/>
<th:block th:include="include :: header('基本表单')" />
<style>
.myselfClass {
.myselfClass{
float: left;
background-color: azure;
width: 200px;
......@@ -12,11 +11,11 @@
margin-right: 13px;
margin-bottom: 10px;
}
.sizeDiv {
height: 100px;
.sizeDiv{
height:100px;
display: none;
margin-top: 10px;
}
</style>
<link rel="tag" href="http://java.sun.com/jsp/jstl/core" prefix="c">
......@@ -101,292 +100,314 @@
</div>
</div>
</div>
<div class="row sizeDiv" style="display: none" id="changeStatusDiv1">
<div class="row sizeDiv" id="changeStatusDiv1">
<div class="col-sm-4">
</div>
<div class="col-sm-6">
ertyioghjd
</div>
<div class="col-sm-2">
ertyioghjd
</div>
</div>
<div class="col-sm-6">
ertyioghjd
</div>
<div class="col-sm-2">
ertyioghjd
</div>
</div>
<div class="row sizeDiv" style="display: none" id="changeStatusDiv2">
<div class="col-sm-4">
<div class="form-group">
<label class="col-sm-2 control-label">项目查重:</label>
<div class="row sizeDiv" id="changeStatusDiv2">
<div class="col-sm-4">
<div class="form-group">
<label class="col-sm-2 control-label">项目查重:</label>
<div class="col-sm-10">
<select class="form-control m-b" id="repeatType" name="repeatType">
<option value="0">未重复</option>
<option value="1">重复</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">项目查询</label>
<div class="col-sm-10">
<div class="input-group">
<input class="form-control" type="text" id="chanyezhidaoPeojectId1" name="chanyezhidaoPeojectId1" onclick="selectProjectInfo()" readonly="readonly">
<span class="input-group-addon"><i class="fa fa-search"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-2 control-label">阶段反馈:</label>
<div class="col-sm-10">
<select class="form-control m-b" id="repeatType" name="repeatType">
<option value="0">未重复</option>
<option value="1">重复</option>
</select>
<textarea name="feedback2" id="feedback2" rows="4" class="form-control"></textarea>
</div>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-2 control-label">阶段反馈:</label>
<div class="col-sm-10">
<textarea name="feedback2" id="feedback2" rows="4" class="form-control"></textarea>
<div class="col-sm-2">
<button type="button" class="btn btn-w-m btn-default" onclick="changeStatusButton2()" >确认更新</button>
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-w-m btn-default" onclick="changeStatusButton2()">确认更新</button>
</div>
</div>
<div class="row" style="display: none" id="changeStatusDiv4">
<div class="col-sm-4">
<div class="form-group">
<label class="col-sm-2 control-label">关联项目:</label>
<div class="col-sm-10">
<div class="input-group">
<input class="form-control" type="text" id="chanyezhidaoPeojectId" name="chanyezhidaoPeojectId"
onclick="selectType()">
<span class="input-group-addon"><i class="fa fa-search"></i></span>
<div class="row sizeDiv" id="changeStatusDiv4">
<div class="col-sm-4">
<div class="form-group">
<label class="col-sm-2 control-label">关联项目:</label>
<div class="col-sm-10">
<div class="input-group">
<input class="form-control" type="text" id="chanyezhidaoPeojectId" name="chanyezhidaoPeojectId" onclick="selectProjectInfo()" readonly="readonly">
<span class="input-group-addon"><i class="fa fa-search"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">阶段反馈:</label>
<div class="col-sm-8">
<textarea name="feedback" class="form-control"></textarea>
<div class="col-sm-6">
<label class="col-sm-4 control-label">阶段反馈:</label>
<div class="col-sm-8">
<textarea name="feedback4" id="feedback4" rows="4" class="form-control"></textarea>
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-w-m btn-default" onclick="changeStatusButton4()">确认更新</button>
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-w-m btn-default" changeStatusButton4()>确认更新</button>
</div>
</div>
<div class="row" style="display: none" id="changeStatusDiv5">
<div class="col-sm-4">
wertyufhjk
</div>
<div class="col-sm-6">
ertyioghjd
</div>
<div class="col-sm-2">
ertyioghjd
</div>
</div>
<div class="row" style="display: none" id="changeStatusDiv6">
<div class="col-sm-4">
wertyufhjk
</div>
<div class="col-sm-6">
ertyioghjd
</div>
<div class="col-sm-2">
ertyioghjd
</div>
</div>
<div class="row" style="display: none" id="changeStatusDiv7">
<div class="col-sm-4">
wertyufhjk
</div>
<div class="col-sm-6">
ertyioghjd
</div>
<div class="col-sm-2">
ertyioghjd
<div class="row sizeDiv" id="changeStatusDiv5">
<div class="col-sm-4">
<div class="form-group">
<label class="col-sm-2 control-label">对接结果:</label>
<div class="col-sm-10">
<select class="form-control m-b" id="duijiejieguo" name="duijiejieguo">
<option value="0">未对接</option>
<option value="1">已对接</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">阶段反馈:</label>
<div class="col-sm-8">
<textarea name="feedback5" id="feedback5" rows="4" class="form-control"></textarea>
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-w-m btn-default" onclick="changeStatusButton5()">确认更新</button>
</div>
</div>
</div>
<div class="row" style="display: none" id="changeStatusDiv8">
<div class="col-sm-4">
wertyufhjk
<div class="row sizeDiv" id="changeStatusDiv6">
<div class="col-sm-4">
<div class="form-group">
<label class="col-sm-2 control-label">确认投资意向:</label>
<div class="col-sm-10">
<select class="form-control m-b" id="touziyixiang" name="touziyixiang">
<option value="0">无意向</option>
<option value="1">有意向</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">阶段反馈:</label>
<div class="col-sm-8">
<textarea name="feedback6" id="feedback6" rows="4" class="form-control"></textarea>
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-w-m btn-default" onclick="changeStatusButton6()">确认更新</button>
</div>
</div>
<div class="col-sm-6">
ertyioghjd
<div class="row sizeDiv" id="changeStatusDiv7">
<div class="col-sm-4">
<div class="form-group">
<label class="col-sm-2 control-label">项目信息:</label>
<div class="col-sm-10">
<select class="form-control m-b" id="xmxxqr" name="xmxxqr">
<option value="0">未确认</option>
<option value="1">已确认</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">阶段反馈:</label>
<div class="col-sm-8">
<textarea name="feedback7" id="feedback7" rows="4" class="form-control"></textarea>
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-w-m btn-default" onclick="changeStatusButton7()">确认更新</button>
</div>
</div>
<div class="col-sm-2">
ertyioghjd
<div class="row sizeDiv" id="changeStatusDiv8">
<div class="col-sm-4">
</div>
<div class="col-sm-6">
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-w-m btn-default" onclick="changeStatusButton8()">确认更新</button>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>合伙人提报信息项目</h5>
<div class="ibox-tools">
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>合伙人提报信息项目</h5>
<div class="ibox-tools">
</div>
</div>
</div>
<div class="ibox-content">
<form class="form-horizontal m" id="form-info-edit" th:object="${partnerProjectInfo}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">近年营收:</label>
<div class="col-sm-8">
<input name="continuousRevenue" th:field="*{continuousRevenue}" class="form-control"
type="text">
<div class="ibox-content">
<form class="form-horizontal m" id="form-info-edit" th:object="${partnerProjectInfo}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">近年营收:</label>
<div class="col-sm-8">
<input name="continuousRevenue" th:field="*{continuousRevenue}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">投资主体:</label>
<div class="col-sm-8">
<input name="investmentSubject" th:field="*{investmentSubject}" class="form-control"
type="text">
<div class="form-group">
<label class="col-sm-3 control-label">投资主体:</label>
<div class="col-sm-8">
<input name="investmentSubject" th:field="*{investmentSubject}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">企业亮点:</label>
<div class="col-sm-8">
<input name="enterpriseHighlights" th:field="*{enterpriseHighlights}"
class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">企业亮点:</label>
<div class="col-sm-8">
<input name="enterpriseHighlights" th:field="*{enterpriseHighlights}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">产业基地:</label>
<div class="col-sm-8">
<input name="industrialBase" th:field="*{industrialBase}" class="form-control"
type="text">
<div class="form-group">
<label class="col-sm-3 control-label">产业基地:</label>
<div class="col-sm-8">
<input name="industrialBase" th:field="*{industrialBase}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">建设内容建设内容:</label>
<div class="col-sm-8">
<input type="hidden" class="form-control" th:field="*{constructionContent}">
<div class="summernote" id="constructionContent"></div>
<div class="form-group">
<label class="col-sm-3 control-label">建设内容建设内容:</label>
<div class="col-sm-8">
<input type="hidden" class="form-control" th:field="*{constructionContent}">
<div class="summernote" id="constructionContent"></div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">投资总额:</label>
<div class="col-sm-8">
<input name="projectInvestmentTotal" th:field="*{projectInvestmentTotal}"
class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">投资总额:</label>
<div class="col-sm-8">
<input name="projectInvestmentTotal" th:field="*{projectInvestmentTotal}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">固定资产投资总额:</label>
<div class="col-sm-8">
<input name="projectInvestmentRegular" th:field="*{projectInvestmentRegular}"
class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">固定资产投资总额:</label>
<div class="col-sm-8">
<input name="projectInvestmentRegular" th:field="*{projectInvestmentRegular}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">投资内容:</label>
<div class="col-sm-8">
<input type="hidden" class="form-control" th:field="*{investmentContent}">
<div class="summernote" id="investmentContent"></div>
<div class="form-group">
<label class="col-sm-3 control-label">投资内容:</label>
<div class="col-sm-8">
<input type="hidden" class="form-control" th:field="*{investmentContent}">
<div class="summernote" id="investmentContent"></div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">项目诉求:</label>
<div class="col-sm-8">
<input name="projectAppeal" th:field="*{projectAppeal}" class="form-control"
type="text">
<div class="form-group">
<label class="col-sm-3 control-label">项目诉求:</label>
<div class="col-sm-8">
<input name="projectAppeal" th:field="*{projectAppeal}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">意向区域:</label>
<div class="col-sm-8">
<input name="intendedRegion" th:field="*{intendedRegion}" class="form-control"
type="text">
<div class="form-group">
<label class="col-sm-3 control-label">意向区域:</label>
<div class="col-sm-8">
<input name="intendedRegion" th:field="*{intendedRegion}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">佣金比例:</label>
<div class="col-sm-8">
<input name="regionCommissionRate" th:field="*{regionCommissionRate}"
class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">佣金比例:</label>
<div class="col-sm-8">
<input name="regionCommissionRate" th:field="*{regionCommissionRate}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">土地需求:</label>
<div class="col-sm-8">
<input name="carrierRequirementsLandDemand" th:field="*{carrierRequirementsLandDemand}"
class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">土地需求:</label>
<div class="col-sm-8">
<input name="carrierRequirementsLandDemand" th:field="*{carrierRequirementsLandDemand}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">厂房需求:</label>
<div class="col-sm-8">
<input name="carrierRequirementsFactoryDemand"
th:field="*{carrierRequirementsFactoryDemand}" class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">厂房需求:</label>
<div class="col-sm-8">
<input name="carrierRequirementsFactoryDemand" th:field="*{carrierRequirementsFactoryDemand}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">决策人:</label>
<div class="col-sm-8">
<input name="decisionMaker" th:field="*{decisionMaker}" class="form-control"
type="text">
<div class="form-group">
<label class="col-sm-3 control-label">决策人:</label>
<div class="col-sm-8">
<input name="decisionMaker" th:field="*{decisionMaker}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">决策人职位:</label>
<div class="col-sm-8">
<input name="decisionMakerPosition" th:field="*{decisionMakerPosition}"
class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">决策人职位:</label>
<div class="col-sm-8">
<input name="decisionMakerPosition" th:field="*{decisionMakerPosition}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">项目状态</label>
<div class="col-sm-8">
<input name="statusDescription" th:field="*{status}" class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">项目状态</label>
<div class="col-sm-8">
<input name="statusDescription" th:field="*{status}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">项目状态</label>
<div class="col-sm-8">
<input name="statusDescription" th:field="*{statusDescription}" class="form-control"
type="text">
<div class="form-group">
<label class="col-sm-3 control-label">项目状态</label>
<div class="col-sm-8">
<input name="statusDescription" th:field="*{statusDescription}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">项目归属人:</label>
<div class="col-sm-8">
<input name="partnerId" th:field="*{partnerId}" class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">项目归属人:</label>
<div class="col-sm-8">
<input name="partnerId" th:field="*{partnerId}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">归属人是否已确认:</label>
<div class="col-sm-8">
<input name="partnerHasConfirm" th:field="*{partnerHasConfirm}" class="form-control"
type="text">
<div class="form-group">
<label class="col-sm-3 control-label">归属人是否已确认:</label>
<div class="col-sm-8">
<input name="partnerHasConfirm" th:field="*{partnerHasConfirm}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">匹配招商公司:</label>
<div class="col-sm-8">
<input name="investmentPromotionCompany" th:field="*{investmentPromotionCompany}"
class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">匹配招商公司:</label>
<div class="col-sm-8">
<input name="investmentPromotionCompany" th:field="*{investmentPromotionCompany}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">租户id:</label>
<div class="col-sm-8">
<input name="tenantId" th:field="*{tenantId}" class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">租户id:</label>
<div class="col-sm-8">
<input name="tenantId" th:field="*{tenantId}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">秘书id:</label>
<div class="col-sm-8">
<input name="secretaryId" th:field="*{secretaryId}" class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">秘书id:</label>
<div class="col-sm-8">
<input name="secretaryId" th:field="*{secretaryId}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">产业知道项目id:</label>
<div class="col-sm-8">
<input name="projectId" th:field="*{projectId}" class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">产业知道项目id:</label>
<div class="col-sm-8">
<input name="projectId" th:field="*{projectId}" class="form-control" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">0-项目查重确认 1-确认项目所属 2-确认佣金比例:</label>
<div class="col-sm-8">
<input name="todoStatusDescription" th:field="*{todoStatusDescription}"
class="form-control" type="text">
<div class="form-group">
<label class="col-sm-3 control-label">0-项目查重确认 1-确认项目所属 2-确认佣金比例:</label>
<div class="col-sm-8">
<input name="todoStatusDescription" th:field="*{todoStatusDescription}" class="form-control" type="text">
</div>
</div>
</div>
</form>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
<th:block th:include="include :: footer" />
<script th:inline="javascript">
$(function () {
for (let i = 1; i < 8; i++) {
for (let i = 1; i <= 8; i++) {
let element = "#currentNodeStatus" + i;
let text = $(element).text();
if (0 == text) {
......@@ -404,66 +425,164 @@
function changeStatus1() {
}
function changeStatus2() {
$("#changeStatusDiv1").css("display", "none");
$("#changeStatusDiv2").css("display", "block");
$("#changeStatusDiv4").css("display", "none");
$("#changeStatusDiv5").css("display", "none");
$("#changeStatusDiv6").css("display", "none");
$("#changeStatusDiv7").css("display", "none");
$("#changeStatusDiv8").css("display", "none");
function changeStatus2(){
$("#changeStatusDiv1").css("display","none");
$("#changeStatusDiv2").css("display","block");
$("#changeStatusDiv4").css("display","none");
$("#changeStatusDiv5").css("display","none");
$("#changeStatusDiv6").css("display","none");
$("#changeStatusDiv7").css("display","none");
$("#changeStatusDiv8").css("display","none");
}
function changeStatusButton2() {
function changeStatusButton2(){
let data = {};
data.id = $("#id2").text();
data.projectId = $("#projectId2").text();
data.feedBack = $("#feedback2").val();
data.repeateType = $('#repeatType option:selected').val();
data.status = $("#projectStatus2").text();
$.operate.post(ctx + "partnerProject/info" + "/updateChangeStatus", data, callback2);
$.operate.post(ctx + "partnerProject/info" + "/updateChangeStatus",data,callback2);
}
function callback2(data) {
//data;
function callback2(data){
//data;成功之后 刷新一下页面
debugger;
location.reload();
}
function changeStatus4() {
$("#changeStatusDiv1").css("display", "none");
$("#changeStatusDiv2").css("display", "none");
$("#changeStatusDiv4").css("display", "block");
$("#changeStatusDiv5").css("display", "none");
$("#changeStatusDiv6").css("display", "none");
$("#changeStatusDiv7").css("display", "none");
$("#changeStatusDiv8").css("display", "none");
function changeStatus4(){
$("#changeStatusDiv1").css("display","none");
$("#changeStatusDiv2").css("display","none");
$("#changeStatusDiv4").css("display","block");
$("#changeStatusDiv5").css("display","none");
$("#changeStatusDiv6").css("display","none");
$("#changeStatusDiv7").css("display","none");
$("#changeStatusDiv8").css("display","none");
}
function selectType() {
function selectProjectInfo(){
var options = {
title: '选择',
url: ctx + "project/info",
url: ctx +"project/info/selectProjectInfo",
callBack: doSubmit2
};
$.modal.openOptions(options);
}
function changeStatusButton4() {
function doSubmit2(index, layero){
var rows = layero.find("iframe")[0].contentWindow.getSelections();
if (rows.length == 0) {
$.modal.alertWarning("请至少选择一条记录");
return;
}
$('#chanyezhidaoPeojectId').val(rows.id);
$.modal.close(index);
}
function changeStatusButton4(){
let data = {};
data.id = $("#id2").text();
data.projectId = $("#projectId2").text();
data.feedBack = $("#feedback2").val();
data.repeateType = $('#repeatType option:selected').val();
data.status = $("#projectStatus2").text();
data.id = $("#id4").text();
data.projectId = $("#projectId4").text();
data.feedBack = $("#feedback4").val();
data.status = $("#projectStatus4").text();
data.chanyezhidaoPeojectId = $("#chanyezhidaoPeojectId").val();
$.operate.post(ctx + "partnerProject/info" + "/updateChangeStatus", data, callback4);
debugger;
$.operate.post(ctx + "partnerProject/info" + "/updateChangeStatus",data,callback4);
}
function callback4(data){
debugger;
location.reload();
}
function callback4(data) {
function changeStatus5(){
$("#changeStatusDiv1").css("display","none");
$("#changeStatusDiv2").css("display","none");
$("#changeStatusDiv4").css("display","none");
$("#changeStatusDiv5").css("display","block");
$("#changeStatusDiv6").css("display","none");
$("#changeStatusDiv7").css("display","none");
$("#changeStatusDiv8").css("display","none");
}
function changeStatusButton5(){
let data = {};
data.id = $("#id5").text();
data.projectId = $("#projectId5").text();
data.feedBack = $("#feedback5").val();
data.status = $("#projectStatus5").text();
$.operate.post(ctx + "partnerProject/info" + "/updateChangeStatus",data,callback5);
}
function callback5(data){
debugger;
location.reload();
}
function changeStatus6(){
$("#changeStatusDiv1").css("display","none");
$("#changeStatusDiv2").css("display","none");
$("#changeStatusDiv4").css("display","none");
$("#changeStatusDiv5").css("display","none");
$("#changeStatusDiv6").css("display","block");
$("#changeStatusDiv7").css("display","none");
$("#changeStatusDiv8").css("display","none");
}
function changeStatusButton6(){
let data = {};
data.id = $("#id6").text();
data.projectId = $("#projectId6").text();
data.feedBack = $("#feedback6").val();
data.status = $("#projectStatus6").text();
$.operate.post(ctx + "partnerProject/info" + "/updateChangeStatus",data,callback6);
}
function callback6(data){
debugger;
location.reload();
}
</script>
function changeStatus7(){
$("#changeStatusDiv1").css("display","none");
$("#changeStatusDiv2").css("display","none");
$("#changeStatusDiv4").css("display","none");
$("#changeStatusDiv5").css("display","none");
$("#changeStatusDiv6").css("display","none");
$("#changeStatusDiv7").css("display","block");
$("#changeStatusDiv8").css("display","none");
}
function changeStatusButton7(){
let data = {};
data.id = $("#id7").text();
data.projectId = $("#projectId7").text();
data.feedBack = $("#feedback7").val();
data.status = $("#projectStatus7").text();
data.projectInfoConfirm = $('#xmxxqr option:selected').val();
$.operate.post(ctx + "partnerProject/info" + "/updateChangeStatus",data,callback7);
}
function callback7(data){
debugger;
location.reload();
}
function changeStatus8(){
$("#changeStatusDiv1").css("display","none");
$("#changeStatusDiv2").css("display","none");
$("#changeStatusDiv4").css("display","none");
$("#changeStatusDiv5").css("display","none");
$("#changeStatusDiv6").css("display","none");
$("#changeStatusDiv7").css("display","none");
$("#changeStatusDiv8").css("display","block");
}
function changeStatusButton8(){
let data = {};
data.id = $("#id8").text();
data.projectId = $("#projectId8").text();
data.feedBack = "项目审核完成";
data.status = $("#projectStatus8").text();
$.operate.post(ctx + "partnerProject/info" + "/updateChangeStatus",data,callback8);
}
function callback8(data){
debugger;
location.reload();
}
</script>
</body>
</html>
......@@ -17,9 +17,6 @@
<label>名称:</label>
<input type="text" name="name"/>
</li>
<li>
<input type="hidden" name="type" id="type" th:value="${type}" >
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
......@@ -67,40 +64,13 @@
field : 'name',
title : '名称'
}
// ,
// {
// title: '操作',
// align: 'center',
// formatter: function(value, row, index) {
// var actions = [];
// actions.push('<a class="btn btn-success btn-xs" href="#"><i class="fa fa-edit"></i>编辑</a> ');
// actions.push('<a class="btn btn-danger btn-xs" href="#"><i class="fa fa-remove"></i>删除</a>');
// return actions.join('');
// }
// }
]
};
$.table.init(options);
});
/* 添加用户-选择用户-提交(子页面调用父页面形式) */
// function submitHandler(index, layero) {
// var id = $.table.selectFirstColumns();
// if (id.length == 0) {
// $.modal.alertWarning("请选择一条记录");
// return;
// }
// var name = $.table.selectColumns('name');
// $.modal.close();
// // 父页面的方法
// // activeWindow().selectUsers();
// // 父页面的变量
// console.info("qqqqqq",id[0],name[0]);
// debugger;
// activeWindow().$('#associationName').val(name[0]);
// activeWindow().$('#associationId').val(id[0]);
// }
/* 添加用户-选择用户-提交(回调形式-父页面调用子页面) */
function getSelections() {
var dataObject = {};
......@@ -112,11 +82,7 @@
return dataObject;
}
// $("#bootstrap-table").on("check.bs.table check-all.bs.table uncheck.bs.table uncheck-all.bs.table", function (e, rowsAfter, rowsBefore) {
// var rows = $.common.equals("uncheck-all", e.type) ? rowsBefore : rowsAfter;
// var rowIds = $.table.affectedRowIds(rows);
// $("#rowIds").val(rowIds);
// });
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('产业知道项目信息列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>项目名称:</label>
<input type="text" name="projectName"/>
</li>
<li>
<label>企业名称:</label>
<input type="text" name="entName"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('project:info:edit')}]];
var removeFlag = [[${@permission.hasPermi('project:info:remove')}]];
var prefix = ctx + "project/info";
$(function() {
var options = {
url: prefix + "/listProjectInfo",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "产业知道项目信息",
columns: [{
checkbox: true
},
{
field: 'id',
title: '主键',
visible: false
},
// {
// field: 'projectNumber',
// title: '项目编号'
// },
{
field: 'projectId',
title: '项目编号',
visible: false
},
{
field: 'projectName',
title: '项目名称'
},
{
field: 'cid',
title: '投资方企业ID',
visible: false
},
{
field: 'entName',
title: '企业名称'
},
// {
// field: 'applyScope',
// title: '应用领域'
// },
// {
// field: 'investReasonId',
// title: '投资动因ID'
// },
// {
// field: 'baseType',
// title: '载体类型 1-基地 2-厂房 3-混合'
// },
{
field: 'investAmount',
title: '总投资额'
},
{
field: 'fixAssetInvestAmount',
title: '固定资产投资额'
},
// {
// field: 'futureOutputValue',
// title: '达产后年产值'
// },
// {
// field: 'futureTax',
// title: '达产后年纳税'
// },
// {
// field: 'futureJobNum',
// title: '达产后拉动就业人数'
// },
// {
// field: 'currentStatus',
// title: '当前状态 1-待审批 2-进行中 3-中止 4-终止 5-草稿 6-结束'
// },
// {
// field: 'currentStage',
// title: '当前状态 1-项目线索 2-初期沟通 3-区域匹配/确认 4-政企互访 5-项目谈判 6-项目签约'
// },
{
field: 'investContent',
title: '投资内容'
},
{
field: 'creator',
title: '创建者'
}
// {
// field: 'endCauseType',
// title: '终止原因类型'
// },
// {
// field: 'endCauseDesc',
// title: '终止原因描述'
// },
// {
// field: 'projectStatus',
// title: '项目状态 1 储备 2 在推'
// },
// {
// title: '操作',
// align: 'center',
// formatter: function(value, row, index) {
// var actions = [];
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
// actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
// return actions.join('');
// }
// }
]
};
$.table.init(options);
});
function getSelections() {
var dataObject = {};
// var name = $.table.selectColumns('name');
// dataObject.name = name[0];
var id = $.table.selectFirstColumns();
dataObject.id = id[0];
// return $.table.selectFirstColumns();
return dataObject;
}
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment