征求意见流程更改
This commit is contained in:
@@ -349,6 +349,7 @@
|
|||||||
name: "bzzqyjStep5",
|
name: "bzzqyjStep5",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
clickFlag: false,
|
||||||
commentText5: '',
|
commentText5: '',
|
||||||
options: [],
|
options: [],
|
||||||
itemId: '',
|
itemId: '',
|
||||||
@@ -460,35 +461,47 @@
|
|||||||
this.modalshowflag2 = false
|
this.modalshowflag2 = false
|
||||||
},
|
},
|
||||||
itemEdit (row, index) {
|
itemEdit (row, index) {
|
||||||
this.itemId = row.id
|
if(this.clickFlag){
|
||||||
this.modalshowflag2 = true
|
this.itemId = row.id
|
||||||
this.editForm = {
|
this.modalshowflag2 = true
|
||||||
chapterNumber: row.chapterNumber,
|
this.editForm = {
|
||||||
chapterName: row.chapterName,
|
chapterNumber: row.chapterNumber,
|
||||||
oldText: row.oldText,
|
chapterName: row.chapterName,
|
||||||
newText: row.newText,
|
oldText: row.oldText,
|
||||||
reason: row.reason,
|
newText: row.newText,
|
||||||
cause: row.cause,
|
reason: row.reason,
|
||||||
department: row.department,
|
cause: row.cause,
|
||||||
responUserName: row.responUserName,
|
department: row.department,
|
||||||
responUser: row.responUser,
|
responUserName: row.responUserName,
|
||||||
state: row.state,
|
responUser: row.responUser,
|
||||||
source: row.source,
|
state: row.state,
|
||||||
id: row.id,
|
source: row.source,
|
||||||
|
id: row.id,
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
this.$message.warning('公开征求意见未结束,无法操作')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
itermsConditionsClose () {
|
itermsConditionsClose () {
|
||||||
this.itermsConditionsFlag = false
|
this.itermsConditionsFlag = false
|
||||||
},
|
},
|
||||||
itermsConditionsOpen (row) {
|
itermsConditionsOpen (row) {
|
||||||
this.itermsConditionsFlag = true
|
if(this.clickFlag){
|
||||||
this.itermsConditionsTitle = row
|
this.itermsConditionsFlag = true
|
||||||
|
this.itermsConditionsTitle = row
|
||||||
|
}else{
|
||||||
|
this.$message.warning('公开征求意见未结束,无法操作')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
downloadFile (attId) {
|
downloadFile (attId) {
|
||||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||||
},
|
},
|
||||||
handleTransfer() {
|
handleTransfer() {
|
||||||
this.drawerModal = true
|
if(this.clickFlag){
|
||||||
|
this.drawerModal = true
|
||||||
|
}else{
|
||||||
|
this.$message.warning('公开征求意见未结束,无法操作')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
@@ -539,42 +552,50 @@
|
|||||||
},
|
},
|
||||||
//保存事件
|
//保存事件
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true;
|
if(this.clickFlag){
|
||||||
let _formData = new FormData();
|
this.saveLoading = true;
|
||||||
let json = this.form;
|
let _formData = new FormData();
|
||||||
json.data = this.data;
|
let json = this.form;
|
||||||
_formData.append("id", this.bpnId || "");
|
json.data = this.data;
|
||||||
_formData.append("prcType", "3");
|
_formData.append("id", this.bpnId || "");
|
||||||
_formData.append("taskIds", this.taskIds);
|
_formData.append("prcType", "3");
|
||||||
_formData.append("json", JSON.stringify({
|
_formData.append("taskIds", this.taskIds);
|
||||||
form: json,
|
_formData.append("json", JSON.stringify({
|
||||||
commentText5: this.commentText5
|
form: json,
|
||||||
}));
|
commentText5: this.commentText5
|
||||||
saveTaskForPub(_formData).then(res => {
|
}));
|
||||||
this.saveLoading = false;
|
saveTaskForPub(_formData).then(res => {
|
||||||
this.$message.success("保存成功");
|
this.saveLoading = false;
|
||||||
this.bpnId = res.result;
|
this.$message.success("保存成功");
|
||||||
}).catch(e => {
|
this.bpnId = res.result;
|
||||||
this.saveLoading = false;
|
}).catch(e => {
|
||||||
});
|
this.saveLoading = false;
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
this.$message.warning('公开征求意见未结束,无法操作')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let a = 0
|
if(this.clickFlag){
|
||||||
for (let b = 0; b < this.data.length;b++) {
|
let a = 0
|
||||||
if (this.data[b].state === '3' && !this.data[b].cause) {
|
for (let b = 0; b < this.data.length;b++) {
|
||||||
a++
|
if (this.data[b].state === '3' && !this.data[b].cause) {
|
||||||
|
a++
|
||||||
|
}
|
||||||
|
if(!this.data[b].sourceType){
|
||||||
|
this.data[b].sourceType = '定向'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
if (a > 0) {
|
||||||
if (a > 0) {
|
this.$message.warning('请输入不上报原因')
|
||||||
this.$message.warning('请输入不上报原因')
|
return;
|
||||||
return;
|
}
|
||||||
}
|
this.isSubmit = true;
|
||||||
this.isSubmit = true;
|
|
||||||
var json = this.json;
|
var json = this.json;
|
||||||
json.oldinfo = this.oldData;
|
json.oldinfo = this.oldData;
|
||||||
json.commentText = this.commentText5;
|
json.commentText = this.commentText5;
|
||||||
json.introduce = true;
|
json.introduce = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
json: JSON.stringify(json),
|
json: JSON.stringify(json),
|
||||||
taskId: this.taskIds,
|
taskId: this.taskIds,
|
||||||
userId: this.$store.getters.userInfo.userId
|
userId: this.$store.getters.userInfo.userId
|
||||||
@@ -585,6 +606,9 @@
|
|||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
this.$message.warning('公开征求意见未结束,无法操作')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@@ -613,6 +637,15 @@
|
|||||||
this.json = data;
|
this.json = data;
|
||||||
this.getItemList(data.standId,this.form.textValue)
|
this.getItemList(data.standId,this.form.textValue)
|
||||||
this.data = newArr
|
this.data = newArr
|
||||||
|
this.$http.get('slrs/sar-public-idea-all/checkIsShow', {
|
||||||
|
endTime: this.form.endTime
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.message === '1') {
|
||||||
|
this.clickFlag = false
|
||||||
|
} else {
|
||||||
|
this.clickFlag = true
|
||||||
|
}
|
||||||
|
})
|
||||||
if (data.introduce) {
|
if (data.introduce) {
|
||||||
} else {
|
} else {
|
||||||
this.$http.get("slrs/sar-public-idea-all/getPublicIdea", {
|
this.$http.get("slrs/sar-public-idea-all/getPublicIdea", {
|
||||||
@@ -624,6 +657,7 @@
|
|||||||
item.responUser = item.userId
|
item.responUser = item.userId
|
||||||
item.state = '1'
|
item.state = '1'
|
||||||
item.source = '2'
|
item.source = '2'
|
||||||
|
item.sourceType = '公开'
|
||||||
this.data.push(item);
|
this.data.push(item);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
<div class="effect">
|
<div class="effect">
|
||||||
<el-button v-if="ideaKey" type="primary" class="common-button-primary" size="mini" @click="selectStandardPro('add')" v-btn-permission="'bb5501f4461476b330cbbc3c6f22780a'">
|
<el-button v-if="ideaKey" type="primary" class="common-button-primary" size="mini" @click="selectStandardPro('add')" v-btn-permission="''">
|
||||||
添加
|
添加
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" class="common-button-primary" size="mini" @click="exportAll" v-btn-permission="'5af38c3aaad325741045c4db44e6850e'">导出</el-button>
|
<el-button type="primary" class="common-button-primary" size="mini" @click="exportAll" v-btn-permission="'5af38c3aaad325741045c4db44e6850e'">导出</el-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user