技术标准-顺序号校验
This commit is contained in:
@@ -665,20 +665,20 @@
|
|||||||
let res = await this.verifySnExists()
|
let res = await this.verifySnExists()
|
||||||
if(res.data){
|
if(res.data){
|
||||||
callback()
|
callback()
|
||||||
let date = new Date();
|
// let date = new Date();
|
||||||
let year = date.getFullYear();
|
// let year = date.getFullYear();
|
||||||
this.form.standSn = this.form.standNum
|
// this.form.standSn = this.form.standNum
|
||||||
this.form.standNumber = this.form.standNum
|
// this.form.standNumber = this.form.standNum
|
||||||
this.form.standYear = this.regDate(year) // 待带入立项标准
|
// this.form.standYear = this.regDate(year) // 待带入立项标准
|
||||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
// //此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||||
let judgeFn = new RegExp(/\s+/g);
|
// let judgeFn = new RegExp(/\s+/g);
|
||||||
if(judgeFn.test(this.form.standSort)){
|
// if(judgeFn.test(this.form.standSort)){
|
||||||
this.form.standCode = this.form.standSort + "" + this.form.standNumber + (this.form.standYear === '' ? '' : '-' + this.form.standYear)
|
// this.form.standCode = this.form.standSort + "" + this.form.standNumber + (this.form.standYear === '' ? '' : '-' + this.form.standYear)
|
||||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
// }else if(this.form.standSort === 'Q/QCBFC'){
|
||||||
this.form.standCode = this.form.standSort + "" + this.form.standNumber + (this.form.standYear === '' ? '' : '-' + this.form.standYear)
|
// this.form.standCode = this.form.standSort + "" + this.form.standNumber + (this.form.standYear === '' ? '' : '-' + this.form.standYear)
|
||||||
}else {
|
// }else {
|
||||||
this.form.standCode = this.form.standSort + " " + this.form.standNumber + (this.form.standYear === '' ? '' : '-' + this.form.standYear)
|
// this.form.standCode = this.form.standSort + " " + this.form.standNumber + (this.form.standYear === '' ? '' : '-' + this.form.standYear)
|
||||||
}
|
// }
|
||||||
}else {
|
}else {
|
||||||
callback(new Error('企标顺序号已存在或已锁定'))
|
callback(new Error('企标顺序号已存在或已锁定'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user