|
|
@@ -174,6 +174,7 @@ import {
|
|
|
getSalesWorkOrderById,
|
|
|
recycleDetails
|
|
|
} from '@/api/salesServiceManagement/index';
|
|
|
+import { getCurrentUser } from '@/utils/token-util';
|
|
|
export default {
|
|
|
props: {},
|
|
|
components: { workOrderList, spareInfo },
|
|
|
@@ -210,7 +211,8 @@ export default {
|
|
|
this.editRepairNotesDialog = true;
|
|
|
this.type = type;
|
|
|
this.title = type == 'add' ? '新增' : type == 'edit' ? '编辑' : '详情';
|
|
|
- let currentUser = JSON.parse(sessionStorage['currentUser']);
|
|
|
+ // let currentUser = JSON.parse(sessionStorage['currentUser']);
|
|
|
+ let currentUser = getCurrentUser();
|
|
|
this.form.recycleDeptId = currentUser.currentGroupId; // 部门id
|
|
|
this.roleVOListData();
|
|
|
if (row?.id) {
|
|
|
@@ -220,6 +222,7 @@ export default {
|
|
|
// 下拉数据 name 赋值
|
|
|
this.echoData();
|
|
|
}
|
|
|
+ console.log(this.form,'form --')
|
|
|
},
|
|
|
async getDetail(data) {
|
|
|
const row = JSON.parse(JSON.stringify(data));
|