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