From e73d795acef950cd555d294b73914cd37ead2f9f Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 13 Jan 2020 14:34:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E4=B8=8B=E6=B8=B8=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E5=8D=95=E4=B8=8B=E6=8B=89=E9=80=89=E9=A1=B9=E6=A1=86?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/AjaxController.class.php | 24 +++++++++++ .../createDownstreamOrder.html | 40 +++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/Application/Admin/Controller/AjaxController.class.php b/Application/Admin/Controller/AjaxController.class.php index 77dbd2e24..a92e4fd6f 100644 --- a/Application/Admin/Controller/AjaxController.class.php +++ b/Application/Admin/Controller/AjaxController.class.php @@ -354,4 +354,28 @@ class AjaxController extends ThinkController{ } + function getPromoteCompanyList() { + + $map = []; + if ($_REQUEST['withdraw_number']) { + $map['widthdraw_number'] = $_REQUEST['withdraw_number']; + } +// var_dump($map);die(); + if ($_REQUEST['company_id']) { + $map['company_id'] = $_REQUEST['company_id']; + } + + $data = M("withdraw","tab_") + ->field("widthdraw_number,promote_account,tab_promote_company.id as company_id,company_name,tab_withdraw.settlement_type,mobile_phone,real_name,bank_card,account_openin,address,game_ratio,bank_account") + ->join("left join tab_promote on tab_withdraw.promote_id=tab_promote.id") + ->join("left join tab_promote_company on tab_promote.company_id=tab_promote_company.id") + ->where($map) + ->select(); + + + $this->ajaxReturn(['data'=>$data]); +// return $data; + + } + } \ No newline at end of file diff --git a/Application/Admin/View/StatementMangement/createDownstreamOrder.html b/Application/Admin/View/StatementMangement/createDownstreamOrder.html index 1e15b5239..80857897f 100644 --- a/Application/Admin/View/StatementMangement/createDownstreamOrder.html +++ b/Application/Admin/View/StatementMangement/createDownstreamOrder.html @@ -246,6 +246,26 @@ $("#settlement_type_value").val(data.data.settlement_type); $("#bank_account_name").val(data.data.bank_account); + var add = ''; + $("#company_name").empty(); + $.ajax({ + url: "{:U('Ajax/getPromoteCompanyList')}", + type: "get", + data: {withdraw_number: ext_field}, + dataType: 'json', + success: function (response) { + add +=''; + data = response.data; + console.log(data) + for (var i in data){ + add += "" + } + $("#company_name").empty(); + $("#company_name").append(add); + $("#company_name").select2(); + } + }); + $("#jfCompany").val(data.data.yfpartner); $("#jfCompany").next().text(data.data.yfpartner); $("#jfPerson").val(data.data.yflink_man); @@ -348,6 +368,26 @@ $("#settlement_type_value").val(data.data.settlement_type); $("#bank_account_name").val(data.data.bank_account); + var add = ''; + $("#ext_field").empty(); + $.ajax({ + url: "{:U('Ajax/getPromoteCompanyList')}", + type: "get", + data: {company_id: ext_field}, + dataType: 'json', + success: function (response) { + add +=''; + data = response.data; + console.log(data) + for (var i in data){ + add += "" + } + $("#ext_field").empty(); + $("#ext_field").append(add); + $("#ext_field").select2(); + } + }); + $("#jfCompany").val(data.data.yfpartner); $("#jfCompany").next().text(data.data.yfpartner); $("#jfPerson").val(data.data.yflink_man);