分夜查询bug
This commit is contained in:
@@ -166,9 +166,22 @@ export default {
|
||||
// 拼接企标编号
|
||||
let verNum = generationNumberForm.versionNumber.replace(/[^0-9]/ig,"");
|
||||
let verEn= generationNumberForm.versionNumber.replace(/[^A-Z]+/ig,"");
|
||||
let standCode = generationNumberForm.standCode + ' ' + generationNumberForm.standAttribute + ' ' +
|
||||
generationNumberForm.classificationNumber + ' ' + generationNumberForm.sequenceNumber + '-' +
|
||||
this.$moment(generationNumberForm.year).format('YYYY') + '(' + generationNumberForm.versionNumber + ')'
|
||||
// 此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
let judgeFn = new RegExp(/\s+/g);
|
||||
let standCode = ''
|
||||
if(judgeFn.test(generationNumberForm.standSort)){
|
||||
standCode = generationNumberForm.standCode + ' ' + generationNumberForm.standAttribute + ' ' +
|
||||
generationNumberForm.classificationNumber + ' ' + generationNumberForm.sequenceNumber + '-' +
|
||||
this.$moment(generationNumberForm.year).format('YYYY') + '(' + generationNumberForm.versionNumber + ')'
|
||||
}else if(generationNumberForm.standSort === 'Q/QCBFC'){
|
||||
standCode = generationNumberForm.standCode + '' + generationNumberForm.standAttribute + ' ' +
|
||||
generationNumberForm.classificationNumber + ' ' + generationNumberForm.sequenceNumber + '-' +
|
||||
this.$moment(generationNumberForm.year).format('YYYY') + '(' + generationNumberForm.versionNumber + ')'
|
||||
}else {
|
||||
standCode = generationNumberForm.standCode + ' ' + generationNumberForm.standAttribute + ' ' +
|
||||
generationNumberForm.classificationNumber + ' ' + generationNumberForm.sequenceNumber + '-' +
|
||||
this.$moment(generationNumberForm.year).format('YYYY') + '(' + generationNumberForm.versionNumber + ')'
|
||||
}
|
||||
this.$emit('isOk', standCode, {
|
||||
standCode: standCode,
|
||||
qbCode: this.generationNumberForm.standAttribute, // 标准属性
|
||||
|
||||
@@ -2115,7 +2115,15 @@
|
||||
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 )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
let judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
this.getStandInfoByReviseStatus()
|
||||
}else {
|
||||
this.form.standStatus = "3"
|
||||
|
||||
@@ -620,7 +620,15 @@
|
||||
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 )
|
||||
// 此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
var judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(nowstandinfo.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
}else {
|
||||
callback(new Error('企标顺序号已存在或已锁定'))
|
||||
}
|
||||
@@ -2711,7 +2719,15 @@
|
||||
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 )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
let judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
this.formKey++
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
@@ -2729,7 +2745,15 @@
|
||||
this.form.standNum = standSn
|
||||
this.form.standNumber = standSn
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
let judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
if(type === '1'){
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
|
||||
@@ -1141,7 +1141,15 @@
|
||||
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 )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
var judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
this.formKey++
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
|
||||
@@ -1219,7 +1219,15 @@
|
||||
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 )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
var judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
this.formKey++
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
|
||||
@@ -1141,7 +1141,15 @@
|
||||
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 )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
var judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
this.formKey++
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
|
||||
@@ -1229,7 +1229,15 @@
|
||||
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 )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
var judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
this.formKey++
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
|
||||
@@ -2678,7 +2678,15 @@
|
||||
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 )
|
||||
// 此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
let judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
}else {
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus}, {
|
||||
_this: this
|
||||
@@ -2688,7 +2696,15 @@
|
||||
this.form.standSn = standSn
|
||||
this.form.standNumber = standSn
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
// 此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
let judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
}
|
||||
|
||||
@@ -665,7 +665,15 @@
|
||||
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 )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
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('企标顺序号已存在或已锁定'))
|
||||
}
|
||||
@@ -2782,7 +2790,15 @@
|
||||
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 )
|
||||
// 此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
let judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
this.formKey++
|
||||
}else {
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort,taskId: this.taskIds}, {
|
||||
@@ -2794,7 +2810,15 @@
|
||||
this.form.standNumber = standSn
|
||||
this.form.standNum = standSn
|
||||
this.form.standYear = this.regDate(year) // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
let judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
this.formKey++
|
||||
}, e => {
|
||||
})
|
||||
|
||||
@@ -2944,7 +2944,15 @@
|
||||
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 )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
let judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
}else {
|
||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus}, {
|
||||
_this: this
|
||||
@@ -2954,7 +2962,15 @@
|
||||
this.form.standSn = standSn
|
||||
this.form.standNumber = standSn
|
||||
this.form.standYear = year // 待带入立项标准
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
|
||||
let judgeFn = new RegExp(/\s+/g);
|
||||
if(judgeFn.test(this.form.standSort)){
|
||||
this.form.standCode = this.form.standSort + '' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else if(this.form.standSort === 'Q/QCBFC'){
|
||||
this.form.standCode = this.form.standSort + '' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}else {
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user