Просмотр исходного кода

合同客户/经销商来源更换

zhaoxiaohai 3 лет назад
Родитель
Сommit
9ae1aaf0ad

+ 5 - 3
packageA/contract/add/type1/index.js

@@ -31,11 +31,12 @@ Page({
                     nocache: true,
                     "where": {
                         "condition": "",
-                        "type": 1
+                        "type": 1,
+                        typemx: "经销商合作协议"
                     }
                 }
             },
-            query: "&radio=true&title=选择经销商",
+            query: "&radio=true&title=选择经销商&idname=sys_enterpriseid",
             placeholder: "选择经销商",
             valueName: "sys_enterpriseid",
             checking: "base",
@@ -141,7 +142,8 @@ Page({
         };
         content.begdate = content.invaliddate[0];
         content.enddate = content.invaliddate[1];
-        content.sys_enterpriseid = content.sys_enterpriseid[1][0] || '';
+        content.sys_enterpriseid = content.sys_enterpriseid[1][0] || 0;
+        content.sa_receivableruleid = content.sa_receivableruleid[1][0] || 0;
         content.discountrate = (content.discountrate / 100).toFixed(4);
         content.paytype = ""
         delete(content.invaliddate)

+ 4 - 2
packageA/contract/add/type2/index.js

@@ -31,7 +31,8 @@ Page({
                     nocache: true,
                     "where": {
                         "condition": "",
-                        "type": 1
+                        "type": 1,
+                        typemx: "经销项目协议"
                     }
                 }
             },
@@ -206,8 +207,9 @@ Page({
         };
         content.begdate = content.invaliddate[0];
         content.enddate = content.invaliddate[1];
-        content.sys_enterpriseid = content.sys_enterpriseid[1][0] || '';
+        content.sys_enterpriseid = content.sys_enterpriseid[1][0] || 0;
         content.sa_projectid = content.sa_projectid[1][0] || '';
+        content.sa_receivableruleid = content.sa_receivableruleid[1][0] || 0;
         content.paytype = ""
         delete(content.invaliddate)
         _Http.basic({

+ 11 - 11
packageA/contract/add/type3/index.js

@@ -26,16 +26,15 @@ Page({
             url: "/packageA/select/setclient/select",
             value: "",
             params: {
-                id: 20221012164402,
-                content: {
+                "id": 20220920083901,
+                "content": {
                     nocache: true,
-                    deleted: 0,
-                    type: 0,
-                    isExport: 0,
-                    where: {
-                        condition: "",
+                    "where": {
+                        "condition": "",
+                        "type": 2,
+                        typemx: "直销项目协议"
                     }
-                },
+                }
             },
             query: "&radio=true&idname=sys_enterpriseid",
             interrupt: true,
@@ -276,9 +275,10 @@ Page({
         };
         content.begdate = content.invaliddate[0];
         content.enddate = content.invaliddate[1];
-        content.sa_projectid = content.sa_projectid[1][0] || '';
-        content.sys_enterpriseid = content.sys_enterpriseid[1][0] || '';
-        content.rec_contactsid = content.rec_contactsid[1][0] || '';
+        content.sa_projectid = content.sa_projectid[1][0] || 0;
+        content.sys_enterpriseid = content.sys_enterpriseid[1][0] || 0;
+        content.rec_contactsid = content.rec_contactsid[1][0] || 0;
+        content.sa_receivableruleid = content.sa_receivableruleid[1][0] || 0;
         content.paytype = ""
         delete(content.invaliddate)
         _Http.basic({

+ 2 - 1
packageA/contract/add/type4/index.js

@@ -30,7 +30,8 @@ Page({
                 "content": {
                     "where": {
                         "condition": "",
-                        "type": 1
+                        "type": 1,
+                        typemx: "居间协议"
                     }
                 }
             },

+ 7 - 8
packageA/contract/add/type5/index.js

@@ -26,16 +26,15 @@ Page({
             url: "/packageA/select/setclient/select",
             value: "",
             params: {
-                id: 20221012164402,
-                content: {
+                "id": 20220920083901,
+                "content": {
                     nocache: true,
-                    deleted: 0,
-                    type: 0,
-                    isExport: 0,
-                    where: {
-                        condition: "",
+                    "where": {
+                        "condition": "",
+                        "type": 2,
+                        typemx: "工具使用(借用)协议"
                     }
-                },
+                }
             },
             query: "&radio=true&idname=sys_enterpriseid",
             placeholder: "选择客户",