Przeglądaj źródła

仓储平台添加权限

lichao 3 lat temu
rodzic
commit
63e591e950
1 zmienionych plików z 16 dodań i 12 usunięć
  1. 16 12
      src/views/stock/index.vue

+ 16 - 12
src/views/stock/index.vue

@@ -388,6 +388,7 @@
 
 <script>
 import { request } from '../../request/request';
+import { encrypt, decrypt } from '@/utils/jsencrypt'
 
 import Treeselect from "@riophae/vue-treeselect";
 import Cookies from "js-cookie";
@@ -428,7 +429,7 @@ export default {
       open: false,
       // 查询参数
       queryParams: {
-        createBy: '',
+        fTel: Cookies.get("phone"),
         pageNum: 1,
         pageSize: 50,
         fOriginalbillno: null,
@@ -474,14 +475,14 @@ export default {
           width: 100,
           fixed: "left",
         },
-        // {
-        //   surface: "1",
-        //   label: "fCorpid",
-        //   name: "客户",
-        //   checked: 0,
-        //   width: 100,
-        //   fixed: "left",
-        // },
+        {
+          surface: "1",
+          label: "fCorpid",
+          name: "客户",
+          checked: 0,
+          width: 100,
+          fixed: "left",
+        },
         {
           surface: "2",
           label: "fOriginalbilldate",
@@ -937,9 +938,11 @@ export default {
     /** 查询库存总账列表 */
     getList() {
       this.loading = true;
-      this.queryParams.createBy = Cookies.get("username");
+      this.queryParams.fTel = Cookies.get("phone")
+      this.queryParams.fTel = decrypt(this.queryParams.fTel)
+      console.log(this.queryParams.fTel)
       request({
-        url: '/warehouseBusiness/whgenleg/whgenlegList',
+        url: '/warehouseBusiness/whgenleg/websiteWhGenLegList',
         method: 'get',
         params: this.queryParams
       }).then((response) => {
@@ -987,7 +990,7 @@ export default {
         fCntrno: null,
         fStatus: "0",
         delFlag: null,
-        createBy: null,
+        fTel: Cookies.get("phone"),
         fMarks: null,
         createTime: null,
         updateBy: null,
@@ -1004,6 +1007,7 @@ export default {
     /** 重置按钮操作 */
     resetQuery() {
       this.queryParams = {
+        fTel: Cookies.get("phone"),
         pageNum: 1,
         pageSize: 10,
         fOriginalbillno: null,