fix(project): 修复项目会审状态修改逻辑
- 添加 canGenerate 检查防止已存在订单的项目取消会审 - 在无法生成订单时设置 jointTrial 为 '1' - 显示错误消息提示用户操作被阻止 - 确保会审状态在订单存在时不被意外修改dev_1.0.0
parent
74ed165f71
commit
0d14477705
|
|
@ -540,6 +540,11 @@ export default {
|
|||
},
|
||||
/** 项目会审状态修改 */
|
||||
handleJoinTrialChange(row) {
|
||||
if (!row.canGenerate){
|
||||
row.jointTrial='1'
|
||||
this.$modal.msgError("该项目已存在订单,无法取消会审");
|
||||
return;
|
||||
}
|
||||
if (row.jointTrial === '0'){
|
||||
if (!row.canGenerate){
|
||||
this.$modal.alertWarning("该项目已存在订单,无法取消会审");
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ spring:
|
|||
druid:
|
||||
# 主库数据源
|
||||
master:
|
||||
url: jdbc:mysql://121.199.168.157:3306/unis_sip_pro?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true
|
||||
url: jdbc:mysql://121.199.168.157:3306/unis_sip_pro?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true&nullCatalogMeansCurrent=true
|
||||
username: root
|
||||
password: unis@db
|
||||
# 从库数据源
|
||||
|
|
|
|||
Loading…
Reference in New Issue