|
@@ -14,17 +14,7 @@
|
|
|
</div>
|
|
|
<div class="form">
|
|
|
<span class="formSpan">申请人:</span>
|
|
|
- <el-tree-select
|
|
|
- v-model="qrs.userId"
|
|
|
- :data="userList"
|
|
|
- :props="defaultProps"
|
|
|
- check-strictly
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- default-expand-all
|
|
|
- node-key="id"
|
|
|
- placeholder="请选择人员"
|
|
|
- />
|
|
|
+ <UserOrgTree v-model="qrs.userId" :all="true" placeholder="请选择人员" />
|
|
|
</div>
|
|
|
<div class="form">
|
|
|
<span class="formSpan">项目部门:</span>
|
|
@@ -125,38 +115,38 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="userNickname" label="申请人" width="80" />
|
|
|
<el-table-column
|
|
|
- show-overflow-tooltip="true"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
prop="projectName"
|
|
|
label="项目名称"
|
|
|
width="180"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- show-overflow-tooltip="true"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
prop="projectNo"
|
|
|
label="项目编号"
|
|
|
width="120"
|
|
|
/>
|
|
|
- <el-table-column show-overflow-tooltip="true" prop="projectDept" label="项目部门" />
|
|
|
+ <el-table-column :show-overflow-tooltip="true" prop="projectDept" label="项目部门" />
|
|
|
<el-table-column
|
|
|
- show-overflow-tooltip="true"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
prop="procureTime"
|
|
|
label="采购时间"
|
|
|
width="120"
|
|
|
/>
|
|
|
- <el-table-column show-overflow-tooltip="true" prop="assetNo" label="资产编号" />
|
|
|
- <el-table-column show-overflow-tooltip="true" prop="assetName" label="资产名称" />
|
|
|
- <el-table-column show-overflow-tooltip="true" prop="assetType" label="资产类型" />
|
|
|
- <el-table-column show-overflow-tooltip="true" prop="assetModel" label="资产型号" />
|
|
|
- <el-table-column show-overflow-tooltip="true" prop="custodianName" label="保管人" />
|
|
|
+ <el-table-column :show-overflow-tooltip="true" prop="assetNo" label="资产编号" />
|
|
|
+ <el-table-column :show-overflow-tooltip="true" prop="assetName" label="资产名称" />
|
|
|
+ <el-table-column :show-overflow-tooltip="true" prop="assetType" label="资产类型" />
|
|
|
+ <el-table-column :show-overflow-tooltip="true" prop="assetModel" label="资产型号" />
|
|
|
+ <el-table-column :show-overflow-tooltip="true" prop="custodianName" label="保管人" />
|
|
|
<!-- <el-table-column
|
|
|
- show-overflow-tooltip="true"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
prop="custodianDeptName"
|
|
|
label="保管人部门"
|
|
|
/> -->
|
|
|
- <el-table-column show-overflow-tooltip="true" prop="amount" label="金额" />
|
|
|
- <!-- <el-table-column show-overflow-tooltip="true" prop="assetSequence" label="序列号" /> -->
|
|
|
- <!-- <el-table-column show-overflow-tooltip="true" prop="assetConfig" label="资产配置" /> -->
|
|
|
- <el-table-column show-overflow-tooltip="true" prop="bz1" label="备注" />
|
|
|
+ <el-table-column :show-overflow-tooltip="true" prop="amount" label="金额" />
|
|
|
+ <!-- <el-table-column :show-overflow-tooltip="true" prop="assetSequence" label="序列号" /> -->
|
|
|
+ <!-- <el-table-column :show-overflow-tooltip="true" prop="assetConfig" label="资产配置" /> -->
|
|
|
+ <el-table-column :show-overflow-tooltip="true" prop="bz1" label="备注" />
|
|
|
|
|
|
<el-table-column label="操作" width="80" fixed="right">
|
|
|
<template #default="scope">
|
|
@@ -185,10 +175,10 @@
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import request from '@/config/axios'
|
|
|
import * as DeptApi from '@/api/system/dept'
|
|
|
-import * as AssetApi from '@/api/system/asset'
|
|
|
import { defaultProps, handleTree } from '@/utils/tree'
|
|
|
import { arrFlatten } from '../../attendanceCenter/attendAuth'
|
|
|
import UserForm from './UserForm.vue'
|
|
|
+import UserOrgTree from '@/views/OaSystem/components/UserOrgTree/index.vue'
|
|
|
|
|
|
defineOptions({ name: 'GdzccgsqPage' })
|
|
|
const xmztMap: any = { 0: '报废', 1: '正常' }
|
|
@@ -211,7 +201,6 @@ const qrs: any = ref({
|
|
|
assetModel: ''
|
|
|
})
|
|
|
const deptList = ref<Tree[]>([]) // 树形结构
|
|
|
-const userList = ref<Tree[]>([]) // 树形结构
|
|
|
const deptSort: any = ref([])
|
|
|
const initTreeDeps = async () => {
|
|
|
DeptApi.getSimpleDeptList().then((res) => {
|
|
@@ -219,12 +208,6 @@ const initTreeDeps = async () => {
|
|
|
deptSort.value = arrFlatten(res, 'children')
|
|
|
})
|
|
|
}
|
|
|
-/** 用户列表 */
|
|
|
-const initTreeUsers = async () => {
|
|
|
- DeptApi.getSimpleDeptUserAllList().then((res) => {
|
|
|
- userList.value = handleTree(res)
|
|
|
- })
|
|
|
-}
|
|
|
const stateList: any = ref([
|
|
|
{
|
|
|
label: '全部',
|
|
@@ -289,15 +272,6 @@ const total = ref<number>()
|
|
|
const searchHandle: () => void = () => {
|
|
|
queryProjectListAjax()
|
|
|
}
|
|
|
-// const queryProjectListAjax = async () => {
|
|
|
-// let q = JSON.parse(JSON.stringify(qrs.value))
|
|
|
-// console.log(q)
|
|
|
-
|
|
|
-// // AssetApi.getAssetPage(q).then((result) => {
|
|
|
-// // tableData.value = result['rows']
|
|
|
-// // total.value = result['records']
|
|
|
-// // })
|
|
|
-// }
|
|
|
const queryProjectListAjax = async () => {
|
|
|
const urlApi = `/assetProcure/page`
|
|
|
const sendData = {
|
|
@@ -315,9 +289,6 @@ queryProjectListAjax()
|
|
|
* 获取行政区tree结构数据
|
|
|
*/
|
|
|
const areaTree = ref<Array<any>>()
|
|
|
-const filterNodeMethod = (value, data) => {
|
|
|
- return data.name.includes(value)
|
|
|
-}
|
|
|
const queryAreaTreeAjax = async (): Promise<void> => {
|
|
|
const urlApi = `/system/area/tree`
|
|
|
const result = await request.get({ url: urlApi })
|
|
@@ -326,7 +297,6 @@ const queryAreaTreeAjax = async (): Promise<void> => {
|
|
|
queryAreaTreeAjax()
|
|
|
onMounted(() => {
|
|
|
initTreeDeps()
|
|
|
- initTreeUsers()
|
|
|
tableHeight.value = tableRef.value.clientHeight
|
|
|
})
|
|
|
</script>
|