diff --git a/src/components/generationNumber/index.vue b/src/components/generationNumber/index.vue
index 16e933212..e27d2080e 100644
--- a/src/components/generationNumber/index.vue
+++ b/src/components/generationNumber/index.vue
@@ -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, // 标准属性
diff --git a/src/pages/config/pages/roleManage/index.vue b/src/pages/config/pages/roleManage/index.vue
index d686e6026..8f5179a77 100644
--- a/src/pages/config/pages/roleManage/index.vue
+++ b/src/pages/config/pages/roleManage/index.vue
@@ -406,6 +406,7 @@ export default {
type: '', // 新增/编辑状态
addRoleTitle: '',
SuperiorRoleData: {},
+ selectype:[],
nodeList3: [],
SuperiorRoleModel: false,
addFormRules: {
@@ -440,7 +441,9 @@ export default {
treeData4: [],
defaultProps3: {
children: 'children',
- label: 'menuName'
+ label: function (a,b){
+ return a.label = a.name || a.menuName
+ }
},
nodeList2: [],
btnLoading: false,
@@ -641,9 +644,11 @@ export default {
async getTreeAsync(){
let tsResource = await this.getTree3()
let sarMenuStandard = await this.getTree4()
+ let zlStandard = await this.getTree5()
let list1 = []
let list2 = []
+ let list3 = []
if(tsResource && tsResource.ok && tsResource.data){
list1 = tsResource.data
}
@@ -652,8 +657,12 @@ export default {
list2 = sarMenuStandard.data
}
- if(list2.length > 0){
- list1 = list1.concat(list2)
+ if(zlStandard && zlStandard.ok && zlStandard.data){
+ list3 = zlStandard.data
+ }
+
+ if(list2.length > 0 && list3.length > 0){
+ list1 = list1.concat(list2,list3)
}
if(list1.length > 0){
@@ -693,6 +702,16 @@ export default {
})
})
},
+ getTree5(res,json) {
+ return new Promise((resolve, reject) => {
+ this.$http.get('fileMaterialCenter/zlTree/permissConfig', {}, {
+ _this: this
+ }, res => {
+ const history = res;
+ resolve(history)
+ })
+ })
+ },
confirmDialogData() {
this.btnLoading = true
this.$http.postData('sarRole/role/resource', {
diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue
index 9bfe22583..d064e8acb 100644
--- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue
@@ -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"
diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step13.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step13.vue
index 2fd742551..450bc0f85 100644
--- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step13.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step13.vue
@@ -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
diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step3.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step3.vue
index 4bb710972..78dac3cdf 100644
--- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step3.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step3.vue
@@ -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 = ""
diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step6.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step6.vue
index 4ac222f41..b0f74796c 100644
--- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step6.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step6.vue
@@ -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 = ""
diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/stepC3.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/stepC3.vue
index 7c32800ba..24d3e29a5 100644
--- a/src/pages/processCenter/pages/creatProcess/qbrk-product/stepC3.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/stepC3.vue
@@ -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 = ""
diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/stepC6.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/stepC6.vue
index be7310122..26a3ce56d 100644
--- a/src/pages/processCenter/pages/creatProcess/qbrk-product/stepC6.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/stepC6.vue
@@ -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 = ""
diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue b/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue
index dd4b28c67..1377682b5 100644
--- a/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue
@@ -968,7 +968,6 @@ export default {
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
this.gkglbmOptions=res.data.GKGLBM;//归口管理部门
this.cbcdOptions=res.data.DEGREESTANDARD;//采标程度
-
this.$emit('emitDataLoading',false)
}
},
@@ -986,15 +985,15 @@ export default {
mounted () {
if(this.formSub && this.formSub.standSort && this.formSub.standSort !== ''){
this.getDataAsync()
- this.form = this.formSub
+ this.form = JSON.parse(JSON.stringify(this.formSub))
console.log(this.QTWJBUSSFileListSub)
- this.FBGBUSSFileList= this.FBGBUSSFileListSub
- this.BZSMBUSSFileList= this.BZSMBUSSFileListSub
- this.LSBBBUSSFileList= this.LSBBBUSSFileListSub
- this.QTWJBUSSFileList= this.QTWJBUSSFileListSub
- this.GLWJBUSSFileList= this.GLWJBUSSFileListSub
- this.summaryFileList= this.summaryFileListSub
- this.madelSubList= this.madelSubListSub
+ this.FBGBUSSFileList= this.FBGBUSSFileListSub?JSON.parse(JSON.stringify(this.FBGBUSSFileListSub)):[]
+ this.LSBBBUSSFileList= this.LSBBBUSSFileListSub?JSON.parse(JSON.stringify(this.LSBBBUSSFileListSub)):[]
+ this.BZSMBUSSFileList=this.BZSMBUSSFileListSub?JSON.parse(JSON.stringify(this.BZSMBUSSFileListSub)):[]
+ this.QTWJBUSSFileList= this.QTWJBUSSFileListSub?JSON.parse(JSON.stringify(this.QTWJBUSSFileListSub)):[]
+ this.GLWJBUSSFileList= this.GLWJBUSSFileListSub?JSON.parse(JSON.stringify(this.GLWJBUSSFileListSub)):[]
+ this.summaryFileList= this.summaryFileListSub?JSON.parse(JSON.stringify(this.summaryFileListSub)):[]
+ this.madelSubList= this.madelSubListSub?JSON.parse(JSON.stringify(this.madelSubListSub)):[]
}
},
watch: {
diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue b/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue
index a160f0d0b..a72a9caed 100644
--- a/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue
@@ -300,6 +300,9 @@