|
@@ -137,7 +137,7 @@ import DetailOut from './modules/DetailRepairOut'
|
|
|
import { getRepairApplicationFormPage, deleteRepairApplicationForms, fetchRepairApplicationForm, exportRepairApplicationForm } from '@/api/repair/application-form'
|
|
import { getRepairApplicationFormPage, deleteRepairApplicationForms, fetchRepairApplicationForm, exportRepairApplicationForm } from '@/api/repair/application-form'
|
|
|
import DispatchBaseForm from '@/views/repair/application-form/modules/DispatchBaseForm'
|
|
import DispatchBaseForm from '@/views/repair/application-form/modules/DispatchBaseForm'
|
|
|
import { queryDept } from '@/api/upms/dept'
|
|
import { queryDept } from '@/api/upms/dept'
|
|
|
-import { selectUserDept } from '@/api/upms/user-dept'
|
|
|
|
|
|
|
+// import { selectUserDept } from '@/api/upms/user-dept'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'RepairForm',
|
|
name: 'RepairForm',
|
|
@@ -166,7 +166,8 @@ export default {
|
|
|
// 查询参数
|
|
// 查询参数
|
|
|
queryParam: {
|
|
queryParam: {
|
|
|
filter: this.filter,
|
|
filter: this.filter,
|
|
|
- searchType: this.searchType
|
|
|
|
|
|
|
+ searchType: this.searchType,
|
|
|
|
|
+ deptId: this.$store.getters.userInfo.deptId
|
|
|
},
|
|
},
|
|
|
visible: true,
|
|
visible: true,
|
|
|
// 表头
|
|
// 表头
|
|
@@ -342,16 +343,16 @@ export default {
|
|
|
this.deptList = res.data || []
|
|
this.deptList = res.data || []
|
|
|
})
|
|
})
|
|
|
// 我的工单:默认查询当前登录人部门的所有相关工单
|
|
// 我的工单:默认查询当前登录人部门的所有相关工单
|
|
|
- if (this.searchType === 2) {
|
|
|
|
|
- selectUserDept().then(res => {
|
|
|
|
|
- if (res.data && res.data.deptId) {
|
|
|
|
|
- this.queryParam.deptId = res.data.deptId
|
|
|
|
|
- if (this.$refs.table) {
|
|
|
|
|
- this.$refs.table.refresh()
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (this.searchType === 2) {
|
|
|
|
|
+ // selectUserDept().then(res => {
|
|
|
|
|
+ // if (res.data && res.data.deptId) {
|
|
|
|
|
+ // this.queryParam.deptId = res.data.deptId
|
|
|
|
|
+ // if (this.$refs.table) {
|
|
|
|
|
+ // this.$refs.table.refresh()
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }
|
|
|
this.tableOption()
|
|
this.tableOption()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|