'123'
This commit is contained in:
parent
e559427345
commit
ac9a1dcf13
|
@ -1,5 +1,6 @@
|
||||||
package com.ruoyi.web.controller.quot;
|
package com.ruoyi.web.controller.quot;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
@ -192,7 +193,7 @@ public class QuotController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 提交报价单至报价组
|
* 提交报价单至报价组
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('customer:customer:commit')")
|
@PreAuthorize("@ss.hasPermi('quot:quot:commit')")
|
||||||
@Log(title = "报价单提交报价组", businessType = BusinessType.OTHER)
|
@Log(title = "报价单提交报价组", businessType = BusinessType.OTHER)
|
||||||
@PostMapping("/commitQuot")
|
@PostMapping("/commitQuot")
|
||||||
public AjaxResult commitQuot(@RequestBody Quot quot)
|
public AjaxResult commitQuot(@RequestBody Quot quot)
|
||||||
|
@ -222,7 +223,13 @@ public class QuotController extends BaseController
|
||||||
@PostMapping("/commitJsQuot")
|
@PostMapping("/commitJsQuot")
|
||||||
public AjaxResult commitJsQuot(@RequestBody Quot quot)
|
public AjaxResult commitJsQuot(@RequestBody Quot quot)
|
||||||
{
|
{
|
||||||
String quotJsxzGroup = quot.getQuotJsxzGroup();
|
String quotJsxzGroup = "";
|
||||||
|
String quotJsxzGroupArr[] = quot.getQuotJsxzGroup();
|
||||||
|
if(quotJsxzGroupArr.length>0){
|
||||||
|
quotJsxzGroup = StringUtils.join(quotJsxzGroupArr, ",");
|
||||||
|
quot.setQuotJsxzGroupValues(quotJsxzGroup);
|
||||||
|
}
|
||||||
|
|
||||||
if(StringUtils.isEmpty(quotJsxzGroup)){
|
if(StringUtils.isEmpty(quotJsxzGroup)){
|
||||||
return error("请先选择分组");
|
return error("请先选择分组");
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -267,9 +267,10 @@ public class QuotJsqrController extends BaseController
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取报价单-技术确认单详细信息
|
* 报价单-技术确认单 提交报价组
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('jsqr:jsqr:commit')")
|
@PreAuthorize("@ss.hasPermi('jsqr:jsqr:commit')")
|
||||||
|
@Log(title = "报价单-技术确认单 提交报价组", businessType = BusinessType.UPDATE)
|
||||||
@PostMapping("/commitQuot")
|
@PostMapping("/commitQuot")
|
||||||
public AjaxResult commitQuot(@RequestBody QuotJsqr quotJsqr)
|
public AjaxResult commitQuot(@RequestBody QuotJsqr quotJsqr)
|
||||||
{
|
{
|
||||||
|
@ -277,7 +278,7 @@ 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();
|
String quot_jsxz_group = quot.getQuotJsxzGroup().toString();
|
||||||
|
|
||||||
String quotJsxzConfirmId = quot.getQuotJsxzConfirmId();
|
String quotJsxzConfirmId = quot.getQuotJsxzConfirmId();
|
||||||
if(StringUtils.isNotEmpty(quotJsxzConfirmId)){
|
if(StringUtils.isNotEmpty(quotJsxzConfirmId)){
|
||||||
|
|
|
@ -102,7 +102,8 @@ public class Quot extends BaseEntity
|
||||||
private String quotJsxzApprovalStatus;//技术协助-协助状态
|
private String quotJsxzApprovalStatus;//技术协助-协助状态
|
||||||
private String quotJsxzChapter;//技术协助-是否需要技术章
|
private String quotJsxzChapter;//技术协助-是否需要技术章
|
||||||
private String quotJsxzTechnicalRequirement;//技术协助-技术要求
|
private String quotJsxzTechnicalRequirement;//技术协助-技术要求
|
||||||
private String quotJsxzGroup;//技术协助-分组
|
private String[] quotJsxzGroup;//技术协助-分组
|
||||||
|
private String quotJsxzGroupValues;//技术协助-分组
|
||||||
private String quotJsxzConfirmId;//技术协助-技术确认单id
|
private String quotJsxzConfirmId;//技术协助-技术确认单id
|
||||||
private String quotJsxzConfirmCode;//技术协助-技术确认单号
|
private String quotJsxzConfirmCode;//技术协助-技术确认单号
|
||||||
|
|
||||||
|
@ -314,8 +315,11 @@ public class Quot extends BaseEntity
|
||||||
public String getQuotJsxzTechnicalRequirement() {return quotJsxzTechnicalRequirement; }
|
public String getQuotJsxzTechnicalRequirement() {return quotJsxzTechnicalRequirement; }
|
||||||
public void setQuotJsxzTechnicalRequirement(String quotJsxzTechnicalRequirement) {this.quotJsxzTechnicalRequirement = quotJsxzTechnicalRequirement; }
|
public void setQuotJsxzTechnicalRequirement(String quotJsxzTechnicalRequirement) {this.quotJsxzTechnicalRequirement = quotJsxzTechnicalRequirement; }
|
||||||
|
|
||||||
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 getQuotJsxzConfirmId() { return quotJsxzConfirmId; }
|
public String getQuotJsxzConfirmId() { return quotJsxzConfirmId; }
|
||||||
public void setQuotJsxzConfirmId(String quotJsxzConfirmId) { this.quotJsxzConfirmId = quotJsxzConfirmId; }
|
public void setQuotJsxzConfirmId(String quotJsxzConfirmId) { this.quotJsxzConfirmId = quotJsxzConfirmId; }
|
||||||
|
|
|
@ -57,6 +57,7 @@ public class QuotJsqrServiceImpl implements IQuotJsqrService
|
||||||
public int insertQuotJsqr(QuotJsqr quotJsqr)
|
public int insertQuotJsqr(QuotJsqr quotJsqr)
|
||||||
{
|
{
|
||||||
quotJsqr.setCreateTime(DateUtils.getNowDate());
|
quotJsqr.setCreateTime(DateUtils.getNowDate());
|
||||||
|
quotJsqr.setUpdateTime(DateUtils.getNowDate());
|
||||||
return quotJsqrMapper.insertQuotJsqr(quotJsqr);
|
return quotJsqrMapper.insertQuotJsqr(quotJsqr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<result property="quotJsxzApprovalStatus" column="quot_jsxz_approval_status" />
|
<result property="quotJsxzApprovalStatus" column="quot_jsxz_approval_status" />
|
||||||
<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" />
|
||||||
<result property="quotJsxzGroup" column="quot_jsxz_group" />
|
<result property="quotJsxzGroupValues" column="quot_jsxz_group_values" />
|
||||||
<result property="quotJsxzConfirmId" column="quot_jsxz_confirm_id" />
|
<result property="quotJsxzConfirmId" column="quot_jsxz_confirm_id" />
|
||||||
<result property="quotJsxzConfirmCode" column="quot_jsxz_confirm_code" />
|
<result property="quotJsxzConfirmCode" column="quot_jsxz_confirm_code" />
|
||||||
|
|
||||||
|
@ -71,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.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_standard,a.quot_jsxz_approval_status,a.quot_jsxz_chapter,
|
||||||
a.quot_jsxz_technical_requirement,a.quot_jsxz_group,a.quot_jsxz_confirm_id,q.quot_jsqr_code quot_jsxz_confirm_code
|
a.quot_jsxz_technical_requirement,a.quot_jsxz_group_values,a.quot_jsxz_confirm_id,q.quot_jsqr_code quot_jsxz_confirm_code
|
||||||
from quot a
|
from quot a
|
||||||
<include refid="quotJoins"/>
|
<include refid="quotJoins"/>
|
||||||
</sql>
|
</sql>
|
||||||
|
@ -96,7 +96,7 @@ 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.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.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_standard,a.quot_jsxz_approval_status,a.quot_jsxz_chapter,
|
||||||
a.quot_jsxz_technical_requirement,a.quot_jsxz_group,a.quot_jsxz_confirm_id,q.quot_jsqr_code quot_jsxz_confirm_code,
|
a.quot_jsxz_technical_requirement,a.quot_jsxz_group_values,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_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.mat_diany as sub_mat_diany, b.mat_danw as sub_mat_danw, b.mat_sl as sub_mat_sl,
|
||||||
|
@ -140,7 +140,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="quotJsxzApprovalStatus != null">quot_jsxz_approval_status,</if>
|
<if test="quotJsxzApprovalStatus != null">quot_jsxz_approval_status,</if>
|
||||||
<if test="quotJsxzChapter != null">quot_jsxz_chapter,</if>
|
<if test="quotJsxzChapter != null">quot_jsxz_chapter,</if>
|
||||||
<if test="quotJsxzTechnicalRequirement != null">quot_jsxz_technical_requirement,</if>
|
<if test="quotJsxzTechnicalRequirement != null">quot_jsxz_technical_requirement,</if>
|
||||||
<if test="quotJsxzGroup != null">quot_jsxz_group,</if>
|
<if test="quotJsxzGroupValues != null">quot_jsxz_group_values,</if>
|
||||||
<if test="quotJsxzConfirmId != null">quot_jsxz_confirm_id,</if>
|
<if test="quotJsxzConfirmId != null">quot_jsxz_confirm_id,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
@ -174,7 +174,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="quotJsxzApprovalStatus != null">#{quotJsxzApprovalStatus},</if>
|
<if test="quotJsxzApprovalStatus != null">#{quotJsxzApprovalStatus},</if>
|
||||||
<if test="quotJsxzChapter != null">#{quotJsxzChapter},</if>
|
<if test="quotJsxzChapter != null">#{quotJsxzChapter},</if>
|
||||||
<if test="quotJsxzTechnicalRequirement != null">#{quotJsxzTechnicalRequirement},</if>
|
<if test="quotJsxzTechnicalRequirement != null">#{quotJsxzTechnicalRequirement},</if>
|
||||||
<if test="quotJsxzGroup != null">#{quotJsxzGroup},</if>
|
<if test="quotJsxzGroupValues != null">#{quotJsxzGroupValues},</if>
|
||||||
<if test="quotJsxzConfirmId != null">#{quotJsxzConfirmId},</if>
|
<if test="quotJsxzConfirmId != null">#{quotJsxzConfirmId},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
@ -211,7 +211,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="quotJsxzApprovalStatus != null">quot_jsxz_approval_status = #{quotJsxzApprovalStatus},</if>
|
<if test="quotJsxzApprovalStatus != null">quot_jsxz_approval_status = #{quotJsxzApprovalStatus},</if>
|
||||||
<if test="quotJsxzChapter != null">quot_jsxz_chapter = #{quotJsxzChapter},</if>
|
<if test="quotJsxzChapter != null">quot_jsxz_chapter = #{quotJsxzChapter},</if>
|
||||||
<if test="quotJsxzTechnicalRequirement != null">quot_jsxz_technical_requirement = #{quotJsxzTechnicalRequirement},</if>
|
<if test="quotJsxzTechnicalRequirement != null">quot_jsxz_technical_requirement = #{quotJsxzTechnicalRequirement},</if>
|
||||||
<if test="quotJsxzGroup != null">quot_jsxz_group = #{quotJsxzGroup},</if>
|
<if test="quotJsxzGroupValues != null">quot_jsxz_group_values = #{quotJsxzGroupValues},</if>
|
||||||
<if test="quotJsxzConfirmId != null">quot_jsxz_confirm_id = #{quotJsxzConfirmId},</if>
|
<if test="quotJsxzConfirmId != null">quot_jsxz_confirm_id = #{quotJsxzConfirmId},</if>
|
||||||
</trim>
|
</trim>
|
||||||
where quot_id = #{quotId}
|
where quot_id = #{quotId}
|
||||||
|
|
|
@ -669,7 +669,8 @@ export default {
|
||||||
quotJsxzApprovalStatus: null,
|
quotJsxzApprovalStatus: null,
|
||||||
quotJsxzChapter: null,
|
quotJsxzChapter: null,
|
||||||
quotJsxzTechnicalRequirement: null,
|
quotJsxzTechnicalRequirement: null,
|
||||||
quotJsxzGroup: null
|
quotJsxzGroup: [],
|
||||||
|
quotJsxzGroupValues: []
|
||||||
};
|
};
|
||||||
this.quotMaterialList = [];
|
this.quotMaterialList = [];
|
||||||
this.quotXjFileList = [];
|
this.quotXjFileList = [];
|
||||||
|
@ -713,7 +714,7 @@ export default {
|
||||||
const quotId = row.quotId || this.ids
|
const quotId = row.quotId || this.ids
|
||||||
getQuot(quotId).then(response => {
|
getQuot(quotId).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(','));
|
||||||
this.quotMaterialList = response.data.quotMaterialList;
|
this.quotMaterialList = response.data.quotMaterialList;
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改报价";
|
this.title = "修改报价";
|
||||||
|
@ -727,17 +728,7 @@ export default {
|
||||||
saveForm() {
|
saveForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
//技术协助-分组传值
|
//this.form.quotJsxzGroup = this.convertString();
|
||||||
let quotJsxzGroups = '';
|
|
||||||
if(this.form.quotJsxzGroup){
|
|
||||||
this.form.quotJsxzGroup.forEach(function (item,index) {
|
|
||||||
if(index !== 0){
|
|
||||||
quotJsxzGroups+=',';
|
|
||||||
}
|
|
||||||
quotJsxzGroups+=item;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.form.quotJsxzGroup = quotJsxzGroups;
|
|
||||||
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 => {
|
||||||
|
@ -759,17 +750,7 @@ export default {
|
||||||
commitForm() {
|
commitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
//技术协助-分组传值
|
//this.form.quotJsxzGroup = this.convertString();
|
||||||
let quotJsxzGroups = '';
|
|
||||||
if(this.form.quotJsxzGroup){
|
|
||||||
this.form.quotJsxzGroup.forEach(function (item,index) {
|
|
||||||
if(index !== 0){
|
|
||||||
quotJsxzGroups+=',';
|
|
||||||
}
|
|
||||||
quotJsxzGroups+=item;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.form.quotJsxzGroup = quotJsxzGroups;
|
|
||||||
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("提交成功");
|
||||||
|
@ -780,27 +761,33 @@ 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();
|
||||||
let quotJsxzGroups = '';
|
this.form.quotMaterialList = this.quotMaterialList;
|
||||||
if(this.form.quotJsxzGroup){
|
commitJsQuot(this.form).then(response => {
|
||||||
this.form.quotJsxzGroup.forEach(function (item,index) {
|
this.$modal.msgSuccess("提交技术协助成功");
|
||||||
if(index !== 0){
|
this.open = false;
|
||||||
quotJsxzGroups+=',';
|
this.getList();
|
||||||
}
|
});
|
||||||
quotJsxzGroups+=item;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.form.quotJsxzGroup = quotJsxzGroups;
|
|
||||||
this.form.quotMaterialList = this.quotMaterialList;
|
|
||||||
commitJsQuot(this.form).then(response => {
|
|
||||||
this.$modal.msgSuccess("提交技术协助成功");
|
|
||||||
this.open = false;
|
|
||||||
this.getList();
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
|
Loading…
Reference in New Issue