-
-
+
+
-
+
@@ -132,6 +132,14 @@ export default {
partCode: '',
content: '',
},
+ opinionContentRules: {
+ partCode: [
+ { required: true, message: '请输入章节编号', trigger: 'blur' },
+ ],
+ content: [
+ { required: true, message: '请输入修改意见内容(包括理由或依据)', trigger: 'blur' }
+ ],
+ },
standinfoList: [], // 详情列表
form: {
cid: this.$route.query.item.cid,
@@ -228,32 +236,36 @@ export default {
},
//点击抽屉按钮提交事件
saveUserInfo() {
- var url = ''
- var form = {
- cid: this.$route.query.item.cid,
- content: this.opinionContent.content,
- partCode: this.opinionContent.partCode,
- userId: this.$store.getters.userInfo.userId,
- userName: this.$store.getters.userInfo.account,
- deptName: this.$store.getters.userInfo.orgName,
- deptId: this.$store.getters.userInfo.orgId
- }
- if (this.type === 'edit') {
- form.id = this.id
- form.autUserId = this.$store.getters.userInfo.userId
- url = 'slrs/sar-public-idea-all/updateStand'
- } else {
- url = 'slrs/sar-public-idea-all/insetStand'
- }
- this.$http.post(url, form, {
- _this: this
- }, res => {
- if (res.respCode === '200') {
- this.form.page = 1
- this.getList()
- }
+ this.$refs['formAdd'].validate((valid) => {
+ if (valid) {
+ var url = ''
+ var form = {
+ cid: this.$route.query.item.cid,
+ content: this.opinionContent.content,
+ partCode: this.opinionContent.partCode,
+ userId: this.$store.getters.userInfo.userId,
+ userName: this.$store.getters.userInfo.account,
+ deptName: this.$store.getters.userInfo.orgName,
+ deptId: this.$store.getters.userInfo.orgId
+ }
+ if (this.type === 'edit') {
+ form.id = this.id
+ form.autUserId = this.$store.getters.userInfo.userId
+ url = 'slrs/sar-public-idea-all/updateStand'
+ } else {
+ url = 'slrs/sar-public-idea-all/insetStand'
+ }
+ this.$http.post(url, form, {
+ _this: this
+ }, res => {
+ if (res.respCode === '200') {
+ this.form.page = 1
+ this.getList()
+ }
+ })
+ this.isDialog = false
+ }
})
- this.isDialog = false
},
//点击抽屉按钮取消事件
closeDrawer() {
diff --git a/src/router/index.js b/src/router/index.js
index 99a83b87c..d46cfc24f 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -591,6 +591,15 @@ const routes = [
title: '标准征求意见流程'
}
},
+ {
+ path: '/bzzqyjStep1-1',
+ name: 'bzzqyjStep1-1',
+ component: () => import('@/pages/processCenter/pages/creatProcess/bzzqyj/step1-1.vue'),
+ meta: {
+ requireAuth: true,
+ title: '标准征求意见流程'
+ }
+ },
{
path: '/bzzqyjStep2',
name: 'bzzqyjStep2',