|
@@ -132,9 +132,11 @@ $customerDetailSql = "
|
|
|
SELECT
|
|
|
c.id AS customer_id,
|
|
|
c.cs_company AS customer_name,
|
|
|
- c.cs_code
|
|
|
+ c.cs_code,
|
|
|
+ c.cs_belong,
|
|
|
+ o.em_user AS employee_name
|
|
|
FROM
|
|
|
- customer c
|
|
|
+ customer c left join employee o ON c.cs_belong = o.id
|
|
|
WHERE
|
|
|
c.id IN ($paginatedIdsStr)";
|
|
|
|
|
@@ -318,8 +320,8 @@ if (!empty($customers)) {
|
|
|
}
|
|
|
|
|
|
.col2 { width: 5%; text-align: center; }
|
|
|
- .col3 { width: 15%; }
|
|
|
- .col4 { width: 25%; }
|
|
|
+ .col3 { width: 25%; }
|
|
|
+ .col4 { width: 15%; }
|
|
|
.col5 { width: 10%; text-align: center; }
|
|
|
.col6 { width: 15%; text-align: right; }
|
|
|
.col7 { width: 10%; text-align: center; }
|
|
@@ -327,8 +329,8 @@ if (!empty($customers)) {
|
|
|
|
|
|
/* 表格布局修复,因为 "css/common.css 覆盖了 */
|
|
|
.table2 .col2 { width: 5%; text-align: center; }
|
|
|
- .table2 .col3 { width: 15%; }
|
|
|
- .table2 .col4 { width: 25%; }
|
|
|
+ .table2 .col3 { width: 25%; }
|
|
|
+ .table2 .col4 { width: 15%; }
|
|
|
.table2 .col5 { width: 10%; text-align: center; }
|
|
|
.table2 .col6 { width: 15%; text-align: right; }
|
|
|
.table2 .col7 { width: 10%; text-align: center; }
|
|
@@ -418,7 +420,7 @@ if (!empty($customers)) {
|
|
|
<div class="col4">客户名称</div>
|
|
|
<div class="col5">返点产品数</div>
|
|
|
<div class="col6">返点金额合计</div>
|
|
|
- <div class="col7">查看详情</div>
|
|
|
+ <div class="col7">处理人</div>
|
|
|
<div class="col8">操作</div>
|
|
|
</div>
|
|
|
|
|
@@ -426,6 +428,7 @@ if (!empty($customers)) {
|
|
|
if (!empty($customers)) {
|
|
|
$tempNum = ($page - 1) * $pageSize;
|
|
|
foreach ($customers as $customer) {
|
|
|
+
|
|
|
$tempNum++;
|
|
|
?>
|
|
|
<div class="tline">
|
|
@@ -435,7 +438,7 @@ if (!empty($customers)) {
|
|
|
<div class="col5"><?= $customer['qualifying_products'] ?></div>
|
|
|
<div class="col6"><?= number_format($customer['total_rebate_amount'], 2) ?> 元</div>
|
|
|
<div class="col7">
|
|
|
- <a href="javascript:void(0)" class="toggleDetail" data-id="<?= $customer['customer_id'] ?>">展开详情</a>
|
|
|
+ <a href="javascript:void(0)" class="toggleDetail" data-id="<?= $customer['customer_id'] ?>"><?php echo $customer['employee_name'];?></a>
|
|
|
</div>
|
|
|
<div class="col8">
|
|
|
<a href="rebate_redeem.php?customer_id=<?= $customer['customer_id'] ?>" class="ico_edit ico">处理兑换</a>
|
|
@@ -563,10 +566,10 @@ if (!empty($customers)) {
|
|
|
|
|
|
if (detailPanel.is(':visible')) {
|
|
|
detailPanel.slideUp();
|
|
|
- $(this).text('展开详情');
|
|
|
+ //$(this).text('展开详情');
|
|
|
} else {
|
|
|
detailPanel.slideDown();
|
|
|
- $(this).text('收起详情');
|
|
|
+ //$(this).text('收起详情');
|
|
|
}
|
|
|
});
|
|
|
|