Explorar el Código

HY站点,客户行业客户分类必填

xiaohaizhao hace 1 año
padre
commit
adbc98b475
Se han modificado 2 ficheros con 19 adiciones y 0 borrados
  1. 9 0
      packageA/saleClue/translate.js
  2. 10 0
      packageA/setclient/addAndEditor.js

+ 9 - 0
packageA/saleClue/translate.js

@@ -468,6 +468,15 @@ Page({
                 form
             })
         }
+
+        if (wx.getStorageSync('userMsg').siteid == 'HY') {
+            this.setData({
+                form: this.data.form.map(v => {
+                    if (["customergrade", "industry"].includes(v.valueName)) v.required = true;
+                    return v
+                })
+            })
+        }
     },
     repClose() {
         return this.setData({

+ 10 - 0
packageA/setclient/addAndEditor.js

@@ -485,6 +485,16 @@ Page({
             })
         }
         getApp().globalData.Language.getLanguagePackage(this, options.data ? '编辑客户' : '新建客户');
+
+        if (wx.getStorageSync('userMsg').siteid == 'HY') {
+            this.setData({
+                form: this.data.form.map(v => {
+                    if (["customergrade", "industry"].includes(v.valueName)) v.required = true;
+                    return v
+                })
+            })
+        }
+
         /* 获取来源 */
         _Http.basic({
             "classname": "sysmanage.develop.optiontype.optiontype",