This commit is contained in:
xd 2024-04-11 13:31:16 +08:00
parent ac9a1dcf13
commit 5aadb3f615
6 changed files with 74 additions and 41 deletions

View File

@ -123,6 +123,10 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrTlOperateTime(DateUtils.getTime()); quotJsqr.setQuotJsqrTlOperateTime(DateUtils.getTime());
quotJsqr.setQuotJsqrTlOperateState(state); quotJsqr.setQuotJsqrTlOperateState(state);
if("3".equals(state)){//驳回 if("3".equals(state)){//驳回
String quotJsqrTlRemark = info.getQuotJsqrTlRemark();
if(StringUtils.isEmpty(quotJsqrTlRemark)){
return error("特缆协助说明不能为空");
}
quotJsqr.setQuotJsqrTlApprovalStatus("3");//特缆协助状态 设置为 驳回 quotJsqr.setQuotJsqrTlApprovalStatus("3");//特缆协助状态 设置为 驳回
} }
} }
@ -159,6 +163,10 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrDyOperateTime(DateUtils.getTime()); quotJsqr.setQuotJsqrDyOperateTime(DateUtils.getTime());
quotJsqr.setQuotJsqrDyOperateState(state); quotJsqr.setQuotJsqrDyOperateState(state);
if("3".equals(state)){//驳回 if("3".equals(state)){//驳回
String quotJsqrDyRemark = info.getQuotJsqrDyRemark();
if(StringUtils.isEmpty(quotJsqrDyRemark)){
return error("低压协助说明不能为空");
}
quotJsqr.setQuotJsqrDyApprovalStatus("3");//低压协助状态 设置为 驳回 quotJsqr.setQuotJsqrDyApprovalStatus("3");//低压协助状态 设置为 驳回
} }
} }
@ -195,6 +203,10 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrZyOperateTime(DateUtils.getTime()); quotJsqr.setQuotJsqrZyOperateTime(DateUtils.getTime());
quotJsqr.setQuotJsqrZyOperateState(state); quotJsqr.setQuotJsqrZyOperateState(state);
if("3".equals(state)){//驳回 if("3".equals(state)){//驳回
String quotJsqrZyRemark = info.getQuotJsqrZyRemark();
if(StringUtils.isEmpty(quotJsqrZyRemark)){
return error("中压协助说明不能为空");
}
quotJsqr.setQuotJsqrZyApprovalStatus("3");//中压协助状态 设置为 驳回 quotJsqr.setQuotJsqrZyApprovalStatus("3");//中压协助状态 设置为 驳回
} }
} }
@ -231,6 +243,10 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrQtOperateTime(DateUtils.getTime()); quotJsqr.setQuotJsqrQtOperateTime(DateUtils.getTime());
quotJsqr.setQuotJsqrQtOperateState(state); quotJsqr.setQuotJsqrQtOperateState(state);
if("3".equals(state)){//驳回 if("3".equals(state)){//驳回
String quotJsqrQtRemark = info.getQuotJsqrQtRemark();
if(StringUtils.isEmpty(quotJsqrQtRemark)){
return error("其他协助说明不能为空");
}
quotJsqr.setQuotJsqrQtApprovalStatus("3");//其他协助状态 设置为 驳回 quotJsqr.setQuotJsqrQtApprovalStatus("3");//其他协助状态 设置为 驳回
} }
} }
@ -278,9 +294,10 @@ public class QuotJsqrController extends BaseController
QuotJsqr info = quotJsqrService.selectQuotJsqrByQuotJsqrId(quotJsqrId); QuotJsqr info = quotJsqrService.selectQuotJsqrByQuotJsqrId(quotJsqrId);
Quot quot = quotService.selectQuotByQuotJsqrId(quotJsqrId); Quot quot = quotService.selectQuotByQuotJsqrId(quotJsqrId);
String quot_jsxz_group = quot.getQuotJsxzGroup().toString();
String quotJsxzConfirmId = quot.getQuotJsxzConfirmId(); String quot_jsxz_group = quot.getQuotJsxzGroupValues();//技术协助单-分组
String quotJsxzConfirmId = quot.getQuotJsxzConfirmId();//技术协助单Id
if(StringUtils.isNotEmpty(quotJsxzConfirmId)){ if(StringUtils.isNotEmpty(quotJsxzConfirmId)){
Boolean tlFlag = true; Boolean tlFlag = true;
if(quot_jsxz_group.indexOf("TL")!=-1) {//校验特缆 操作人审核人组长 通过情况 if(quot_jsxz_group.indexOf("TL")!=-1) {//校验特缆 操作人审核人组长 通过情况

View File

@ -554,7 +554,8 @@ public class QuotJsqr extends BaseEntity
private String quotJsxzApprovalStatus; private String quotJsxzApprovalStatus;
/** 技术协助-分组 */ /** 技术协助-分组 */
private String quotJsxzGroup; private String[] quotJsxzGroup;
private String quotJsxzGroupValues;
/** 技术协助-标准 */ /** 技术协助-标准 */
private String quotJsxzStandard; private String quotJsxzStandard;
@ -580,8 +581,11 @@ public class QuotJsqr extends BaseEntity
public String getQuotJsxzApprovalStatus() { return quotJsxzApprovalStatus; } public String getQuotJsxzApprovalStatus() { return quotJsxzApprovalStatus; }
public void setQuotJsxzApprovalStatus(String quotJsxzApprovalStatus) { this.quotJsxzApprovalStatus = quotJsxzApprovalStatus; } public void setQuotJsxzApprovalStatus(String quotJsxzApprovalStatus) { this.quotJsxzApprovalStatus = quotJsxzApprovalStatus; }
public String getQuotJsxzGroup() { return quotJsxzGroup; } public String[] getQuotJsxzGroup() { return quotJsxzGroup; }
public void setQuotJsxzGroup(String quotJsxzGroup) { this.quotJsxzGroup = quotJsxzGroup; } public void setQuotJsxzGroup(String[] quotJsxzGroup) { this.quotJsxzGroup = quotJsxzGroup; }
public String getQuotJsxzGroupValues() { return quotJsxzGroupValues; }
public void setQuotJsxzGroupValues(String quotJsxzGroupValues) { this.quotJsxzGroupValues = quotJsxzGroupValues; }
public String getQuotJsxzStandard() { return quotJsxzStandard; } public String getQuotJsxzStandard() { return quotJsxzStandard; }
public void setQuotJsxzStandard(String quotJsxzStandard) { this.quotJsxzStandard = quotJsxzStandard; } public void setQuotJsxzStandard(String quotJsxzStandard) { this.quotJsxzStandard = quotJsxzStandard; }

View File

@ -5,15 +5,20 @@ public class QuotJsqrXzDetail {
private String quotJsxzGroup; private String quotJsxzGroup;
private String type; private String type;
private String state; private String state;
private String quotJsqrTlRemark;
private String quotJsqrTlCheckRemark; private String quotJsqrTlCheckRemark;
private String quotJsqrTlLeaderRemark; private String quotJsqrTlLeaderRemark;
private String quotJsqrDyRemark;
private String quotJsqrDyCheckRemark; private String quotJsqrDyCheckRemark;
private String quotJsqrDyLeaderRemark; private String quotJsqrDyLeaderRemark;
private String quotJsqrZyRemark;
private String quotJsqrZyCheckRemark; private String quotJsqrZyCheckRemark;
private String quotJsqrZyLeaderRemark; private String quotJsqrZyLeaderRemark;
private String quotJsqrQtRemark;
private String quotJsqrQtCheckRemark; private String quotJsqrQtCheckRemark;
private String quotJsqrQtLeaderRemark; private String quotJsqrQtLeaderRemark;
@ -49,6 +54,14 @@ public class QuotJsqrXzDetail {
this.type = type; this.type = type;
} }
public String getQuotJsqrTlRemark() {
return quotJsqrTlRemark;
}
public void setQuotJsqrTlRemark(String quotJsqrTlRemark) {
this.quotJsqrTlRemark = quotJsqrTlRemark;
}
public String getQuotJsqrTlCheckRemark() { public String getQuotJsqrTlCheckRemark() {
return quotJsqrTlCheckRemark; return quotJsqrTlCheckRemark;
} }
@ -65,6 +78,14 @@ public class QuotJsqrXzDetail {
this.quotJsqrTlLeaderRemark = quotJsqrTlLeaderRemark; this.quotJsqrTlLeaderRemark = quotJsqrTlLeaderRemark;
} }
public String getQuotJsqrDyRemark() {
return quotJsqrDyRemark;
}
public void setQuotJsqrDyRemark(String quotJsqrDyRemark) {
this.quotJsqrDyRemark = quotJsqrDyRemark;
}
public String getQuotJsqrDyCheckRemark() { public String getQuotJsqrDyCheckRemark() {
return quotJsqrDyCheckRemark; return quotJsqrDyCheckRemark;
} }
@ -81,6 +102,14 @@ public class QuotJsqrXzDetail {
this.quotJsqrDyLeaderRemark = quotJsqrDyLeaderRemark; this.quotJsqrDyLeaderRemark = quotJsqrDyLeaderRemark;
} }
public String getQuotJsqrZyRemark() {
return quotJsqrZyRemark;
}
public void setQuotJsqrZyRemark(String quotJsqrZyRemark) {
this.quotJsqrZyRemark = quotJsqrZyRemark;
}
public String getQuotJsqrZyCheckRemark() { public String getQuotJsqrZyCheckRemark() {
return quotJsqrZyCheckRemark; return quotJsqrZyCheckRemark;
} }
@ -97,6 +126,14 @@ public class QuotJsqrXzDetail {
this.quotJsqrZyLeaderRemark = quotJsqrZyLeaderRemark; this.quotJsqrZyLeaderRemark = quotJsqrZyLeaderRemark;
} }
public String getQuotJsqrQtRemark() {
return quotJsqrQtRemark;
}
public void setQuotJsqrQtRemark(String quotJsqrQtRemark) {
this.quotJsqrQtRemark = quotJsqrQtRemark;
}
public String getQuotJsqrQtCheckRemark() { public String getQuotJsqrQtCheckRemark() {
return quotJsqrQtCheckRemark; return quotJsqrQtCheckRemark;
} }

View File

@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="quotCustomerName" column="quot_customer_name" /> <result property="quotCustomerName" column="quot_customer_name" />
<result property="quotProject" column="quot_project" /> <result property="quotProject" column="quot_project" />
<result property="quotJsxzApprovalStatus" column="quot_jsxz_approval_status" /> <result property="quotJsxzApprovalStatus" column="quot_jsxz_approval_status" />
<result property="quotJsxzGroup" column="quot_jsxz_group" /> <result property="quotJsxzGroupValues" column="quot_jsxz_group_values" />
<result property="quotJsxzStandard" column="quot_jsxz_standard" /> <result property="quotJsxzStandard" column="quot_jsxz_standard" />
<result property="quotJsxzChapter" column="quot_jsxz_chapter" /> <result property="quotJsxzChapter" column="quot_jsxz_chapter" />
<result property="quotJsxzTechnicalRequirement" column="quot_jsxz_technical_requirement" /> <result property="quotJsxzTechnicalRequirement" column="quot_jsxz_technical_requirement" />
@ -99,7 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.quot_jsqr_qt_check_time, a.quot_jsqr_qt_check_remark, a.quot_jsqr_qt_leader_user_name, a.quot_jsqr_qt_leader_state, a.quot_jsqr_qt_check_time, a.quot_jsqr_qt_check_remark, a.quot_jsqr_qt_leader_user_name, a.quot_jsqr_qt_leader_state,
a.quot_jsqr_qt_leader_time, a.quot_jsqr_qt_leader_remark, a.create_by, a.create_time, a.update_by, a.update_time, a.quot_jsqr_qt_leader_time, a.quot_jsqr_qt_leader_remark, a.create_by, a.create_time, a.update_by, a.update_time,
u.nick_name create_name,q.quot_code,q.quot_salesman_name,q.quot_customer_name,q.quot_project, u.nick_name create_name,q.quot_code,q.quot_salesman_name,q.quot_customer_name,q.quot_project,
q.quot_jsxz_approval_status,q.quot_jsxz_group,q.quot_jsxz_standard,q.quot_jsxz_chapter,q.quot_jsxz_technical_requirement q.quot_jsxz_approval_status,q.quot_jsxz_group_values,q.quot_jsxz_standard,q.quot_jsxz_chapter,q.quot_jsxz_technical_requirement
from quot_jsqr a from quot_jsqr a
<include refid="quotJsqrJoins"/> <include refid="quotJsqrJoins"/>
</sql> </sql>

View File

@ -670,7 +670,7 @@ export default {
quotJsxzChapter: null, quotJsxzChapter: null,
quotJsxzTechnicalRequirement: null, quotJsxzTechnicalRequirement: null,
quotJsxzGroup: [], quotJsxzGroup: [],
quotJsxzGroupValues: [] quotJsxzGroupValues: null
}; };
this.quotMaterialList = []; this.quotMaterialList = [];
this.quotXjFileList = []; this.quotXjFileList = [];
@ -728,7 +728,6 @@ export default {
saveForm() { saveForm() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
//this.form.quotJsxzGroup = this.convertString();
this.form.quotMaterialList = this.quotMaterialList; this.form.quotMaterialList = this.quotMaterialList;
if (this.form.quotId != null) { if (this.form.quotId != null) {
updateQuot(this.form).then(response => { updateQuot(this.form).then(response => {
@ -750,7 +749,6 @@ export default {
commitForm() { commitForm() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
//this.form.quotJsxzGroup = this.convertString();
this.form.quotMaterialList = this.quotMaterialList; this.form.quotMaterialList = this.quotMaterialList;
commitQuot(this.form).then(response => { commitQuot(this.form).then(response => {
this.$modal.msgSuccess("提交成功"); this.$modal.msgSuccess("提交成功");
@ -761,27 +759,11 @@ export default {
}); });
}, },
/** 报价单-技术协助分组 格式转换 */
convertString(){
//-
let quotJsxzGroups = '';
if(this.form.quotJsxzGroup){
this.form.quotJsxzGroup.forEach(function (item,index) {
if(index !== 0){
quotJsxzGroups+=',';
}
quotJsxzGroups+=item;
})
}
return quotJsxzGroups;
},
/** 报价组权限控制 */ /** 报价组权限控制 */
checkPermi, checkPermi,
/** 报价组提交技术协助按钮 */ /** 报价组提交技术协助按钮 */
commitJsForm() { commitJsForm() {
//this.form.quotJsxzGroup = this.convertString();
this.form.quotMaterialList = this.quotMaterialList; this.form.quotMaterialList = this.quotMaterialList;
commitJsQuot(this.form).then(response => { commitJsQuot(this.form).then(response => {
this.$modal.msgSuccess("提交技术协助成功"); this.$modal.msgSuccess("提交技术协助成功");

View File

@ -34,7 +34,7 @@
</el-table-column> </el-table-column>
<el-table-column label="技术协助分组" align="center" prop="quotJsxzGroup" width="150px"> <el-table-column label="技术协助分组" align="center" prop="quotJsxzGroup" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.quot_jsxz_group" :value="scope.row.quotJsxzGroup"/> <dict-tag :options="dict.type.quot_jsxz_group" :value="scope.row.quotJsxzGroupValues"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="特缆协助状态" align="center" prop="quotJsqrTlApprovalStatus" width="150px"> <el-table-column label="特缆协助状态" align="center" prop="quotJsqrTlApprovalStatus" width="150px">
@ -889,8 +889,8 @@ export default {
const quotJsqrId = row.quotJsqrId || this.ids const quotJsqrId = row.quotJsqrId || this.ids
getJsqr(quotJsqrId).then(response => { getJsqr(quotJsqrId).then(response => {
this.form = response.data; this.form = response.data;
this.$set(this.form, "quotJsxzGroup", (this.form.quotJsxzGroup==''||this.form.quotJsxzGroup==null)?[]:this.form.quotJsxzGroup.split(',')); this.$set(this.form, "quotJsxzGroup", (this.form.quotJsxzGroupValues==''||this.form.quotJsxzGroupValues==null)?[]:this.form.quotJsxzGroupValues.split(','));
var quotJsxzGroup = this.form.quotJsxzGroup; var quotJsxzGroup = this.form.quotJsxzGroupValues;
if(quotJsxzGroup.indexOf("TL")!==-1){ if(quotJsxzGroup.indexOf("TL")!==-1){
this.showTl = true; this.showTl = true;
this.getQuotJsqrFileList('quotJsqrTlFkFile'); this.getQuotJsqrFileList('quotJsqrTlFkFile');
@ -919,22 +919,10 @@ export default {
}, },
/** 提交按钮 */ /** 提交按钮 */
commitQuot() { commitQuot() {
//-
let quotJsxzGroups = '';
if(this.form.quotJsxzGroup){
this.form.quotJsxzGroup.forEach(function (item,index) {
if(index !== 0){
quotJsxzGroups+=',';
}
quotJsxzGroups+=item;
})
}
this.form.quotJsxzGroup = quotJsxzGroups;
// //
commitQuot(this.form).then(response => { commitQuot(this.form).then(response => {
this.open = false; this.open = false;
}) })
this.form.quotJsxzGroup = quotJsxzGroups.split(",");
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
@ -1030,15 +1018,20 @@ export default {
param.quotJsxzGroup = quotJsxzGroup;// param.quotJsxzGroup = quotJsxzGroup;//
param.type = type;// param.type = type;//
param.state = state;/// param.state = state;///
param.quotJsqrTlRemark = this.form.quotJsqrTlRemark;
param.quotJsqrTlCheckRemark = this.form.quotJsqrTlCheckRemark; param.quotJsqrTlCheckRemark = this.form.quotJsqrTlCheckRemark;
param.quotJsqrTlLeaderRemark = this.form.quotJsqrTlLeaderRemark; param.quotJsqrTlLeaderRemark = this.form.quotJsqrTlLeaderRemark;
param.quotJsqrDyRemark = this.form.quotJsqrDyRemark;
param.quotJsqrDyCheckRemark = this.form.quotJsqrDyCheckRemark; param.quotJsqrDyCheckRemark = this.form.quotJsqrDyCheckRemark;
param.quotJsqrDyLeaderRemark = this.form.quotJsqrDyLeaderRemark; param.quotJsqrDyLeaderRemark = this.form.quotJsqrDyLeaderRemark;
param.quotJsqrZyRemark = this.form.quotJsqrZyRemark;
param.quotJsqrZyCheckRemark = this.form.quotJsqrZyCheckRemark; param.quotJsqrZyCheckRemark = this.form.quotJsqrZyCheckRemark;
param.quotJsqrZyLeaderRemark = this.form.quotJsqrZyLeaderRemark; param.quotJsqrZyLeaderRemark = this.form.quotJsqrZyLeaderRemark;
param.quotJsqrQtRemark = this.form.quotJsqrQtRemark;
param.quotJsqrQtCheckRemark = this.form.quotJsqrQtCheckRemark; param.quotJsqrQtCheckRemark = this.form.quotJsqrQtCheckRemark;
param.quotJsqrQtLeaderRemark = this.form.quotJsqrQtLeaderRemark; param.quotJsqrQtLeaderRemark = this.form.quotJsqrQtLeaderRemark;