Browse Source

上报事件加入参openFlag区分是否讨论

feature
mk 1 year ago
parent
commit
a0325d5bb4
  1. 17
      src/views/modules/shequzhili/eventOld/cpts/event-info.vue
  2. 5
      src/views/modules/shequzhili/eventOld/cpts/process-form.vue

17
src/views/modules/shequzhili/eventOld/cpts/event-info.vue

@ -489,6 +489,7 @@ export default {
this.formData.operationType == "5" || this.formData.operationType == "5" ||
this.formData.operationType == "6" || this.formData.operationType == "6" ||
this.formData.operationType == "0" || this.formData.operationType == "0" ||
this.formData.operationType == "7" ||
(this.formData.operationType == 2 && this.demand.demandUserName) (this.formData.operationType == 2 && this.demand.demandUserName)
) { ) {
if (Array.isArray(this.formData.gridId) && this.formData.gridId.length) { if (Array.isArray(this.formData.gridId) && this.formData.gridId.length) {
@ -503,10 +504,10 @@ export default {
this.formData.agencyId = ""; this.formData.agencyId = "";
this.formData.gridId = ""; this.formData.gridId = "";
} }
this.formData.openFlag = this.formData.operationType == "7"?1:0
const url = "/governance/icEventOld/add"; const url = "/governance/icEventOld/add";
const { formData } = this;
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
...formData, ...this.formData,
}); });
if (code === 0) { if (code === 0) {
this.$message.success("操作成功!"); this.$message.success("操作成功!");
@ -523,12 +524,12 @@ export default {
}, },
async handelDispose() { async handelDispose() {
console.log(this.$refs.ref_processinfo_dispose.okflag); console.log(this.formData.operationType);
this.$refs.ref_processinfo_dispose.getProcessInfo(); this.$refs.ref_processinfo_dispose.getProcessInfo();
if (this.$refs.ref_processinfo_dispose.okflag) { if (this.$refs.ref_processinfo_dispose.okflag) {
this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType; this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType;
if (this.formData.operationType === "0" || this.formData.operationType === '5' if (this.formData.operationType === "0" || this.formData.operationType === '5'
|| this.formData.operationType === '6') { || this.formData.operationType === '6' || this.formData.operationType === '7') {
this.project = {}; this.project = {};
this.demand = {}; this.demand = {};
if (this.$refs.ref_processinfo_dispose.replayInfo.okflag) { if (this.$refs.ref_processinfo_dispose.replayInfo.okflag) {
@ -537,6 +538,14 @@ export default {
} }
this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo; this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo;
this.replayInfo.icEventId = this.eventId; this.replayInfo.icEventId = this.eventId;
if(this.formData.operationType === '7'){
this.replayInfo.openFlag = 1
this.replayInfo.operationType = '7'//openFlagtrue?
this.replayInfo.content = '1111'//openFlagtrue?
}else{
this.replayInfo.openFlag = 0
}
// //
let url = "/governance/icEventOld/reply"; let url = "/governance/icEventOld/reply";
await this.submitDispose(url, this.replayInfo); await this.submitDispose(url, this.replayInfo);

5
src/views/modules/shequzhili/eventOld/cpts/process-form.vue

@ -11,6 +11,7 @@
<el-radio label="5">指派</el-radio> <el-radio label="5">指派</el-radio>
<el-radio label="6">完成并回复</el-radio> <el-radio label="6">完成并回复</el-radio>
<el-radio label="2">转服务</el-radio> <el-radio label="2">转服务</el-radio>
<el-radio label="7">公开讨论</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -175,9 +176,9 @@ export default {
this.replayInfo = this.$refs.ref_process_form_replay_end.formData this.replayInfo = this.$refs.ref_process_form_replay_end.formData
this.okflag = true this.okflag = true
} }
} else if(this.operationType === '4') { } else if(this.operationType === '4' || this.operationType === '7') {
this.okflag = true this.okflag = true
}else { }else{
return false return false
} }
}, },

Loading…
Cancel
Save