|
@@ -1083,7 +1083,7 @@ import spareParts from '@/views/salesServiceManagement/components/sparePartsList
|
|
|
import { getToken } from '@/utils/token-util';
|
|
import { getToken } from '@/utils/token-util';
|
|
|
import { getByCode } from '@/api/system/dictionary-data'; // 字典接口
|
|
import { getByCode } from '@/api/system/dictionary-data'; // 字典接口
|
|
|
import { listOrganizations } from '@/api/system/organization';
|
|
import { listOrganizations } from '@/api/system/organization';
|
|
|
-import { getUserPage } from '@/api/system/organization';
|
|
|
|
|
|
|
+import { getUserPage, getUserByGroupIds } from '@/api/system/organization';
|
|
|
import GYSparentList from '@/views/purchasingManage/supplierManage/components/parentList.vue';
|
|
import GYSparentList from '@/views/purchasingManage/supplierManage/components/parentList.vue';
|
|
|
import bpmDetail from '@/views/bpm/processInstance/detail.vue'; // 引入流程详情组件
|
|
import bpmDetail from '@/views/bpm/processInstance/detail.vue'; // 引入流程详情组件
|
|
|
const defaultForm = {
|
|
const defaultForm = {
|
|
@@ -1127,6 +1127,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters(['getDictValue']),
|
|
...mapGetters(['getDictValue']),
|
|
|
|
|
+ clientEnvironmentId() {
|
|
|
|
|
+ return this.$store.state.user.info.clientEnvironmentId;
|
|
|
|
|
+ },
|
|
|
sxtValueLabelMap() {
|
|
sxtValueLabelMap() {
|
|
|
return this.sxtList.reduce((map, item) => {
|
|
return this.sxtList.reduce((map, item) => {
|
|
|
map[item.value] = item.label;
|
|
map[item.value] = item.label;
|
|
@@ -1566,6 +1569,11 @@ export default {
|
|
|
idField: 'id',
|
|
idField: 'id',
|
|
|
parentIdField: 'parentId'
|
|
parentIdField: 'parentId'
|
|
|
});
|
|
});
|
|
|
|
|
+ // 润天默认 6
|
|
|
|
|
+ if(this.clientEnvironmentId == 6 && this.type == 'add') {
|
|
|
|
|
+ this.form.involveDeptId = '1998632521465114626';
|
|
|
|
|
+ this.form.involveDeptName = '研发部';
|
|
|
|
|
+ }
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
console.error('获取涉及事业部门数据失败:', error);
|
|
console.error('获取涉及事业部门数据失败:', error);
|
|
|
this.$message.error('获取涉及事业部门数据失败');
|
|
this.$message.error('获取涉及事业部门数据失败');
|
|
@@ -1619,7 +1627,15 @@ export default {
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
size:1000
|
|
size:1000
|
|
|
});
|
|
});
|
|
|
- this.userList = res?.list || [];
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 营销部 营销部(装备) 营销部(智能) 技术服务部 技术服务部(智能) 技术服务部(装备)
|
|
|
|
|
+ const rtRes = await getUserByGroupIds(['1998632792148717569', '1896791540202254338', '1998627729057558530', '1998632872721297409', '1998627861299769345', '1896791598125592578']);
|
|
|
|
|
+ if(this.clientEnvironmentId == 6) {
|
|
|
|
|
+ this.userList = rtRes || [];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.userList = res?.list || [];
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log('rtRes', rtRes);
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
console.error('获取用户列表失败:', error);
|
|
console.error('获取用户列表失败:', error);
|
|
|
this.$message.error('获取用户列表失败');
|
|
this.$message.error('获取用户列表失败');
|