diff --git a/crmeb/app/dao/service/StoreServiceDao.php b/crmeb/app/dao/service/StoreServiceDao.php
index ab5d6566b..044c5f245 100644
--- a/crmeb/app/dao/service/StoreServiceDao.php
+++ b/crmeb/app/dao/service/StoreServiceDao.php
@@ -86,4 +86,20 @@ class StoreServiceDao extends BaseDao
return $this->getModel()->whereNotIn('uid', $where['notUid'])->update($data);
}
+ /**
+ * 统计数量
+ * @param array $where
+ * @param bool $search
+ * @return int
+ * @throws \ReflectionException
+ * @author 吴汐
+ * @email 442384644@qq.com
+ * @date 2023/05/10
+ */
+ public function count($where = [], $search = true)
+ {
+ return $this->search($where, false)->when(isset($where['noId']), function ($query) use ($where) {
+ $query->whereNotIn('uid', $where['noId']);
+ })->count();
+ }
}
diff --git a/crmeb/app/services/other/export/ExportServices.php b/crmeb/app/services/other/export/ExportServices.php
index 10a4bc281..86da2fa75 100644
--- a/crmeb/app/services/other/export/ExportServices.php
+++ b/crmeb/app/services/other/export/ExportServices.php
@@ -74,7 +74,7 @@ class ExportServices extends BaseServices
*/
public function exportOrderList($where)
{
- $header = ['订单号', '收货人姓名', '收货人电话', '收货地址', '商品信息', '总价格', '实际支付', '支付状态', '支付时间', '订单状态', '下单时间', '用户备注'];
+ $header = ['订单号', '收货人姓名', '收货人电话', '收货地址', '商品信息', '总价格', '实际支付', '支付状态', '支付时间', '订单状态', '下单时间', '用户备注', '表单信息'];
$filename = '订单列表_' . date('YmdHis', time());
$export = $fileKey = [];
/** @var StoreOrderServices $orderServices */
@@ -127,6 +127,11 @@ class ExportServices extends BaseServices
} else if ($item['paid'] == 1 && $item['refund_status'] == 2) {
$item['status_name'] = '已退款';
}
+ $custom_form = '';
+ foreach ($item['custom_form'] as $custom_form_value) {
+ $custom_form .= $custom_form_value['title'] . ':' . $custom_form_value['value'] . ';';
+ }
+
$goodsName = [];
foreach ($item['_info'] as $value) {
$_info = $value['cart_info'];
@@ -157,6 +162,7 @@ class ExportServices extends BaseServices
'status_name' => $item['status_name'] ?? '未知状态',
'add_time' => $item['add_time'],
'mark' => $item['mark'],
+ 'custom_form' => $custom_form,
];
$export[] = $one_data;
if ($i == 0) {
diff --git a/template/admin/src/pages/kefu/mobile/index.vue b/template/admin/src/pages/kefu/mobile/index.vue
index e135426c1..114f169b0 100644
--- a/template/admin/src/pages/kefu/mobile/index.vue
+++ b/template/admin/src/pages/kefu/mobile/index.vue
@@ -217,6 +217,7 @@ export default {
}
},
records() {
+ if (!this.chatList.length) return;
return this.chatList.map((item, index) => {
item.time = this.$moment(item.add_time * 1000).format('MMMDo h:mm');
if (index) {
@@ -264,7 +265,7 @@ export default {
if (data.msn_type == 1 || data.msn_type == 2) {
data.msn = this.replace_em(data.msn);
}
- if (data.msn_type == 5) return;
+ // if (data.msn_type == 5)
this.chatList.push(data);
this.$refs['scrollBox'].refresh();
@@ -565,7 +566,12 @@ export default {
},
};
-
+