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 !
#Mon May 20 13:09:39 CST 2024
#Tue May 21 16:05:10 CST 2024
jco.destination.pool_capacity=10
jco.client.lang=ZH
jco.client.ashost=172.19.0.120
@ -7,5 +7,5 @@ jco.client.saprouter=
jco.client.user=RFC
jco.client.sysnr=00
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

View File

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

View File

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

View File

@ -166,7 +166,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql>
<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,
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
from OAQuot a
<include refid="quotsJoins"/>

View File

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

View File

@ -27,6 +27,7 @@
:key="dict.value"
:label="dict.label"
:value="dict.value"
v-if="!quotApprovalStatusHidden && (dict.value == '1' || dict.value == '2') "
/>
</el-select>
</el-form-item>
@ -38,7 +39,7 @@
<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" 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">
<el-button type="text" @click="handleDeleteClick(scope.row)">删除</el-button>
</template>
@ -54,6 +55,7 @@
<el-table-column label="总价" width="100" align="center" prop="totalPrice" />
<el-table-column label="联系人" align="center" prop="quotLxr" />
<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="updateTime" />
<el-table-column label="提交状态" align="center" prop="quotApprovalStatus" width="150px">
@ -165,6 +167,8 @@
}
</style>
<script>
import { checkPermi, checkRole } from "@/utils/permission"; //
import {toDecimal, versionList,listQuots,getQuotDetail,deleteQuots,updateSelectedResultData,madeQuot,saveQuot,commitQuot } from "@/api/redBook/redBook";
export default {
@ -172,6 +176,9 @@
dicts:['rb_quot_approval_status'],
data() {
return {
//
quotApprovalStatusHidden: true,
//
loading: true,
//
@ -221,10 +228,18 @@
}
},
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.getVersionList();
},
methods: {
checkPermi,
checkRole,
/** 查询报价单列表 */
getList() {
this.loading = true;