feat: There is no way the, #56517 技术标准-发布节点,提交,无法成功
This commit is contained in:
@@ -606,20 +606,24 @@
|
||||
},
|
||||
data () {
|
||||
const validateStandNumber = async (rule, value, callback) => {
|
||||
if (value === '') {
|
||||
callback(new Error('请输入企标顺序号'))
|
||||
} else {
|
||||
let res = await this.verifySnExists()
|
||||
if(res.data){
|
||||
callback()
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
this.form.standSn = this.form.standNum
|
||||
this.form.standNumber = this.form.standNum
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
callback(new Error('企标顺序号已存在或已锁定'))
|
||||
if(this.form.standStatus !== '1'){
|
||||
callback()
|
||||
}else {
|
||||
if (value === '') {
|
||||
callback(new Error('请输入企标顺序号'))
|
||||
} else {
|
||||
let res = await this.verifySnExists()
|
||||
if(res.data){
|
||||
callback()
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
this.form.standSn = this.form.standNum
|
||||
this.form.standNumber = this.form.standNum
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
callback(new Error('企标顺序号已存在或已锁定'))
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -651,21 +651,24 @@
|
||||
},
|
||||
data () {
|
||||
const validateStandNumber = async (rule, value, callback) => {
|
||||
console.log(value)
|
||||
if (value === '') {
|
||||
callback(new Error('请输入企标顺序号'))
|
||||
} else {
|
||||
let res = await this.verifySnExists()
|
||||
if(res.data){
|
||||
callback()
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
this.form.standSn = this.form.standNum
|
||||
this.form.standNumber = this.form.standNum
|
||||
this.form.standYear = this.regDate(year) // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
callback(new Error('企标顺序号已存在或已锁定'))
|
||||
if(this.form.reviseStatus !== '1'){
|
||||
callback()
|
||||
}else {
|
||||
if (value === '') {
|
||||
callback(new Error('请输入企标顺序号'))
|
||||
} else {
|
||||
let res = await this.verifySnExists()
|
||||
if(res.data){
|
||||
callback()
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
this.form.standSn = this.form.standNum
|
||||
this.form.standNumber = this.form.standNum
|
||||
this.form.standYear = this.regDate(year) // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
callback(new Error('企标顺序号已存在或已锁定'))
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -2573,10 +2576,10 @@
|
||||
this.$message.success(res.message)
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.$message.warning('请检查基础信息表单是否填写完整')
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.$message.warning('请检查基础信息表单是否填写完整')
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -2730,22 +2733,29 @@
|
||||
pId: this.pId
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
if(res.nowTaskInfo && res.nowTaskInfo === '发布'){
|
||||
const processForm = JSON.parse(res.mesg)
|
||||
if (processForm.form === undefined) {
|
||||
this.getFormFieldList(processForm)
|
||||
} else {
|
||||
//表单文件处理
|
||||
this.getTaskId(processForm)
|
||||
}
|
||||
}else {
|
||||
this.$alert('当前任务'+(res.nowTaskInfo ?res.nowTaskInfo:"")+'不是发布节点,禁止跨路由访问当前页面', '', {
|
||||
confirmButtonText: '确定',
|
||||
callback: action => {
|
||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||
}
|
||||
});
|
||||
const processForm = JSON.parse(res.mesg)
|
||||
if (processForm.form === undefined) {
|
||||
this.getFormFieldList(processForm)
|
||||
} else {
|
||||
//表单文件处理
|
||||
this.getTaskId(processForm)
|
||||
}
|
||||
// if(res.nowTaskInfo && res.nowTaskInfo === '发布'){
|
||||
// const processForm = JSON.parse(res.mesg)
|
||||
// if (processForm.form === undefined) {
|
||||
// this.getFormFieldList(processForm)
|
||||
// } else {
|
||||
// //表单文件处理
|
||||
// this.getTaskId(processForm)
|
||||
// }
|
||||
// }else {
|
||||
// this.$alert('当前任务'+(res.nowTaskInfo ?res.nowTaskInfo:"")+'不是发布节点,禁止跨路由访问当前页面', '', {
|
||||
// confirmButtonText: '确定',
|
||||
// callback: action => {
|
||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
}
|
||||
}).catch(e => {
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user