From 291cd3e70736e610617adb7b48d44068ffe8a48b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Tue, 8 Feb 2022 08:45:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- newBusinessEntities/index.html | 3 +- newBusinessEntities/release.html | 17 +- newBusinessEntities/static/js/api/index.js | 4 + .../static/js/project/supplyChain/index.js | 69 ++++ newBusinessEntities/user/detail.html | 2 +- .../view/directories/declare.html | 6 +- .../view/directories/detail.html | 6 +- .../view/directories/index.html | 6 +- newBusinessEntities/view/finance/detail.html | 6 +- newBusinessEntities/view/finance/index.html | 6 +- newBusinessEntities/view/finance/index2.html | 6 +- .../view/finance/productDetail.html | 6 +- newBusinessEntities/view/map/index.html | 6 +- newBusinessEntities/view/price/index.html | 6 +- .../view/record/information.html | 6 +- .../view/record/projectDetail.html | 6 +- .../view/record/projectList.html | 6 +- .../view/record/supplyList.html | 6 +- .../view/record/trainList.html | 4 +- .../view/record/updatePassword.html | 6 +- .../view/resources/detail.html | 6 +- newBusinessEntities/view/resources/index.html | 6 +- newBusinessEntities/view/supply/detail.html | 6 +- newBusinessEntities/view/supply/index.html | 19 +- .../view/supplyChain/brokerApplication.html | 6 +- .../view/supplyChain/detail.html | 6 +- .../view/supplyChain/index.html | 295 +++++++++++++----- newBusinessEntities/view/train/detail.html | 6 +- newBusinessEntities/view/train/index.html | 6 +- .../view/train/severDetail.html | 6 +- 30 files changed, 392 insertions(+), 153 deletions(-) diff --git a/newBusinessEntities/index.html b/newBusinessEntities/index.html index 1bf58ef..5ee3029 100644 --- a/newBusinessEntities/index.html +++ b/newBusinessEntities/index.html @@ -17,7 +17,7 @@
-
+

农村经营主体综合供求信息网

- 发布
diff --git a/newBusinessEntities/release.html b/newBusinessEntities/release.html index 761648c..4ee00a9 100644 --- a/newBusinessEntities/release.html +++ b/newBusinessEntities/release.html @@ -22,17 +22,18 @@

农村经营主体综合供求信息网

-
- - 发布 - - + + +
diff --git a/newBusinessEntities/static/js/api/index.js b/newBusinessEntities/static/js/api/index.js index 738865d..da07090 100644 --- a/newBusinessEntities/static/js/api/index.js +++ b/newBusinessEntities/static/js/api/index.js @@ -62,4 +62,8 @@ var depositInformation = '/webSite/operators/depositInformation' //供求信息 var productCategories = '/webSite/operators/productCategories' //产品分类 +var supplyChainAgent = '/webSite/operators/supplyChainAgent' //经纪人列表 + +var supplyChainPurchaser = '/webSite/operators/supplyChainPurchaser' //采购商列表 + var dictType = '/webSite/operators/data/type' //首页-字典查询 diff --git a/newBusinessEntities/static/js/project/supplyChain/index.js b/newBusinessEntities/static/js/project/supplyChain/index.js index 22acb01..a0b53c9 100644 --- a/newBusinessEntities/static/js/project/supplyChain/index.js +++ b/newBusinessEntities/static/js/project/supplyChain/index.js @@ -20,6 +20,23 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp tools.doGet(dictType + '/Industrial_classification_type', {}, module.dictType , true); + var tabs = $('.tab').find('li'); + var informationBox = $("#listBox > div"); + tabs.on('click', function (e) { + + e.preventDefault();//防止打开链接 + + var index = $(this).data('id'); + + tabs.removeClass('active'); + + informationBox.css("display",'none'); + + $(this).addClass('active'); + + $('#'+index).css("display",'block') + + }); // $("#signStartTimeStr").datetime({ // type: "date", // value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], @@ -51,6 +68,8 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp module.dictType = function (data) { module.data.industryClassOptions = data.data; tools.doPost(entityMain, {}, module.entityMain , true); + tools.doPost(supplyChainAgent, {}, module.supplyChainAgent , true); + tools.doPost(supplyChainPurchaser, {}, module.supplyChainPurchaser , true); } //经营主体 @@ -78,6 +97,56 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp } } + //经营主体 + module.supplyChainAgent = function (data) { + if (data.code == 200) { + var content = data.data; + + // for ( var i = 0 ; i < content.length ; i++ ){ + // if (content[i].industryClassificationType != null){ + // var industryClassificationType = content[i].industryClassificationType.split(","); + // var secondArray = ""; + // for (var j = 0 ; j < industryClassificationType.length ; j++){ + // secondArray += module.selectDictLabel(module.data.industryClassOptions,industryClassificationType[j]); + // } + // content[i].industryClassificationType = secondArray; + // } + // console.log(content[i].industryClassificationType) + // content[i].masterMap = serverApi + content[i].masterMap ; + // + // } + + module.data.agentList = content; + var agentData = template('agentData', module.data); + $("#agentContent").html(agentData); + } + } + + //经营主体 + module.supplyChainPurchaser = function (data) { + if (data.code == 200) { + var content = data.data; + + // for ( var i = 0 ; i < content.length ; i++ ){ + // if (content[i].industryClassificationType != null){ + // var industryClassificationType = content[i].industryClassificationType.split(","); + // var secondArray = ""; + // for (var j = 0 ; j < industryClassificationType.length ; j++){ + // secondArray += module.selectDictLabel(module.data.industryClassOptions,industryClassificationType[j]); + // } + // content[i].industryClassificationType = secondArray; + // } + // console.log(content[i].industryClassificationType) + // content[i].masterMap = serverApi + content[i].masterMap ; + // + // } + + module.data.purchaserList = content; + var purchaserData = template('purchaserData', module.data); + $("#purchaserContent").html(purchaserData); + } + } + module.selectDictLabel = function (datas, value) { var actions = []; Object.keys(datas).some((key) => { diff --git a/newBusinessEntities/user/detail.html b/newBusinessEntities/user/detail.html index f7276cb..6f2687f 100644 --- a/newBusinessEntities/user/detail.html +++ b/newBusinessEntities/user/detail.html @@ -32,7 +32,7 @@
- 发布 +
diff --git a/newBusinessEntities/view/directories/declare.html b/newBusinessEntities/view/directories/declare.html index 5b0301d..c81ac3b 100644 --- a/newBusinessEntities/view/directories/declare.html +++ b/newBusinessEntities/view/directories/declare.html @@ -30,7 +30,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/directories/detail.html b/newBusinessEntities/view/directories/detail.html index d238473..6181f6b 100644 --- a/newBusinessEntities/view/directories/detail.html +++ b/newBusinessEntities/view/directories/detail.html @@ -18,7 +18,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/directories/index.html b/newBusinessEntities/view/directories/index.html index e540937..d504d28 100644 --- a/newBusinessEntities/view/directories/index.html +++ b/newBusinessEntities/view/directories/index.html @@ -56,7 +56,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/finance/detail.html b/newBusinessEntities/view/finance/detail.html index b5391b1..32e1cdc 100644 --- a/newBusinessEntities/view/finance/detail.html +++ b/newBusinessEntities/view/finance/detail.html @@ -45,7 +45,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/finance/index.html b/newBusinessEntities/view/finance/index.html index 314cb07..e38c5df 100644 --- a/newBusinessEntities/view/finance/index.html +++ b/newBusinessEntities/view/finance/index.html @@ -67,7 +67,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/finance/index2.html b/newBusinessEntities/view/finance/index2.html index 6ea8452..84685e7 100644 --- a/newBusinessEntities/view/finance/index2.html +++ b/newBusinessEntities/view/finance/index2.html @@ -45,7 +45,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/finance/productDetail.html b/newBusinessEntities/view/finance/productDetail.html index 7aee16a..beca289 100644 --- a/newBusinessEntities/view/finance/productDetail.html +++ b/newBusinessEntities/view/finance/productDetail.html @@ -18,7 +18,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/map/index.html b/newBusinessEntities/view/map/index.html index b1d575f..27ad745 100644 --- a/newBusinessEntities/view/map/index.html +++ b/newBusinessEntities/view/map/index.html @@ -76,7 +76,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/price/index.html b/newBusinessEntities/view/price/index.html index 1184eb6..81c3a19 100644 --- a/newBusinessEntities/view/price/index.html +++ b/newBusinessEntities/view/price/index.html @@ -46,7 +46,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/record/information.html b/newBusinessEntities/view/record/information.html index 65538d2..5e81b1a 100644 --- a/newBusinessEntities/view/record/information.html +++ b/newBusinessEntities/view/record/information.html @@ -105,7 +105,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/record/projectDetail.html b/newBusinessEntities/view/record/projectDetail.html index e559696..b7a3ae9 100644 --- a/newBusinessEntities/view/record/projectDetail.html +++ b/newBusinessEntities/view/record/projectDetail.html @@ -18,7 +18,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/record/projectList.html b/newBusinessEntities/view/record/projectList.html index 43c2640..80a7778 100644 --- a/newBusinessEntities/view/record/projectList.html +++ b/newBusinessEntities/view/record/projectList.html @@ -19,7 +19,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/record/supplyList.html b/newBusinessEntities/view/record/supplyList.html index 62d947b..f9ac345 100644 --- a/newBusinessEntities/view/record/supplyList.html +++ b/newBusinessEntities/view/record/supplyList.html @@ -54,7 +54,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/record/trainList.html b/newBusinessEntities/view/record/trainList.html index 1f1997a..20249df 100644 --- a/newBusinessEntities/view/record/trainList.html +++ b/newBusinessEntities/view/record/trainList.html @@ -30,9 +30,9 @@
- 发布 + - +
diff --git a/newBusinessEntities/view/record/updatePassword.html b/newBusinessEntities/view/record/updatePassword.html index 097452d..1e744bd 100644 --- a/newBusinessEntities/view/record/updatePassword.html +++ b/newBusinessEntities/view/record/updatePassword.html @@ -29,7 +29,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/resources/detail.html b/newBusinessEntities/view/resources/detail.html index b749eee..5f06692 100644 --- a/newBusinessEntities/view/resources/detail.html +++ b/newBusinessEntities/view/resources/detail.html @@ -18,7 +18,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/resources/index.html b/newBusinessEntities/view/resources/index.html index 7a71dc3..db41e6a 100644 --- a/newBusinessEntities/view/resources/index.html +++ b/newBusinessEntities/view/resources/index.html @@ -36,7 +36,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/supply/detail.html b/newBusinessEntities/view/supply/detail.html index 08e8bbb..168961f 100644 --- a/newBusinessEntities/view/supply/detail.html +++ b/newBusinessEntities/view/supply/detail.html @@ -18,7 +18,7 @@
-
+

农村经营主体综合供求信息网

- 发布 + - +
diff --git a/newBusinessEntities/view/supply/index.html b/newBusinessEntities/view/supply/index.html index c0f66dc..434584f 100644 --- a/newBusinessEntities/view/supply/index.html +++ b/newBusinessEntities/view/supply/index.html @@ -12,13 +12,25 @@ +
-
+

农村经营主体综合供求信息网

- 发布 + - +
@@ -45,6 +57,7 @@
  • 供应信息
  • 求购信息
  • 农业服务
  • + 发布
    diff --git a/newBusinessEntities/view/supplyChain/brokerApplication.html b/newBusinessEntities/view/supplyChain/brokerApplication.html index 9127ad9..c458053 100644 --- a/newBusinessEntities/view/supplyChain/brokerApplication.html +++ b/newBusinessEntities/view/supplyChain/brokerApplication.html @@ -23,7 +23,7 @@
    -
    +

    农村经营主体综合供求信息网

    - 发布 + - +
    diff --git a/newBusinessEntities/view/supplyChain/detail.html b/newBusinessEntities/view/supplyChain/detail.html index 7f57657..76b63e4 100644 --- a/newBusinessEntities/view/supplyChain/detail.html +++ b/newBusinessEntities/view/supplyChain/detail.html @@ -18,7 +18,7 @@
    -
    +

    农村经营主体综合供求信息网

    - 发布 + - +
    diff --git a/newBusinessEntities/view/supplyChain/index.html b/newBusinessEntities/view/supplyChain/index.html index 76e5b7b..a24fc4e 100644 --- a/newBusinessEntities/view/supplyChain/index.html +++ b/newBusinessEntities/view/supplyChain/index.html @@ -23,7 +23,7 @@
    -
    +

    农村经营主体综合供求信息网

    - 发布 + - +
    @@ -47,9 +47,9 @@

    首页 > 供应链

      -
    • 主体名录
    • -
    • 经纪人
    • -
    • 采购商
    • +
    • 主体名录
    • +
    • 经纪人
    • +
    • 采购商
    @@ -62,82 +62,235 @@
    现代化庄园
    -
    -