diff --git a/src/common/verify/index.js b/src/common/verify/index.js index 270334e1b..cdc5e0db7 100644 --- a/src/common/verify/index.js +++ b/src/common/verify/index.js @@ -34,9 +34,8 @@ export default { }, validateStandardItem2 (rule, value, callback) { // return callback() - let testval = /^[A-Za-z0-9/]+$/ - let testval1 = /[.-;;()()]+/ - if (value && !value.match(testval) && !value.match(testval1)) { + let testval = /^[A-Za-z0-9\/\-.;;()()\s]+$/ + if (value && !value.match(testval)) { return callback(new Error('只能为(字母数字()().-;;)')) } else { callback() diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/merge.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/merge.vue index 65d92d18f..4cec8ec74 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/merge.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/merge.vue @@ -1090,6 +1090,7 @@ export default { }else{ if(this.showType === 'one'){ this.qbfsForm.esId1 = this.selectList[0].id || '--' + this.qbfsForm.bussSort1 = this.selectList[0].bussSort || '--' this.qbfsForm.esName1 = this.selectList[0].esName || '--' this.qbfsForm.planStatus1 = this.selectList[0].planStatus === '0'? '未开始' : (this.selectList[0].planStatus === '1'? '制定中' : (this.selectList[0] === '2'? '修订中' : (this.selectList[0] === '3'? '已取消' : '已完成'))) @@ -1100,6 +1101,7 @@ export default { this.$message.warning('您选择的合并企标已经存在,请更改!') }else{ this.qbfsForm.esId2 = this.selectList[0].id || '--' + this.qbfsForm.bussSort2 = this.selectList[0].bussSort || '--' this.qbfsForm.esName2 = this.selectList[0].esName || '--' this.qbfsForm.planStatus2 = this.selectList[0].planStatus === '0'? '未开始' : (this.selectList[0].planStatus === '1'? '制定中' : (this.selectList[0] === '2'? '修订中' : (this.selectList[0] === '3'? '已取消' : '已完成'))) diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue index e639c09e6..00ad7ef10 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue @@ -532,27 +532,37 @@ export default { } this.endPrcName(params).then((res)=>{ - if(res){ - this.completeTask() + if(res && res.ok){ + console.log(res) + this.completeTask(json,res.data) } }) }else{ - this.completeTask() + this.completeTask(json) } }, - completeTask(){ + completeTask(json,data){ this.$http.post('lawss/activiti/completeTask', { taskIds: this.$route.query.taskIds, userId: this.$store.getters.userInfo.userId, - json: json, + json }, { _this: this }, res => { if (res.success) { this.addLog(this.qbfsForm) this.$message.success(res.message) - this.$router.push('/processCenter') + if(this.type === '4'){ + this.batchToDoTasks(data).then((result)=>{ + if(result.success){ + console.log(result) + this.$router.push('/processCenter') + } + }) + }else{ + this.$router.push('/processCenter') + } } this.isSubmit = false }, e => { @@ -567,6 +577,13 @@ export default { }) }) }, + batchToDoTasks(json){ + return new Promise((resolve, reject)=>{ + this.$http._getData('lawss/activiti/batchToDoTasks',{ json },{}).then((res)=>{ + resolve(res) + }) + }) + }, addLog(qbzxdFrom){ let json = Object.assign(qbzxdFrom); this.$http.post("esRevisePlanLog/log/addLog", {