This commit is contained in:
xd 2024-04-08 14:02:04 +08:00
parent a89e21aa0d
commit c561ce2def
6 changed files with 480 additions and 651 deletions

View File

@ -158,7 +158,7 @@ public class QuotController extends BaseController
/**
* 查询附件列表
*/
@PreAuthorize("@ss.hasPermi('quot:quot:list')")
@PreAuthorize("@ss.hasAnyPermi('quot:quot:list,jsqr:jsqr:list')")
@GetMapping("/quotFileList")
public TableDataInfo quotFileList(QuotFile quotFile)
{
@ -226,6 +226,21 @@ public class QuotController extends BaseController
String quotJsqrId = UUID.fastUUID().toString();
quotJsqr.setQuotJsqrId(quotJsqrId);
quotJsqr.setQuotJsqrCode(IdUtils.createNo("BJD_JSQR_",2));
//特缆低压中压其他 协助状态设置
if(quotJsxzGroup.indexOf("TL")!=-1){
quotJsqr.setQuotJsqrTlApprovalStatus("1");
}
if(quotJsxzGroup.indexOf("DY")!=-1){
quotJsqr.setQuotJsqrDyApprovalStatus("1");
}
if(quotJsxzGroup.indexOf("ZY")!=-1){
quotJsqr.setQuotJsqrZyApprovalStatus("1");
}
if(quotJsxzGroup.indexOf("QT")!=-1){
quotJsqr.setQuotJsqrQtApprovalStatus("1");
}
quotJsqr.setCreateBy(getUsername());
quotJsqrService.insertQuotJsqr(quotJsqr);

View File

@ -104,7 +104,7 @@ public class Quot extends BaseEntity
private String quotJsxzTechnicalRequirement;//技术协助-技术要求
private String quotJsxzGroup;//技术协助-分组
private String quotJsxzConfirmId;//技术协助-技术确认单id
private String quotJsxzConfirmCode;//技术协助-技术确认单号
private String quotJsqrTlApprovalStatus;//技术协助-特缆协助状态
private String quotJsqrTlRemark;//技术协助-特缆协助说明
@ -320,6 +320,8 @@ public class Quot extends BaseEntity
public String getQuotJsxzConfirmId() { return quotJsxzConfirmId; }
public void setQuotJsxzConfirmId(String quotJsxzConfirmId) { this.quotJsxzConfirmId = quotJsxzConfirmId; }
public String getQuotJsxzConfirmCode() { return quotJsxzConfirmCode; }
public void setQuotJsxzConfirmCode(String quotJsxzConfirmCode) { this.quotJsxzConfirmCode = quotJsxzConfirmCode; }
public void setQuotJsxzApprovalStatus(String quotJsxzApprovalStatus) { this.quotJsxzApprovalStatus = quotJsxzApprovalStatus; }
public String getQuotJsqrTlApprovalStatus() { return quotJsqrTlApprovalStatus; }

View File

@ -1,286 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.quot.mapper.QuotJsqrMapper">
<resultMap type="QuotJsqr" id="QuotJsqrResult">
<result property="quotJsqrId" column="quot_jsqr_id" />
<result property="quotJsqrCode" column="quot_jsqr_code" />
<result property="quotJsqrTlApprovalStatus" column="quot_jsqr_tl_approval_status" />
<result property="quotJsqrTlOperateUserName" column="quot_jsqr_tl_operate_user_name" />
<result property="quotJsqrTlOperateStatus" column="quot_jsqr_tl_operate_status" />
<result property="quotJsqrTlOperateTime" column="quot_jsqr_tl_operate_time" />
<result property="quotJsqrTlRemark" column="quot_jsqr_tl_remark" />
<result property="quotJsqrTlCheckUserName" column="quot_jsqr_tl_check_user_name" />
<result property="quotJsqrTlCheckState" column="quot_jsqr_tl_check_state" />
<result property="quotJsqrTlCheckTime" column="quot_jsqr_tl_check_time" />
<result property="quotJsqrTlCheckRemark" column="quot_jsqr_tl_check_remark" />
<result property="quotJsqrTlLeaderUserName" column="quot_jsqr_tl_leader_user_name" />
<result property="quotJsqrTlLeaderState" column="quot_jsqr_tl_leader_state" />
<result property="quotJsqrTlLeaderTime" column="quot_jsqr_tl_leader_time" />
<result property="quotJsqrTlLeaderRemark" column="quot_jsqr_tl_leader_remark" />
<result property="quotJsqrDyApprovalStatus" column="quot_jsqr_dy_approval_status" />
<result property="quotJsqrDyOperateUserName" column="quot_jsqr_dy_operate_user_name" />
<result property="quotJsqrDyOperateStatus" column="quot_jsqr_dy_operate_status" />
<result property="quotJsqrDyOperateTime" column="quot_jsqr_dy_operate_time" />
<result property="quotJsqrDyRemark" column="quot_jsqr_dy_remark" />
<result property="quotJsqrDyCheckUserName" column="quot_jsqr_dy_check_user_name" />
<result property="quotJsqrDyCheckState" column="quot_jsqr_dy_check_state" />
<result property="quotJsqrDyCheckTime" column="quot_jsqr_dy_check_time" />
<result property="quotJsqrDyCheckRemark" column="quot_jsqr_dy_check_remark" />
<result property="quotJsqrDyLeaderUserName" column="quot_jsqr_dy_leader_user_name" />
<result property="quotJsqrDyLeaderState" column="quot_jsqr_dy_leader_state" />
<result property="quotJsqrDyLeaderTime" column="quot_jsqr_dy_leader_time" />
<result property="quotJsqrDyLeaderRemark" column="quot_jsqr_dy_leader_remark" />
<result property="quotJsqrZyApprovalStatus" column="quot_jsqr_zy_approval_status" />
<result property="quotJsqrZyOperateUserName" column="quot_jsqr_zy_operate_user_name" />
<result property="quotJsqrZyOperateStatus" column="quot_jsqr_zy_operate_status" />
<result property="quotJsqrZyOperateTime" column="quot_jsqr_zy_operate_time" />
<result property="quotJsqrZyRemark" column="quot_jsqr_zy_remark" />
<result property="quotJsqrZyCheckUserName" column="quot_jsqr_zy_check_user_name" />
<result property="quotJsqrZyCheckState" column="quot_jsqr_zy_check_state" />
<result property="quotJsqrZyCheckTime" column="quot_jsqr_zy_check_time" />
<result property="quotJsqrZyCheckRemark" column="quot_jsqr_zy_check_remark" />
<result property="quotJsqrZyLeaderUserName" column="quot_jsqr_zy_leader_user_name" />
<result property="quotJsqrZyLeaderState" column="quot_jsqr_zy_leader_state" />
<result property="quotJsqrZyLeaderTime" column="quot_jsqr_zy_leader_time" />
<result property="quotJsqrZyLeaderRemark" column="quot_jsqr_zy_leader_remark" />
<result property="quotJsqrQtApprovalStatus" column="quot_jsqr_qt_approval_status" />
<result property="quotJsqrQtOperateUserName" column="quot_jsqr_qt_operate_user_name" />
<result property="quotJsqrQtOperateStatus" column="quot_jsqr_qt_operate_status" />
<result property="quotJsqrQtOperateTime" column="quot_jsqr_qt_operate_time" />
<result property="quotJsqrQtRemark" column="quot_jsqr_qt_remark" />
<result property="quotJsqrQtCheckUserName" column="quot_jsqr_qt_check_user_name" />
<result property="quotJsqrQtCheckState" column="quot_jsqr_qt_check_state" />
<result property="quotJsqrQtCheckTime" column="quot_jsqr_qt_check_time" />
<result property="quotJsqrQtCheckRemark" column="quot_jsqr_qt_check_remark" />
<result property="quotJsqrQtLeaderUserName" column="quot_jsqr_qt_leader_user_name" />
<result property="quotJsqrQtLeaderState" column="quot_jsqr_qt_leader_state" />
<result property="quotJsqrQtLeaderTime" column="quot_jsqr_qt_leader_time" />
<result property="quotJsqrQtLeaderRemark" column="quot_jsqr_qt_leader_remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectQuotJsqrVo">
select quot_jsqr_id, quot_jsqr_code, quot_jsqr_tl_approval_status, quot_jsqr_tl_operate_user_name, quot_jsqr_tl_operate_status, quot_jsqr_tl_operate_time, quot_jsqr_tl_remark, quot_jsqr_tl_check_user_name, quot_jsqr_tl_check_state, quot_jsqr_tl_check_time, quot_jsqr_tl_check_remark, quot_jsqr_tl_leader_user_name, quot_jsqr_tl_leader_state, quot_jsqr_tl_leader_time, quot_jsqr_tl_leader_remark, quot_jsqr_dy_approval_status, quot_jsqr_dy_operate_user_name, quot_jsqr_dy_operate_status, quot_jsqr_dy_operate_time, quot_jsqr_dy_remark, quot_jsqr_dy_check_user_name, quot_jsqr_dy_check_state, quot_jsqr_dy_check_time, quot_jsqr_dy_check_remark, quot_jsqr_dy_leader_user_name, quot_jsqr_dy_leader_state, quot_jsqr_dy_leader_time, quot_jsqr_dy_leader_remark, quot_jsqr_zy_approval_status, quot_jsqr_zy_operate_user_name, quot_jsqr_zy_operate_status, quot_jsqr_zy_operate_time, quot_jsqr_zy_remark, quot_jsqr_zy_check_user_name, quot_jsqr_zy_check_state, quot_jsqr_zy_check_time, quot_jsqr_zy_check_remark, quot_jsqr_zy_leader_user_name, quot_jsqr_zy_leader_state, quot_jsqr_zy_leader_time, quot_jsqr_zy_leader_remark, quot_jsqr_qt_approval_status, quot_jsqr_qt_operate_user_name, quot_jsqr_qt_operate_status, quot_jsqr_qt_operate_time, quot_jsqr_qt_remark, quot_jsqr_qt_check_user_name, quot_jsqr_qt_check_state, quot_jsqr_qt_check_time, quot_jsqr_qt_check_remark, quot_jsqr_qt_leader_user_name, quot_jsqr_qt_leader_state, quot_jsqr_qt_leader_time, quot_jsqr_qt_leader_remark, create_by, create_time, update_by, update_time from quot_jsqr
</sql>
<select id="selectQuotJsqrList" parameterType="QuotJsqr" resultMap="QuotJsqrResult">
<include refid="selectQuotJsqrVo"/>
<where>
<if test="quotJsqrCode != null and quotJsqrCode != ''"> and quot_jsqr_code like concat('%', #{quotJsqrCode}, '%')</if>
<if test="quotJsqrTlApprovalStatus != null and quotJsqrTlApprovalStatus != ''"> and quot_jsqr_tl_approval_status = #{quotJsqrTlApprovalStatus}</if>
<if test="quotJsqrDyApprovalStatus != null and quotJsqrDyApprovalStatus != ''"> and quot_jsqr_dy_approval_status = #{quotJsqrDyApprovalStatus}</if>
<if test="quotJsqrZyApprovalStatus != null and quotJsqrZyApprovalStatus != ''"> and quot_jsqr_zy_approval_status = #{quotJsqrZyApprovalStatus}</if>
<if test="quotJsqrQtApprovalStatus != null and quotJsqrQtApprovalStatus != ''"> and quot_jsqr_qt_approval_status = #{quotJsqrQtApprovalStatus}</if>
</where>
</select>
<select id="selectQuotJsqrByQuotJsqrId" parameterType="String" resultMap="QuotJsqrResult">
<include refid="selectQuotJsqrVo"/>
where quot_jsqr_id = #{quotJsqrId}
</select>
<insert id="insertQuotJsqr" parameterType="QuotJsqr">
insert into quot_jsqr
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="quotJsqrId != null">quot_jsqr_id,</if>
<if test="quotJsqrCode != null">quot_jsqr_code,</if>
<if test="quotJsqrTlApprovalStatus != null">quot_jsqr_tl_approval_status,</if>
<if test="quotJsqrTlOperateUserName != null">quot_jsqr_tl_operate_user_name,</if>
<if test="quotJsqrTlOperateStatus != null">quot_jsqr_tl_operate_status,</if>
<if test="quotJsqrTlOperateTime != null">quot_jsqr_tl_operate_time,</if>
<if test="quotJsqrTlRemark != null">quot_jsqr_tl_remark,</if>
<if test="quotJsqrTlCheckUserName != null">quot_jsqr_tl_check_user_name,</if>
<if test="quotJsqrTlCheckState != null">quot_jsqr_tl_check_state,</if>
<if test="quotJsqrTlCheckTime != null">quot_jsqr_tl_check_time,</if>
<if test="quotJsqrTlCheckRemark != null">quot_jsqr_tl_check_remark,</if>
<if test="quotJsqrTlLeaderUserName != null">quot_jsqr_tl_leader_user_name,</if>
<if test="quotJsqrTlLeaderState != null">quot_jsqr_tl_leader_state,</if>
<if test="quotJsqrTlLeaderTime != null">quot_jsqr_tl_leader_time,</if>
<if test="quotJsqrTlLeaderRemark != null">quot_jsqr_tl_leader_remark,</if>
<if test="quotJsqrDyApprovalStatus != null">quot_jsqr_dy_approval_status,</if>
<if test="quotJsqrDyOperateUserName != null">quot_jsqr_dy_operate_user_name,</if>
<if test="quotJsqrDyOperateStatus != null">quot_jsqr_dy_operate_status,</if>
<if test="quotJsqrDyOperateTime != null">quot_jsqr_dy_operate_time,</if>
<if test="quotJsqrDyRemark != null">quot_jsqr_dy_remark,</if>
<if test="quotJsqrDyCheckUserName != null">quot_jsqr_dy_check_user_name,</if>
<if test="quotJsqrDyCheckState != null">quot_jsqr_dy_check_state,</if>
<if test="quotJsqrDyCheckTime != null">quot_jsqr_dy_check_time,</if>
<if test="quotJsqrDyCheckRemark != null">quot_jsqr_dy_check_remark,</if>
<if test="quotJsqrDyLeaderUserName != null">quot_jsqr_dy_leader_user_name,</if>
<if test="quotJsqrDyLeaderState != null">quot_jsqr_dy_leader_state,</if>
<if test="quotJsqrDyLeaderTime != null">quot_jsqr_dy_leader_time,</if>
<if test="quotJsqrDyLeaderRemark != null">quot_jsqr_dy_leader_remark,</if>
<if test="quotJsqrZyApprovalStatus != null">quot_jsqr_zy_approval_status,</if>
<if test="quotJsqrZyOperateUserName != null">quot_jsqr_zy_operate_user_name,</if>
<if test="quotJsqrZyOperateStatus != null">quot_jsqr_zy_operate_status,</if>
<if test="quotJsqrZyOperateTime != null">quot_jsqr_zy_operate_time,</if>
<if test="quotJsqrZyRemark != null">quot_jsqr_zy_remark,</if>
<if test="quotJsqrZyCheckUserName != null">quot_jsqr_zy_check_user_name,</if>
<if test="quotJsqrZyCheckState != null">quot_jsqr_zy_check_state,</if>
<if test="quotJsqrZyCheckTime != null">quot_jsqr_zy_check_time,</if>
<if test="quotJsqrZyCheckRemark != null">quot_jsqr_zy_check_remark,</if>
<if test="quotJsqrZyLeaderUserName != null">quot_jsqr_zy_leader_user_name,</if>
<if test="quotJsqrZyLeaderState != null">quot_jsqr_zy_leader_state,</if>
<if test="quotJsqrZyLeaderTime != null">quot_jsqr_zy_leader_time,</if>
<if test="quotJsqrZyLeaderRemark != null">quot_jsqr_zy_leader_remark,</if>
<if test="quotJsqrQtApprovalStatus != null">quot_jsqr_qt_approval_status,</if>
<if test="quotJsqrQtOperateUserName != null">quot_jsqr_qt_operate_user_name,</if>
<if test="quotJsqrQtOperateStatus != null">quot_jsqr_qt_operate_status,</if>
<if test="quotJsqrQtOperateTime != null">quot_jsqr_qt_operate_time,</if>
<if test="quotJsqrQtRemark != null">quot_jsqr_qt_remark,</if>
<if test="quotJsqrQtCheckUserName != null">quot_jsqr_qt_check_user_name,</if>
<if test="quotJsqrQtCheckState != null">quot_jsqr_qt_check_state,</if>
<if test="quotJsqrQtCheckTime != null">quot_jsqr_qt_check_time,</if>
<if test="quotJsqrQtCheckRemark != null">quot_jsqr_qt_check_remark,</if>
<if test="quotJsqrQtLeaderUserName != null">quot_jsqr_qt_leader_user_name,</if>
<if test="quotJsqrQtLeaderState != null">quot_jsqr_qt_leader_state,</if>
<if test="quotJsqrQtLeaderTime != null">quot_jsqr_qt_leader_time,</if>
<if test="quotJsqrQtLeaderRemark != null">quot_jsqr_qt_leader_remark,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="quotJsqrId != null">#{quotJsqrId},</if>
<if test="quotJsqrCode != null">#{quotJsqrCode},</if>
<if test="quotJsqrTlApprovalStatus != null">#{quotJsqrTlApprovalStatus},</if>
<if test="quotJsqrTlOperateUserName != null">#{quotJsqrTlOperateUserName},</if>
<if test="quotJsqrTlOperateStatus != null">#{quotJsqrTlOperateStatus},</if>
<if test="quotJsqrTlOperateTime != null">#{quotJsqrTlOperateTime},</if>
<if test="quotJsqrTlRemark != null">#{quotJsqrTlRemark},</if>
<if test="quotJsqrTlCheckUserName != null">#{quotJsqrTlCheckUserName},</if>
<if test="quotJsqrTlCheckState != null">#{quotJsqrTlCheckState},</if>
<if test="quotJsqrTlCheckTime != null">#{quotJsqrTlCheckTime},</if>
<if test="quotJsqrTlCheckRemark != null">#{quotJsqrTlCheckRemark},</if>
<if test="quotJsqrTlLeaderUserName != null">#{quotJsqrTlLeaderUserName},</if>
<if test="quotJsqrTlLeaderState != null">#{quotJsqrTlLeaderState},</if>
<if test="quotJsqrTlLeaderTime != null">#{quotJsqrTlLeaderTime},</if>
<if test="quotJsqrTlLeaderRemark != null">#{quotJsqrTlLeaderRemark},</if>
<if test="quotJsqrDyApprovalStatus != null">#{quotJsqrDyApprovalStatus},</if>
<if test="quotJsqrDyOperateUserName != null">#{quotJsqrDyOperateUserName},</if>
<if test="quotJsqrDyOperateStatus != null">#{quotJsqrDyOperateStatus},</if>
<if test="quotJsqrDyOperateTime != null">#{quotJsqrDyOperateTime},</if>
<if test="quotJsqrDyRemark != null">#{quotJsqrDyRemark},</if>
<if test="quotJsqrDyCheckUserName != null">#{quotJsqrDyCheckUserName},</if>
<if test="quotJsqrDyCheckState != null">#{quotJsqrDyCheckState},</if>
<if test="quotJsqrDyCheckTime != null">#{quotJsqrDyCheckTime},</if>
<if test="quotJsqrDyCheckRemark != null">#{quotJsqrDyCheckRemark},</if>
<if test="quotJsqrDyLeaderUserName != null">#{quotJsqrDyLeaderUserName},</if>
<if test="quotJsqrDyLeaderState != null">#{quotJsqrDyLeaderState},</if>
<if test="quotJsqrDyLeaderTime != null">#{quotJsqrDyLeaderTime},</if>
<if test="quotJsqrDyLeaderRemark != null">#{quotJsqrDyLeaderRemark},</if>
<if test="quotJsqrZyApprovalStatus != null">#{quotJsqrZyApprovalStatus},</if>
<if test="quotJsqrZyOperateUserName != null">#{quotJsqrZyOperateUserName},</if>
<if test="quotJsqrZyOperateStatus != null">#{quotJsqrZyOperateStatus},</if>
<if test="quotJsqrZyOperateTime != null">#{quotJsqrZyOperateTime},</if>
<if test="quotJsqrZyRemark != null">#{quotJsqrZyRemark},</if>
<if test="quotJsqrZyCheckUserName != null">#{quotJsqrZyCheckUserName},</if>
<if test="quotJsqrZyCheckState != null">#{quotJsqrZyCheckState},</if>
<if test="quotJsqrZyCheckTime != null">#{quotJsqrZyCheckTime},</if>
<if test="quotJsqrZyCheckRemark != null">#{quotJsqrZyCheckRemark},</if>
<if test="quotJsqrZyLeaderUserName != null">#{quotJsqrZyLeaderUserName},</if>
<if test="quotJsqrZyLeaderState != null">#{quotJsqrZyLeaderState},</if>
<if test="quotJsqrZyLeaderTime != null">#{quotJsqrZyLeaderTime},</if>
<if test="quotJsqrZyLeaderRemark != null">#{quotJsqrZyLeaderRemark},</if>
<if test="quotJsqrQtApprovalStatus != null">#{quotJsqrQtApprovalStatus},</if>
<if test="quotJsqrQtOperateUserName != null">#{quotJsqrQtOperateUserName},</if>
<if test="quotJsqrQtOperateStatus != null">#{quotJsqrQtOperateStatus},</if>
<if test="quotJsqrQtOperateTime != null">#{quotJsqrQtOperateTime},</if>
<if test="quotJsqrQtRemark != null">#{quotJsqrQtRemark},</if>
<if test="quotJsqrQtCheckUserName != null">#{quotJsqrQtCheckUserName},</if>
<if test="quotJsqrQtCheckState != null">#{quotJsqrQtCheckState},</if>
<if test="quotJsqrQtCheckTime != null">#{quotJsqrQtCheckTime},</if>
<if test="quotJsqrQtCheckRemark != null">#{quotJsqrQtCheckRemark},</if>
<if test="quotJsqrQtLeaderUserName != null">#{quotJsqrQtLeaderUserName},</if>
<if test="quotJsqrQtLeaderState != null">#{quotJsqrQtLeaderState},</if>
<if test="quotJsqrQtLeaderTime != null">#{quotJsqrQtLeaderTime},</if>
<if test="quotJsqrQtLeaderRemark != null">#{quotJsqrQtLeaderRemark},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateQuotJsqr" parameterType="QuotJsqr">
update quot_jsqr
<trim prefix="SET" suffixOverrides=",">
<if test="quotJsqrCode != null">quot_jsqr_code = #{quotJsqrCode},</if>
<if test="quotJsqrTlApprovalStatus != null">quot_jsqr_tl_approval_status = #{quotJsqrTlApprovalStatus},</if>
<if test="quotJsqrTlOperateUserName != null">quot_jsqr_tl_operate_user_name = #{quotJsqrTlOperateUserName},</if>
<if test="quotJsqrTlOperateStatus != null">quot_jsqr_tl_operate_status = #{quotJsqrTlOperateStatus},</if>
<if test="quotJsqrTlOperateTime != null">quot_jsqr_tl_operate_time = #{quotJsqrTlOperateTime},</if>
<if test="quotJsqrTlRemark != null">quot_jsqr_tl_remark = #{quotJsqrTlRemark},</if>
<if test="quotJsqrTlCheckUserName != null">quot_jsqr_tl_check_user_name = #{quotJsqrTlCheckUserName},</if>
<if test="quotJsqrTlCheckState != null">quot_jsqr_tl_check_state = #{quotJsqrTlCheckState},</if>
<if test="quotJsqrTlCheckTime != null">quot_jsqr_tl_check_time = #{quotJsqrTlCheckTime},</if>
<if test="quotJsqrTlCheckRemark != null">quot_jsqr_tl_check_remark = #{quotJsqrTlCheckRemark},</if>
<if test="quotJsqrTlLeaderUserName != null">quot_jsqr_tl_leader_user_name = #{quotJsqrTlLeaderUserName},</if>
<if test="quotJsqrTlLeaderState != null">quot_jsqr_tl_leader_state = #{quotJsqrTlLeaderState},</if>
<if test="quotJsqrTlLeaderTime != null">quot_jsqr_tl_leader_time = #{quotJsqrTlLeaderTime},</if>
<if test="quotJsqrTlLeaderRemark != null">quot_jsqr_tl_leader_remark = #{quotJsqrTlLeaderRemark},</if>
<if test="quotJsqrDyApprovalStatus != null">quot_jsqr_dy_approval_status = #{quotJsqrDyApprovalStatus},</if>
<if test="quotJsqrDyOperateUserName != null">quot_jsqr_dy_operate_user_name = #{quotJsqrDyOperateUserName},</if>
<if test="quotJsqrDyOperateStatus != null">quot_jsqr_dy_operate_status = #{quotJsqrDyOperateStatus},</if>
<if test="quotJsqrDyOperateTime != null">quot_jsqr_dy_operate_time = #{quotJsqrDyOperateTime},</if>
<if test="quotJsqrDyRemark != null">quot_jsqr_dy_remark = #{quotJsqrDyRemark},</if>
<if test="quotJsqrDyCheckUserName != null">quot_jsqr_dy_check_user_name = #{quotJsqrDyCheckUserName},</if>
<if test="quotJsqrDyCheckState != null">quot_jsqr_dy_check_state = #{quotJsqrDyCheckState},</if>
<if test="quotJsqrDyCheckTime != null">quot_jsqr_dy_check_time = #{quotJsqrDyCheckTime},</if>
<if test="quotJsqrDyCheckRemark != null">quot_jsqr_dy_check_remark = #{quotJsqrDyCheckRemark},</if>
<if test="quotJsqrDyLeaderUserName != null">quot_jsqr_dy_leader_user_name = #{quotJsqrDyLeaderUserName},</if>
<if test="quotJsqrDyLeaderState != null">quot_jsqr_dy_leader_state = #{quotJsqrDyLeaderState},</if>
<if test="quotJsqrDyLeaderTime != null">quot_jsqr_dy_leader_time = #{quotJsqrDyLeaderTime},</if>
<if test="quotJsqrDyLeaderRemark != null">quot_jsqr_dy_leader_remark = #{quotJsqrDyLeaderRemark},</if>
<if test="quotJsqrZyApprovalStatus != null">quot_jsqr_zy_approval_status = #{quotJsqrZyApprovalStatus},</if>
<if test="quotJsqrZyOperateUserName != null">quot_jsqr_zy_operate_user_name = #{quotJsqrZyOperateUserName},</if>
<if test="quotJsqrZyOperateStatus != null">quot_jsqr_zy_operate_status = #{quotJsqrZyOperateStatus},</if>
<if test="quotJsqrZyOperateTime != null">quot_jsqr_zy_operate_time = #{quotJsqrZyOperateTime},</if>
<if test="quotJsqrZyRemark != null">quot_jsqr_zy_remark = #{quotJsqrZyRemark},</if>
<if test="quotJsqrZyCheckUserName != null">quot_jsqr_zy_check_user_name = #{quotJsqrZyCheckUserName},</if>
<if test="quotJsqrZyCheckState != null">quot_jsqr_zy_check_state = #{quotJsqrZyCheckState},</if>
<if test="quotJsqrZyCheckTime != null">quot_jsqr_zy_check_time = #{quotJsqrZyCheckTime},</if>
<if test="quotJsqrZyCheckRemark != null">quot_jsqr_zy_check_remark = #{quotJsqrZyCheckRemark},</if>
<if test="quotJsqrZyLeaderUserName != null">quot_jsqr_zy_leader_user_name = #{quotJsqrZyLeaderUserName},</if>
<if test="quotJsqrZyLeaderState != null">quot_jsqr_zy_leader_state = #{quotJsqrZyLeaderState},</if>
<if test="quotJsqrZyLeaderTime != null">quot_jsqr_zy_leader_time = #{quotJsqrZyLeaderTime},</if>
<if test="quotJsqrZyLeaderRemark != null">quot_jsqr_zy_leader_remark = #{quotJsqrZyLeaderRemark},</if>
<if test="quotJsqrQtApprovalStatus != null">quot_jsqr_qt_approval_status = #{quotJsqrQtApprovalStatus},</if>
<if test="quotJsqrQtOperateUserName != null">quot_jsqr_qt_operate_user_name = #{quotJsqrQtOperateUserName},</if>
<if test="quotJsqrQtOperateStatus != null">quot_jsqr_qt_operate_status = #{quotJsqrQtOperateStatus},</if>
<if test="quotJsqrQtOperateTime != null">quot_jsqr_qt_operate_time = #{quotJsqrQtOperateTime},</if>
<if test="quotJsqrQtRemark != null">quot_jsqr_qt_remark = #{quotJsqrQtRemark},</if>
<if test="quotJsqrQtCheckUserName != null">quot_jsqr_qt_check_user_name = #{quotJsqrQtCheckUserName},</if>
<if test="quotJsqrQtCheckState != null">quot_jsqr_qt_check_state = #{quotJsqrQtCheckState},</if>
<if test="quotJsqrQtCheckTime != null">quot_jsqr_qt_check_time = #{quotJsqrQtCheckTime},</if>
<if test="quotJsqrQtCheckRemark != null">quot_jsqr_qt_check_remark = #{quotJsqrQtCheckRemark},</if>
<if test="quotJsqrQtLeaderUserName != null">quot_jsqr_qt_leader_user_name = #{quotJsqrQtLeaderUserName},</if>
<if test="quotJsqrQtLeaderState != null">quot_jsqr_qt_leader_state = #{quotJsqrQtLeaderState},</if>
<if test="quotJsqrQtLeaderTime != null">quot_jsqr_qt_leader_time = #{quotJsqrQtLeaderTime},</if>
<if test="quotJsqrQtLeaderRemark != null">quot_jsqr_qt_leader_remark = #{quotJsqrQtLeaderRemark},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where quot_jsqr_id = #{quotJsqrId}
</update>
<delete id="deleteQuotJsqrByQuotJsqrId" parameterType="String">
delete from quot_jsqr where quot_jsqr_id = #{quotJsqrId}
</delete>
<delete id="deleteQuotJsqrByQuotJsqrIds" parameterType="String">
delete from quot_jsqr where quot_jsqr_id in
<foreach item="quotJsqrId" collection="array" open="(" separator="," close=")">
#{quotJsqrId}
</foreach>
</delete>
</mapper>

View File

@ -38,6 +38,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="quotJsxzTechnicalRequirement" column="quot_jsxz_technical_requirement" />
<result property="quotJsxzGroup" column="quot_jsxz_group" />
<result property="quotJsxzConfirmId" column="quot_jsxz_confirm_id" />
<result property="quotJsxzConfirmCode" column="quot_jsxz_confirm_code" />
</resultMap>
<resultMap id="QuotQuotMaterialResult" type="Quot" extends="QuotResult">
@ -57,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="quotJoins">
left join sys_user u on u.user_name=a.create_by
left join sys_dept d on u.dept_id = d.dept_id
left join quot_jsqr q on q.quot_jsqr_id = a.quot_jsxz_confirm_id
</sql>
<sql id="selectQuotVo">
@ -68,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.create_by, a.create_time, a.update_by, a.update_time, u.nick_name create_name,
a.quot_jsxz_standard,a.quot_jsxz_approval_status,a.quot_jsxz_chapter,
a.quot_jsxz_technical_requirement,a.quot_jsxz_group,a.quot_jsxz_confirm_id
a.quot_jsxz_technical_requirement,a.quot_jsxz_group,a.quot_jsxz_confirm_id,q.quot_jsqr_code quot_jsxz_confirm_code
from quot a
<include refid="quotJoins"/>
</sql>
@ -92,13 +95,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.quot_quantity, a.quot_total_price, a.quot_check_user_name, a.quot_check_user_nickname, a.quot_approval_status,
a.create_by, a.create_time, a.update_by, a.update_time,
a.quot_jsxz_standard,a.quot_jsxz_approval_status,a.quot_jsxz_chapter,
a.quot_jsxz_technical_requirement,a.quot_jsxz_group,a.quot_jsxz_confirm_id,
a.quot_jsxz_technical_requirement,a.quot_jsxz_group,a.quot_jsxz_confirm_id,q.quot_jsqr_code quot_jsxz_confirm_code,
b.mat_id as sub_mat_id, b.mat_xingh as sub_mat_xingh, b.mat_guig as sub_mat_guig,
b.mat_diany as sub_mat_diany, b.mat_danw as sub_mat_danw, b.mat_sl as sub_mat_sl,
b.quot_id as sub_quot_id
from quot a
left join quot_material b on b.quot_id = a.quot_id
<include refid="quotJoins"/>
where a.quot_id = #{quotId}
</select>

View File

@ -255,20 +255,20 @@
</el-upload>
</div>
<el-table class="down" :data="quotXjFileList" border stripe style="width: 100%;margin-top: 20px;" height="300px">
<el-table-column prop="fileName" label="文件名称" width="500px"></el-table-column>
<el-table-column prop="fileName" label="文件名称" ></el-table-column>
<el-table-column prop="fileSize" label="文件大小" width="150px">
<template slot-scope="scope">
<span v-if="scope.row.fileSize / 1024 / 1024 < 1">{{(scope.row.fileSize / 1024).toFixed(2) + 'KB'}}</span>
<span v-else>{{(scope.row.fileSize / 1024 / 1024).toFixed(2) + 'MB'}}</span>
</template>
</el-table-column>
<el-table-column prop="fileTime" label="上传时间"></el-table-column>
<el-table-column width="150px" label="操作" v-if="form.quotApprovalStatus == '0'">
<el-table-column prop="fileTime" label="上传时间" width="200px"></el-table-column>
<el-table-column width="150px" label="操作">
<template slot-scope="scope">
<el-button :key="Math.random()" size="small" type="text">
<a @click="downloadFile(scope.row.fileUrl)">下载</a>
</el-button>
<el-button :key="Math.random()" size="small" type="text">
<el-button :key="Math.random()" size="small" type="text" v-if="form.quotApprovalStatus == '0'">
<a @click="deleteFile(scope.row.fileId)">删除</a>
</el-button>
</template>
@ -279,7 +279,14 @@
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="标准" prop="quotJsxzStandard">
<el-input v-model="form.quotJsxzStandard" placeholder="请输入标准"/>
<el-select v-model="form.quotJsxzStandard" :disabled="this.form.quotJsxzApprovalStatus != '0'">
<el-option
v-for="dict in dict.type.quot_jsxz_standard"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
@ -296,7 +303,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="是否盖技术章" prop="quotJsxzChapter">
<el-select v-model="form.quotJsxzChapter">
<el-select v-model="form.quotJsxzChapter" :disabled="this.form.quotJsxzApprovalStatus != '0'">
<el-option
v-for="dict in dict.type.quot_jsxz_chapter"
:key="dict.value"
@ -308,14 +315,14 @@
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-col :span="12">
<el-form-item label="技术确认单号" prop="quotJsxzConfirmCode">
<el-input v-model="form.quotJsxzConfirmCode" placeholder="系统自动生成" :disabled="true" />
<el-input v-model="form.quotJsxzConfirmCode" :disabled="true" />
</el-form-item>
</el-col>
<el-col :span="16">
<el-col :span="12">
<el-form-item label="分组" prop="quotJsxzGroup">
<el-select v-model="form.quotJsxzGroup" multiple placeholder="请选择" style="width: 100%">
<el-select v-model="form.quotJsxzGroup" multiple style="width: 100%" :disabled="this.form.quotJsxzApprovalStatus != '0'">
<el-option
v-for="dict in dict.type.quot_jsxz_group"
:key="dict.value"
@ -329,7 +336,7 @@
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="技术要求" prop="quotJsxzTechnicalRequirement">
<el-input type="textarea" autosize v-model="form.quotJsxzTechnicalRequirement" placeholder="请输入技术要求"/>
<el-input type="textarea" autosize v-model="form.quotJsxzTechnicalRequirement" placeholder="请输入技术要求" :disabled="this.form.quotJsxzApprovalStatus != '0'"/>
</el-form-item>
</el-col>
</el-row>
@ -362,12 +369,12 @@
</template>
</el-table-column>
<el-table-column prop="fileTime" label="上传时间"></el-table-column>
<el-table-column width="150px" label="操作" v-if="form.quotJsxzApprovalStatus == '0'">
<el-table-column width="150px" label="操作">
<template slot-scope="scope">
<el-button :key="Math.random()" size="small" type="text">
<a @click="downloadFile(scope.row.fileUrl)">下载</a>
</el-button>
<el-button :key="Math.random()" size="small" type="text">
<el-button :key="Math.random()" size="small" type="text" v-if="form.quotJsxzApprovalStatus == '0'">
<a @click="deleteFile(scope.row.fileId)">删除</a>
</el-button>
</template>
@ -550,7 +557,7 @@ import { checkPermi } from '@/utils/permission' // 权限判断函数
export default {
name: "Quot",
dicts: ['quot_approval_status','quot_jsxz_group','quot_jsxz_chapter','quot_jsxz_approval_status'],
dicts: ['quot_approval_status','quot_jsxz_group','quot_jsxz_chapter','quot_jsxz_approval_status','quot_jsxz_standard'],
data() {
return {
//
@ -706,7 +713,7 @@ export default {
const quotId = row.quotId || this.ids
getQuot(quotId).then(response => {
this.form = response.data;
this.$set(this.form, "quotJsxzGroup", this.form.quotJsxzGroup==null?[]:this.form.quotJsxzGroup.split(','));
this.$set(this.form, "quotJsxzGroup", this.form.quotJsxzGroup==''?[]:this.form.quotJsxzGroup.split(','));
this.quotMaterialList = response.data.quotMaterialList;
this.open = true;
this.title = "修改报价";

View File

@ -87,27 +87,48 @@
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="标准" prop="quotJsxzStandard">
<el-input v-model="form.quotJsxzStandard" :disabled="true"/>
<el-select v-model="form.quotJsxzStandard" :disabled="true">
<el-option
v-for="dict in dict.type.quot_jsxz_standard"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="6">
<el-form-item label="是否盖技术章" prop="quotJsxzChapter">
<el-input v-model="form.quotJsxzChapter" :disabled="true"/>
<el-select v-model="form.quotJsxzChapter" :disabled="true">
<el-option
v-for="dict in dict.type.quot_jsxz_chapter"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="10">
<el-form-item label="分组" prop="quotJsxzGroup">
<el-input v-model="form.quotJsxzGroup" :disabled="true"/>
<el-select v-model="form.quotJsxzGroup" multiple style="width: 100%" :disabled="true">
<el-option
v-for="dict in dict.type.quot_jsxz_group"
:key="dict.value"
:label="dict.label"
:value="dict.value">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="16">
<el-col :span="14">
<el-form-item label="客户" prop="quotCustomerName">
<el-input v-model="form.quotCustomerName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="10">
<el-form-item label="业务员" prop="quotSalesmanName">
<el-input v-model="form.quotSalesmanName" :disabled="true"/>
</el-form-item>
@ -127,349 +148,379 @@
</el-form-item>
</el-col>
</el-row>
<el-divider content-position="center">特缆协助</el-divider>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="特缆协助状态" prop="quotJsqrTlApprovalStatus">
<el-select v-model="form.quotJsqrTlApprovalStatus">
<el-option
v-for="dict in dict.type.quot_jsxz_approval_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="特缆协助说明" prop="quotJsqrTlRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrTlRemark" placeholder="请输入特缆协助说明" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="特缆操作人" prop="quotJsqrTlOperateUserName">
<el-input v-model="form.quotJsqrTlOperateUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆操作时间" prop="quotJsqrTlOperateTime">
<el-input v-model="form.quotJsqrTlOperateTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆操作状态" prop="quotJsqrTlOperateStatus">
<el-input v-model="form.quotJsqrTlOperateStatus"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="特缆审核人" prop="quotJsqrTlCheckUserName">
<el-input v-model="form.quotJsqrTlCheckUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆审核时间" prop="quotJsqrTlCheckTime">
<el-input v-model="form.quotJsqrTlCheckTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆审核状态" prop="quotJsqrTlCheckState">
<el-input v-model="form.quotJsqrTlCheckState"/>
</el-form-item>
</el-col>
</el-row>
<el-divider content-position="center">技术规范要求</el-divider>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="特缆审核意见" prop="quotJsqrTlCheckRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrTlCheckRemark" placeholder="请输入特缆审核意见" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="特缆组长" prop="quotJsqrTlLeaderUserName">
<el-input v-model="form.quotJsqrTlLeaderUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆组长确认时间" prop="quotJsqrTlLeaderTime">
<el-input v-model="form.quotJsqrTlLeaderTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆组长确认状态" prop="quotJsqrTlLeaderState">
<el-input v-model="form.quotJsqrTlLeaderState"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="特缆组长确认意见" prop="quotJsqrTlLeaderRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrTlLeaderRemark" placeholder="请输入特缆组长确认意见" />
</el-form-item>
<el-table class="down" :data="quotJsgfFileList" border stripe style="width: 100%;" height="150px">
<el-table-column prop="fileName" label="文件名称" width="450px"></el-table-column>
<el-table-column prop="fileSize" label="文件大小" width="100px">
<template slot-scope="scope">
<span v-if="scope.row.fileSize / 1024 / 1024 < 1">{{(scope.row.fileSize / 1024).toFixed(2) + 'KB'}}</span>
<span v-else>{{(scope.row.fileSize / 1024 / 1024).toFixed(2) + 'MB'}}</span>
</template>
</el-table-column>
<el-table-column prop="fileTime" label="上传时间"></el-table-column>
<el-table-column width="150px" label="操作">
<template slot-scope="scope">
<el-button :key="Math.random()" size="small" type="text">
<a @click="downloadFile(scope.row.fileUrl)">下载</a>
</el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<div v-if="showTl">
<el-divider content-position="center">特缆协助</el-divider>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="特缆协助状态" prop="quotJsqrTlApprovalStatus">
<el-select v-model="form.quotJsqrTlApprovalStatus" :disabled="true">
<el-option
v-for="dict in dict.type.quot_jsxz_approval_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="特缆协助说明" prop="quotJsqrTlRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrTlRemark" placeholder="请输入特缆协助说明" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="特缆操作人" prop="quotJsqrTlOperateUserName">
<el-input v-model="form.quotJsqrTlOperateUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆操作时间" prop="quotJsqrTlOperateTime">
<el-input v-model="form.quotJsqrTlOperateTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆操作状态" prop="quotJsqrTlOperateStatus">
<el-input v-model="form.quotJsqrTlOperateStatus" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="特缆审核人" prop="quotJsqrTlCheckUserName">
<el-input v-model="form.quotJsqrTlCheckUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆审核时间" prop="quotJsqrTlCheckTime">
<el-input v-model="form.quotJsqrTlCheckTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆审核状态" prop="quotJsqrTlCheckState">
<el-input v-model="form.quotJsqrTlCheckState" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="特缆审核意见" prop="quotJsqrTlCheckRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrTlCheckRemark" placeholder="请输入特缆审核意见" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="特缆组长" prop="quotJsqrTlLeaderUserName">
<el-input v-model="form.quotJsqrTlLeaderUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆组长确认时间" prop="quotJsqrTlLeaderTime">
<el-input v-model="form.quotJsqrTlLeaderTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="特缆组长确认状态" prop="quotJsqrTlLeaderState">
<el-input v-model="form.quotJsqrTlLeaderState" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="特缆组长确认意见" prop="quotJsqrTlLeaderRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrTlLeaderRemark" placeholder="请输入特缆组长确认意见" />
</el-form-item>
</el-col>
</el-row>
</div>
<el-divider content-position="center">低压协助</el-divider>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="低压协助状态" prop="quotJsqrDyApprovalStatus">
<el-select v-model="form.quotJsqrDyApprovalStatus">
<el-option
v-for="dict in dict.type.quot_jsxz_approval_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="低压协助说明" prop="quotJsqrDyRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrDyRemark" placeholder="请输入低压协助说明" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="低压操作人" prop="quotJsqrDyOperateUserName">
<el-input v-model="form.quotJsqrDyOperateUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压操作时间" prop="quotJsqrDyOperateTime">
<el-input v-model="form.quotJsqrDyOperateTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压操作状态" prop="quotJsqrDyOperateStatus">
<el-input v-model="form.quotJsqrDyOperateStatus"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="低压审核人" prop="quotJsqrDyCheckUserName">
<el-input v-model="form.quotJsqrDyCheckUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压审核时间" prop="quotJsqrDyCheckTime">
<el-input v-model="form.quotJsqrDyCheckTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压审核状态" prop="quotJsqrDyCheckState">
<el-input v-model="form.quotJsqrDyCheckState"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="低压审核意见" prop="quotJsqrDyCheckRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrDyCheckRemark" placeholder="请输入低压审核意见" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="低压组长" prop="quotJsqrDyLeaderUserName">
<el-input v-model="form.quotJsqrDyLeaderUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压组长确认时间" prop="quotJsqrDyLeaderTime">
<el-input v-model="form.quotJsqrDyLeaderTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压组长确认状态" prop="quotJsqrDyLeaderState">
<el-input v-model="form.quotJsqrDyLeaderState"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="低压组长确认意见" prop="quotJsqrDyLeaderRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrDyLeaderRemark" placeholder="请输入低压组长确认意见" />
</el-form-item>
</el-col>
</el-row>
<div v-if="showDy">
<el-divider content-position="center">低压协助</el-divider>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="低压协助状态" prop="quotJsqrDyApprovalStatus">
<el-select v-model="form.quotJsqrDyApprovalStatus" :disabled="true">
<el-option
v-for="dict in dict.type.quot_jsxz_approval_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="低压协助说明" prop="quotJsqrDyRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrDyRemark" placeholder="请输入低压协助说明" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="低压操作人" prop="quotJsqrDyOperateUserName">
<el-input v-model="form.quotJsqrDyOperateUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压操作时间" prop="quotJsqrDyOperateTime">
<el-input v-model="form.quotJsqrDyOperateTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压操作状态" prop="quotJsqrDyOperateStatus">
<el-input v-model="form.quotJsqrDyOperateStatus" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="低压审核人" prop="quotJsqrDyCheckUserName">
<el-input v-model="form.quotJsqrDyCheckUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压审核时间" prop="quotJsqrDyCheckTime">
<el-input v-model="form.quotJsqrDyCheckTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压审核状态" prop="quotJsqrDyCheckState">
<el-input v-model="form.quotJsqrDyCheckState" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="低压审核意见" prop="quotJsqrDyCheckRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrDyCheckRemark" placeholder="请输入低压审核意见" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="低压组长" prop="quotJsqrDyLeaderUserName">
<el-input v-model="form.quotJsqrDyLeaderUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压组长确认时间" prop="quotJsqrDyLeaderTime">
<el-input v-model="form.quotJsqrDyLeaderTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="低压组长确认状态" prop="quotJsqrDyLeaderState">
<el-input v-model="form.quotJsqrDyLeaderState" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="低压组长确认意见" prop="quotJsqrDyLeaderRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrDyLeaderRemark" placeholder="请输入低压组长确认意见" />
</el-form-item>
</el-col>
</el-row>
</div>
<el-divider content-position="center">中压协助</el-divider>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="中压协助状态" prop="quotJsqrZyApprovalStatus">
<el-select v-model="form.quotJsqrZyApprovalStatus">
<el-option
v-for="dict in dict.type.quot_jsxz_approval_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="中压协助说明" prop="quotJsqrZyRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrZyRemark" placeholder="请输入中压协助说明" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="中压操作人" prop="quotJsqrZyOperateUserName">
<el-input v-model="form.quotJsqrZyOperateUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压操作时间" prop="quotJsqrZyOperateTime">
<el-input v-model="form.quotJsqrZyOperateTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压操作状态" prop="quotJsqrZyOperateStatus">
<el-input v-model="form.quotJsqrZyOperateStatus"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="中压审核人" prop="quotJsqrZyCheckUserName">
<el-input v-model="form.quotJsqrZyCheckUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压审核时间" prop="quotJsqrZyCheckTime">
<el-input v-model="form.quotJsqrZyCheckTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压审核状态" prop="quotJsqrZyCheckState">
<el-input v-model="form.quotJsqrZyCheckState"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="中压审核意见" prop="quotJsqrZyCheckRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrZyCheckRemark" placeholder="请输入中压审核意见" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="中压组长" prop="quotJsqrZyLeaderUserName">
<el-input v-model="form.quotJsqrZyLeaderUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压组长确认时间" prop="quotJsqrZyLeaderTime">
<el-input v-model="form.quotJsqrZyLeaderTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压组长确认状态" prop="quotJsqrZyLeaderState">
<el-input v-model="form.quotJsqrZyLeaderState"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="中压组长确认意见" prop="quotJsqrZyLeaderRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrZyLeaderRemark" placeholder="请输入中压组长确认意见" />
</el-form-item>
</el-col>
</el-row>
<div v-if="showZy">
<el-divider content-position="center">中压协助</el-divider>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="中压协助状态" prop="quotJsqrZyApprovalStatus">
<el-select v-model="form.quotJsqrZyApprovalStatus" :disabled="true">
<el-option
v-for="dict in dict.type.quot_jsxz_approval_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="中压协助说明" prop="quotJsqrZyRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrZyRemark" placeholder="请输入中压协助说明" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="中压操作人" prop="quotJsqrZyOperateUserName">
<el-input v-model="form.quotJsqrZyOperateUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压操作时间" prop="quotJsqrZyOperateTime">
<el-input v-model="form.quotJsqrZyOperateTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压操作状态" prop="quotJsqrZyOperateStatus">
<el-input v-model="form.quotJsqrZyOperateStatus" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="中压审核人" prop="quotJsqrZyCheckUserName">
<el-input v-model="form.quotJsqrZyCheckUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压审核时间" prop="quotJsqrZyCheckTime">
<el-input v-model="form.quotJsqrZyCheckTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压审核状态" prop="quotJsqrZyCheckState">
<el-input v-model="form.quotJsqrZyCheckState" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="中压审核意见" prop="quotJsqrZyCheckRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrZyCheckRemark" placeholder="请输入中压审核意见" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="中压组长" prop="quotJsqrZyLeaderUserName">
<el-input v-model="form.quotJsqrZyLeaderUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压组长确认时间" prop="quotJsqrZyLeaderTime">
<el-input v-model="form.quotJsqrZyLeaderTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="中压组长确认状态" prop="quotJsqrZyLeaderState">
<el-input v-model="form.quotJsqrZyLeaderState" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="中压组长确认意见" prop="quotJsqrZyLeaderRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrZyLeaderRemark" placeholder="请输入中压组长确认意见" />
</el-form-item>
</el-col>
</el-row>
</div>
<el-divider content-position="center">其他协助</el-divider>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="其他协助状态" prop="quotJsqrQtApprovalStatus">
<el-select v-model="form.quotJsqrQtApprovalStatus">
<el-option
v-for="dict in dict.type.quot_jsxz_approval_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="其他协助说明" prop="quotJsqrQtRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrQtRemark" placeholder="请输入其他协助说明" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="其他操作人" prop="quotJsqrQtOperateUserName">
<el-input v-model="form.quotJsqrQtOperateUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他操作时间" prop="quotJsqrQtOperateTime">
<el-input v-model="form.quotJsqrQtOperateTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他操作状态" prop="quotJsqrQtOperateStatus">
<el-input v-model="form.quotJsqrQtOperateStatus"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="其他审核人" prop="quotJsqrQtCheckUserName">
<el-input v-model="form.quotJsqrQtCheckUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他审核时间" prop="quotJsqrQtCheckTime">
<el-input v-model="form.quotJsqrQtCheckTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他审核状态" prop="quotJsqrQtCheckState">
<el-input v-model="form.quotJsqrQtCheckState"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="其他审核意见" prop="quotJsqrQtCheckRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrQtCheckRemark" placeholder="请输入其他审核意见" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="其他组长" prop="quotJsqrQtLeaderUserName">
<el-input v-model="form.quotJsqrQtLeaderUserName"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他组长确认时间" prop="quotJsqrQtLeaderTime">
<el-input v-model="form.quotJsqrQtLeaderTime"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他组长确认状态" prop="quotJsqrQtLeaderState">
<el-input v-model="form.quotJsqrQtLeaderState"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="其他组长确认意见" prop="quotJsqrQtLeaderRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrQtLeaderRemark" placeholder="请输入其他组长确认意见" />
</el-form-item>
</el-col>
</el-row>
<div v-if="showQt">
<el-divider content-position="center">其他协助</el-divider>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="其他协助状态" prop="quotJsqrQtApprovalStatus">
<el-select v-model="form.quotJsqrQtApprovalStatus" :disabled="true">
<el-option
v-for="dict in dict.type.quot_jsxz_approval_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="其他协助说明" prop="quotJsqrQtRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrQtRemark" placeholder="请输入其他协助说明" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="其他操作人" prop="quotJsqrQtOperateUserName">
<el-input v-model="form.quotJsqrQtOperateUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他操作时间" prop="quotJsqrQtOperateTime">
<el-input v-model="form.quotJsqrQtOperateTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他操作状态" prop="quotJsqrQtOperateStatus">
<el-input v-model="form.quotJsqrQtOperateStatus" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="其他审核人" prop="quotJsqrQtCheckUserName">
<el-input v-model="form.quotJsqrQtCheckUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他审核时间" prop="quotJsqrQtCheckTime">
<el-input v-model="form.quotJsqrQtCheckTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他审核状态" prop="quotJsqrQtCheckState">
<el-input v-model="form.quotJsqrQtCheckState" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="其他审核意见" prop="quotJsqrQtCheckRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrQtCheckRemark" placeholder="请输入其他审核意见" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="8">
<el-form-item label="其他组长" prop="quotJsqrQtLeaderUserName">
<el-input v-model="form.quotJsqrQtLeaderUserName" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他组长确认时间" prop="quotJsqrQtLeaderTime">
<el-input v-model="form.quotJsqrQtLeaderTime" :disabled="true"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="其他组长确认状态" prop="quotJsqrQtLeaderState">
<el-input v-model="form.quotJsqrQtLeaderState" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24">
<el-form-item label="其他组长确认意见" prop="quotJsqrQtLeaderRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrQtLeaderRemark" placeholder="请输入其他组长确认意见" />
</el-form-item>
</el-col>
</el-row>
</div>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -492,10 +543,11 @@
</style>
<script>
import { listJsqr, getJsqr, delJsqr, addJsqr, updateJsqr } from "@/api/technicalConfirm/technicalConfirm";
import { quotFileList } from "@/api/quot/quot";
export default {
name: "Jsqr",
dicts: ['quot_jsxz_approval_status'],
dicts: ['quot_jsxz_approval_status','quot_jsxz_chapter','quot_jsxz_standard','quot_jsxz_group'],
data() {
return {
//
@ -512,6 +564,8 @@ export default {
total: 0,
// -
jsqrList: [],
// -
quotJsgfFileList: [],
//
title: "",
//
@ -526,7 +580,13 @@ export default {
form: {},
//
rules: {
}
},
//-
showTl: false,
showDy: false,
showZy: false,
showQt: false,
};
},
created() {
@ -634,8 +694,24 @@ export default {
const quotJsqrId = row.quotJsqrId || this.ids
getJsqr(quotJsqrId).then(response => {
this.form = response.data;
this.$set(this.form, "quotJsxzGroup", this.form.quotJsxzGroup==''?[]:this.form.quotJsxzGroup.split(','));
var quotJsxzGroup = this.form.quotJsxzGroup;
if(quotJsxzGroup.indexOf("TL")!==-1){
this.showTl = true;
}
if(quotJsxzGroup.indexOf("DY")!==-1){
this.showDy = true;
}
if(quotJsxzGroup.indexOf("ZY")!==-1){
this.showZy = true;
}
if(quotJsxzGroup.indexOf("QT")!==-1){
this.showQt = true;
}
this.open = true;
this.title = "报价单-技术确认单";
this.getQuotJsgfFileList();
});
},
/** 提交按钮 */
@ -673,7 +749,18 @@ export default {
this.download('jsqr/jsqr/export', {
...this.queryParams
}, `jsqr_${new Date().getTime()}.xlsx`)
}
},
//-
getQuotJsgfFileList(){
const param = {relationId:this.form.quotId,fileType:'quotJsgfFile'}
quotFileList(param).then(response => {
this.quotJsgfFileList = response.rows;
});
},
//
downloadFile(fileUrl){
window.open(fileUrl, "_blank");
},
}
};
</script>