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

移除报价单中的关联客户和项目

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

+ 0 - 54
packageA/offers/modules/project/index.js

@@ -1,54 +0,0 @@
-const _Http = getApp().globalData.http;
-Component({
-    properties: {
-
-    },
-    data: {
-        content: {
-            total: null
-        }
-    },
-    methods: {
-        getList(id) {
-            _Http.basic({
-                "id": 20221021103902,
-                "content": {
-                    "sa_projectid": id
-                },
-            }).then(res => {
-                console.log("项目商机", res)
-                if (res.msg != '成功') return wx.showToast({
-                    title: res.msg,
-                    icon: "none"
-                });
-                this.setData({
-                    list: [res.data],
-                    "content.total": 1
-                })
-                this.getTags();
-            })
-        },
-        /* 获取列表标签 */
-        getTags() {
-            let item = this.data.list[0];
-            _Http.basic({
-                "id": 20220929085401,
-                "content": {
-                    nocache: true,
-                    "ownertable": "sa_project",
-                    ownerid: item.sa_projectid
-                }
-            }).then(res => {
-                console.log("标签", res)
-                if (res.msg != '成功') return wx.showToast({
-                    title: res.msg,
-                    icon: "none"
-                });
-                item.tags = res.data
-                this.setData({
-                    "list[0]": item
-                })
-            })
-        },
-    }
-})

+ 0 - 6
packageA/offers/modules/project/index.json

@@ -1,6 +0,0 @@
-{
-    "component": true,
-    "usingComponents": {
-        "List": "/packageA/project/modules/list/index"
-    }
-}

+ 0 - 1
packageA/offers/modules/project/index.scss

@@ -1 +0,0 @@
-/* packageA/offers/modules/project/index.wxss */

+ 0 - 1
packageA/offers/modules/project/index.wxml

@@ -1 +0,0 @@
-<List list='{{list}}' />

+ 0 - 54
packageA/offers/modules/setclient/index.js

@@ -1,54 +0,0 @@
-const _Http = getApp().globalData.http;
-Component({
-    properties: {
-
-    },
-    data: {
-        content: {
-            total: null
-        }
-    },
-    methods: {
-        getList(id) {
-            _Http.basic({
-                "id": 20221012164302,
-                "content": {
-                    sa_customersid: id
-                },
-            }).then(res => {
-                console.log("报价单关联客户", res)
-                if (res.msg != '成功') return wx.showToast({
-                    title: res.msg,
-                    icon: "none"
-                });
-                this.setData({
-                    list: [res.data],
-                    "content.total": 1
-                })
-                this.getTags();
-            })
-        },
-        /* 获取列表标签 */
-        getTags() {
-            let item = this.data.list[0];
-            _Http.basic({
-                "id": 20220929085401,
-                "content": {
-                    nocache: true,
-                    "ownertable": "sa_customers",
-                    ownerid: item.sa_customersid
-                }
-            }).then(res => {
-                console.log("标签", res)
-                if (res.msg != '成功') return wx.showToast({
-                    title: res.msg,
-                    icon: "none"
-                });
-                item.tags = res.data
-                this.setData({
-                    "list[0]": item
-                })
-            })
-        },
-    }
-})

+ 0 - 6
packageA/offers/modules/setclient/index.json

@@ -1,6 +0,0 @@
-{
-    "component": true,
-    "usingComponents": {
-        "List": "/packageA/setclient/modules/list/index"
-    }
-}

+ 0 - 1
packageA/offers/modules/setclient/index.scss

@@ -1 +0,0 @@
-/* packageA/offers/modules/project/index.wxss */

+ 0 - 1
packageA/offers/modules/setclient/index.wxml

@@ -1 +0,0 @@
-<List list='{{list}}' />