| | |
| | | </a-form-model-item>
|
| | | </a-col>
|
| | | <a-col :span="12" style="text-align: right">
|
| | | <a-button type="primary" style="width: 250px;" @click="confirmSend()"
|
| | | <a-button type="primary" style="width: 250px;" @click="confirmSend()" v-preventReClick="1500"
|
| | | :disabled="userInfo.role.id==1?true:false">
|
| | | 确认并提交审核
|
| | | </a-button>
|
| | |
| | | components: {},
|
| | | created() {
|
| | | const t = this
|
| | | t.getAreaUsers()
|
| | | t.areaUsers = JSON.parse(localStorage.getItem('areaUsers'))
|
| | | const {
|
| | | baseUrl
|
| | | } = require('../../../config/env.' + process.env.NODE_ENV)
|
| | |
| | | t.form.districtId = t.userInfo.districtId
|
| | | t.form.publishingUnit = t.userInfo.company
|
| | | t.getSameLevel()
|
| | | t.getAreaUsers()
|
| | | t.getLeaders()
|
| | | },
|
| | | computed: {},
|
| | |
| | | let res = await getAreaWithUserIfo()
|
| | | if (res.data.code == 100) {
|
| | | if (res.data.data) {
|
| | | // const treeD = []
|
| | | t.userTitTree(res.data.data)
|
| | | // treeD.push(t.findNodeById(res.data.data,t.userInfo.districtId))
|
| | | const treeD = t.findNodeById(res.data.data, t.userInfo.districtId)
|
| | | t.areaUsers = treeD.children
|
| | | // t.areaUsers = treeD.children
|
| | | t.unittype = treeD.type
|
| | | } else {
|
| | | console.log('暂无数据')
|
| | |
| | | if (valid) {
|
| | | this.form.acceptingUnitIds = []
|
| | | this.form.peerRecipientIds = []
|
| | |
|
| | | const aList = this.form.receiver.map(item => this.findNodeById(this.areaUsers, item.value)
|
| | | ?.users)
|
| | | if (aList.includes(null)) {
|
| | |
| | | phone: recipienterPhone,
|
| | | company: receiveUnit,
|
| | | realName: recipienterRealName,
|
| | | registrationId: registrationId,
|
| | | ...rest
|
| | | } = i
|
| | | const obj = {
|
| | |
| | | recipienterRealName,
|
| | | recipienterPhone,
|
| | | receiveUnit,
|
| | | registrationId,
|
| | | ...rest
|
| | | }
|
| | | this.form.acceptingUnitIds.push(obj)
|