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