|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
<span class="box-number">{{ item.total }}</span>
|
|
|
|
|
<span class="box-text" style="font-size: 12px;font-weight: 400">{{
|
|
|
|
|
item.name
|
|
|
|
|
}}</span>
|
|
|
|
|
}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-tab-pane>
|
|
|
|
@ -53,7 +53,8 @@
|
|
|
|
|
<a-popconfirm title="确定完成当前选择项?" ok-text="是" cancel-text="否" @confirm="submitFun">
|
|
|
|
|
<a-button type="link"><i class="icon-yiwancheng2 iconfont"></i>完成</a-button>
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
<a-button type="link" @click="FnPrint"><i class="icon-weibiaoti-- iconfont"></i>打印</a-button>
|
|
|
|
|
<a-button type="link" @click="openUser"><i class="icon-zhuanfa iconfont"></i>任务转交</a-button>
|
|
|
|
|
<!-- <a-button type="link" @click="FnPrint"><i class="icon-weibiaoti-- iconfont"></i>打印</a-button> -->
|
|
|
|
|
<!-- <a-button type="link" @click="FnSendCar"><i class="icon-chezaikucun iconfont"></i>派车</a-button>
|
|
|
|
|
<a-button type="link" @click="CancelSendCar"><i
|
|
|
|
|
class="icon-weiwancheng iconfont"></i>取消派车</a-button> -->
|
|
|
|
@ -238,6 +239,17 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>{{ bcFile.msg }}</div>
|
|
|
|
|
</a-modal>
|
|
|
|
|
<a-modal @cancel="UserVisible = false" :visible="UserVisible" title="转移任务" @ok="UserhandleOk">
|
|
|
|
|
<a-spin :spinning="userLoad">
|
|
|
|
|
<div style="margin: 15px 0;">接收人</div>
|
|
|
|
|
<a-select mode="multiple" show-search style="width: 100%;margin-bottom: 30px"
|
|
|
|
|
:filter-option="filterOption" v-model:value="UserId">
|
|
|
|
|
<a-select-option v-for="item in UserList" :key="item.value" :value="item.value">
|
|
|
|
|
{{ item.label }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-spin>
|
|
|
|
|
</a-modal>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
@ -261,11 +273,13 @@ import {
|
|
|
|
|
CompleteTask,
|
|
|
|
|
DownloadTaskAttach,
|
|
|
|
|
SendTelexEmail,
|
|
|
|
|
SetTaskOwner,
|
|
|
|
|
LaraPaperCalc,
|
|
|
|
|
PrintBatch,
|
|
|
|
|
DownloadAttach,
|
|
|
|
|
DownloadOriginalTask,
|
|
|
|
|
ManualReCompareBC
|
|
|
|
|
ManualReCompareBC,
|
|
|
|
|
GetUserListAll
|
|
|
|
|
} from './api'
|
|
|
|
|
import { useGo } from '/@/hooks/web/usePage'
|
|
|
|
|
const go = useGo()
|
|
|
|
@ -274,6 +288,8 @@ onMounted(() => {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const levelreLoading = ref(false)
|
|
|
|
|
const levelLoading = ref(false)
|
|
|
|
|
const levelTop = ref([]) as any //顶层tab
|
|
|
|
@ -317,6 +333,7 @@ function getCurrentTotalStat() {
|
|
|
|
|
}
|
|
|
|
|
activeTreeKey.value = []
|
|
|
|
|
taskType.value = ''
|
|
|
|
|
console.log(1111)
|
|
|
|
|
reload()
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
@ -332,6 +349,71 @@ function selectNextLevel(list, key) {
|
|
|
|
|
})
|
|
|
|
|
return arr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//转移任务
|
|
|
|
|
const UserVisible = ref(false)
|
|
|
|
|
const UserList = ref([]) as any
|
|
|
|
|
const UserId = ref([])
|
|
|
|
|
const userLoad = ref(false)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function UserhandleOk() {
|
|
|
|
|
if (UserId.value.length === 0) {
|
|
|
|
|
createMessage.error('请选择转移人')
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
const arr = [] as any
|
|
|
|
|
UserList.value.forEach(item => {
|
|
|
|
|
UserId.value.forEach(ite => {
|
|
|
|
|
if (item.value == ite) {
|
|
|
|
|
arr.push({
|
|
|
|
|
recvUserId: item.value,
|
|
|
|
|
recvUserName: item.label
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
const select = getSelectRows()
|
|
|
|
|
let queryStr = ''
|
|
|
|
|
select.forEach((item, index) => {
|
|
|
|
|
if (index === 0) {
|
|
|
|
|
queryStr += 'taskIds=' + item.id
|
|
|
|
|
} else {
|
|
|
|
|
queryStr += '&taskIds=' + item.id
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
userLoad.value = true
|
|
|
|
|
SetTaskOwner(arr, queryStr).then(res => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
createMessage.success(res.message)
|
|
|
|
|
UserVisible.value = false
|
|
|
|
|
} else {
|
|
|
|
|
createMessage.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
userLoad.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function openUser() {
|
|
|
|
|
const select = getSelectRows()
|
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
|
return item.id
|
|
|
|
|
})
|
|
|
|
|
if (pkIdArr.length === 0) {
|
|
|
|
|
createMessage.error('请选择数据')
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
GetUserListAll().then(res => {
|
|
|
|
|
UserList.value = res.data
|
|
|
|
|
})
|
|
|
|
|
UserId.value = []
|
|
|
|
|
UserVisible.value = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function filterOption(input, option) {
|
|
|
|
|
return (
|
|
|
|
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
// 点击顶层切换
|
|
|
|
|
function changeTopLevel() {
|
|
|
|
|
levelNext.value = selectNextLevel(levelNextAll.value, activeTopKey.value)
|
|
|
|
@ -418,14 +500,15 @@ const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps }]
|
|
|
|
|
if (activeNextKey.value) {
|
|
|
|
|
p['status'] = activeNextKey.value
|
|
|
|
|
}
|
|
|
|
|
if (taskType.value) {
|
|
|
|
|
p['tasK_TYPE'] = taskType.value
|
|
|
|
|
}
|
|
|
|
|
const data = {
|
|
|
|
|
...formatParams(p)
|
|
|
|
|
}
|
|
|
|
|
data.otherQueryCondition = {}
|
|
|
|
|
if (activeTopKey.value) {
|
|
|
|
|
data.taskCategory = activeTopKey.value
|
|
|
|
|
data.otherQueryCondition.taskCategory = activeTopKey.value
|
|
|
|
|
}
|
|
|
|
|
if (taskType.value) {
|
|
|
|
|
data.otherQueryCondition.taskType = taskType.value
|
|
|
|
|
}
|
|
|
|
|
return data
|
|
|
|
|
},
|
|
|
|
|