This commit is contained in:
xd 2024-05-21 17:01:09 +08:00
parent 7dc1605bee
commit 143216de73
6 changed files with 39 additions and 18 deletions

View File

@ -1,5 +1,5 @@
#for tests only ! #for tests only !
#Mon May 20 13:09:39 CST 2024 #Tue May 21 16:05:10 CST 2024
jco.destination.pool_capacity=10 jco.destination.pool_capacity=10
jco.client.lang=ZH jco.client.lang=ZH
jco.client.ashost=172.19.0.120 jco.client.ashost=172.19.0.120
@ -7,5 +7,5 @@ jco.client.saprouter=
jco.client.user=RFC jco.client.user=RFC
jco.client.sysnr=00 jco.client.sysnr=00
jco.destination.peak_limit=10 jco.destination.peak_limit=10
jco.client.passwd=dZ:kRfA{dgU`sub#+3T]H6aOCHVj9d94]yQ__F^^y$n+#PX/ jco.client.passwd=u]!Z{M|^ps7|OTDYVR9FX@#VvMHD7~y@=V7NzYJz?LvRTx~H
jco.client.client=300 jco.client.client=300

View File

@ -295,7 +295,7 @@ public class QuotController extends BaseController
} }
if(StringUtils.isEmpty(quotJsxzGroup)){ if(StringUtils.isEmpty(quotJsxzGroup)){
return error("请先选择分组"); return error("技术协助-请先选择分组");
}else{ }else{
QuotJsqr quotJsqr = new QuotJsqr(); QuotJsqr quotJsqr = new QuotJsqr();
String quotJsqrId = UUID.fastUUID().toString(); String quotJsqrId = UUID.fastUUID().toString();
@ -401,9 +401,9 @@ public class QuotController extends BaseController
@PostMapping("/feedbackQuot") @PostMapping("/feedbackQuot")
public AjaxResult feedbackQuot(@RequestBody Quot quot) public AjaxResult feedbackQuot(@RequestBody Quot quot)
{ {
String quot_id = quot.getQuotId(); //String quot_id = quot.getQuotId();
Quot info = quotService.selectQuotByQuotId(quot_id); //Quot info = quotService.selectQuotByQuotId(quot_id);
String quot_jsxz_approval_status = quot.getQuotJsxzApprovalStatus(); String quot_jsxz_approval_status = quot.getQuotJsxzApprovalStatus();
String quot_hj_approval_status = quot.getQuotHjApprovalStatus(); String quot_hj_approval_status = quot.getQuotHjApprovalStatus();
if("1".equals(quot_jsxz_approval_status)){ if("1".equals(quot_jsxz_approval_status)){
@ -413,11 +413,11 @@ public class QuotController extends BaseController
return error("核价还未完成"); return error("核价还未完成");
} }
info.setQuotQuotationDate(DateUtils.getNowDate());//报价单-报价日期设置为 当前日期 quot.setQuotQuotationDate(DateUtils.getNowDate());//报价单-报价日期设置为 当前日期
info.setQuotApprovalStatus("2"); quot.setQuotApprovalStatus("2");
info.setQuotCheckUserName(getUsername()); quot.setQuotCheckUserName(getUsername());
quotService.updateQuot(info); quotService.updateQuot(quot);
return success(); return success();
} }
@ -429,15 +429,15 @@ public class QuotController extends BaseController
@PostMapping("/rejectQuot") @PostMapping("/rejectQuot")
public AjaxResult rejectQuot(@RequestBody Quot quot) public AjaxResult rejectQuot(@RequestBody Quot quot)
{ {
String quot_id = quot.getQuotId(); //String quot_id = quot.getQuotId();
Quot info = quotService.selectQuotByQuotId(quot_id); //Quot info = quotService.selectQuotByQuotId(quot_id);
String quot_feedback_explanation = quot.getQuotFeedbackExplanation(); String quot_feedback_explanation = quot.getQuotFeedbackExplanation();
if(StringUtils.isEmpty(quot_feedback_explanation)){ if(StringUtils.isEmpty(quot_feedback_explanation)){
return error("反馈说明不能为空"); return error("报价信息-反馈说明不能为空");
} }
info.setQuotApprovalStatus("3"); quot.setQuotApprovalStatus("3");
quotService.updateQuot(info); quotService.updateQuot(quot);
return success(); return success();
} }
} }

View File

@ -16,6 +16,8 @@ public class OAQuot extends BaseEntity {
private String rbDateUid;//调价版本 private String rbDateUid;//调价版本
private String quotApprovalStatus;//提交状态 private String quotApprovalStatus;//提交状态
private String createName;//创建人
private List<OAQuotProduct> selectedResultData; private List<OAQuotProduct> selectedResultData;
public String getQuot_id() { return quot_id; } public String getQuot_id() { return quot_id; }
@ -74,6 +76,10 @@ public class OAQuot extends BaseEntity {
return selectedResultData; return selectedResultData;
} }
public String getCreateName() { return createName; }
public void setCreateName(String createName) { this.createName = createName; }
public void setSelectedResultData(List<OAQuotProduct> selectedResultData) { public void setSelectedResultData(List<OAQuotProduct> selectedResultData) {
this.selectedResultData = selectedResultData; this.selectedResultData = selectedResultData;
} }

View File

@ -166,7 +166,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="listQuots" parameterType="OAQuot" resultType="OAQuot"> <select id="listQuots" parameterType="OAQuot" resultType="OAQuot">
select a.quot_id,a.quotCode,a.quotCustomer,a.quotProject,a.quotLxr,a.quotLxrdh,a.totalPrice,a.quotApprovalStatus, select a.quot_id,a.quotCode,a.quotCustomer,a.quotProject,a.quotLxr,a.quotLxrdh,a.totalPrice,a.quotApprovalStatus,
a.create_by,a.create_time createTime, a.create_by,u.nick_name createName,a.create_time createTime,
a.update_by,a.update_time updateTime a.update_by,a.update_time updateTime
from OAQuot a from OAQuot a
<include refid="quotsJoins"/> <include refid="quotsJoins"/>

View File

@ -146,7 +146,7 @@
<!-- 添加或修改报价对话框 --> <!-- 添加或修改报价对话框 -->
<el-dialog :visible.sync="open" width="1050px" append-to-body> <el-dialog :visible.sync="open" width="1050px" append-to-body>
<template slot="title"> <template slot="title">
报价单信息(<span style="color:red">此报价单数据型号规格电压等如需下单或签订合同引用请再次自行核对责任自负</span>) 报价单信息<span style="color:red;margin-left:25px">(此报价单数据型号规格电压等如需下单或签订合同引用请再次自行核对责任自负)</span>
</template> </template>
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-tabs v-model="activeName" tab-position="left" style="margin-left: 15px; margin-right: 15px;height: 480px;"> <el-tabs v-model="activeName" tab-position="left" style="margin-left: 15px; margin-right: 15px;height: 480px;">
@ -1063,7 +1063,7 @@ export default {
this.productUpload.open = false; this.productUpload.open = false;
this.productUpload.isUploading = false; this.productUpload.isUploading = false;
this.$refs.productUpload.clearFiles(); this.$refs.productUpload.clearFiles();
this.$message.warning("产品数据导入成功!"); this.$message.success("产品数据导入成功!");
this.quotMaterialList = this.quotMaterialList.concat(response.data) this.quotMaterialList = this.quotMaterialList.concat(response.data)
}, },
// //

View File

@ -27,6 +27,7 @@
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
v-if="!quotApprovalStatusHidden && (dict.value == '1' || dict.value == '2') "
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -38,7 +39,7 @@
<el-table width="100%" v-loading="loading" :data="quotsList" :row-class-name="rowQuotsIndex"> <el-table width="100%" v-loading="loading" :data="quotsList" :row-class-name="rowQuotsIndex">
<el-table-column fixed="left" label="序号" align="center" prop="index" width="50"/> <el-table-column fixed="left" label="序号" align="center" prop="index" width="50"/>
<el-table-column fixed="left" label="操作" align="center" width="60" class-name="small-padding fixed-width"> <el-table-column fixed="left" label="操作" align="center" width="60" class-name="small-padding fixed-width" v-if="checkRole(['SALES_MAN'])">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="handleDeleteClick(scope.row)">删除</el-button> <el-button type="text" @click="handleDeleteClick(scope.row)">删除</el-button>
</template> </template>
@ -54,6 +55,7 @@
<el-table-column label="总价" width="100" align="center" prop="totalPrice" /> <el-table-column label="总价" width="100" align="center" prop="totalPrice" />
<el-table-column label="联系人" align="center" prop="quotLxr" /> <el-table-column label="联系人" align="center" prop="quotLxr" />
<el-table-column label="联系人电话" width="100" align="center" prop="quotLxrdh" /> <el-table-column label="联系人电话" width="100" align="center" prop="quotLxrdh" />
<el-table-column label="创建人" width="180" align="center" prop="createName" />
<el-table-column label="创建日期" width="180" align="center" prop="createTime" /> <el-table-column label="创建日期" width="180" align="center" prop="createTime" />
<el-table-column label="更新日期" width="180" align="center" prop="updateTime" /> <el-table-column label="更新日期" width="180" align="center" prop="updateTime" />
<el-table-column label="提交状态" align="center" prop="quotApprovalStatus" width="150px"> <el-table-column label="提交状态" align="center" prop="quotApprovalStatus" width="150px">
@ -165,6 +167,8 @@
} }
</style> </style>
<script> <script>
import { checkPermi, checkRole } from "@/utils/permission"; //
import {toDecimal, versionList,listQuots,getQuotDetail,deleteQuots,updateSelectedResultData,madeQuot,saveQuot,commitQuot } from "@/api/redBook/redBook"; import {toDecimal, versionList,listQuots,getQuotDetail,deleteQuots,updateSelectedResultData,madeQuot,saveQuot,commitQuot } from "@/api/redBook/redBook";
export default { export default {
@ -172,6 +176,9 @@
dicts:['rb_quot_approval_status'], dicts:['rb_quot_approval_status'],
data() { data() {
return { return {
//
quotApprovalStatusHidden: true,
// //
loading: true, loading: true,
// //
@ -221,10 +228,18 @@
} }
}, },
created() { created() {
const roles = this.$store.state.user.roles;
if(roles && roles.indexOf('QUOT') !== -1 && roles.indexOf('admin') == -1 ){//
this.quotApprovalStatusHidden = false;
this.queryParams.quotApprovalStatus = '1';
}
this.getList(); this.getList();
this.getVersionList(); this.getVersionList();
}, },
methods: { methods: {
checkPermi,
checkRole,
/** 查询报价单列表 */ /** 查询报价单列表 */
getList() { getList() {
this.loading = true; this.loading = true;