diff --git a/app/common/dao/store/order/StoreOrderDao.php b/app/common/dao/store/order/StoreOrderDao.php
index cd28326..950d384 100644
--- a/app/common/dao/store/order/StoreOrderDao.php
+++ b/app/common/dao/store/order/StoreOrderDao.php
@@ -124,6 +124,9 @@ class StoreOrderDao extends BaseDao
->when(isset($where['pay_type']) && $where['pay_type'] !== '', function ($query) use ($where) {
$query->where('StoreOrder.pay_type', $where['pay_type']);
})
+ ->when(isset($where['pay_select']) && $where['pay_select'] !== '', function ($query) use ($where) {
+ $query->where('StoreOrder.pay_select', $where['pay_select']);
+ })
->when(isset($where['order_ids']) && $where['order_ids'] !== '', function ($query) use ($where) {
$query->whereIn('order_id', $where['order_ids']);
})
diff --git a/app/common/model/store/order/StoreOrder.php b/app/common/model/store/order/StoreOrder.php
index 77ab945..db7f3f4 100644
--- a/app/common/model/store/order/StoreOrder.php
+++ b/app/common/model/store/order/StoreOrder.php
@@ -147,6 +147,12 @@ class StoreOrder extends BaseModel
return ($this->verify_time ? strtotime($this->verify_time) > strtotime('-' . $day . ' day') : true);
}
+ public function getPaySelectAttr($val)
+ {
+ $status = [0=>'其它',1=>'微信',2=>'福利积分',3=>'新人优惠券',4=>'组合支付'];
+ return $status[$val];
+ }
+
public function getOrderExtendAttr($val)
{
return $val ? json_decode($val, true) : null;
diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php b/app/common/repositories/store/order/StoreOrderCreateRepository.php
index 19da6ea..39a12f6 100644
--- a/app/common/repositories/store/order/StoreOrderCreateRepository.php
+++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php
@@ -1280,6 +1280,24 @@ class StoreOrderCreateRepository extends StoreOrderRepository
unset($order['cartInfo']);
//创建子订单
$order['district_id'] = $address['district_id'] ?? 0;
+
+ $payCount = 0;
+ if($order['pay_price'] > 0){
+ $order['pay_select'] = 1;
+ $payCount++;
+ }
+ if($order['integral_price'] > 0){
+ $order['pay_select'] = 2;
+ $payCount++;
+ }
+ if($order['platform_coupon_price'] > 0){
+ $order['pay_select'] = 3;
+ $payCount++;
+ }
+ if($payCount >= 2){
+ $order['pay_select'] = 4;
+ }
+
$_order = $this->dao->create($order);
if ($order['integral'] > 0) {
diff --git a/app/common/repositories/store/order/StoreOrderRepository.php b/app/common/repositories/store/order/StoreOrderRepository.php
index 3fb8ad7..fab1cc8 100644
--- a/app/common/repositories/store/order/StoreOrderRepository.php
+++ b/app/common/repositories/store/order/StoreOrderRepository.php
@@ -798,11 +798,11 @@ class StoreOrderRepository extends BaseRepository
'title' => '核销订单',
'order_type' => 1,
],
- [
- 'count' => $this->dao->search($where)->where('is_virtual', 1)->count(),
- 'title' => '虚拟商品订单',
- 'order_type' => 2,
- ],
+// [
+// 'count' => $this->dao->search($where)->where('is_virtual', 1)->count(),
+// 'title' => '虚拟商品订单',
+// 'order_type' => 2,
+// ],
];
}
diff --git a/app/controller/merchant/store/order/Order.php b/app/controller/merchant/store/order/Order.php
index c4e6ecf..5ce31a1 100644
--- a/app/controller/merchant/store/order/Order.php
+++ b/app/controller/merchant/store/order/Order.php
@@ -52,7 +52,7 @@ class Order extends BaseController
public function lst()
{
[$page, $limit] = $this->getPage();
- $where = $this->request->params(['status', 'date', 'order_sn', 'username', 'order_type', 'keywords', 'order_id', 'activity_type', 'group_order_sn', 'store_name']);
+ $where = $this->request->params(['status', 'date', 'order_sn', 'username', 'order_type', 'keywords', 'order_id', 'activity_type', 'group_order_sn', 'store_name', 'pay_select']);
$where['mer_id'] = $this->request->merId();
return app('json')->success($this->repository->merchantGetList($where, $page, $limit));
}
diff --git a/app/controller/merchant/system/Merchant.php b/app/controller/merchant/system/Merchant.php
index 008451c..563d504 100644
--- a/app/controller/merchant/system/Merchant.php
+++ b/app/controller/merchant/system/Merchant.php
@@ -91,6 +91,7 @@ class Merchant extends BaseController
'mer_pics',
'long',
'lat',
+ 'district_id',
['delivery_way',[2]],
]);
$validate->check($data);
@@ -104,6 +105,8 @@ class Merchant extends BaseController
unset($data['mer_certificate']);
$data['mer_pics'] = implode(',', $data['mer_pics']);
+ $data['district_id'] = implode(',',$data['district_id']);
+
foreach ($data['delivery_way'] as $datum) {
if ($datum == 1) {
$takeData = $this->request->params(['mer_take_status', 'mer_take_name', 'mer_take_phone', 'mer_take_address', 'mer_take_location', 'mer_take_day', 'mer_take_time']);
@@ -159,6 +162,12 @@ class Merchant extends BaseController
$data['mer_pics'] = [];
}
+ if($data['district_id']) {
+ $data['district_id'] = explode(',', $data['district_id']);
+ }else{
+ $data['district_id'] = [];
+ }
+
$data['assets'] = \app(FinancialRecordRepository::class)->getMerchantStatistics(array('is_mer' => $this->request->merId()));
// $user = \app(UserRepository::class)->getUserByMerId($this->request->merId());
// if($user){
diff --git a/public/mer.html b/public/mer.html
index 595062b..1ddcdaa 100644
--- a/public/mer.html
+++ b/public/mer.html
@@ -1 +1 @@
-
加载中...
\ No newline at end of file
+加载中...
\ No newline at end of file
diff --git a/public/system.html b/public/system.html
index 66fca90..a46684e 100644
--- a/public/system.html
+++ b/public/system.html
@@ -1,3 +1,3 @@
-加载中...
\ No newline at end of file
diff --git a/view/admin/src/views/order/list/index.vue b/view/admin/src/views/order/list/index.vue
index d1404c1..807ce7b 100644
--- a/view/admin/src/views/order/list/index.vue
+++ b/view/admin/src/views/order/list/index.vue
@@ -56,23 +56,20 @@
@change="onchangeTime"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
{{ scope.row.pay_price }}
@@ -256,12 +254,13 @@
-
-
- {{ scope.row.pay_type | orderPayType }}
- --
-
-
+
+
+
+
+
+
+
{{ scope.row.paid == 0 ? "未支付" : "已支付" }}
@@ -383,7 +382,8 @@ export default {
page: 1,
limit: 20,
is_trader: '',
- activity_type: ''
+ activity_type: '',
+ pay_select:''
},
orderChartType: {},
headeNum: [],
diff --git a/view/admin/src/views/order/list/orderDetails.vue b/view/admin/src/views/order/list/orderDetails.vue
index 86b46c3..2cd464b 100644
--- a/view/admin/src/views/order/list/orderDetails.vue
+++ b/view/admin/src/views/order/list/orderDetails.vue
@@ -6,7 +6,7 @@
:visible.sync="drawer"
:direction="direction"
:before-close="handleClose"
-
+
>
@@ -36,9 +36,13 @@
实际支付
¥ {{ orderDetailList.pay_price }}
+
+ 支付福利积分
+ {{ orderDetailList.integral_price }}
+
支付方式
- {{ orderDetailList.pay_type | payTypeFilter }}
+ {{ orderDetailList.pay_select }}
支付时间
@@ -113,7 +117,7 @@
订单总价:
{{ orderDetailList.total_price ? orderDetailList.total_price : '-' }}
-
+
支付运费:
{{ orderDetailList.pay_postage }}
@@ -122,8 +126,8 @@
推广人:
{{ orderDetailList.TopSpread.nickname }}
-
-
+
+
@@ -179,7 +183,7 @@
-
+
@@ -207,7 +211,7 @@
-
+
@@ -286,7 +290,7 @@
-
+
-
+
{{ scope.row.pay_price }}
diff --git a/view/admin/src/views/order/orderCancellate/index.vue b/view/admin/src/views/order/orderCancellate/index.vue
index c47bb60..b784160 100644
--- a/view/admin/src/views/order/orderCancellate/index.vue
+++ b/view/admin/src/views/order/orderCancellate/index.vue
@@ -147,6 +147,7 @@
+
@@ -265,7 +266,7 @@ export default {
methods: {
// 订单详情
onOrderDetail(row) {
-
+
this.$router.push({
name: "OrderList",
query: {
diff --git a/view/admin/src/views/order/refund/index.vue b/view/admin/src/views/order/refund/index.vue
index 6a2a381..336c0f6 100644
--- a/view/admin/src/views/order/refund/index.vue
+++ b/view/admin/src/views/order/refund/index.vue
@@ -133,6 +133,7 @@
{{ scope.row.merchant.is_trader ? '自营' : '非自营' }}
+
@@ -285,7 +286,7 @@ export default {
if (lebData.export.length) {
data = data.concat(lebData.export)
excelData.page++
- }
+ }
}
createWorkBook(lebData.header, lebData.title, data, lebData.foot,lebData.filename);
return
diff --git a/view/mer/src/views/order/index.vue b/view/mer/src/views/order/index.vue
index 8018b73..1aec55a 100644
--- a/view/mer/src/views/order/index.vue
+++ b/view/mer/src/views/order/index.vue
@@ -34,20 +34,18 @@
-
+
-
+
+
+
+
@@ -72,26 +70,26 @@
订单核销
-
- 导入批量发货
-
- 批量发货记录
- 下载物流公司对照表
- 批量发送货
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -132,17 +130,17 @@
用户已删除
-
-
- {{ scope.row.is_virtual == 1 ? "虚拟订单" : scope.row.order_type == 0 ? "普通订单" : "核销订单" }}
-
-
-
-
- {{ scope.row.activity_type === 1 ? "秒杀" : scope.row.activity_type === 2 ? "预售" : scope.row.activity_type === 3 ? "助力" : "--" }}
- 拼团订单 -{{ scope.row.groupUser.groupBuying.status | activityOrderStatus }}
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -160,24 +158,26 @@
+
{{ scope.row.pay_price }}
尾款:{{ scope.row.finalOrder.pay_price }}
-
-
- {{ (parseFloat(scope.row.extension_one) + parseFloat(scope.row.extension_two) + parseFloat(scope.row.refund_extension_one) + parseFloat(scope.row.refund_extension_two)).toFixed(2) }}
- (-{{ (parseFloat(scope.row.refund_extension_one)+parseFloat(scope.row.refund_extension_two)).toFixed(2) }})
-
-
-
-
- {{ scope.row.pay_type | orderPayType }}
- --
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ scope.row.paid === 0 ? "未支付" : "已支付" }}
@@ -201,11 +201,11 @@
{{ scope.row.spread && scope.row.spread.nickname || '无' }}
-
-
- {{ scope.row.TopSpread && scope.row.TopSpread.nickname || '无' }}
-
-
+
+
+
+
+
查看退款单
@@ -519,7 +519,7 @@ export default {
type: '1',
username: '',
order_id: this.$route.query.id ? this.$route.query.id : '',
- activity_type: ''
+ pay_select: ''
},
activityList: [
{ value: 0, label: '普通订单' },
diff --git a/view/mer/src/views/order/orderCancellate/index.vue b/view/mer/src/views/order/orderCancellate/index.vue
index 944808c..1bb1c81 100644
--- a/view/mer/src/views/order/orderCancellate/index.vue
+++ b/view/mer/src/views/order/orderCancellate/index.vue
@@ -59,7 +59,7 @@
-
+
+
@@ -133,6 +134,11 @@
+
+
+ 订单详情
+
+
@@ -232,6 +238,15 @@ export default {
this.getList(1)
},
methods: {
+ // 订单详情
+ onOrderDetail(order_sn) {
+ this.$router.push({
+ name: 'OrderList',
+ query: {
+ order_sn: order_sn
+ }
+ })
+ },
// 导出
exportOrder() {
exportOrderApi({
diff --git a/view/mer/src/views/order/orderDetails.vue b/view/mer/src/views/order/orderDetails.vue
index 6835239..b760dcd 100644
--- a/view/mer/src/views/order/orderDetails.vue
+++ b/view/mer/src/views/order/orderDetails.vue
@@ -26,25 +26,25 @@
>订单核销
发送货
- 小票打印
-
+
+
+
+
+
+
+
+
订单备注
- 修改发货信息
+ 修改发货信息
@@ -68,7 +68,7 @@
支付方式
- {{ orderDetailList.pay_type | payTypeFilter }}
+ {{ orderDetailList.pay_select }}
支付时间
@@ -157,9 +157,9 @@
订单总价:
{{ orderDetailList.total_price ? orderDetailList.total_price : '-' }}
-
- 会员商品优惠:
- {{ orderDetailList.svip_discount }}
+
+ 支付福利积分:
+ {{ orderDetailList.integral_price }}
支付运费:
@@ -169,20 +169,20 @@
推广人:
{{ orderDetailList.TopSpread.nickname }}
-
- 一级佣金:
-
- {{ parseFloat(orderDetailList.extension_one) + parseFloat(orderDetailList.refund_extension_one) }}
- (-{{ orderDetailList.refund_extension_one }})
-
-
-
- 二级佣金:
-
- {{ parseFloat(orderDetailList.extension_two) + parseFloat(orderDetailList.refund_extension_two) }}
- (-{{ orderDetailList.refund_extension_two }})
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -215,7 +215,7 @@
-
+
@@ -239,7 +239,7 @@
-
+
@@ -269,7 +269,7 @@
-
+
@@ -377,7 +377,7 @@
-
+
{{ scope.row.pay_price }}
diff --git a/view/mer/src/views/order/orderRefund/refundDetail.vue b/view/mer/src/views/order/orderRefund/refundDetail.vue
index ecdda7f..c351f58 100644
--- a/view/mer/src/views/order/orderRefund/refundDetail.vue
+++ b/view/mer/src/views/order/orderRefund/refundDetail.vue
@@ -1,190 +1,190 @@
-
-
-
-
用户信息
-
-
用户昵称:{{ orderDatalist.user.nickname }}
-
退货人:{{ orderDatalist.order.real_name }}
-
联系电话:{{ orderDatalist.order.user_phone }}
-
退货地址:{{ orderDatalist.order.user_address }}
-
备注:{{ orderDatalist.mark }}
-
-
-
{{orderDatalist.refund_type == 1 ? '退款信息' : '退回商品信息'}}
-
-
订单编号:{{ orderDatalist.order.order_sn }}
-
订单状态:{{ orderDatalist.status | orderRefundFilter }}
-
退款单号:{{ orderDatalist.refund_order_sn }}
-
退款商品名称:
-
-
- {{item.product.cart_info.product.store_name}}
-
-
-
-
退款商品件数:{{ orderDatalist.refund_num }}件
-
-
退款总金额:{{ orderDatalist.refund_price }}元
-
-
创建时间:{{ orderDatalist.create_time }}
-
商家备注:{{ orderDatalist.mer_mark }}
-
-
-
-
订单记录
-
-
-
-
-
-
-
-
-
-
-
退货物流信息
-
-
快递公司:{{ orderDatalist.delivery_type }}
-
快递单号:{{ orderDatalist.delivery_id }}
-
物流查询
-
-
-
-
-
-
-
-
+
+
+
+
用户信息
+
+
用户昵称:{{ orderDatalist.user.nickname }}
+
退货人:{{ orderDatalist.order.real_name }}
+
联系电话:{{ orderDatalist.order.user_phone }}
+
退货地址:{{ orderDatalist.order.user_address }}
+
备注:{{ orderDatalist.mark }}
+
+
+
{{orderDatalist.refund_type == 1 ? '退款信息' : '退回商品信息'}}
+
+
订单编号:{{ orderDatalist.order.order_sn }}
+
订单状态:{{ orderDatalist.status | orderRefundFilter }}
+
退款单号:{{ orderDatalist.refund_order_sn }}
+
退款商品名称:
+
+
+ {{item.product.cart_info.product.store_name}}
+
+
+
+
退款商品件数:{{ orderDatalist.refund_num }}件
+
+
退款总金额:{{ orderDatalist.refund_price }}元
+
福利积分:{{ orderDatalist.order.integral_price }}
+
创建时间:{{ orderDatalist.create_time }}
+
商家备注:{{ orderDatalist.mer_mark }}
+
+
+
+
订单记录
+
+
+
+
+
+
+
+
+
+
+
退货物流信息
+
+
快递公司:{{ orderDatalist.delivery_type }}
+
快递单号:{{ orderDatalist.delivery_id }}
+
物流查询
+
+
+
+
+
+
+
+
diff --git a/view/mer/src/views/systemForm/setSystem/modifyStoreInfo.vue b/view/mer/src/views/systemForm/setSystem/modifyStoreInfo.vue
index aa46a11..dc1e6be 100644
--- a/view/mer/src/views/systemForm/setSystem/modifyStoreInfo.vue
+++ b/view/mer/src/views/systemForm/setSystem/modifyStoreInfo.vue
@@ -295,7 +295,7 @@
-
+
@@ -327,20 +327,20 @@
-->
- 商户收入:
+ 商户总收入:
{{ merData.assets.total }}
- 商户余额:
+ 商户当前余额:
{{ merData.assets.mer_money }}
- 商户冻结金额:
+ 商户当前冻结金额:
{{ merData.assets.frozen_money }}
- 商户可提现总金额:
+ 商户当前可提现总金额:
{{ merData.assets.available_money }}
@@ -348,11 +348,11 @@
{{ merData.assets.refund_money }}
- 商户福利积分:
+ 商户可提现福利积分部分:
{{ merData.assets.welfare }}
- 商户冻结积分:
+ 商户当前冻结福利积分:
{{ merData.assets.welfare_frozen }}
@@ -532,7 +532,7 @@ export default {
mer_take_location: '',
id: 0,
mer_take_status: 0 }, // 默认数据
-
+
props: {
lazy: true,
lazyLoad (node, resolve) {
@@ -540,7 +540,7 @@ export default {
const { level } = node;
if(level==0){
getArea(0).then(res=>{
-
+
let nodes=res.data.map(item=>{
return{
value:item.id,