|
@@ -327,7 +327,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { CORE_API, PRINT_API } from "@/constants/constants";
|
|
|
-import { userRole } from "../constants/constants.js";
|
|
|
+import {} from "../constants/constants.js";
|
|
|
import { mapState } from "vuex";
|
|
|
import { checkEmptyStr, checkEmptyNumber, formatGMT } from "../utils/common.js";
|
|
|
|
|
@@ -408,7 +408,7 @@ export default {
|
|
|
pageNo: 1,
|
|
|
pageSize: 10
|
|
|
},
|
|
|
- curUserRole: userRole,
|
|
|
+ curUserRole: {},
|
|
|
hasPermit: false,
|
|
|
totalElements: 0,
|
|
|
loading: false,
|
|
@@ -803,9 +803,11 @@ export default {
|
|
|
} else if (this.curUserRole.isPM) {
|
|
|
this.hasPermit = false;
|
|
|
this.loadPmInfo(this.user);
|
|
|
+ this.loadSupplierList();
|
|
|
this.formSearch.pmId = this.user.userId;
|
|
|
} else if (this.curUserRole.isSupplier) {
|
|
|
this.hasPermit = false;
|
|
|
+ this.loadPmList();
|
|
|
this.loadSupplierInfo(this.user);
|
|
|
this.formSearch.supplierId = this.user.userId;
|
|
|
} else {
|