Merge branch 'fix_foton_20240430'

# Conflicts:
#	src/pages/processCenter/pages/creatProcess/qbrk/step1-2.vue
#	src/pages/processCenter/pages/creatProcess/qbrk/step1.vue
This commit is contained in:
wxyclub
2024-06-14 18:10:42 +08:00
16 changed files with 1728 additions and 1777 deletions
@@ -245,6 +245,7 @@
<div style="width: 20%;"> <div style="width: 20%;">
<el-button <el-button
v-if="historyVersionUploadButton"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@@ -904,6 +905,11 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
// 是否展示 过程稿件 历史版本的上传文件按钮
historyVersionUploadButton: {
type: Boolean,
default: true
}
}, },
data () { data () {
return { return {
@@ -181,7 +181,7 @@
</div> </div>
</div> </div>
<div style="width: 20%;"> <div style="width: 20%;">
<el-button <!-- <el-button
:disabled="disabledXX" :disabled="disabledXX"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
@@ -190,7 +190,7 @@
@click="fileUpload('LSBBBUSS')" @click="fileUpload('LSBBBUSS')"
> >
<i class="el-icon-upload" /> <i class="el-icon-upload" />
</el-button> </el-button>-->
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
@@ -832,7 +832,7 @@
:disabled="disabledXX" :disabled="disabledXX"
readonly="readonly" readonly="readonly"
placeholder="选择研究总院主管副院长" placeholder="选择研究总院主管副院长"
@click.native="choiceZHR('zhrUserId', '选择研究总院主管副院长', roleForm.zhrUserId)" @click.native="choiceZRR('zhrUserId', '选择研究总院主管副院长', roleForm.zhrUserId)"
/> />
</div> </div>
</el-form-item> </el-form-item>
@@ -1083,15 +1083,6 @@
:nodeList="nodeList" :nodeList="nodeList"
@checkedRole="checkedRole" @checkedRole="checkedRole"
/> />
<!--选择研究总院主管副院长-->
<Role-tree
v-if="!disabledXX"
:is-title="drawerTitle"
:is-visible.sync="modalShowFlagZHR"
:nodeList="nodeList"
@checkedRole="checkedRoleZHR"
/>
<!-- 选择标准的弹框 --> <!-- 选择标准的弹框 -->
<el-drawer <el-drawer
v-if="!disabledXX" v-if="!disabledXX"
@@ -1768,7 +1759,6 @@ export default {
modalShowFlag: false, // drawer开关 modalShowFlag: false, // drawer开关
showreceive: false, showreceive: false,
modalShowRoleFlag: false, // drawer开关 modalShowRoleFlag: false, // drawer开关
modalShowFlagZHR: false, // drawer开关
modalShowFlag1: false, // drawer开关 modalShowFlag1: false, // drawer开关
modalShowFlag2: false, // drawer开关 modalShowFlag2: false, // drawer开关
modalShowFlag3: false, // drawer开关 modalShowFlag3: false, // drawer开关
@@ -2315,20 +2305,6 @@ export default {
const res = new Map(); const res = new Map();
return newArr.filter((newArr) => !res.has(newArr) && res.set(newArr, 1)); return newArr.filter((newArr) => !res.has(newArr) && res.set(newArr, 1));
}, },
checkedRoleZHR (data) {
let idList = ''
let nameList = ''
data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
this.roleForm.zhrUserId = idList
this.roleForm.zhrUserName = nameList
},
checkedRole (data) { checkedRole (data) {
if (this.type === 0) { if (this.type === 0) {
this.roleForm.deptUserId = data[0].id this.roleForm.deptUserId = data[0].id
@@ -2794,13 +2770,6 @@ export default {
this.drawerTitle = title this.drawerTitle = title
this.modalShowFlag = true this.modalShowFlag = true
}, },
choiceZHR (type, title, id) {
this.nodeList = []
this.nodeList = JSON.parse(JSON.stringify(id.split(',')))
this.userType = type
this.drawerTitle = title
this.modalShowFlagZHR = true
},
choiceZRRS (row, type, index) { choiceZRRS (row, type, index) {
this.type = type this.type = type
if (type === 1) { if (type === 1) {
@@ -265,7 +265,7 @@
</div> </div>
</div> </div>
<div style="width: 20%;"> <div style="width: 20%;">
<el-button <!-- <el-button
:disabled="disabledXX" :disabled="disabledXX"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
@@ -274,7 +274,7 @@
@click="fileUpload('LSBBBUSS')" @click="fileUpload('LSBBBUSS')"
> >
<i class="el-icon-upload" /> <i class="el-icon-upload" />
</el-button> </el-button>-->
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
@@ -995,7 +995,7 @@
:disabled="disabledXX" :disabled="disabledXX"
readonly="readonly" readonly="readonly"
placeholder="选择研究总院主管副院长" placeholder="选择研究总院主管副院长"
@click.native="choiceZHR('zhrUserId', '选择研究总院主管副院长', roleForm.zhrUserId)" @click.native="choiceZRR('zhrUserId', '选择研究总院主管副院长', roleForm.zhrUserId)"
/> />
</div> </div>
</el-form-item> </el-form-item>
@@ -1247,15 +1247,6 @@
:nodeList="nodeList" :nodeList="nodeList"
@checkedRole="checkedRole" @checkedRole="checkedRole"
/> />
<!--选择研究总院主管副院长-->
<Role-tree
v-if="!disabledXX"
:is-title="drawerTitle"
:is-visible.sync="modalShowFlagZHR"
:nodeList="nodeList"
@checkedRole="checkedRoleZHR"
/>
<!-- <el-drawer v-if="!disabledXX" --> <!-- <el-drawer v-if="!disabledXX" -->
<!-- :title="drawerTitle"--> <!-- :title="drawerTitle"-->
<!-- :visible.sync="modalShowFlag"--> <!-- :visible.sync="modalShowFlag"-->
@@ -2009,7 +2000,6 @@ export default {
key3: 4, key3: 4,
treeData: [], // 人员数据 treeData: [], // 人员数据
modalShowFlag: false, // drawer开关 modalShowFlag: false, // drawer开关
modalShowFlagZHR: false, // drawer开关
modalShowRoleFlag: false, // drawer开关 modalShowRoleFlag: false, // drawer开关
modalShowFlag1: false, // drawer开关 modalShowFlag1: false, // drawer开关
modalShowFlag2: false, // drawer开关 modalShowFlag2: false, // drawer开关
@@ -2570,20 +2560,6 @@ export default {
const res = new Map(); const res = new Map();
return newArr.filter((newArr) => !res.has(newArr) && res.set(newArr, 1)); return newArr.filter((newArr) => !res.has(newArr) && res.set(newArr, 1));
}, },
checkedRoleZHR (data) {
let idList = ''
let nameList = ''
data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
this.roleForm.zhrUserId = idList
this.roleForm.zhrUserName = nameList
},
checkedRole (data) { checkedRole (data) {
if (this.type === 0) { if (this.type === 0) {
this.roleForm.deptUserId = data[0].id this.roleForm.deptUserId = data[0].id
@@ -3148,13 +3124,6 @@ export default {
this.drawerTitle = title this.drawerTitle = title
this.modalShowFlag = true this.modalShowFlag = true
}, },
choiceZHR (type, title, id) {
this.nodeList = []
this.nodeList = JSON.parse(JSON.stringify(id.split(',')))
this.userType = type
this.drawerTitle = title
this.modalShowFlagZHR = true
},
choiceZRRS (row, type, index) { choiceZRRS (row, type, index) {
this.type = type this.type = type
if (type === 1) { if (type === 1) {
@@ -20,6 +20,7 @@
> >
<div style="flex: auto;"> <div style="flex: auto;">
<formEditList <formEditList
:historyVersionUploadButton="false"
:key="formKey" :key="formKey"
:formSub="form" :formSub="form"
:FBGBUSSFileListSub="FBGBUSSFileList" :FBGBUSSFileListSub="FBGBUSSFileList"
@@ -20,6 +20,7 @@
> >
<div style="flex: auto;"> <div style="flex: auto;">
<formEditList <formEditList
:historyVersionUploadButton="false"
:key="formKey" :key="formKey"
:form="form" :form="form"
:isTrue="true" :isTrue="true"
@@ -20,6 +20,7 @@
> >
<div style="flex: auto;"> <div style="flex: auto;">
<formEditList <formEditList
:historyVersionUploadButton="false"
:key="formKey" :key="formKey"
:formSub="form" :formSub="form"
:isTrue="true" :isTrue="true"
@@ -150,6 +150,7 @@
</div> </div>
<div v-show="active === '2'" style="flex: auto;"> <div v-show="active === '2'" style="flex: auto;">
<formEditList <formEditList
:historyVersionUploadButton="false"
:key="formKey" :key="formKey"
:isTrue="true" :isTrue="true"
:formSub="form" :formSub="form"
@@ -148,6 +148,7 @@
</div> </div>
<div v-show="active === '2'" style="flex: auto;"> <div v-show="active === '2'" style="flex: auto;">
<formEditList <formEditList
:historyVersionUploadButton="false"
:key="formKey" :key="formKey"
:formSub="form" :formSub="form"
:is-true="true" :is-true="true"
@@ -20,6 +20,7 @@
> >
<div style="flex: auto;overflow: auto"> <div style="flex: auto;overflow: auto">
<formEditList <formEditList
:historyVersionUploadButton="false"
:key="formKey" :key="formKey"
:formSub="form" :formSub="form"
:isTrue="true" :isTrue="true"
@@ -150,6 +150,7 @@
</div> </div>
<div v-show="active === '2'" style="flex: auto;"> <div v-show="active === '2'" style="flex: auto;">
<formEditList <formEditList
:historyVersionUploadButton="false"
:key="formKey" :key="formKey"
:formSub="form" :formSub="form"
:is-true="true" :is-true="true"
@@ -1920,7 +1920,7 @@ export default {
this.saveLoading = true this.saveLoading = true
this.form.commentText = this.formTongGuo.commentText this.form.commentText = this.formTongGuo.commentText
this.form.approvalOpinion = this.formTongGuo.approvalOpinion this.form.approvalOpinion = this.formTongGuo.approvalOpinion
const json = JSON.stringify(this.form); const json = JSON.stringify({ form: this.form, roleForm: this.roleForm })
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId : this.userId, userId : this.userId,
@@ -1920,7 +1920,7 @@ export default {
this.saveLoading = true this.saveLoading = true
this.form.commentText = this.formTongGuo.commentText this.form.commentText = this.formTongGuo.commentText
this.form.approvalOpinion = this.formTongGuo.approvalOpinion this.form.approvalOpinion = this.formTongGuo.approvalOpinion
const json = JSON.stringify(this.form); const json = JSON.stringify({ form: this.form, roleForm: this.roleForm })
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId : this.userId, userId : this.userId,
@@ -1918,7 +1918,7 @@ export default {
this.saveLoading = true this.saveLoading = true
this.form.commentText = this.formTongGuo.commentText this.form.commentText = this.formTongGuo.commentText
this.form.approvalOpinion = this.formTongGuo.approvalOpinion this.form.approvalOpinion = this.formTongGuo.approvalOpinion
const json = JSON.stringify(this.form); const json = JSON.stringify({ form: this.form, roleForm: this.roleForm })
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId : this.userId, userId : this.userId,
@@ -2014,7 +2014,7 @@ export default {
this.saveLoading = true this.saveLoading = true
this.form.commentText = this.formTongGuo.commentText this.form.commentText = this.formTongGuo.commentText
this.form.approvalOpinion = this.formTongGuo.approvalOpinion this.form.approvalOpinion = this.formTongGuo.approvalOpinion
const json = JSON.stringify(this.form); const json = JSON.stringify({ form: this.form, roleForm: this.roleForm })
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId : this.userId, userId : this.userId,
@@ -1920,7 +1920,7 @@ export default {
this.saveLoading = true this.saveLoading = true
this.form.commentText = this.formTongGuo.commentText this.form.commentText = this.formTongGuo.commentText
this.form.approvalOpinion = this.formTongGuo.approvalOpinion this.form.approvalOpinion = this.formTongGuo.approvalOpinion
const json = JSON.stringify(this.form); const json = JSON.stringify({ form: this.form, roleForm: this.roleForm })
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId : this.userId, userId : this.userId,
@@ -950,7 +950,7 @@ export default {
if (this.saveExportType === "apart") { if (this.saveExportType === "apart") {
if (this.selectedList != null && this.selectedList != "") { if (this.selectedList != null && this.selectedList != "") {
const exportURL = interfaceUrl + "sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?" + "type=" + 1 + const exportURL = interfaceUrl + "sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?" + "type=" + 1 +
"&exportType" + this.saveExportType + "&ids=" + this.selectedList.join(",") + "&exportName=" + this.exportName; "&exportType" + this.saveExportType + "&ids=" + this.selectedList.join(",") + "&exportName=" + this.exportName + "&id=" + this.pageId;
window.open(exportURL); window.open(exportURL);
this.$message.success("导出信息成功"); this.$message.success("导出信息成功");
} }