相关方流程变更
parent
ed0584275f
commit
a01d60b192
|
@ -1,16 +1,44 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" :before-close="beforeClose" title="审批" width="370px" destroy-on-close>
|
<el-dialog v-loading = "loading" :visible.sync="visible" :append-to-body="appendToBody" :before-close="beforeClose" title="审批" width="1200px" destroy-on-close>
|
||||||
<el-form>
|
<el-form label-width="200px" label-position="right" type="flex">
|
||||||
<el-form-item prop="TERRITORIALITY" label="是否通过 ">
|
<el-row :gutter="12">
|
||||||
<el-select v-model="value" placeholder="请选择">
|
<el-col :span="12">
|
||||||
<el-option label="是" value="1"/>
|
<el-form-item prop="TERRITORIALITY" label="是否通过: ">
|
||||||
<el-option label="否" value="0"/>
|
<el-select v-model="form.value" style="width: 300px" placeholder="请选择">
|
||||||
</el-select>
|
<el-option label="是" value="1"/>
|
||||||
</el-form-item>
|
<el-option label="否" value="0"/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item prop="TERRITORIALITY" label="指定监管部门:">
|
||||||
|
<Treeselect
|
||||||
|
:options="departmentTree"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="form.DEPARTMENT_ID"
|
||||||
|
placeholder="请选择部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
@select="getPeopleList($event,index,'','coverpeople')"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item prop="TERRITORIALITY" label="指定监管部门审批人:">
|
||||||
|
<el-select v-model="form.USER_ID" style="width: 300px" placeholder="请选择">
|
||||||
|
<el-option v-for="item in peopleList" :key="item.USER_ID" :value="item.USER_ID" :label="item.NAME"/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="visible = false">关 闭</el-button>
|
<el-button @click="handleClose">关 闭</el-button>
|
||||||
<el-button type="primary" @click="sendMessage()">确 定</el-button>
|
<el-button type="primary" @click="sendMessage()">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
@ -34,14 +62,32 @@ export default {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
value: null,
|
form: {
|
||||||
heirloom: {}
|
value: null,
|
||||||
|
DEPARTMENT_ID: null,
|
||||||
|
USER_ID: null
|
||||||
|
},
|
||||||
|
heirloom: {},
|
||||||
|
|
||||||
|
normalizer(node) {
|
||||||
|
return {
|
||||||
|
id: node.id,
|
||||||
|
label: node.name,
|
||||||
|
children: node.nodes
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
departmentTree: [],
|
||||||
|
peopleList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(e) {
|
async init(e) {
|
||||||
|
this.loading = true
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.heirloom = JSON.stringify(e)
|
this.heirloom = JSON.stringify(e)
|
||||||
|
await this.getDepartmentTree()
|
||||||
|
this.loading = false
|
||||||
},
|
},
|
||||||
beforeClose() {
|
beforeClose() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
@ -63,6 +109,38 @@ export default {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.$emit('refresh', '')
|
this.$emit('refresh', '')
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
getDepartmentTree() {
|
||||||
|
return new Promise(resolve => {
|
||||||
|
requestFN(
|
||||||
|
'/department/listTree',
|
||||||
|
{}
|
||||||
|
).then((data) => {
|
||||||
|
this.departmentTree = this.removeEmptyChildren(JSON.parse(data.zTreeNodes))
|
||||||
|
resolve(true)
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getPeopleList({ id: DEPARTMENT_ID }, index, type, list) {
|
||||||
|
requestFN(
|
||||||
|
'/user/listAll',
|
||||||
|
{
|
||||||
|
DEPARTMENT_ID: DEPARTMENT_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.peopleList = data.userList
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleClose() {
|
||||||
|
this.form = {
|
||||||
|
value: null,
|
||||||
|
DEPARTMENT_ID: null,
|
||||||
|
USER_ID: null
|
||||||
|
}
|
||||||
|
this.visible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue