对接政策征求意见流程
This commit is contained in:
+41
-26
@@ -22,37 +22,42 @@
|
||||
placeholder="请输入章节编号"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="章节条目" prop="chapterEntry" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.chapterEntry"
|
||||
<el-form-item label="章节条目" prop="chapterEntries" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.chapterEntries"
|
||||
placeholder="请输入章节条目"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改前" prop="beforeRevision" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.beforeRevision"
|
||||
<el-form-item label="修改前" prop="updateBefore" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.updateBefore"
|
||||
placeholder="请输入修改前"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改后" prop="afterRevision" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.afterRevision"
|
||||
<el-form-item label="修改后" prop="updateAfter" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.updateAfter"
|
||||
placeholder="请输入修改后"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改理由" prop="revisionModification" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.revisionModification"
|
||||
<el-form-item label="修改理由" prop="updateReason" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.updateReason"
|
||||
placeholder="请输入修改理由"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="原因" prop="cause" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.cause"
|
||||
placeholder="请输入原因"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件"
|
||||
label-width="150px"
|
||||
class="add-form-item">
|
||||
<el-input
|
||||
disabled
|
||||
style="display: none;"
|
||||
v-model="sarStandardsInfoEO.templateFileId"
|
||||
v-model="sarStandardsInfoEO.annexFileId"
|
||||
clearable
|
||||
></el-input>
|
||||
<div v-if="sarStandardsInfoEO.templateFileList && sarStandardsInfoEO.templateFileList.length > 0">
|
||||
<div v-for="(item, index) in sarStandardsInfoEO.templateFileList" :key="index"
|
||||
<div v-if="sarStandardsInfoEO.annexFileList && sarStandardsInfoEO.annexFileList.length > 0">
|
||||
<div v-for="(item, index) in sarStandardsInfoEO.annexFileList" :key="index"
|
||||
style="margin-right: 5px;padding-left: 10px">
|
||||
<div class="fileClass">
|
||||
<span @click="handlePreview(item)">{{ item.name }}</span>
|
||||
@@ -67,7 +72,7 @@
|
||||
<div>
|
||||
<el-button type="primary"
|
||||
class="common-button-primary"
|
||||
@click="fileUpload('templateFileList','templateFileId','.zip,.docx,.doc,.xls,.xlsx',200)"
|
||||
@click="fileUpload('annexFileList','annexFileId','.zip,.docx,.doc,.xls,.xlsx',200)"
|
||||
size="mini">
|
||||
点击上传
|
||||
</el-button>
|
||||
@@ -75,16 +80,16 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="处理意见"
|
||||
v-if="isHandlingSuggestion"
|
||||
prop="handlingSuggestion" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.handlingSuggestion"
|
||||
prop="handlingOpinions" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.handlingOpinions"
|
||||
placeholder="请输入处理意见"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="原因" prop="reason"
|
||||
<el-form-item label="处理原因" prop="handlingCause"
|
||||
v-if="isHandlingSuggestion"
|
||||
label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.reason"
|
||||
placeholder="请输入原因"
|
||||
<el-input v-model.trim="sarStandardsInfoEO.handlingCause"
|
||||
placeholder="请输入处理原因"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -128,7 +133,7 @@
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
chapterEntry: [
|
||||
chapterEntries: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
@@ -136,7 +141,7 @@
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
beforeRevision: [
|
||||
updateBefore: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
@@ -144,7 +149,7 @@
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
afterRevision: [
|
||||
updateAfter: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
@@ -152,7 +157,7 @@
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
revisionModification: [
|
||||
updateReason: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
@@ -160,7 +165,7 @@
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
handlingSuggestion: [
|
||||
handlingOpinions: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
@@ -168,7 +173,15 @@
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
reason: [
|
||||
handlingCause: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
message: "处理原因不能超过100个字符",
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
cause: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
@@ -240,9 +253,11 @@
|
||||
saveOrUpdateStands() {
|
||||
this.$refs['sarStandardsInfoForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (!this.sarStandardsInfoEO.chapterNumber && !this.sarStandardsInfoEO.chapterEntry
|
||||
&& !this.sarStandardsInfoEO.beforeRevision && !this.sarStandardsInfoEO.afterRevision
|
||||
&& !this.sarStandardsInfoEO.revisionModification && !this.sarStandardsInfoEO.templateFileId) {
|
||||
if (!this.sarStandardsInfoEO.chapterNumber && !this.sarStandardsInfoEO.chapterEntries
|
||||
&& !this.sarStandardsInfoEO.updateBefore && !this.sarStandardsInfoEO.updateAfter
|
||||
&& !this.sarStandardsInfoEO.updateReason && !this.sarStandardsInfoEO.annexFileId
|
||||
&& !this.sarStandardsInfoEO.cause && !this.sarStandardsInfoEO.handlingOpinions
|
||||
&& !this.sarStandardsInfoEO.handlingCause) {
|
||||
this.$message.warning('请至少填写一条数据,不能都为空')
|
||||
return
|
||||
}
|
||||
|
||||
+3
@@ -314,6 +314,9 @@
|
||||
|
||||
prcCreateUser: row.prcCreateUser,
|
||||
prcCreateUserName: row.prcCreateUserName,
|
||||
|
||||
csrUserIds:row.csrUserIds,
|
||||
csrUserNames:row.csrUserNames
|
||||
}
|
||||
this.roleForm = {...this.roleForm}
|
||||
},
|
||||
|
||||
+28
-8
@@ -70,35 +70,42 @@
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="chapterEntry"
|
||||
prop="chapterEntries"
|
||||
label="章节条目"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="beforeRevision"
|
||||
prop="updateBefore"
|
||||
label="修改前"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="afterRevision"
|
||||
prop="updateAfter"
|
||||
label="修改后"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="revisionModification"
|
||||
prop="updateReason"
|
||||
label="修改理由"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="cause"
|
||||
label="原因"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="completeFlag"
|
||||
label="附件"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<a v-if="scope.row.templateFileId" @click="fileClick(scope.row.templateFileList)" class="textClass">查看文件</a>
|
||||
<a v-if="scope.row.annexFileId" @click="fileClick(scope.row.annexFileList)"
|
||||
class="textClass">查看文件</a>
|
||||
<span v-else>--</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -126,14 +133,14 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="isCompleteFlag"
|
||||
prop="handlingSuggestion"
|
||||
prop="handlingOpinions"
|
||||
label="处理意见"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="reason"
|
||||
label="原因"
|
||||
prop="handlingCause"
|
||||
label="处理原因"
|
||||
v-if="isCompleteFlag"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
@@ -246,6 +253,9 @@
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
|
||||
},
|
||||
generateSummary() {
|
||||
|
||||
},
|
||||
@@ -334,6 +344,16 @@
|
||||
this.$message.warning('没有可查看的文件')
|
||||
}
|
||||
},
|
||||
submit(callback) {
|
||||
if (this.histortData && this.histortData.length > 0) {
|
||||
callback && callback(this.histortData)
|
||||
} else {
|
||||
this.$message.warning('请至少添加一条数据')
|
||||
}
|
||||
},
|
||||
save(callback) {
|
||||
callback && callback(this.histortData,this.deleteList.join(','))
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -272,7 +272,7 @@
|
||||
import solicitationList from "./components/solicitationList";//征求意见列表
|
||||
import policySolicitingOpinions from "./components/policySolicitingOpinions";
|
||||
import processFile from "../../components/processFile";
|
||||
import {queryTaskFirst, saveTaskFirst, taskDel, changeAssigneeNew, inboundLiaisonDetail} from "api/process";
|
||||
import {queryTaskFirst, saveTaskFirst, taskDel, changeAssigneeNew, inboundLiaisonDetail,saveTaskForPub} from "api/process";
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
@@ -499,8 +499,25 @@
|
||||
this.openButtonLoading()
|
||||
if (!this.taskKey || this.taskKey == 'PolicySolicitOpinionProcessKey1') {
|
||||
this.draftSaving()
|
||||
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey6') {
|
||||
|
||||
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey8') {
|
||||
let _formData = new FormData();
|
||||
this.$refs.solicitationListRef.save((row,ids)=>{
|
||||
_formData.append("taskIds", this.$route.query.taskIds);
|
||||
_formData.append("json", JSON.stringify({
|
||||
form: this.dataForm,
|
||||
commentText: this.commentText,
|
||||
policySolicitOpinionEOList: row,
|
||||
deleteIds: ids,
|
||||
}));
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
this.$message.success("保存成功");
|
||||
}).catch(e => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
//草稿保存
|
||||
@@ -539,7 +556,7 @@
|
||||
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey2' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey4' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey5' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey6') { //审核、审定、批准、责任人分配任务
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey7') { //审核、审定、批准、责任人分配任务
|
||||
const json = Object.assign(this.dataForm);
|
||||
json.commentText = this.commentText
|
||||
json.approvalFlag = 0
|
||||
@@ -561,6 +578,21 @@
|
||||
this.openButtonLoading()
|
||||
this.completeTask(this.$route.query.taskIds, query)
|
||||
})
|
||||
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey8') {//责任人任务处理
|
||||
this.closeButtonLoading()
|
||||
this.$refs.solicitationListRef.submit((row, ids) => {
|
||||
const json = Object.assign(this.dataForm);
|
||||
json.commentText = this.commentText
|
||||
json.approvalFlag = 0
|
||||
let query = {
|
||||
form: json,
|
||||
policySolicitOpinionEOList: row,
|
||||
deleteIds: ids,
|
||||
commentText: this.commentText
|
||||
}
|
||||
this.openButtonLoading()
|
||||
this.completeTask(this.$route.query.taskIds, query)
|
||||
})
|
||||
}
|
||||
} else {
|
||||
return this.$message.warning('请完善基础信息')
|
||||
|
||||
Reference in New Issue
Block a user