征求意见流程更改

This commit is contained in:
宋伟佳
2022-03-28 16:47:08 +08:00
parent 01924334dd
commit 29e3248958
2 changed files with 82 additions and 48 deletions
@@ -349,6 +349,7 @@
name: "bzzqyjStep5",
data() {
return {
clickFlag: false,
commentText5: '',
options: [],
itemId: '',
@@ -460,35 +461,47 @@
this.modalshowflag2 = false
},
itemEdit (row, index) {
this.itemId = row.id
this.modalshowflag2 = true
this.editForm = {
chapterNumber: row.chapterNumber,
chapterName: row.chapterName,
oldText: row.oldText,
newText: row.newText,
reason: row.reason,
cause: row.cause,
department: row.department,
responUserName: row.responUserName,
responUser: row.responUser,
state: row.state,
source: row.source,
id: row.id,
if(this.clickFlag){
this.itemId = row.id
this.modalshowflag2 = true
this.editForm = {
chapterNumber: row.chapterNumber,
chapterName: row.chapterName,
oldText: row.oldText,
newText: row.newText,
reason: row.reason,
cause: row.cause,
department: row.department,
responUserName: row.responUserName,
responUser: row.responUser,
state: row.state,
source: row.source,
id: row.id,
}
}else{
this.$message.warning('公开征求意见未结束,无法操作')
}
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
if(this.clickFlag){
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
}else{
this.$message.warning('公开征求意见未结束,无法操作')
}
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
if(this.clickFlag){
this.drawerModal = true
}else{
this.$message.warning('公开征求意见未结束,无法操作')
}
},
checkedRole (data) {
changeAssigneeNew({
@@ -539,42 +552,50 @@
},
//保存事件
handleSave() {
this.saveLoading = true;
let _formData = new FormData();
let json = this.form;
json.data = this.data;
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "3");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: json,
commentText5: this.commentText5
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
this.saveLoading = false;
});
if(this.clickFlag){
this.saveLoading = true;
let _formData = new FormData();
let json = this.form;
json.data = this.data;
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "3");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: json,
commentText5: this.commentText5
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
this.saveLoading = false;
});
}else{
this.$message.warning('公开征求意见未结束,无法操作')
}
},
handleSubmit() {
let a = 0
for (let b = 0; b < this.data.length;b++) {
if (this.data[b].state === '3' && !this.data[b].cause) {
a++
if(this.clickFlag){
let a = 0
for (let b = 0; b < this.data.length;b++) {
if (this.data[b].state === '3' && !this.data[b].cause) {
a++
}
if(!this.data[b].sourceType){
this.data[b].sourceType = '定向'
}
}
}
if (a > 0) {
this.$message.warning('请输入不上报原因')
return;
}
this.isSubmit = true;
if (a > 0) {
this.$message.warning('请输入不上报原因')
return;
}
this.isSubmit = true;
var json = this.json;
json.oldinfo = this.oldData;
json.commentText = this.commentText5;
json.introduce = true;
this.$http.post("lawss/activiti/completeTask", {
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.userId
@@ -585,6 +606,9 @@
}
this.isSubmit = false;
});
}else{
this.$message.warning('公开征求意见未结束,无法操作')
}
},
getData() {
return new Promise((resolve, reject) => {
@@ -613,6 +637,15 @@
this.json = data;
this.getItemList(data.standId,this.form.textValue)
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) {
} else {
this.$http.get("slrs/sar-public-idea-all/getPublicIdea", {
@@ -624,6 +657,7 @@
item.responUser = item.userId
item.state = '1'
item.source = '2'
item.sourceType = '公开'
this.data.push(item);
});
});