'123'
This commit is contained in:
parent
64fadfd745
commit
44af7b5ac4
|
@ -39,9 +39,6 @@ public class QuotTask
|
||||||
* 检查OA报加单审批流程是否结束
|
* 检查OA报加单审批流程是否结束
|
||||||
*/
|
*/
|
||||||
public void OAQuot() throws Exception {
|
public void OAQuot() throws Exception {
|
||||||
|
|
||||||
Boolean lock= redisLock.getLock(getJobKey("OAQuotTaskLock"), 120, "OAQuotTask");
|
|
||||||
if(lock){
|
|
||||||
try{
|
try{
|
||||||
// 查询 报价单-OA审批状态为审批中的单号,并且在中间表显示流程已经结束的单据,根据单号更新 OA审批状态
|
// 查询 报价单-OA审批状态为审批中的单号,并且在中间表显示流程已经结束的单据,根据单号更新 OA审批状态
|
||||||
List<OASysQuot> quots = quotService.selectOAQUOT();
|
List<OASysQuot> quots = quotService.selectOAQUOT();
|
||||||
|
@ -55,7 +52,6 @@ public class QuotTask
|
||||||
throw new Exception(e.getMessage(), e);
|
throw new Exception(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 定时任务缓存键名
|
* 定时任务缓存键名
|
||||||
|
|
|
@ -54,8 +54,6 @@ public class RbTask
|
||||||
public void tongb() throws Exception {
|
public void tongb() throws Exception {
|
||||||
|
|
||||||
String rbVersionUid = testUtils.sapTjService.selRbVersionUid();//红本调价记录uid
|
String rbVersionUid = testUtils.sapTjService.selRbVersionUid();//红本调价记录uid
|
||||||
Boolean lock= redisLock.getLock(getJobKey("rbTask"), 480, "rbTask");
|
|
||||||
if(lock){
|
|
||||||
//判断是否已执行调价 (6.3 redbook rb_productVersion 是否有新增uid and sta='1'、sdmdm1 调价日期今日的数据是否存在)
|
//判断是否已执行调价 (6.3 redbook rb_productVersion 是否有新增uid and sta='1'、sdmdm1 调价日期今日的数据是否存在)
|
||||||
String locVersionUid = testUtils.sapTjService.selLocVersionUid();//本地红本调价记录uid
|
String locVersionUid = testUtils.sapTjService.selLocVersionUid();//本地红本调价记录uid
|
||||||
|
|
||||||
|
@ -81,7 +79,6 @@ public class RbTask
|
||||||
throw new Exception(e.getMessage(), e);
|
throw new Exception(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 定时任务缓存键名
|
* 定时任务缓存键名
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class ScheduleUtils
|
||||||
jobDetail.getJobDataMap().put(ScheduleConstants.TASK_PROPERTIES, job);
|
jobDetail.getJobDataMap().put(ScheduleConstants.TASK_PROPERTIES, job);
|
||||||
|
|
||||||
//注册triggerListener ->项目多机部署时使用
|
//注册triggerListener ->项目多机部署时使用
|
||||||
// scheduler.getListenerManager().addTriggerListener(new RedisTriggerListener());
|
scheduler.getListenerManager().addTriggerListener(new RedisTriggerListener());
|
||||||
|
|
||||||
// 判断是否存在
|
// 判断是否存在
|
||||||
if (scheduler.checkExists(getJobKey(jobId, jobGroup)))
|
if (scheduler.checkExists(getJobKey(jobId, jobGroup)))
|
||||||
|
|
|
@ -494,6 +494,7 @@
|
||||||
:action="uploadUrl"
|
:action="uploadUrl"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
:data="{ relation_id: this.form.quotId,file_type: 'quotXjFile' }"
|
:data="{ relation_id: this.form.quotId,file_type: 'quotXjFile' }"
|
||||||
|
:before-upload="beforeAvatarUpload"
|
||||||
:on-success="handleAvatarSuccess"
|
:on-success="handleAvatarSuccess"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
:limit="1"
|
:limit="1"
|
||||||
|
@ -1264,7 +1265,8 @@ export default {
|
||||||
let self = this;
|
let self = this;
|
||||||
this.$modal.confirm('是否确认修订所选报价单且更新状态为协助中?').then(function() {
|
this.$modal.confirm('是否确认修订所选报价单且更新状态为协助中?').then(function() {
|
||||||
getReturnUpdateQuot(quotId).then(response => {
|
getReturnUpdateQuot(quotId).then(response => {
|
||||||
self.setInfo(response);
|
//self.setInfo(response);
|
||||||
|
this.$modal.msgSuccess("更改成功");
|
||||||
});
|
});
|
||||||
}).then(() => {}).catch(() => {});
|
}).then(() => {}).catch(() => {});
|
||||||
},
|
},
|
||||||
|
@ -1342,7 +1344,7 @@ export default {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
addQuot(this.form).then(response => {
|
addQuot(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("创建成功");
|
||||||
|
|
||||||
const row = {'quotId':response.data.quotId}
|
const row = {'quotId':response.data.quotId}
|
||||||
this.handleUpdate(row);
|
this.handleUpdate(row);
|
||||||
|
@ -1630,7 +1632,20 @@ export default {
|
||||||
uploadFile(activeName){
|
uploadFile(activeName){
|
||||||
this.activeName = activeName
|
this.activeName = activeName
|
||||||
},
|
},
|
||||||
|
//上传前校验
|
||||||
|
beforeAvatarUpload(file) {
|
||||||
|
let activeName = this.activeName;
|
||||||
|
if(activeName=='quotXjFile'){
|
||||||
|
if(file.name.split('.')[1].toLowerCase() != 'xls' && file.name.split('.')[1].toLowerCase() != 'xlsx'){
|
||||||
|
this.$modal.msgError("清单附件必须是Excel格式");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*const isLt2M = file.size / 1024 / 1024 < 2; // 小于2M
|
||||||
|
if ( !isLt2M ) {
|
||||||
|
console.log('文件大小超出2M');
|
||||||
|
}*/
|
||||||
|
},
|
||||||
//成功回调
|
//成功回调
|
||||||
handleAvatarSuccess(res) {
|
handleAvatarSuccess(res) {
|
||||||
let activeName = this.activeName;
|
let activeName = this.activeName;
|
||||||
|
|
Loading…
Reference in New Issue