fix: 1、修复企标编辑时,如果企标类别中带有空格,则拼接最后的Code时不再拼接空格,产品标准同样如此处理,但是其他类别的需要再拼上空格

This commit is contained in:
zhangyanduan
2022-10-11 15:49:55 +08:00
parent d95a426c1a
commit c31e4e0b63
2 changed files with 12 additions and 3 deletions
@@ -1012,7 +1012,7 @@ export default {
}, res => {
if (res.success) {
resolve()
this.$message.success(res.message);
// this.$message.success(res.message);
if (this.bpnId !== undefined && this.bpnId !== '') {
let taskId = {
id: this.bpnId
@@ -1048,6 +1048,7 @@ export default {
})
}
if (finishCount === jsonData.length) {
this.$message.success("提交成功");
this.isSubmit = false
this.$router.push('/processCenter')
}
@@ -4123,8 +4123,16 @@ export default {
if (nowstandinfo.firstPutTime != null && nowstandinfo.firstPutTime !== '') {
nowstandinfo.firstPutTime = this.$dateFormat(this.sarBussionessStandEO.firstPutTime, 'yyyy-MM-dd hh:mm:ss')
}
//此处因企标编号中带有空格所以此处不再补充添加空格
nowstandinfo.standCode = nowstandinfo.standSort + "" + nowstandinfo.standNumber + (nowstandinfo.standYear === '' ? '' : '-' + nowstandinfo.standYear)
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
var judgeFn = new RegExp(/\s+/g);
if(judgeFn.test(nowstandinfo.standSort)){
nowstandinfo.standCode = nowstandinfo.standSort + "" + nowstandinfo.standNumber + (nowstandinfo.standYear === '' ? '' : '-' + nowstandinfo.standYear)
}else if(nowstandinfo.standSort === 'Q/QCBFC'){
nowstandinfo.standCode = nowstandinfo.standSort + "" + nowstandinfo.standNumber + (nowstandinfo.standYear === '' ? '' : '-' + nowstandinfo.standYear)
}else {
nowstandinfo.standCode = nowstandinfo.standSort + " " + nowstandinfo.standNumber + (nowstandinfo.standYear === '' ? '' : '-' + nowstandinfo.standYear)
}
// if (nowstandinfo.standSort === 'Q/QCBFC'){
// nowstandinfo.standCode = nowstandinfo.standSort + "" + nowstandinfo.standNumber + (nowstandinfo.standYear === '' ? '' : '-' + nowstandinfo.standYear)
// }else{