xiaohaizhao há 1 dia atrás
pai
commit
3e6528b33b
2 ficheiros alterados com 30 adições e 16 exclusões
  1. 0 10
      pages/login/login.vue
  2. 30 6
      pages/skus/index.vue

+ 0 - 10
pages/login/login.vue

@@ -258,16 +258,6 @@ async function accLogIn() {
         const s = $Http.baseUrl == "https://crm.meida.com:16691" ? await $Http.OldLogin(`?username=${accountno.value}&password=${encodeURIComponent(password1.value)}`) : {
             success: false
         };
-        if (s.success == false) {
-            wx.showModal({
-                title: '提示',
-                content: s.msg,
-                showCancel: false,
-            })
-            loading.value = false;
-            return
-        }
-        console.log("单点登录", s)
         let res = s.success == true ? await $Http.SSO({
             "accountno": s.data.userinfo.username,
             "password": s.data.cookie.split("=")[1],

+ 30 - 6
pages/skus/index.vue

@@ -78,8 +78,19 @@ const content = reactive({
     "pageNumber": 1,
     "pageSize": 20,
     "where": {
-        isinstalled: "未安装",
-        "condition": ""
+        "condition": "",
+        "tablefilter": {
+            "sku": null,
+            "topclassnum": null,
+            "itemno": null,
+            "itemname": null,
+            "model": null,
+            "phonenumber": null,
+            "cardno": null,
+            "agentnum": null,
+            "abbreviation": null,
+            "isinstalled": "未安装"
+        }
     }
 });
 const list = ref([])
@@ -105,7 +116,7 @@ let tabList = ref([
     current = ref(0);
 
 function tabClick(e) {
-    content.where.isinstalled = e.name;
+    content.where.tablefilter.isinstalled = e.name;
     getList(true);
     listBox.value.backToTop()
 }
@@ -143,6 +154,7 @@ function getList(init = false) {
     if (content.loading) return;
     if (init) content.pageNumber = 1;
     content.loading = true;
+    content.tableid = 784;
     $Http.basic({
         "id": "2025082210142103",
         content
@@ -181,10 +193,22 @@ function getList(init = false) {
 
 
 function getBadge() {
-    let isvoid = content.where.isvoid ? 0 : 1;
+    let isvoid = content.where.tablefilter.isvoid ? 0 : 1;
     $Http.basic({
-        "id": "2025082210142103", "content":
-            { "pageNumber": 1, "pageSize": 0, "nocache": true, "where": { isvoid, condition: content.where.condition } }
+        "id": "2025082210142103",
+        "content": {
+            "pageNumber": 1,
+            "pageSize": 0,
+            tableid: 784,
+            "nocache": true,
+            "where": {
+                condition: content.where.condition,
+                tablefilter: {
+                    ...content.where.tablefilter,
+                    isvoid
+                }
+            }
+        }
     }).then(res => {
         if (res.code == 1) tabList.value[isvoid].badge = {
             value: res.total