流程转办
This commit is contained in:
@@ -38,6 +38,15 @@
|
||||
:loading="submitLoading"
|
||||
v-if="showOver"
|
||||
>撤销申请</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
class="common-button-primary"
|
||||
icon="el-icon-s-promotion"
|
||||
@click="handleTransfer"
|
||||
:loading="transferLoading"
|
||||
v-if="showTransfer"
|
||||
>转办</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
@@ -75,15 +84,6 @@
|
||||
:loading="submitLoading"
|
||||
v-if="showConfirm"
|
||||
>确认</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
class="common-button-primary"
|
||||
icon="el-icon-s-promotion"
|
||||
@click="handleTransfer"
|
||||
:loading="transferLoading"
|
||||
v-if="showTransfer"
|
||||
>转办</el-button>
|
||||
</div>
|
||||
|
||||
<!-- 组织机构树 -->
|
||||
|
||||
@@ -1305,11 +1305,15 @@ export default {
|
||||
}
|
||||
this.dataList = res.data.records;
|
||||
this.dataList.forEach(item => {
|
||||
if(item.xcxssrqgj === 'undefined'){
|
||||
if(item.xcxssrqgj === 'undefined' ||item.xcxssrqgj === '-' ){
|
||||
item.xcxssrqgj = ''
|
||||
}else{
|
||||
this.$set(item, "XCXSSRQ", item.xcxssrqgj)
|
||||
}
|
||||
if(item.zccssrqgj === 'undefined'){
|
||||
if(item.zccssrqgj === 'undefined' || item.zccssrqgj === '-'){
|
||||
item.zccssrqgj = ''
|
||||
}else{
|
||||
this.$set(item, "ZCCSSRQ", item.zccssrqgj)
|
||||
}
|
||||
})
|
||||
this.listForm.dataList = this.dataList;
|
||||
|
||||
@@ -212,11 +212,22 @@
|
||||
</div>
|
||||
</div>
|
||||
<ProcessFooter
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transferLoading="isTransfer"
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
</ProcessFooter>
|
||||
<!-- 福田全公司选人解决方案 -->
|
||||
<Role-tree
|
||||
check-box
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="drawerModal"
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -224,8 +235,9 @@
|
||||
import ProcessHeader from "../../components/ProcessHeader";
|
||||
import ProcessFooter from "../../components/ProcessFooter";
|
||||
import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { inboundLiaisonDetail, queryDetail } from "api/process";
|
||||
import { inboundLiaisonDetail, queryDetail ,changeAssigneeNew} from "api/process";
|
||||
import seeDatalis from "@/pages/localTool/standContrast/pages/seeDatalis";
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
name: "bzqdfbStep2",
|
||||
@@ -240,6 +252,7 @@ export default {
|
||||
// 当前流程类型(1待办/2已办)
|
||||
processType: 1,
|
||||
loading: false,
|
||||
nodeList:[],
|
||||
dataList: [],//清单里的标准数据
|
||||
active: "1",
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -247,6 +260,8 @@ export default {
|
||||
pId: this.$route.query.prcId,
|
||||
listType: "country", //选择的清单类型
|
||||
isSubmit: false,
|
||||
isTransfer: false,
|
||||
drawerTitle:'',
|
||||
saveLoading: false,
|
||||
tabValue: "listOfCountries",
|
||||
selectedList: [], //选择清单的选择框
|
||||
@@ -255,6 +270,8 @@ export default {
|
||||
fileList:[],
|
||||
fileIds: "",
|
||||
commentText: "", //填写会签意见
|
||||
// 调整处理人抽屉状态
|
||||
drawerModal: false,
|
||||
page: 1,
|
||||
total: 0,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
@@ -384,9 +401,46 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
//保存事件
|
||||
handleSave() {
|
||||
|
||||
//确认转办
|
||||
checkedRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
this.$router.push("/processCenter");
|
||||
this.processNum()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
processNum (row) {
|
||||
axios.request({
|
||||
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||
responseType: 'blob',
|
||||
method: 'get',
|
||||
params: {
|
||||
prcNum: this.$route.query.prcNum
|
||||
}
|
||||
}).then(res => {
|
||||
// let blob = new Blob([res.data], {type: 'image/jpg'})
|
||||
// let url = window.URL.createObjectURL(res.data)
|
||||
this.processStep = window.URL.createObjectURL(res.data)
|
||||
})
|
||||
},
|
||||
//转办事件
|
||||
handleTransfer(){
|
||||
this.drawerModal = true
|
||||
this.drawerTitle = '转办处理人'
|
||||
this.selectPeople = row
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
|
||||
Reference in New Issue
Block a user