Parcourir la source

关联客户范围修改 客户11 经销商12

xiaohaizhao il y a 2 ans
Parent
commit
cea2ecffdf
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      packageA/project/modules/treaty/add/index.js

+ 5 - 2
packageA/project/modules/treaty/add/index.js

@@ -10,7 +10,7 @@ Page({
             "total": null,
             "where": {
                 "condition": "",
-                "type": 6,
+                "type": 11,
                 "sa_projectid": null
             }
         },
@@ -24,13 +24,16 @@ Page({
         this.getList();
     },
     tabChange(e) {
-        this.data.content.where.type = e.detail.title == '客户' ? 6 : 8;
+        this.data.content.where.type = e.detail.title == '客户' ? 11 : 12;
         this.getList(true)
     },
     submit() {
         let pages = getCurrentPages();
         let list = this.data.result.map(v => this.data.list.find(value => value.sys_enterpriseid == v));
         try {
+            setTimeout(() => {
+                pages[pages.length - 2].getTags();
+            }, 300)
             pages[pages.length - 2].selectComponent("#Treaty").submit({
                 "sa_projectid": this.data.content.where.sa_projectid,
                 "sys_enterpriseids": this.data.result,