From 304c59be106fefb72feaaf23c5c02dd760ef5777 Mon Sep 17 00:00:00 2001 From: tping Date: Thu, 24 Dec 2020 13:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B2=E4=B9=99=E6=96=B9=E5=85=AC=E5=8F=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PartnerController.class.php | 4 +- .../PromoteCompanyController.class.php | 4 +- Application/Admin/View/Partner/edit.html | 12 +++--- Application/Admin/View/Partner/show.html | 42 ++++++++++++------- .../Admin/View/PromoteCompany/edit.html | 12 +++--- .../Admin/View/PromoteCompany/view.html | 41 ++++++++++++------ 6 files changed, 72 insertions(+), 43 deletions(-) diff --git a/Application/Admin/Controller/PartnerController.class.php b/Application/Admin/Controller/PartnerController.class.php index 1a76b0ac9..6866af2b7 100644 --- a/Application/Admin/Controller/PartnerController.class.php +++ b/Application/Admin/Controller/PartnerController.class.php @@ -475,10 +475,10 @@ class PartnerController extends ThinkController $this->checkData($save); $save['relation']['collaborate_way'] = $save['part_a_type']; if ($save['part_a_type'] == 1) { - $save['relation']['self_company_id'] = $save['part_b']; + $save['relation']['self_company_id'] = $save['part_a']; } if ($save['part_a_type'] == 2) { - $save['relation']['self_company_id'] = $save['part_a']; + $save['relation']['self_company_id'] = $save['part_b']; } $res =D("PartnerVerify")->edit_db($save); diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php index eaf5f5484..87bb0b6ae 100644 --- a/Application/Admin/Controller/PromoteCompanyController.class.php +++ b/Application/Admin/Controller/PromoteCompanyController.class.php @@ -734,10 +734,10 @@ class PromoteCompanyController extends ThinkController $save['relation']['collaborate_way'] = $save['part_a_type']; if ($save['part_a_type'] == 1) { - $save['relation']['self_company_id'] = $save['part_b']; + $save['relation']['self_company_id'] = $save['part_a']; } if ($save['part_a_type'] == 2) { - $save['relation']['self_company_id'] = $save['part_a']; + $save['relation']['self_company_id'] = $save['part_b']; } $this->checkData($save); diff --git a/Application/Admin/View/Partner/edit.html b/Application/Admin/View/Partner/edit.html index 0049c5b8d..b198d8e1f 100644 --- a/Application/Admin/View/Partner/edit.html +++ b/Application/Admin/View/Partner/edit.html @@ -152,16 +152,16 @@ *甲方公司类型: *乙方公司类型: @@ -179,7 +179,7 @@ --> - + *甲方公司: @@ -200,7 +200,7 @@ - + *甲方公司: diff --git a/Application/Admin/View/Partner/show.html b/Application/Admin/View/Partner/show.html index 72d65cda1..4e8b10add 100644 --- a/Application/Admin/View/Partner/show.html +++ b/Application/Admin/View/Partner/show.html @@ -149,16 +149,16 @@ *甲方公司类型: *乙方公司类型: @@ -176,11 +176,32 @@ --> + *甲方公司: + + + + *乙方公司: + + + + + + + + *甲方公司: + + @@ -194,6 +215,7 @@ + *结算周期: @@ -467,21 +489,13 @@ } } $(function() { - if (!$("#partner").val()) { - $("#tab_tab1").click(); - } else { - $("#part_a").children().remove(); - $("#part_a").append(""); - } + $("#cp_company").text($("#partner").val()); $("#tab_tab2").click(function() { if (!$("#partner").val()) { alert('请填写合作方名称'); $("#tab_tab1").click(); } - - $("#part_a").children().remove(); - $("#part_a").append(""); return false; }); diff --git a/Application/Admin/View/PromoteCompany/edit.html b/Application/Admin/View/PromoteCompany/edit.html index 27b85fae2..c33a8ab55 100644 --- a/Application/Admin/View/PromoteCompany/edit.html +++ b/Application/Admin/View/PromoteCompany/edit.html @@ -500,16 +500,16 @@ *甲方公司类型: *乙方公司类型: @@ -527,7 +527,7 @@ --> - + *甲方公司: @@ -547,7 +547,7 @@ - + *甲方公司: diff --git a/Application/Admin/View/PromoteCompany/view.html b/Application/Admin/View/PromoteCompany/view.html index 301ece91c..9c0d5dff7 100644 --- a/Application/Admin/View/PromoteCompany/view.html +++ b/Application/Admin/View/PromoteCompany/view.html @@ -486,16 +486,16 @@ *甲方公司类型: *乙方公司类型: @@ -513,11 +513,32 @@ --> + *甲方公司: + + + *乙方公司: + + + + + + + + + *甲方公司: + + @@ -531,6 +552,7 @@ + *结算周期: @@ -821,12 +843,7 @@ } } $(function() { - if (!$("#partner").val()) { - $("#tab_tab1").click(); - } else { - $("#part_a").children().remove(); - $("#part_a").append(""); - } + $("#cp_company").text($("#partner").val()); $("#tab_tab2").click(function() { if (!$("#partner").val()) { @@ -834,8 +851,6 @@ $("#tab_tab1").click(); } - $("#part_a").children().remove(); - $("#part_a").append(""); return false; });