Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
f0613cef
提交
f0613cef
authored
3月 28, 2020
作者:
zgy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交
上级
f5d58b02
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
815 行增加
和
585 行删除
+815
-585
TbCfArticleController.java
...n/java/com/platform/controller/TbCfArticleController.java
+0
-2
TbCfOrderController.java
...ain/java/com/platform/controller/TbCfOrderController.java
+65
-14
TbCfUserInfoController.java
.../java/com/platform/controller/TbCfUserInfoController.java
+8
-5
TbCfOrderDao.java
...rm-admin/src/main/java/com/platform/dao/TbCfOrderDao.java
+11
-1
TbCfArticleEntity.java
.../src/main/java/com/platform/entity/TbCfArticleEntity.java
+38
-4
TbCfOrderListService.java
.../main/java/com/platform/service/TbCfOrderListService.java
+6
-0
TbCfUserInfoService.java
...c/main/java/com/platform/service/TbCfUserInfoService.java
+2
-0
TbCfArticleServiceImpl.java
...ava/com/platform/service/impl/TbCfArticleServiceImpl.java
+14
-3
TbCfOrderListServiceImpl.java
...a/com/platform/service/impl/TbCfOrderListServiceImpl.java
+34
-1
TbCfUserInfoServiceImpl.java
...va/com/platform/service/impl/TbCfUserInfoServiceImpl.java
+7
-1
TbCfArticleDao.xml
...in/src/main/resources/com/platform/dao/TbCfArticleDao.xml
+12
-0
TbCfOrderDao.xml
...dmin/src/main/resources/com/platform/dao/TbCfOrderDao.xml
+243
-199
TbCfOrderListDao.xml
.../src/main/resources/com/platform/dao/TbCfOrderListDao.xml
+3
-0
TbCfUserInfoDao.xml
...n/src/main/resources/com/platform/dao/TbCfUserInfoDao.xml
+83
-80
tbcforderlist.html
...admin/src/main/webapp/WEB-INF/page/sys/tbcforderlist.html
+12
-11
tbcforderList.js
platform-admin/src/main/webapp/js/sys/tbcforderList.js
+277
-264
没有找到文件。
platform-admin/src/main/java/com/platform/controller/TbCfArticleController.java
浏览文件 @
f0613cef
...
...
@@ -67,8 +67,6 @@ public class TbCfArticleController extends AbstractController {
@ResponseBody
public
R
save
(
@RequestBody
TbCfArticleEntity
tbCfArticle
)
throws
Exception
{
tbCfArticle
.
setAuthor
(
getUserId
());
tbCfArticleService
.
save
(
tbCfArticle
);
return
R
.
ok
();
...
...
platform-admin/src/main/java/com/platform/controller/TbCfOrderController.java
浏览文件 @
f0613cef
...
...
@@ -15,6 +15,7 @@ import com.platform.vo.DeliveryOrderVo;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.*
;
import
java.math.BigDecimal
;
...
...
@@ -28,8 +29,8 @@ import java.util.Map;
* @date 2019-09-20 11:03:37
*/
@Controller
@RequestMapping
(
value
=
"tbcforder"
,
produces
=
"application/json; charset=utf-8"
)
public
class
TbCfOrderController
{
@RequestMapping
(
value
=
"tbcforder"
,
produces
=
"application/json; charset=utf-8"
)
public
class
TbCfOrderController
extends
AbstractController
{
@Autowired
private
TbCfOrderService
tbCfOrderService
;
@Autowired
...
...
@@ -48,9 +49,9 @@ public class TbCfOrderController {
Query
query
=
new
Query
(
params
);
List
<
TbCfOrderEntity
>
tbCfOrderList
=
tbCfOrderService
.
queryList
(
query
);
for
(
TbCfOrderEntity
tbCfOrder:
tbCfOrderList
)
{
BigDecimal
itemNum
=
BigDecimal
.
valueOf
(
tbCfItemOrderRService
.
getItemNum
(
tbCfOrder
.
getOrdersId
()));
if
(
itemNum
!=
null
)
{
for
(
TbCfOrderEntity
tbCfOrder
:
tbCfOrderList
)
{
BigDecimal
itemNum
=
BigDecimal
.
valueOf
(
tbCfItemOrderRService
.
getItemNum
(
tbCfOrder
.
getOrdersId
()));
if
(
itemNum
!=
null
)
{
tbCfOrder
.
setItemsPrice
(
tbCfOrder
.
getItemPrice
().
multiply
(
itemNum
));
}
}
...
...
@@ -107,6 +108,7 @@ public class TbCfOrderController {
tbCfOrderService
.
deleteBatch
(
orderIds
);
return
R
.
ok
();
}
/**
* 删除
*/
...
...
@@ -117,6 +119,7 @@ public class TbCfOrderController {
tbCfOrderService
.
deleteOrder
(
orderId
);
return
R
.
ok
();
}
/**
* 查看所有列表
*/
...
...
@@ -138,6 +141,7 @@ public class TbCfOrderController {
List
<
TbCfOrderEntity
>
list
=
tbCfOrderService
.
queryOrderDetail
(
ordersId
);
return
R
.
ok
().
put
(
"list"
,
list
);
}
/**
* 获取订单中的商品
*/
...
...
@@ -148,6 +152,7 @@ public class TbCfOrderController {
List
<
TbCfItemDetailEntity
>
list
=
tbCfOrderService
.
getOrderItemList
(
ordersId
);
return
R
.
ok
().
put
(
"list"
,
list
);
}
/**
* 获取订单的代购信息
*/
...
...
@@ -155,9 +160,19 @@ public class TbCfOrderController {
@RequiresPermissions
(
"tbcforder:info"
)
@ResponseBody
public
R
getAgentInfo
(
@PathVariable
(
"ordersId"
)
String
ordersId
)
{
R
r
=
new
R
();
PlatformOrderVo
tbCfPlatformOrder
=
tbCfOrderService
.
getAgentInfo
(
ordersId
);
return
R
.
ok
().
put
(
"data"
,
tbCfPlatformOrder
);
// if (tbCfPlatformOrder != null) {
// r.put("data", tbCfPlatformOrder);
// } else {
// PlatformOrderVo orderVo = new PlatformOrderVo();
// String userName = getUser().getUserName();
// orderVo.setUserName(userName);
// r.put("data", orderVo);
// }
return
r
.
put
(
"data"
,
tbCfPlatformOrder
);
}
/**
* 新增或者修改代购信息
*/
...
...
@@ -171,21 +186,20 @@ public class TbCfOrderController {
@GetMapping
(
"/totalPay"
)
@ResponseBody
public
R
totalPay
(){
public
R
totalPay
()
{
//查询列表数据
int
totalPay
=
tbCfOrderListService
.
totalPay
();
return
R
.
ok
().
put
(
"totalPay"
,
totalPay
);
}
/**
* 订单列表(运营简表)
*/
@GetMapping
(
"/orderList"
)
@RequiresPermissions
(
"tbcforder:orderlist"
)
@ResponseBody
public
R
orderList
(
@RequestParam
Map
<
String
,
Object
>
params
){
public
R
orderList
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
//查询列表数据
Query
query
=
new
Query
(
params
);
List
<
TbCfOrderListEntity
>
tbCfOrderList
=
tbCfOrderListService
.
queryOrderList
(
query
);
...
...
@@ -193,44 +207,48 @@ public class TbCfOrderController {
PageUtils
pageUtil
=
new
PageUtils
(
tbCfOrderList
,
total
,
query
.
getLimit
(),
query
.
getPage
());
return
R
.
ok
().
put
(
"page"
,
pageUtil
);
}
/**
* 订单列表(代购订单列表)
*/
@GetMapping
(
"/orderDeliveryList/{orderId}"
)
@RequiresPermissions
(
"tbcforder:orderDeliveryList"
)
@ResponseBody
public
R
orderDeliveryList
(
@PathVariable
(
"orderId"
)
String
orderId
){
public
R
orderDeliveryList
(
@PathVariable
(
"orderId"
)
String
orderId
)
{
//查询列表数据
List
<
DeliveryOrderVo
>
tbCfOrderList
=
tbCfOrderListService
.
queryOrderDeliveryList
(
orderId
);
int
total
=
tbCfOrderListService
.
queryOrderDeliveryTotal
(
orderId
);
PageUtils
pageUtil
=
new
PageUtils
(
tbCfOrderList
,
total
);
PageUtils
pageUtil
=
new
PageUtils
(
tbCfOrderList
,
total
);
return
R
.
ok
().
put
(
"page"
,
pageUtil
);
}
/**
* 订单详情表
*/
@GetMapping
(
"/orderBasic/{orderId}"
)
@RequiresPermissions
(
"tbcforder:orderBasic"
)
@ResponseBody
public
R
orderBasic
(
@PathVariable
(
"orderId"
)
String
orderId
){
public
R
orderBasic
(
@PathVariable
(
"orderId"
)
String
orderId
)
{
//查询列表数据
OrderBasicVo
orderBasicVo
=
tbCfOrderListService
.
queryorderBasic
(
orderId
);
OrderBasicVo
orderBasicVo
=
tbCfOrderListService
.
queryorderBasic
(
orderId
);
orderBasicVo
.
setAtcTime
(
"35天"
);
orderBasicVo
.
setCountry
(
"赞比亚"
);
orderBasicVo
.
setSource
(
"APP"
);
orderBasicVo
.
setDeliveryOrderList
(
tbCfOrderListService
.
queryOrderDeliveryList
(
orderId
));
return
R
.
ok
().
put
(
"orderBasicVo"
,
orderBasicVo
);
}
/**
* 关闭订单
*/
@RequestMapping
(
"/closeOrder"
)
@RequiresPermissions
(
"tbcforder:closeOrder"
)
@ResponseBody
public
R
closeOrder
(
@RequestBody
String
orderId
){
public
R
closeOrder
(
@RequestBody
String
orderId
)
{
tbCfOrderListService
.
closeOrder
(
orderId
);
return
R
.
ok
();
}
/**
* 备注订单
*/
...
...
@@ -241,6 +259,7 @@ public class TbCfOrderController {
OrderBasicVo
memoOrderVo
=
tbCfOrderListService
.
getMemoOrder
(
orderId
);
return
R
.
ok
().
put
(
"data"
,
memoOrderVo
);
}
/**
* 保存或更新备注信息
*/
...
...
@@ -251,4 +270,36 @@ public class TbCfOrderController {
int
res
=
tbCfOrderListService
.
saveOrUpdatemMemoOrder
(
memoOrderVo
);
return
R
.
ok
().
put
(
"result"
,
res
);
}
//==========================================================================================================
/**
* 订单优化(新版)
* 订单管理需要显示的菜单:全部订单 待付款 已付款 待收货 已完成 已关闭 订单设置
*/
/**
* 根据付款状态查询订单列表
* payStatus 10:未付款 20:已付款
*
* @param payStatus
* @return R
*/
@RequestMapping
(
"/queryPayOrderList/{payStatus}"
)
@ResponseBody
public
R
queryPayOrderList
(
@PathVariable
(
"payStatus"
)
String
payStatus
)
{
//订单列表
List
<
TbCfOrderEntity
>
orderList
=
tbCfOrderListService
.
queryPayOrderList
(
payStatus
);
//订单数量
int
total
=
tbCfOrderListService
.
queryPayCount
(
payStatus
);
//分页操作
PageUtils
pageUtil
=
new
PageUtils
(
orderList
,
total
);
return
R
.
ok
().
put
(
"page"
,
pageUtil
);
}
}
platform-admin/src/main/java/com/platform/controller/TbCfUserInfoController.java
浏览文件 @
f0613cef
...
...
@@ -8,11 +8,7 @@ import com.platform.utils.R;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -105,4 +101,11 @@ public class TbCfUserInfoController {
List
<
TbCfUserInfoEntity
>
list
=
tbCfUserInfoService
.
queryList
(
params
);
return
R
.
ok
().
put
(
"list"
,
list
);
}
@ResponseBody
@GetMapping
(
"/queryByAccount"
)
public
R
queryByAccount
(
@RequestParam
(
"account"
)
String
account
)
{
return
R
.
ok
();
}
}
platform-admin/src/main/java/com/platform/dao/TbCfOrderDao.java
浏览文件 @
f0613cef
...
...
@@ -16,6 +16,7 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
/**
* 获取订单内商品
*
* @param orderId
* @return
*/
...
...
@@ -24,6 +25,7 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
/**
* 更新发货时间,如果原值为空就更新,否则保留原值
*
* @param tbCfOrder2
*/
void
updateDeliveryTime
(
TbCfOrderEntity
tbCfOrder2
);
...
...
@@ -32,13 +34,15 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
/**
* 修改物流状态为入库中国仓
*
* @param sid
* @return
*/
int
updateExpressStatus
(
String
[]
sid
);
int
updateExpressStatus
(
String
[]
sid
);
/**
* 修改物流状态为入库非洲仓
*
* @param sid
* @return
*/
...
...
@@ -46,6 +50,7 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
/**
* 修改物流状态为已签收
*
* @param sid
* @return
*/
...
...
@@ -73,4 +78,9 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
int
updateOrder
(
String
orderId
);
//根据订单付款状态查询订单列表
List
<
TbCfOrderEntity
>
queryPayOrderList
(
String
payStatus
);
//根据订单付款状态查询订单数量
int
queryPayCount
(
String
payStatus
);
}
platform-admin/src/main/java/com/platform/entity/TbCfArticleEntity.java
浏览文件 @
f0613cef
...
...
@@ -8,7 +8,7 @@ import java.util.Date;
* 表名 tb_cf_article
*
* @author lipengjun
* @date 2020-03-
17 19:13:04
* @date 2020-03-
25 15:15:05
*/
public
class
TbCfArticleEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -29,6 +29,10 @@ public class TbCfArticleEntity implements Serializable {
* 图片
*/
private
String
picture
;
/**
* 系统用户:0 普通用户:1
*/
private
Integer
authorType
;
/**
* 作者
*/
...
...
@@ -38,9 +42,13 @@ public class TbCfArticleEntity implements Serializable {
*/
private
Long
likeNum
;
/**
* 删除标志 0:
正常 1:已删除
* 删除标志 0:
已删除 1:正常
*/
private
Integer
delFlag
;
/**
* 是否置顶 是:Y 否:N
*/
private
String
top
;
/**
* 创建时间
*/
...
...
@@ -102,6 +110,19 @@ public class TbCfArticleEntity implements Serializable {
public
String
getPicture
()
{
return
picture
;
}
/**
* 设置:系统用户:0 普通用户:1
*/
public
void
setAuthorType
(
Integer
authorType
)
{
this
.
authorType
=
authorType
;
}
/**
* 获取:系统用户:0 普通用户:1
*/
public
Integer
getAuthorType
()
{
return
authorType
;
}
/**
* 设置:作者
*/
...
...
@@ -129,18 +150,31 @@ public class TbCfArticleEntity implements Serializable {
return
likeNum
;
}
/**
* 设置:删除标志 0:
正常 1:已删除
* 设置:删除标志 0:
已删除 1:正常
*/
public
void
setDelFlag
(
Integer
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
/**
* 获取:删除标志 0:
正常 1:已删除
* 获取:删除标志 0:
已删除 1:正常
*/
public
Integer
getDelFlag
()
{
return
delFlag
;
}
/**
* 设置:是否置顶 是:Y 否:N
*/
public
void
setTop
(
String
top
)
{
this
.
top
=
top
;
}
/**
* 获取:是否置顶 是:Y 否:N
*/
public
String
getTop
()
{
return
top
;
}
/**
* 设置:创建时间
*/
...
...
platform-admin/src/main/java/com/platform/service/TbCfOrderListService.java
浏览文件 @
f0613cef
package
com
.
platform
.
service
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.entity.TbCfOrderListEntity
;
import
com.platform.vo.DeliveryOrderVo
;
import
com.platform.vo.OrderBasicVo
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -43,4 +45,8 @@ public interface TbCfOrderListService {
OrderBasicVo
getMemoOrder
(
String
orderId
);
int
saveOrUpdatemMemoOrder
(
OrderBasicVo
memoOrderVo
);
List
<
TbCfOrderEntity
>
queryPayOrderList
(
@RequestParam
(
"payStatus"
)
String
payStatus
);
int
queryPayCount
(
String
payStatus
);
}
platform-admin/src/main/java/com/platform/service/TbCfUserInfoService.java
浏览文件 @
f0613cef
...
...
@@ -72,4 +72,6 @@ public interface TbCfUserInfoService {
String
queryById
(
String
account
);
long
queryUserTotal
();
boolean
queryByAccount
(
String
account
);
}
platform-admin/src/main/java/com/platform/service/impl/TbCfArticleServiceImpl.java
浏览文件 @
f0613cef
package
com
.
platform
.
service
.
impl
;
import
com.platform.dao.TbCfArticleDao
;
import
com.platform.dao.TbCfUserInfoDao
;
import
com.platform.entity.TbCfArticleEntity
;
import
com.platform.service.TbCfArticleService
;
import
com.platform.utils.IdUtil
;
...
...
@@ -26,6 +27,8 @@ import static com.platform.utils.ShiroUtils.getUserId;
public
class
TbCfArticleServiceImpl
implements
TbCfArticleService
{
@Autowired
private
TbCfArticleDao
tbCfArticleDao
;
@Autowired
private
TbCfUserInfoDao
tbCfUserInfoDao
;
@Override
public
TbCfArticleEntity
queryObject
(
String
id
)
{
...
...
@@ -44,19 +47,27 @@ public class TbCfArticleServiceImpl implements TbCfArticleService {
@Override
public
int
save
(
TbCfArticleEntity
tbCfArticle
)
throws
Exception
{
String
type
=
String
.
valueOf
(
tbCfArticle
.
getAuthorType
());
if
(
"0"
.
equals
(
type
))
{
tbCfArticle
.
setAuthor
(
getUserId
());
}
if
(
"1"
.
equals
(
type
))
{
String
userId
=
tbCfUserInfoDao
.
queryById
(
tbCfArticle
.
getAuthor
());
tbCfArticle
.
setAuthor
(
userId
);
}
tbCfArticle
.
setUpdatetime
(
new
Date
());
tbCfArticle
.
setCreatetime
(
new
Date
());
tbCfArticle
.
setDelFlag
(
1
);
tbCfArticle
.
setLikeNum
(
0L
);
tbCfArticle
.
setId
(
IdUtil
.
createIdbyUUID
());
tbCfArticle
.
setContent
(
URLDecoder
.
decode
(
tbCfArticle
.
getContent
(),
"utf-8"
));
tbCfArticle
.
setContent
(
URLDecoder
.
decode
(
tbCfArticle
.
getContent
(),
"utf-8"
));
return
tbCfArticleDao
.
save
(
tbCfArticle
);
}
@Override
public
int
update
(
TbCfArticleEntity
tbCfArticle
)
throws
Exception
{
public
int
update
(
TbCfArticleEntity
tbCfArticle
)
throws
Exception
{
tbCfArticle
.
setUpdatetime
(
new
Date
());
tbCfArticle
.
setContent
(
URLDecoder
.
decode
(
tbCfArticle
.
getContent
(),
"utf-8"
));
tbCfArticle
.
setContent
(
URLDecoder
.
decode
(
tbCfArticle
.
getContent
(),
"utf-8"
));
return
tbCfArticleDao
.
update
(
tbCfArticle
);
}
...
...
platform-admin/src/main/java/com/platform/service/impl/TbCfOrderListServiceImpl.java
浏览文件 @
f0613cef
package
com
.
platform
.
service
.
impl
;
import
com.platform.dao.TbCfOrderDao
;
import
com.platform.dao.TbCfOrderListDao
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.entity.TbCfOrderListEntity
;
import
com.platform.service.TbCfOrderListService
;
import
com.platform.vo.DeliveryOrderVo
;
...
...
@@ -23,6 +25,10 @@ import java.util.Map;
public
class
TbCfOrderListServiceImpl
implements
TbCfOrderListService
{
@Autowired
private
TbCfOrderListDao
tbCfOrderListDao
;
@Autowired
private
TbCfOrderDao
tbCfOrderDao
;
@Override
public
List
<
TbCfOrderListEntity
>
queryOrderList
(
Map
<
String
,
Object
>
map
)
{
return
tbCfOrderListDao
.
queryOrderList
(
map
);
...
...
@@ -35,7 +41,7 @@ public class TbCfOrderListServiceImpl implements TbCfOrderListService {
@Override
public
List
<
DeliveryOrderVo
>
queryOrderDeliveryList
(
String
orderId
)
{
return
tbCfOrderListDao
.
queryOrderDeliveryList
(
orderId
);
return
tbCfOrderListDao
.
queryOrderDeliveryList
(
orderId
);
}
@Override
...
...
@@ -69,4 +75,31 @@ public class TbCfOrderListServiceImpl implements TbCfOrderListService {
return
tbCfOrderListDao
.
saveOrUpdatemMemoOrder
(
memoOrderVo
);
}
//===========================================新版订单业务===============================================================
/**
* 根据付款状态查询订单列表
* payStatus 10:未付款 20:已付款
*
* @param payStatus
* @return List
*/
@Override
public
List
<
TbCfOrderEntity
>
queryPayOrderList
(
String
payStatus
)
{
return
tbCfOrderDao
.
queryPayOrderList
(
payStatus
);
}
/**
* 根据订单付款状态查询订单数量
*
* @param payStatus
* @return int
*/
public
int
queryPayCount
(
String
payStatus
)
{
return
tbCfOrderDao
.
queryPayCount
(
payStatus
);
}
}
platform-admin/src/main/java/com/platform/service/impl/TbCfUserInfoServiceImpl.java
浏览文件 @
f0613cef
...
...
@@ -64,6 +64,12 @@ public class TbCfUserInfoServiceImpl implements TbCfUserInfoService {
@Override
public
long
queryUserTotal
()
{
return
tbCfUserInfoDao
.
queryUserTotal
()
;
return
tbCfUserInfoDao
.
queryUserTotal
();
}
@Override
public
boolean
queryByAccount
(
String
account
)
{
return
tbCfUserInfoDao
.
queryById
(
account
)
==
null
?
true
:
false
;
}
}
platform-admin/src/main/resources/com/platform/dao/TbCfArticleDao.xml
浏览文件 @
f0613cef
...
...
@@ -8,9 +8,11 @@
<result
property=
"title"
column=
"title"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"picture"
column=
"picture"
/>
<result
property=
"authorType"
column=
"author_type"
/>
<result
property=
"author"
column=
"author"
/>
<result
property=
"likeNum"
column=
"like_num"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"top"
column=
"top"
/>
<result
property=
"createtime"
column=
"createTime"
/>
<result
property=
"updatetime"
column=
"updateTime"
/>
</resultMap>
...
...
@@ -21,9 +23,11 @@
`title`,
`content`,
`picture`,
`author_type`,
`author`,
`like_num`,
`del_flag`,
`top`,
`createTime`,
`updateTime`
from tb_cf_article
...
...
@@ -36,9 +40,11 @@
`title`,
`content`,
`picture`,
`author_type`,
`author`,
`like_num`,
`del_flag`,
`top`,
`createTime`,
`updateTime`
from tb_cf_article
...
...
@@ -73,9 +79,11 @@
`title`,
`content`,
`picture`,
`author_type`,
`author`,
`like_num`,
`del_flag`,
`top`,
`createTime`,
`updateTime`)
values(
...
...
@@ -83,9 +91,11 @@
#{title},
#{content},
#{picture},
#{authorType},
#{author},
#{likeNum},
#{delFlag},
#{top},
#{createtime},
#{updatetime})
</insert>
...
...
@@ -96,9 +106,11 @@
<if
test=
"title != null"
>
`title` = #{title},
</if>
<if
test=
"content != null"
>
`content` = #{content},
</if>
<if
test=
"picture != null"
>
`picture` = #{picture},
</if>
<if
test=
"authorType != null"
>
`author_type` = #{authorType},
</if>
<if
test=
"author != null"
>
`author` = #{author},
</if>
<if
test=
"likeNum != null"
>
`like_num` = #{likeNum},
</if>
<if
test=
"delFlag != null"
>
`del_flag` = #{delFlag},
</if>
<if
test=
"top != null"
>
`top` = #{top},
</if>
<if
test=
"createtime != null"
>
`createTime` = #{createtime},
</if>
<if
test=
"updatetime != null"
>
`updateTime` = #{updatetime}
</if>
</set>
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfOrderDao.xml
浏览文件 @
f0613cef
...
...
@@ -3,40 +3,40 @@
<mapper
namespace=
"com.platform.dao.TbCfOrderDao"
>
<resultMap
type=
"com.platform.entity.TbCfOrderEntity"
id=
"tbCfOrderMap"
>
<result
property=
"ordersId"
column=
"ordersId"
/>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"orderNo"
column=
"order_no"
/>
<result
property=
"orderName"
column=
"order_name"
/>
<result
property=
"orderTime"
column=
"order_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"dealTime"
column=
"deal_time"
/>
<result
property=
"closeTime"
column=
"close_time"
/>
<result
property=
"orderStatus"
column=
"order_status"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"userName"
column=
"user_name"
/>
<result
property=
"deliveryAddressId"
column=
"delivery_address_id"
/>
<result
property=
"deliveryAddress"
column=
"delivery_address"
/>
<result
property=
"deliveryName"
column=
"delivery_name"
/>
<result
property=
"deliveryPhone"
column=
"delivery_phone"
/>
<result
property=
"itemsPrice"
column=
"items_price"
/>
<result
property=
"totalPrice"
column=
"total_price"
/>
<result
property=
"realityPay"
column=
"reality_pay"
/>
<result
property=
"deliveryFlag"
column=
"delivery_flag"
/>
<result
property=
"deliveryTime"
column=
"delivery_time"
/>
<result
property=
"expressCost"
column=
"express_cost"
/>
<result
property=
"couponId"
column=
"coupon_id"
/>
<result
property=
"couponTitle"
column=
"coupon_title"
/>
<result
property=
"deductAmount"
column=
"deduct_amount"
/>
<result
property=
"tax"
column=
"tax"
/>
<result
property=
"fee"
column=
"fee"
/>
<result
property=
"payId"
column=
"pay_id"
/>
<result
property=
"payStatus"
column=
"pay_status"
/>
<result
property=
"enableFlag"
column=
"enable_flag"
/>
<result
property=
"descripitionName"
column=
"descripition_name"
/>
</resultMap>
<resultMap
type=
"com.platform.entity.TbCfOrderEntity"
id=
"tbCfOrderMap"
>
<result
property=
"ordersId"
column=
"ordersId"
/>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"orderNo"
column=
"order_no"
/>
<result
property=
"orderName"
column=
"order_name"
/>
<result
property=
"orderTime"
column=
"order_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"dealTime"
column=
"deal_time"
/>
<result
property=
"closeTime"
column=
"close_time"
/>
<result
property=
"orderStatus"
column=
"order_status"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"userName"
column=
"user_name"
/>
<result
property=
"deliveryAddressId"
column=
"delivery_address_id"
/>
<result
property=
"deliveryAddress"
column=
"delivery_address"
/>
<result
property=
"deliveryName"
column=
"delivery_name"
/>
<result
property=
"deliveryPhone"
column=
"delivery_phone"
/>
<result
property=
"itemsPrice"
column=
"items_price"
/>
<result
property=
"totalPrice"
column=
"total_price"
/>
<result
property=
"realityPay"
column=
"reality_pay"
/>
<result
property=
"deliveryFlag"
column=
"delivery_flag"
/>
<result
property=
"deliveryTime"
column=
"delivery_time"
/>
<result
property=
"expressCost"
column=
"express_cost"
/>
<result
property=
"couponId"
column=
"coupon_id"
/>
<result
property=
"couponTitle"
column=
"coupon_title"
/>
<result
property=
"deductAmount"
column=
"deduct_amount"
/>
<result
property=
"tax"
column=
"tax"
/>
<result
property=
"fee"
column=
"fee"
/>
<result
property=
"payId"
column=
"pay_id"
/>
<result
property=
"payStatus"
column=
"pay_status"
/>
<result
property=
"enableFlag"
column=
"enable_flag"
/>
<result
property=
"descripitionName"
column=
"descripition_name"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfOrderEntity"
>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfOrderEntity"
>
select
i.order_item_id ordersId,
o.order_id,
...
...
@@ -71,7 +71,7 @@
left join tb_cf_item_order_r i on i.order_id=o.order_id
WHERE 1=1 and i.enable_flag=1 and i.order_item_id = #{orderId}
</select>
<select
id=
"queryOrderDetail"
resultType=
"com.platform.entity.TbCfOrderEntity"
>
<select
id=
"queryOrderDetail"
resultType=
"com.platform.entity.TbCfOrderEntity"
>
select
i.order_item_id,
o.order_id,
...
...
@@ -87,99 +87,99 @@
left join tb_cf_item_order_r i on i.order_id=o.order_id
where i.order_item_id = #{ordersId}
</select>
<select
id=
"queryList"
resultType=
"com.platform.entity.TbCfOrderEntity"
>
select
i.order_item_id ordersId,
o.order_id,
o.order_no,
o.order_name,
o.order_time,
i.update_time updateTime,
o.deal_time,
o.close_time,
i.order_status orderStatus,
o.user_id,
o.user_name,
o.delivery_address_id,
o.delivery_address,
o.delivery_name,
o.delivery_phone,
d.item_price itemPrice,
o.total_price,
o.reality_pay,
i.delivery_flag deliveryFlag,
i.delivery_time deliveryTime,
o.express_cost,
o.coupon_id,
c.coupon_title,
c.deduct_amount,
o.tax,
o.fee,
o.pay_id,
o.pay_status,
o.enable_flag
from tb_cf_order o left join tb_cf_coupon c on c.coupon_id=o.coupon_id
left join tb_cf_item_order_r i on i.order_id=o.order_id
left join tb_cf_item_detail d on d.item_id=i.item_id
WHERE 1=1 and i.enable_flag=1 and o.enable_flag=1
<if
test=
"name != null and name.trim() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
</if>
<if
test=
"start != null and start.trim() != '' "
>
AND o.order_time
<![CDATA[>=]]>
CONCAT('', #{start},' 00:00:00')
</if>
<if
test=
"end != null and end.trim() != '' "
>
AND o.order_time
<![CDATA[<=]]>
CONCAT('', #{end},' 23:59:59')
</if>
<if
test=
"payStatus != null and payStatus.trim() != ''"
>
AND o.pay_status=#{payStatus}
</if>
<if
test=
"deliveryFlag != null and deliveryFlag.trim() != ''"
>
AND i.delivery_flag=#{deliveryFlag}
</if>
<if
test=
"orderStatus != null and orderStatus.trim() != ''"
>
AND i.order_status=#{orderStatus}
</if>
<select
id=
"queryList"
resultType=
"com.platform.entity.TbCfOrderEntity"
>
select
i.order_item_id ordersId,
o.order_id,
o.order_no,
o.order_name,
o.order_time,
i.update_time updateTime,
o.deal_time,
o.close_time,
i.order_status orderStatus,
o.user_id,
o.user_name,
o.delivery_address_id,
o.delivery_address,
o.delivery_name,
o.delivery_phone,
d.item_price itemPrice,
o.total_price,
o.reality_pay,
i.delivery_flag deliveryFlag,
i.delivery_time deliveryTime,
o.express_cost,
o.coupon_id,
c.coupon_title,
c.deduct_amount,
o.tax,
o.fee,
o.pay_id,
o.pay_status,
o.enable_flag
from tb_cf_order o left join tb_cf_coupon c on c.coupon_id=o.coupon_id
left join tb_cf_item_order_r i on i.order_id=o.order_id
left join tb_cf_item_detail d on d.item_id=i.item_id
WHERE 1=1 and i.enable_flag=1 and o.enable_flag=1
<if
test=
"name != null and name.trim() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
</if>
<if
test=
"start != null and start.trim() != '' "
>
AND o.order_time
<![CDATA[>=]]>
CONCAT('', #{start},' 00:00:00')
</if>
<if
test=
"end != null and end.trim() != '' "
>
AND o.order_time
<![CDATA[<=]]>
CONCAT('', #{end},' 23:59:59')
</if>
<if
test=
"payStatus != null and payStatus.trim() != ''"
>
AND o.pay_status=#{payStatus}
</if>
<if
test=
"deliveryFlag != null and deliveryFlag.trim() != ''"
>
AND i.delivery_flag=#{deliveryFlag}
</if>
<if
test=
"orderStatus != null and orderStatus.trim() != ''"
>
AND i.order_status=#{orderStatus}
</if>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
</when>
<otherwise>
order by o.order_time desc
</otherwise>
</choose>
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
</if>
</select>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
</when>
<otherwise>
order by o.order_time desc
</otherwise>
</choose>
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
</if>
</select>
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*) from tb_cf_order o left join tb_cf_coupon c on c.coupon_id=o.coupon_id
left join tb_cf_item_order_r i on i.order_id=o.order_id
left join tb_cf_item_detail d on d.item_id=i.item_id
WHERE 1=1 and i.enable_flag=1 and o.enable_flag=1
<if
test=
"name != null and name.trim() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
</if>
<if
test=
"start != null and start.trim() != '' "
>
AND o.order_time
<![CDATA[>=]]>
CONCAT('', #{start},' 00:00:00')
</if>
<if
test=
"end != null and end.trim() != '' "
>
AND o.order_time
<![CDATA[<=]]>
CONCAT('', #{end},' 23:59:59')
</if>
<if
test=
"payStatus != null and payStatus.trim() != ''"
>
AND o.pay_status=#{payStatus}
</if>
<if
test=
"deliveryFlag != null and deliveryFlag.trim() != ''"
>
AND i.delivery_flag=#{deliveryFlag}
</if>
<if
test=
"orderStatus != null and orderStatus.trim() != ''"
>
AND i.order_status=#{orderStatus}
</if>
</select>
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*) from tb_cf_order o left join tb_cf_coupon c on c.coupon_id=o.coupon_id
left join tb_cf_item_order_r i on i.order_id=o.order_id
left join tb_cf_item_detail d on d.item_id=i.item_id
WHERE 1=1 and i.enable_flag=1 and o.enable_flag=1
<if
test=
"name != null and name.trim() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
</if>
<if
test=
"start != null and start.trim() != '' "
>
AND o.order_time
<![CDATA[>=]]>
CONCAT('', #{start},' 00:00:00')
</if>
<if
test=
"end != null and end.trim() != '' "
>
AND o.order_time
<![CDATA[<=]]>
CONCAT('', #{end},' 23:59:59')
</if>
<if
test=
"payStatus != null and payStatus.trim() != ''"
>
AND o.pay_status=#{payStatus}
</if>
<if
test=
"deliveryFlag != null and deliveryFlag.trim() != ''"
>
AND i.delivery_flag=#{deliveryFlag}
</if>
<if
test=
"orderStatus != null and orderStatus.trim() != ''"
>
AND i.order_status=#{orderStatus}
</if>
</select>
<select
id=
"queryOrderTotal"
resultType=
"int"
>
<select
id=
"queryOrderTotal"
resultType=
"int"
>
select count(*) from tb_cf_order o left join tb_cf_coupon c on c.coupon_id=o.coupon_id
left join tb_cf_item_order_r i on i.order_id=o.order_id
left join tb_cf_item_detail d on d.item_id=i.item_id
...
...
@@ -187,7 +187,7 @@
</select>
<insert
id=
"save"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
<insert
id=
"save"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
insert into tb_cf_order(
`order_id`,
`order_no`,
...
...
@@ -250,120 +250,164 @@
#{descripition_name}
)
</insert>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
update tb_cf_order o left join tb_cf_item_order_r r on r.order_id=o.order_id
<set>
<if
test=
"orderNo != null"
>
o.order_no = #{orderNo},
</if>
<if
test=
"orderName != null"
>
o.order_name = #{orderName},
</if>
<if
test=
"orderTime != null"
>
o.order_time = #{orderTime},
</if>
<if
test=
"updateTime != null"
>
o.update_time = #{updateTime},
</if>
<if
test=
"dealTime != null"
>
o.deal_time = #{dealTime},
</if>
<if
test=
"closeTime != null"
>
o.close_time = #{closeTime},
</if>
<if
test=
"orderStatus != null"
>
o.order_status = #{orderStatus},
</if>
<if
test=
"userId != null"
>
o.user_id = #{userId},
</if>
<if
test=
"userName != null"
>
o.user_name= #{userName},
</if>
<if
test=
"deliveryAddressId != null"
>
o.delivery_address_id = #{deliveryAddressId},
</if>
<if
test=
"deliveryAddress != null"
>
o.delivery_address = #{deliveryAddress},
</if>
<if
test=
"deliveryName != null"
>
o.delivery_name = #{deliveryName},
</if>
<if
test=
"deliveryPhone != null"
>
o.delivery_phone = #{deliveryPhone},
</if>
<if
test=
"itemsPrice != null"
>
o.items_price = #{itemsPrice},
</if>
<if
test=
"totalPrice != null"
>
o.total_price = #{totalPrice},
</if>
<if
test=
"realityPay != null"
>
o.reality_pay = #{realityPay},
</if>
<if
test=
"deliveryFlag != null"
>
o.delivery_flag = #{deliveryFlag},
</if>
<if
test=
"deliveryTime != null"
>
o.delivery_time = #{deliveryTime},
</if>
<if
test=
"expressCost != null"
>
o.express_cost = #{expressCost},
</if>
<if
test=
"couponId != null"
>
o.coupon_id = #{couponId},
</if>
<if
test=
"couponTitle != null"
>
o.coupon_title = #{couponTitle},
</if>
<if
test=
"deductAmount != null"
>
o.deduct_amount = #{deductAmount},
</if>
<if
test=
"tax != null"
>
o.tax = #{tax},
</if>
<if
test=
"fee != null"
>
o.fee = #{fee},
</if>
<if
test=
"payId != null"
>
o.pay_id = #{payId},
</if>
<if
test=
"payStatus != null"
>
o.pay_status = #{payStatus},
</if>
<if
test=
"enableFlag != null"
>
o.enable_flag = #{enableFlag},
</if>
<if
test=
"descripitionName != null"
>
o.descripition_name = #{descripitionName}
</if>
</set>
where r.order_item_id =
#{ordersId}
</update>
<update
id=
"updates"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
update tb_cf_order
<set>
<if
test=
"orderStatus != null"
>
order_status = #{orderStatus},
</if>
<if
test=
"deliveryFlag != null"
>
delivery_flag = #{deliveryFlag}
</if>
</set>
where order_id =#{orderId}
</update>
<update
id=
"updateDescripitionName"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
update tb_cf_order o left join tb_cf_item_order_r r on r.order_id=o.order_id
<set>
<if
test=
"orderNo != null"
>
o.order_no = #{orderNo},
</if>
<if
test=
"orderName != null"
>
o.order_name = #{orderName},
</if>
<if
test=
"orderTime != null"
>
o.order_time = #{orderTime},
</if>
<if
test=
"updateTime != null"
>
o.update_time = #{updateTime},
</if>
<if
test=
"dealTime != null"
>
o.deal_time = #{dealTime},
</if>
<if
test=
"closeTime != null"
>
o.close_time = #{closeTime},
</if>
<if
test=
"orderStatus != null"
>
o.order_status = #{orderStatus},
</if>
<if
test=
"userId != null"
>
o.user_id = #{userId},
</if>
<if
test=
"userName != null"
>
o.user_name= #{userName},
</if>
<if
test=
"deliveryAddressId != null"
>
o.delivery_address_id = #{deliveryAddressId},
</if>
<if
test=
"deliveryAddress != null"
>
o.delivery_address = #{deliveryAddress},
</if>
<if
test=
"deliveryName != null"
>
o.delivery_name = #{deliveryName},
</if>
<if
test=
"deliveryPhone != null"
>
o.delivery_phone = #{deliveryPhone},
</if>
<if
test=
"itemsPrice != null"
>
o.items_price = #{itemsPrice},
</if>
<if
test=
"totalPrice != null"
>
o.total_price = #{totalPrice},
</if>
<if
test=
"realityPay != null"
>
o.reality_pay = #{realityPay},
</if>
<if
test=
"deliveryFlag != null"
>
o.delivery_flag = #{deliveryFlag},
</if>
<if
test=
"deliveryTime != null"
>
o.delivery_time = #{deliveryTime},
</if>
<if
test=
"expressCost != null"
>
o.express_cost = #{expressCost},
</if>
<if
test=
"couponId != null"
>
o.coupon_id = #{couponId},
</if>
<if
test=
"couponTitle != null"
>
o.coupon_title = #{couponTitle},
</if>
<if
test=
"deductAmount != null"
>
o.deduct_amount = #{deductAmount},
</if>
<if
test=
"tax != null"
>
o.tax = #{tax},
</if>
<if
test=
"fee != null"
>
o.fee = #{fee},
</if>
<if
test=
"payId != null"
>
o.pay_id = #{payId},
</if>
<if
test=
"payStatus != null"
>
o.pay_status = #{payStatus},
</if>
<if
test=
"enableFlag != null"
>
o.enable_flag = #{enableFlag},
</if>
<if
test=
"descripitionName != null"
>
o.descripition_name = #{descripitionName}
</if>
</set>
where r.order_item_id =
#{ordersId}
</update>
<update
id=
"updates"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
update tb_cf_order
<set>
<if
test=
"orderStatus != null"
>
order_status = #{orderStatus},
</if>
<if
test=
"deliveryFlag != null"
>
delivery_flag = #{deliveryFlag}
</if>
</set>
where order_id =#{orderId}
</update>
<update
id=
"updateDescripitionName"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
update tb_cf_order
set `descripition_name` = #{descripitionName}
where order_id = #{orderId}
</update>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
delete from tb_cf_order where order_id = #{value}
</delete>
<delete
id=
"deleteBatch"
>
delete from tb_cf_order where order_id in
<foreach
item=
"orderId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{orderId}
</foreach>
</delete>
<delete
id=
"deleteBatch"
>
delete from tb_cf_order where order_id in
<foreach
item=
"orderId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{orderId}
</foreach>
</delete>
<update
id=
"updateStatus"
>
update tb_cf_order
<set>
<if
test=
"orderStatus != null"
>
order_status = #{orderStatus},
</if>
<if
test=
"closeTime != null"
>
close_time = #{closeTime}
</if>
</set>
where order_id = #{orderId}
</update>
<update
id=
"updateStatus"
>
update tb_cf_order
<set>
<if
test=
"orderStatus != null"
>
order_status = #{orderStatus},
</if>
<if
test=
"closeTime != null"
>
close_time = #{closeTime}
</if>
</set>
where order_id = #{orderId}
</update>
<select
id=
"getPhone"
resultType=
"String"
>
<select
id=
"getPhone"
resultType=
"String"
>
select delivery_phone from tb_cf_order where order_id=#{orderId}
</select>
<update
id=
"updateOrder"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
<update
id=
"updateOrder"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
update tb_cf_order o
set o.enable_flag = 0
where o.order_id=#{orderId}
</update>
<!--根据订单id,获取订单内商品详情-->
<select
id=
"getOrderItemList"
resultType=
"com.platform.entity.TbCfItemDetailEntity"
>
<!--根据订单id,获取订单内商品详情-->
<select
id=
"getOrderItemList"
resultType=
"com.platform.entity.TbCfItemDetailEntity"
>
select t2.* from tb_cf_item_order_r t1,tb_cf_item_detail t2 where t1.order_item_id =#{ordersId}
and t1.enable_flag=1 and t2.item_id=t1.item_id
</select>
<select
id=
"getOrderItemLists"
resultType=
"com.platform.entity.TbCfItemDetailEntity"
>
<select
id=
"getOrderItemLists"
resultType=
"com.platform.entity.TbCfItemDetailEntity"
>
select t2.*
from tb_cf_item_order_r t1 left join tb_cf_item_detail t2 on t2.item_id=t1.item_id where t1.order_id =#{orderId} and t1.enable_flag=1
</select>
<update
id=
"updateDeliveryTime"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
update tb_cf_order o left join tb_cf_item_order_r r on r.order_id=o.order_id
<set>
<if
test=
"deliveryTime != null"
>
o.delivery_time = #{deliveryTime},
</if>
</set>
where r.order_item_id =
#{ordersId} and o.delivery_time is null
</update>
<update
id=
"updateDeliveryTime"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
update tb_cf_order o left join tb_cf_item_order_r r on r.order_id=o.order_id
<set>
<if
test=
"deliveryTime != null"
>
o.delivery_time = #{deliveryTime},
</if>
</set>
where r.order_item_id =
#{ordersId} and o.delivery_time is null
</update>
<select
id=
"getPrice"
resultType=
"BigDecimal"
>
<select
id=
"getPrice"
resultType=
"BigDecimal"
>
select i.item_price from tb_cf_item_detail i left join tb_cf_item_order_r r on r.item_id=i.item_id where r.order_item_id=#{ordersId}
</select>
<update
id=
"updateOrderStatus"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
<update
id=
"updateOrderStatus"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
update tb_cf_order set order_status=#{orderStatus} where order_id=#{orderId}
</update>
<select
id=
"queryOrderPriceToday"
resultType=
"BigDecimal"
>
<select
id=
"queryOrderPriceToday"
resultType=
"BigDecimal"
>
select count(o.reality_pay) from tb_cf_order o left join tb_cf_coupon c on c.coupon_id=o.coupon_id
left join tb_cf_item_order_r i on i.order_id=o.order_id
left join tb_cf_item_detail d on d.item_id=i.item_id
WHERE 1=1 and i.enable_flag=1 and o.enable_flag=1
and DATEDIFF(o.order_time,NOW())=0
</select>
<select
id=
"queryOrderPriceYesterday"
resultType=
"BigDecimal"
>
<select
id=
"queryOrderPriceYesterday"
resultType=
"BigDecimal"
>
select count(o.reality_pay) from tb_cf_order o left join tb_cf_coupon c on c.coupon_id=o.coupon_id
left join tb_cf_item_order_r i on i.order_id=o.order_id
left join tb_cf_item_detail d on d.item_id=i.item_id
WHERE 1=1 and i.enable_flag=1 and o.enable_flag=1
and DATEDIFF(o.order_time,NOW())=-1
</select>
<!--新版订单业务-->
<select
id=
"queryPayOrderList"
resultType=
"com.platform.entity.TbCfOrderEntity"
>
select
i.order_item_id ordersId,
o.order_id,
o.order_no,
o.order_name,
o.order_time,
i.update_time updateTime,
o.deal_time,
o.close_time,
i.order_status orderStatus,
o.user_id,
o.user_name,
o.delivery_address_id,
o.delivery_address,
o.delivery_name,
o.delivery_phone,
d.item_price itemPrice,
o.total_price,
o.reality_pay,
i.delivery_flag deliveryFlag,
i.delivery_time deliveryTime,
o.express_cost,
o.coupon_id,
c.coupon_title,
c.deduct_amount,
o.tax,
o.fee,
o.pay_id,
o.pay_status,
o.enable_flag
from tb_cf_order o left join tb_cf_coupon c on c.coupon_id=o.coupon_id
left join tb_cf_item_order_r i on i.order_id=o.order_id
left join tb_cf_item_detail d on d.item_id=i.item_id
WHERE 1=1 and i.enable_flag=1 and o.enable_flag=1 and pay_status=#{payStatus}
order by order_time desc
</select>
<select
id=
"queryPayCount"
resultType=
"int"
>
select count(order_id) from tb_cf_order where pay_status=#{payStatus}
</select>
</mapper>
\ No newline at end of file
platform-admin/src/main/resources/com/platform/dao/TbCfOrderListDao.xml
浏览文件 @
f0613cef
...
...
@@ -66,6 +66,9 @@
<if
test=
"deliveryFlag != null and deliveryFlag.trim() != ''"
>
AND o.delivery_flag =#{deliveryFlag}
</if>
<if
test=
"payStatus != null and payStatus.trim() != ''"
>
AND o.pay_status =#{payStatus}
</if>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfUserInfoDao.xml
浏览文件 @
f0613cef
...
...
@@ -27,7 +27,7 @@
<result
property=
"emailFlag"
column=
"email_flag"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfUserInfoEntity"
>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfUserInfoEntity"
>
select
`user_id`,
`user_no`,
...
...
@@ -54,55 +54,56 @@
where user_id = #{id}
</select>
<select
id=
"queryList"
resultType=
"com.platform.entity.TbCfUserInfoEntityExtends"
>
SELECT
u.*,
IFNULL( o.count, 0 ) count,
IFNULL( o.total, 0 ) total,
IFNULL( c.num, 0 ) num
FROM
tb_cf_user_info u
LEFT JOIN (
SELECT
user_id,
count( order_id ) count,
sum( total_price ) total
FROM
tb_cf_order
WHERE
pay_status = 20
AND enable_flag = 1
GROUP BY
user_id
) o ON u.user_id = o.user_id
LEFT JOIN ( SELECT o.user_id, count( o.coupon_id ) num FROM tb_cf_order o GROUP BY o.user_id ) c ON u.user_id = c.user_id
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
</if>
<select
id=
"queryList"
resultType=
"com.platform.entity.TbCfUserInfoEntityExtends"
>
SELECT
u.*,
IFNULL( o.count, 0 ) count,
IFNULL( o.total, 0 ) total,
IFNULL( c.num, 0 ) num
FROM
tb_cf_user_info u
LEFT JOIN (
SELECT
user_id,
count( order_id ) count,
sum( total_price ) total
FROM
tb_cf_order
WHERE
pay_status = 20
AND enable_flag = 1
GROUP BY
user_id
) o ON u.user_id = o.user_id
LEFT JOIN ( SELECT o.user_id, count( o.coupon_id ) num FROM tb_cf_order o GROUP BY o.user_id ) c ON u.user_id =
c.user_id
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
</if>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
</when>
<otherwise>
ORDER BY
o.total DESC
</otherwise>
<otherwise>
ORDER BY
o.total DESC
</otherwise>
</choose>
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
</if>
</select>
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*) from tb_cf_user_info
WHERE 1=1
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
</if>
</select>
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*) from tb_cf_user_info
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
</if>
</select>
<insert
id=
"save"
parameterType=
"com.platform.entity.TbCfUserInfoEntity"
>
</select>
<insert
id=
"save"
parameterType=
"com.platform.entity.TbCfUserInfoEntity"
>
insert into tb_cf_user_info(
`user_id`,
`user_no`,
...
...
@@ -148,51 +149,53 @@
#{enableFlag},
#{emailFlag})
</insert>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfUserInfoEntity"
>
update tb_cf_user_info
<set>
<if
test=
"userNo != null"
>
`user_no` = #{userNo},
</if>
<if
test=
"userType != null"
>
`user_type` = #{userType},
</if>
<if
test=
"account != null"
>
`account` = #{account},
</if>
<if
test=
"avatar != null"
>
`avatar` = #{avatar},
</if>
<if
test=
"nick != null"
>
`nick` = #{nick},
</if>
<if
test=
"phone != null"
>
`phone` = #{phone},
</if>
<if
test=
"phoneFlag != null"
>
`phone_flag` = #{phoneFlag},
</if>
<if
test=
"password != null"
>
`password` = #{password},
</if>
<if
test=
"lastLoginTime != null"
>
`last_login_time` = #{lastLoginTime},
</if>
<if
test=
"lastLoginIp != null"
>
`last_login_ip` = #{lastLoginIp},
</if>
<if
test=
"loginCount != null"
>
`login_count` = #{loginCount},
</if>
<if
test=
"email != null"
>
`email` = #{email},
</if>
<if
test=
"facebook != null"
>
`facebook` = #{facebook},
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime},
</if>
<if
test=
"sex != null"
>
`sex` = #{sex},
</if>
<if
test=
"defaultAddressId != null"
>
`default_address_id` = #{defaultAddressId},
</if>
<if
test=
"invitedUserId != null"
>
`invited_user_id` = #{invitedUserId},
</if>
<if
test=
"invitedCount != null"
>
`invited_count` = #{invitedCount},
</if>
<if
test=
"enableFlag != null"
>
`enable_flag` = #{enableFlag},
</if>
<if
test=
"emailFlag != null"
>
`email_flag` = #{emailFlag}
</if>
</set>
where user_id = #{userId}
</update>
<select
id=
"queryById"
resultType=
"String"
>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfUserInfoEntity"
>
update tb_cf_user_info
<set>
<if
test=
"userNo != null"
>
`user_no` = #{userNo},
</if>
<if
test=
"userType != null"
>
`user_type` = #{userType},
</if>
<if
test=
"account != null"
>
`account` = #{account},
</if>
<if
test=
"avatar != null"
>
`avatar` = #{avatar},
</if>
<if
test=
"nick != null"
>
`nick` = #{nick},
</if>
<if
test=
"phone != null"
>
`phone` = #{phone},
</if>
<if
test=
"phoneFlag != null"
>
`phone_flag` = #{phoneFlag},
</if>
<if
test=
"password != null"
>
`password` = #{password},
</if>
<if
test=
"lastLoginTime != null"
>
`last_login_time` = #{lastLoginTime},
</if>
<if
test=
"lastLoginIp != null"
>
`last_login_ip` = #{lastLoginIp},
</if>
<if
test=
"loginCount != null"
>
`login_count` = #{loginCount},
</if>
<if
test=
"email != null"
>
`email` = #{email},
</if>
<if
test=
"facebook != null"
>
`facebook` = #{facebook},
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime},
</if>
<if
test=
"sex != null"
>
`sex` = #{sex},
</if>
<if
test=
"defaultAddressId != null"
>
`default_address_id` = #{defaultAddressId},
</if>
<if
test=
"invitedUserId != null"
>
`invited_user_id` = #{invitedUserId},
</if>
<if
test=
"invitedCount != null"
>
`invited_count` = #{invitedCount},
</if>
<if
test=
"enableFlag != null"
>
`enable_flag` = #{enableFlag},
</if>
<if
test=
"emailFlag != null"
>
`email_flag` = #{emailFlag}
</if>
</set>
where user_id = #{userId}
</update>
<select
id=
"queryById"
resultType=
"String"
>
select user_id from tb_cf_user_info where account=#{account}
</select>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
delete from tb_cf_user_info where user_id = #{value}
</delete>
<delete
id=
"deleteBatch"
>
delete from tb_cf_user_info where user_id in
<foreach
item=
"userId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{userId}
</foreach>
</delete>
<!--查询用户总数 -->
<select
id=
"queryUserTotal"
resultType=
"long"
>
<delete
id=
"deleteBatch"
>
delete from tb_cf_user_info where user_id in
<foreach
item=
"userId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{userId}
</foreach>
</delete>
<!--查询用户总数 -->
<select
id=
"queryUserTotal"
resultType=
"long"
>
select count(account) from tb_cf_user_info
</select>
</mapper>
\ No newline at end of file
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcforderlist.html
浏览文件 @
f0613cef
...
...
@@ -96,9 +96,9 @@
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
>
</el-date-picker>
<el-select
v-model=
"
orderStatus"
placeholder=
"订单
状态"
>
<el-select
v-model=
"
payStatus"
placeholder=
"支付
状态"
>
<el-option
v-for=
"item in
order
StatusOptions"
v-for=
"item in
pay
StatusOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
...
...
@@ -112,6 +112,14 @@
:value=
"item.value"
>
</el-option>
</el-select>
<!--<el-select v-model="orderStatus" placeholder="订单状态">
<el-option
v-for="item in orderStatusOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>-->
<el-select
v-model=
"payWayCode"
placeholder=
"支付方式"
>
<el-option
v-for=
"(el,i) in payWayCodeList"
:key =
'el.pay_way_code'
...
...
@@ -125,15 +133,8 @@
:value="item.value">
</el-option>
</el-select>-->
<!-- <el-select v-model="payStatus" placeholder="支付状态">
<el-option
v-for="item in payStatusOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
-->
<i-button
type=
"success"
@
click=
"queryAll"
><i
class=
"fa fa-search"
></i>
查询
</i-button>
<i-button
type=
"warning"
@
click=
"reloadSearch"
><i
class=
"fa fa-refresh"
></i>
重置
</i-button>
</div>
...
...
platform-admin/src/main/webapp/js/sys/tbcforderList.js
浏览文件 @
f0613cef
...
...
@@ -9,9 +9,15 @@ $(function () {
{
label
:
'用户名称'
,
name
:
'userName'
,
index
:
'user_name'
},
{
label
:
'下单时间'
,
name
:
'orderTime'
,
index
:
'order_time'
},
{
label
:
'支付方式'
,
name
:
'payWayCode'
,
index
:
'pay_way_code'
},
{
label
:
'订单金额'
,
name
:
'realityPay'
,
index
:
'reality_pay'
,
formatter
:
"currency"
,
formatoptions
:
{
prefix
:
"$"
}},
{
label
:
'订单状态'
,
name
:
'orderStatus'
,
index
:
'order_status'
,
formatter
:
orderStatusFormat
},
{
label
:
'代购状态'
,
name
:
'deliveryFlag'
,
index
:
'delivery_flag'
,
formatter
:
deliveryFlagFormat
},
{
label
:
'订单金额'
,
name
:
'realityPay'
,
index
:
'reality_pay'
,
formatter
:
"currency"
,
formatoptions
:
{
prefix
:
"$"
}
},
{
label
:
'订单状态'
,
name
:
'orderStatus'
,
index
:
'order_status'
,
formatter
:
orderStatusFormat
},
{
label
:
'代购状态'
,
name
:
'deliveryFlag'
,
index
:
'delivery_flag'
,
formatter
:
deliveryFlagFormat
},
{
label
:
'收货人'
,
name
:
'deliveryName'
,
index
:
'delivery_name'
,
hidden
:
true
},
{
label
:
'收货人手机'
,
name
:
'deliveryPhone'
,
index
:
'delivery_phone'
,
hidden
:
true
},
{
label
:
'收货地址'
,
name
:
'deliveryAddress'
,
index
:
'delivery_address'
,
hidden
:
true
},
...
...
@@ -20,41 +26,43 @@ $(function () {
{
label
:
'手续费'
,
name
:
'fee'
,
index
:
'fee'
,
hidden
:
true
},
{
label
:
'优惠券ID'
,
name
:
'couponId'
,
index
:
'coupon_id'
,
hidden
:
true
},
{
label
:
'优惠券名称'
,
name
:
'couponTitle'
,
index
:
'coupon_title'
,
hidden
:
true
},
{
name
:
'操作'
,
index
:
'operate'
,
width
:
'160px'
,
{
name
:
'操作'
,
index
:
'operate'
,
width
:
'160px'
,
formatter
:
function
(
value
,
grid
,
rows
)
{
if
(
grid
.
colModel
.
formatter
.
arguments
[
2
].
orderStatus
==
10
)
{
if
(
grid
.
colModel
.
formatter
.
arguments
[
2
].
orderStatus
==
10
)
{
return
'<button style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #49C8F2;font-size: 10px; '
+
'-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="orderdescbutton">查看订单'
+
'</button><button style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #999c9e;font-size: 10px; '
+
'-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="closeOrder">订单关闭</button>'
;
}
else
if
(
grid
.
colModel
.
formatter
.
arguments
[
2
].
orderStatus
==
20
)
{
}
else
{
return
'<button style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #49C8F2;font-size: 10px; '
+
'-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="orderdescbutton">查看订单'
+
'</button><button style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: magenta;font-size: 10px; '
+
'-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="diybutton">订单发货</button>'
;
}
else
if
(
grid
.
colModel
.
formatter
.
arguments
[
2
].
orderStatus
==
40
){
return
'<button style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #49C8F2;font-size: 10px; '
+
'-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="orderdescbutton">查看订单'
+
'</button><button @click="orderdescbutton" style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: lightgreen;font-size: 10px; '
+
'-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="orderdescbutton">查看订单</button>'
;
}
else
if
(
grid
.
colModel
.
formatter
.
arguments
[
2
].
orderStatus
==
50
){
return
'<button style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #49C8F2;font-size: 10px; '
+
'-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="orderdescbutton">查看订单'
+
'</button><button @click="orderdescbutton" style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: gold;font-size: 10px; '
+
'-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" >交易成功</button>'
;
}
else
if
(
grid
.
colModel
.
formatter
.
arguments
[
2
].
orderStatus
==
60
){
return
'<button style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #49C8F2;font-size: 10px; '
+
'-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="orderdescbutton">查看订单'
+
'</button><button class="delbutton" style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #ea394c;font-size: 10px; '
+
'-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;">删除订单</button>'
;
// } else if (grid.colModel.formatter.arguments[2].orderStatus == 40) {
// return '<button style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #49C8F2;font-size: 10px; ' +
// '-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="orderdescbutton">查看订单' +
// '</button><button @click="orderdescbutton" style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: lightgreen;font-size: 10px; ' +
// '-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="orderdescbutton">查看订单</button>';
// } else if (grid.colModel.formatter.arguments[2].orderStatus == 50) {
// return '<button style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #49C8F2;font-size: 10px; ' +
// '-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="orderdescbutton">查看订单' +
// '</button><button @click="orderdescbutton" style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: gold;font-size: 10px; ' +
// '-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" >交易成功</button>';
// } else if (grid.colModel.formatter.arguments[2].orderStatus == 60) {
// return '<button style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #49C8F2;font-size: 10px; ' +
// '-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;" class="orderdescbutton">查看订单' +
// '</button><button class="delbutton" style="display: inline-block;height: 30px; line-height: 25px; padding: 1px 18px; background-color: #ea394c;font-size: 10px; ' +
// '-webkit-border-radius: 2px; border-radius: 6px; color: #fff; cursor: pointer; border: 0;margin: 1px 6px;">删除订单</button>';
// }
}
}
}
],
shrinkToFit
:
true
,
datatype
:
"json"
,
rowNum
:
12
,
rowList
:
[
12
,
24
,
36
],
datatype
:
"json"
,
rowNum
:
12
,
rowList
:
[
12
,
24
,
36
],
rownumbers
:
true
,
rownumWidth
:
40
,
gridview
:
true
,
...
...
@@ -62,46 +70,46 @@ $(function () {
sortname
:
'order_time'
,
viewrecords
:
true
,
sortorder
:
"desc"
,
align
:
"center"
align
:
"center"
});
//查询所有支付方式
$
.
get
(
'../tbcffinance/queryPayWayCodeAll'
,
function
(
res
)
{
vm
.
payWayCodeList
=
JSON
.
parse
(
res
).
list
;
$
.
get
(
'../tbcffinance/queryPayWayCodeAll'
,
function
(
res
)
{
vm
.
payWayCodeList
=
JSON
.
parse
(
res
).
list
;
}),
//查询所有运费模板(品名)
$
.
get
(
'../tbcfexpresstemplate/queryAll'
,
function
(
res
)
{
vm
.
descripition
=
JSON
.
parse
(
res
).
list
;
$
.
get
(
'../tbcfexpresstemplate/queryAll'
,
function
(
res
)
{
vm
.
descripition
=
JSON
.
parse
(
res
).
list
;
}),
//查询所有店铺
$
.
get
(
'../tbcfstore/queryAll'
,
function
(
res
)
{
vm
.
store
=
JSON
.
parse
(
res
).
list
;
$
.
get
(
'../tbcfstore/queryAll'
,
function
(
res
)
{
vm
.
store
=
JSON
.
parse
(
res
).
list
;
})
//绑定事件
document
.
addEventListener
(
'load'
,
(()
=>
{
document
.
addEventListener
(
'load'
,
(()
=>
{
//diybutton 订单发货(代购)
$
(
'#jqGrid'
).
on
(
'click'
,
'.diybutton'
,
e
=>
{
$
(
'#jqGrid'
).
on
(
'click'
,
'.diybutton'
,
e
=>
{
vm
.
getDelivery
(
$
(
e
.
target
).
parent
().
parent
().
attr
(
'id'
))
return
false
})
//'delbutton' 删除订单(伪删除)
$
(
'#jqGrid'
).
on
(
'click'
,
'.delbutton'
,
e
=>
{
$
(
'#jqGrid'
).
on
(
'click'
,
'.delbutton'
,
e
=>
{
vm
.
del
(
$
(
e
.
target
).
parent
().
parent
().
attr
(
'id'
))
return
false
})
//'waitpaybutton' 等待支付的订单详情
$
(
'#jqGrid'
).
on
(
'click'
,
'.orderdescbutton'
,
e
=>
{
$
(
'#jqGrid'
).
on
(
'click'
,
'.orderdescbutton'
,
e
=>
{
//获取订单ID及订单状态
let
orderStatus
$
(
e
.
target
).
parent
().
siblings
().
each
((
index
,
item
)
=>
{
if
(
$
(
item
).
attr
(
'aria-describedby'
)
===
'jqGrid_orderStatus'
)
{
$
(
e
.
target
).
parent
().
siblings
().
each
((
index
,
item
)
=>
{
if
(
$
(
item
).
attr
(
'aria-describedby'
)
===
'jqGrid_orderStatus'
)
{
orderStatus
=
$
(
item
).
attr
(
'title'
)
vm
.
orderDesc
(
$
(
e
.
target
).
parent
().
parent
().
attr
(
'id'
),
orderStatus
)
vm
.
orderDesc
(
$
(
e
.
target
).
parent
().
parent
().
attr
(
'id'
),
orderStatus
)
}
})
return
false
})
//'closeOrder' 关闭订单(修改订单状态)
$
(
'#jqGrid'
).
on
(
'click'
,
'.closeOrder'
,
e
=>
{
$
(
'#jqGrid'
).
on
(
'click'
,
'.closeOrder'
,
e
=>
{
vm
.
closeOrder
(
$
(
e
.
target
).
parent
().
parent
().
attr
(
'id'
))
return
false
})
...
...
@@ -109,13 +117,12 @@ $(function () {
});
function
imgShow
(
itemImg
)
{
for
(
var
i
=
0
;
i
<
itemImg
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
itemImg
.
length
;
i
++
)
{
//window.location.href=itemImg;
}
}
let
vm
=
new
Vue
({
el
:
'#rrapp'
,
data
:
{
...
...
@@ -128,15 +135,15 @@ let vm = new Vue({
//代购信息
agentVisible
:
false
,
//备注订单
memoOrderVisible
:
false
,
memoOrderVisible
:
false
,
//待付款
waitPay
:
false
,
waitPay
:
false
,
//待发货
waitShip
:
false
,
waitShip
:
false
,
//已发货
sendShip
:
false
,
sendShip
:
false
,
//交易成功
tranSuccessful
:
false
,
tranSuccessful
:
false
,
//订单关闭
orderClose
:
false
,
...
...
@@ -145,7 +152,7 @@ let vm = new Vue({
tbCfOrderLists
:
[],
//订单
tbCfOrderList
:
{},
deliveryOrderList
:[],
deliveryOrderList
:
[],
//代购状态(物流状态)
deliveryFlagOptions
:
[{
value
:
'0'
,
...
...
@@ -163,35 +170,37 @@ let vm = new Vue({
value
:
'50'
,
label
:
'买家已签收'
}],
orderStatusOptions
:[{
value
:
'20'
,
label
:
"已付款"
},{
value
:
'10'
,
label
:
"未付款"
},{
value
:
'40'
,
label
:
"已发货"
},{
value
:
'50'
,
label
:
"交易成功"
},{
value
:
'60'
,
label
:
"交易关闭"
payStatusOptions
:
[{
value
:
'20'
,
label
:
"已支付"
},
{
value
:
'10'
,
label
:
"未支付"
}],
orderStatusOptions
:
[
{
value
:
'40'
,
label
:
"已发货"
},
{
value
:
'50'
,
label
:
"交易成功"
},
{
value
:
'60'
,
label
:
"交易关闭"
}],
deliveryFlagOptions
:
[{
value
:
'0'
,
label
:
'待采购'
},{
},
{
value
:
'10'
,
label
:
'已代购'
},{
},
{
value
:
'20'
,
label
:
'已到达中国仓'
},{
},
{
value
:
'40'
,
label
:
'已到达非洲仓'
},{
},
{
value
:
'50'
,
label
:
'买家已签收'
}],
...
...
@@ -213,12 +222,12 @@ let vm = new Vue({
//代购平台
platformName
:
''
},
memoOrder
:{
orderId
:
''
,
remarkInfo
:
''
,
updateTime
:
''
memoOrder
:
{
orderId
:
''
,
remarkInfo
:
''
,
updateTime
:
''
},
formLabelWidthOfMemoOrder
:
'100px'
,
formLabelWidthOfMemoOrder
:
'100px'
,
//代购状态
deliveryFlag
:
''
,
//代购弹窗大小
...
...
@@ -230,15 +239,15 @@ let vm = new Vue({
//支付方式
payWayCode
:
''
,
//订单状态
orderStatus
:
''
,
orderStatus
:
''
,
//代购状态
deliveryFlag
:
''
,
deliveryFlag
:
''
,
deliveryName
:[],
deliveryPhone
:[],
deliveryAddress
:[],
currentStatus
:
0
,
orderIdData
:[],
deliveryName
:
[],
deliveryPhone
:
[],
deliveryAddress
:
[],
currentStatus
:
0
,
orderIdData
:
[],
//日期选择
pickerOptions
:
{
shortcuts
:
[{
...
...
@@ -272,17 +281,18 @@ let vm = new Vue({
{
required
:
true
,
message
:
'名称不能为空'
,
trigger
:
'blur'
}
]
},
payStatus
:
''
,
//订单ID
orderId
:
''
,
//订单号
orderNo
:
''
,
//用户名
userName
:
''
,
userName
:
''
,
value
:
''
,
//支付方式集合
payWayCodeList
:
[],
basicData
:[],
basicData
:
[],
//订单基本信息
basicInfoColumns
:
[
{
...
...
@@ -302,22 +312,22 @@ let vm = new Vue({
{
type
:
'用户名称'
,
data
:
18
},{
},
{
type
:
'自动确定收货时间'
,
data
:
18
},{
},
{
type
:
'订单来源'
,
data
:
18
},{
},
{
type
:
'订单地区'
,
data
:
18
},{
},
{
type
:
'交易流水号'
,
data
:
18
},{
},
{
type
:
'支付方式'
,
data
:
18
},{
},
{
type
:
'活动信息'
,
data
:
18
}
...
...
@@ -390,7 +400,7 @@ let vm = new Vue({
num
:
'124124'
,
price
:
'124124'
,
link
:
'124124'
,
deliveryflag
:
'12121'
,
deliveryflag
:
'12121'
,
logisticno
:
'124124'
,
}
],
...
...
@@ -431,61 +441,61 @@ let vm = new Vue({
constnum
:
1
,
},
],
memoColumns
:[
memoColumns
:
[
{
title
:
'内容'
,
key
:
'memoname'
}
],
memoData
:[
memoData
:
[
{
memoname
:
'商品没有库存'
,
}
],
/* operationColumns: [
{
title: '操作者',
key: 'operationname'
},
{
title: '操作时间',
key: 'operationtime'
},
{
title: '订单状态',
key: 'orderstatus'
},
{
title: '付款状态',
key: 'paymentstatus'
},
{
title: '发货状态',
key: 'DeliverStatus'
},
{
title: '备注',
key: 'remark'
},
],
operationData: [
{
operationname: '1',
operationtime: '1',
orderstatus: '1',
paymentstatus: '1',
DeliverStatus: '1',
remark: '1',
}
],*/
/* operationColumns: [
{
title: '操作者',
key: 'operationname'
},
{
title: '操作时间',
key: 'operationtime'
},
{
title: '订单状态',
key: 'orderstatus'
},
{
title: '付款状态',
key: 'paymentstatus'
},
{
title: '发货状态',
key: 'DeliverStatus'
},
{
title: '备注',
key: 'remark'
},
],
operationData: [
{
operationname: '1',
operationtime: '1',
orderstatus: '1',
paymentstatus: '1',
DeliverStatus: '1',
remark: '1',
}
],*/
orderBasicVo
:{},
orderBasicVo
:
{},
},
methods
:
{
//前往商品链接 (link)
toProductLink
(
link
){
window
.
open
(
link
,
'_blank'
)
toProductLink
(
link
)
{
window
.
open
(
link
,
'_blank'
)
},
queryAll
:
function
()
{
vm
.
reload
();
...
...
@@ -494,13 +504,13 @@ let vm = new Vue({
alert
(
'click on item '
+
value
);
},
getDelivery
:
function
(
e
)
{
let
orderId
=
e
;
let
orderId
=
e
;
vm
.
showList
=
false
;
vm
.
showOrderDesc
=
false
;
vm
.
showLists
=
true
;
vm
.
getInfo
(
orderId
);
},
getDeliverys
:
function
(
orderId
)
{
getDeliverys
:
function
(
orderId
)
{
vm
.
showList
=
false
;
vm
.
showOrderDesc
=
false
;
vm
.
showLists
=
true
;
...
...
@@ -513,20 +523,20 @@ let vm = new Vue({
async
:
true
,
successCallback
:
function
(
r
)
{
vm
.
tbCfOrderLists
=
r
.
page
.
list
;
vm
.
deliveryName
=
r
.
page
.
list
[
0
].
deliveryName
;
vm
.
deliveryPhone
=
r
.
page
.
list
[
0
].
deliveryPhone
;
vm
.
deliveryAddress
=
r
.
page
.
list
[
0
].
deliveryAddress
;
vm
.
tbCfOrderLists
.
map
(
item
=>
{
if
(
item
.
deliveryFlag
===
0
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'未发货(未代购)'
)
}
else
if
(
item
.
deliveryFlag
===
10
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已发货(已代购)'
)
}
else
if
(
item
.
deliveryFlag
===
20
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已到达中国仓'
)
}
else
if
(
item
.
deliveryFlag
===
40
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已到达非洲仓'
)
}
else
if
(
item
.
deliveryFlag
===
50
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'买家已签收(交易成功)'
)
vm
.
deliveryName
=
r
.
page
.
list
[
0
].
deliveryName
;
vm
.
deliveryPhone
=
r
.
page
.
list
[
0
].
deliveryPhone
;
vm
.
deliveryAddress
=
r
.
page
.
list
[
0
].
deliveryAddress
;
vm
.
tbCfOrderLists
.
map
(
item
=>
{
if
(
item
.
deliveryFlag
===
0
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'未发货(未代购)'
)
}
else
if
(
item
.
deliveryFlag
===
10
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已发货(已代购)'
)
}
else
if
(
item
.
deliveryFlag
===
20
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已到达中国仓'
)
}
else
if
(
item
.
deliveryFlag
===
40
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已到达非洲仓'
)
}
else
if
(
item
.
deliveryFlag
===
50
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'买家已签收(交易成功)'
)
}
})
}
...
...
@@ -634,13 +644,13 @@ let vm = new Vue({
});
},
//备注订单
showMemoOrder
:
function
(
orderId
)
{
vm
.
memoOrderVisible
=
true
;
showMemoOrder
:
function
(
orderId
)
{
vm
.
memoOrderVisible
=
true
;
vm
.
memoOrder
.
orderId
=
orderId
;
vm
.
getMemoOrder
(
orderId
);
},
//获取订单备注信息
getMemoOrder
:
function
(
orderId
)
{
getMemoOrder
:
function
(
orderId
)
{
Ajax
.
request
({
url
:
"../tbcforder/memoOrder/"
+
orderId
,
async
:
true
,
...
...
@@ -659,30 +669,30 @@ let vm = new Vue({
});
},
//修改或新增订单备注
saveOrUpdatemMemoOrder
:
function
(){
let
that
=
this
;
Ajax
.
request
({
url
:
"../tbcforder/memoOrder/"
,
params
:
JSON
.
stringify
(
vm
.
memoOrder
),
type
:
"post"
,
dataType
:
"json"
,
async
:
true
,
contentType
:
'application/json'
,
successCallback
:
function
(
r
)
{
if
(
r
.
result
==
"1"
)
{
vm
.
memoOrderVisible
=
false
;
layer
.
msg
(
"提交成功"
,
{
time
:
2000
//2秒关闭(如果不配置,默认是3秒)
});
that
.
reloadMemoOrder
(
vm
.
memoOrder
.
orderId
);
}
else
{
alert
(
"提交失败"
);
}
saveOrUpdatemMemoOrder
:
function
()
{
let
that
=
this
;
Ajax
.
request
({
url
:
"../tbcforder/memoOrder/"
,
params
:
JSON
.
stringify
(
vm
.
memoOrder
),
type
:
"post"
,
dataType
:
"json"
,
async
:
true
,
contentType
:
'application/json'
,
successCallback
:
function
(
r
)
{
if
(
r
.
result
==
"1"
)
{
vm
.
memoOrderVisible
=
false
;
layer
.
msg
(
"提交成功"
,
{
time
:
2000
//2秒关闭(如果不配置,默认是3秒)
});
that
.
reloadMemoOrder
(
vm
.
memoOrder
.
orderId
);
}
else
{
alert
(
"提交失败"
);
}
});
}
});
},
//关闭订单
closeOrder
:
function
(
e
)
{
closeOrder
:
function
(
e
)
{
let
orderId
=
e
;
if
(
orderId
==
null
)
{
return
;
...
...
@@ -704,111 +714,111 @@ let vm = new Vue({
//订单详情
orderDesc
:
function
(
e
)
{
vm
.
showList
=
false
;
vm
.
showOrderDesc
=
true
;
let
orderId
=
e
;
vm
.
showOrderDesc
=
true
;
let
orderId
=
e
;
vm
.
getOderDescInfo
(
orderId
)
},
//根据订单ID获取订单详情
getOderDescInfo
:
function
(
orderId
)
{
getOderDescInfo
:
function
(
orderId
)
{
Ajax
.
request
({
url
:
"../tbcforder/orderBasic/"
+
orderId
,
async
:
true
,
successCallback
:
function
(
r
)
{
vm
.
basicData
=
r
.
orderBasicVo
.
orderTime
;
vm
.
memoData
[
0
].
memoname
=
r
.
orderBasicVo
.
remarkInfo
;
vm
.
deliveryName
=
r
.
orderBasicVo
.
deliveryName
;
vm
.
deliveryPhone
=
r
.
orderBasicVo
.
deliveryPhone
;
vm
.
deliveryAddress
=
r
.
orderBasicVo
.
deliveryAddress
;
vm
.
orderIdData
=
r
.
orderBasicVo
.
orderId
;
vm
.
currentStatus
=
[];
if
(
r
.
orderBasicVo
.
orderStatus
==
10
)
{
vm
.
currentStatus
=
0
;
vm
.
waitPay
=
true
;
vm
.
waitShip
=
false
;
vm
.
sendShip
=
false
;
vm
.
tranSuccessful
=
false
;
vm
.
orderClose
=
false
;
}
else
if
(
r
.
orderBasicVo
.
orderStatus
==
20
)
{
vm
.
currentStatus
=
1
;
vm
.
waitPay
=
false
;
vm
.
waitShip
=
true
;
vm
.
sendShip
=
false
;
vm
.
tranSuccessful
=
false
;
vm
.
orderClose
=
false
;
}
else
if
(
r
.
orderBasicVo
.
orderStatus
==
40
)
{
vm
.
currentStatus
=
2
;
vm
.
waitPay
=
false
;
vm
.
waitShip
=
false
;
vm
.
sendShip
=
true
;
vm
.
tranSuccessful
=
false
;
vm
.
orderClose
=
false
;
}
else
if
(
r
.
orderBasicVo
.
orderStatus
==
50
)
{
vm
.
currentStatus
=
3
;
vm
.
waitPay
=
false
;
vm
.
waitShip
=
false
;
vm
.
sendShip
=
false
;
vm
.
tranSuccessful
=
true
;
vm
.
orderClose
=
false
;
}
else
if
(
r
.
orderBasicVo
.
orderStatus
==
60
)
{
vm
.
currentStatus
=
0
;
vm
.
waitPay
=
false
;
vm
.
waitShip
=
false
;
vm
.
sendShip
=
false
;
vm
.
tranSuccessful
=
false
;
vm
.
orderClose
=
true
;
vm
.
basicData
=
r
.
orderBasicVo
.
orderTime
;
vm
.
memoData
[
0
].
memoname
=
r
.
orderBasicVo
.
remarkInfo
;
vm
.
deliveryName
=
r
.
orderBasicVo
.
deliveryName
;
vm
.
deliveryPhone
=
r
.
orderBasicVo
.
deliveryPhone
;
vm
.
deliveryAddress
=
r
.
orderBasicVo
.
deliveryAddress
;
vm
.
orderIdData
=
r
.
orderBasicVo
.
orderId
;
vm
.
currentStatus
=
[];
if
(
r
.
orderBasicVo
.
orderStatus
==
10
)
{
vm
.
currentStatus
=
0
;
vm
.
waitPay
=
true
;
vm
.
waitShip
=
false
;
vm
.
sendShip
=
false
;
vm
.
tranSuccessful
=
false
;
vm
.
orderClose
=
false
;
}
else
if
(
r
.
orderBasicVo
.
orderStatus
==
20
)
{
vm
.
currentStatus
=
1
;
vm
.
waitPay
=
false
;
vm
.
waitShip
=
true
;
vm
.
sendShip
=
false
;
vm
.
tranSuccessful
=
false
;
vm
.
orderClose
=
false
;
}
else
if
(
r
.
orderBasicVo
.
orderStatus
==
40
)
{
vm
.
currentStatus
=
2
;
vm
.
waitPay
=
false
;
vm
.
waitShip
=
false
;
vm
.
sendShip
=
true
;
vm
.
tranSuccessful
=
false
;
vm
.
orderClose
=
false
;
}
else
if
(
r
.
orderBasicVo
.
orderStatus
==
50
)
{
vm
.
currentStatus
=
3
;
vm
.
waitPay
=
false
;
vm
.
waitShip
=
false
;
vm
.
sendShip
=
false
;
vm
.
tranSuccessful
=
true
;
vm
.
orderClose
=
false
;
}
else
if
(
r
.
orderBasicVo
.
orderStatus
==
60
)
{
vm
.
currentStatus
=
0
;
vm
.
waitPay
=
false
;
vm
.
waitShip
=
false
;
vm
.
sendShip
=
false
;
vm
.
tranSuccessful
=
false
;
vm
.
orderClose
=
true
;
}
vm
.
basicInfoData
[
0
].
data
=
r
.
orderBasicVo
.
orderNo
;
vm
.
basicInfoData
[
1
].
data
=
r
.
orderBasicVo
.
userName
;
vm
.
basicInfoData
[
2
].
data
=
r
.
orderBasicVo
.
atcTime
;
vm
.
basicInfoData
[
3
].
data
=
r
.
orderBasicVo
.
source
;
vm
.
basicInfoData
[
4
].
data
=
r
.
orderBasicVo
.
country
;
vm
.
basicInfoData
[
5
].
data
=
r
.
orderBasicVo
.
payId
;
vm
.
basicInfoData
[
6
].
data
=
r
.
orderBasicVo
.
payWayCode
;
vm
.
basicInfoData
[
7
].
data
=
r
.
orderBasicVo
.
couponTitle
;
vm
.
recipientsData
[
0
].
recipients
=
r
.
orderBasicVo
.
deliveryName
;
vm
.
recipientsData
[
0
].
phone
=
r
.
orderBasicVo
.
deliveryPhone
vm
.
recipientsData
[
0
].
email
=
r
.
orderBasicVo
.
email
;
vm
.
recipientsData
[
0
].
address
=
r
.
orderBasicVo
.
deliveryAddress
;
vm
.
deliveryOrderList
=
r
.
orderBasicVo
.
deliveryOrderList
;
vm
.
deliveryOrderList
.
map
(
item
=>
{
if
(
item
.
deliveryFlag
===
0
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'未发货(未代购)'
)
}
else
if
(
item
.
deliveryFlag
===
10
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已发货(已代购)'
)
}
else
if
(
item
.
deliveryFlag
===
20
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已到达中国仓'
)
}
else
if
(
item
.
deliveryFlag
===
40
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已到达非洲仓'
)
}
else
if
(
item
.
deliveryFlag
===
50
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'买家已签收(交易成功)'
)
vm
.
basicInfoData
[
0
].
data
=
r
.
orderBasicVo
.
orderNo
;
vm
.
basicInfoData
[
1
].
data
=
r
.
orderBasicVo
.
userName
;
vm
.
basicInfoData
[
2
].
data
=
r
.
orderBasicVo
.
atcTime
;
vm
.
basicInfoData
[
3
].
data
=
r
.
orderBasicVo
.
source
;
vm
.
basicInfoData
[
4
].
data
=
r
.
orderBasicVo
.
country
;
vm
.
basicInfoData
[
5
].
data
=
r
.
orderBasicVo
.
payId
;
vm
.
basicInfoData
[
6
].
data
=
r
.
orderBasicVo
.
payWayCode
;
vm
.
basicInfoData
[
7
].
data
=
r
.
orderBasicVo
.
couponTitle
;
vm
.
recipientsData
[
0
].
recipients
=
r
.
orderBasicVo
.
deliveryName
;
vm
.
recipientsData
[
0
].
phone
=
r
.
orderBasicVo
.
deliveryPhone
vm
.
recipientsData
[
0
].
email
=
r
.
orderBasicVo
.
email
;
vm
.
recipientsData
[
0
].
address
=
r
.
orderBasicVo
.
deliveryAddress
;
vm
.
deliveryOrderList
=
r
.
orderBasicVo
.
deliveryOrderList
;
vm
.
deliveryOrderList
.
map
(
item
=>
{
if
(
item
.
deliveryFlag
===
0
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'未发货(未代购)'
)
}
else
if
(
item
.
deliveryFlag
===
10
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已发货(已代购)'
)
}
else
if
(
item
.
deliveryFlag
===
20
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已到达中国仓'
)
}
else
if
(
item
.
deliveryFlag
===
40
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'已到达非洲仓'
)
}
else
if
(
item
.
deliveryFlag
===
50
)
{
vm
.
$set
(
item
,
'deliveryFlag'
,
'买家已签收(交易成功)'
)
}
})
vm
.
costData
[
0
].
constnum
=
r
.
orderBasicVo
.
realityPay
;
vm
.
costData
[
1
].
constnum
=
r
.
orderBasicVo
.
expressCost
;
vm
.
costData
[
2
].
constnum
=
r
.
orderBasicVo
.
tax
;
vm
.
costData
[
3
].
constnum
=
r
.
orderBasicVo
.
fee
;
vm
.
costData
[
4
].
constnum
=
r
.
orderBasicVo
.
couponId
;
vm
.
costData
[
6
].
constnum
=
r
.
orderBasicVo
.
couponTitle
;
vm
.
costData
[
7
].
constnum
=
r
.
orderBasicVo
.
realityPay
;
vm
.
costData
[
0
].
constnum
=
r
.
orderBasicVo
.
realityPay
;
vm
.
costData
[
1
].
constnum
=
r
.
orderBasicVo
.
expressCost
;
vm
.
costData
[
2
].
constnum
=
r
.
orderBasicVo
.
tax
;
vm
.
costData
[
3
].
constnum
=
r
.
orderBasicVo
.
fee
;
vm
.
costData
[
4
].
constnum
=
r
.
orderBasicVo
.
couponId
;
vm
.
costData
[
6
].
constnum
=
r
.
orderBasicVo
.
couponTitle
;
vm
.
costData
[
7
].
constnum
=
r
.
orderBasicVo
.
realityPay
;
}
});
},
//重新加载订单详情
reloadOrder
:
function
(
event
)
{
vm
.
showList
=
true
;
vm
.
showOrderDesc
=
false
;
vm
.
showOrderDesc
=
false
;
vm
.
handleReset
(
'formValidate'
);
},
//弃用
/* reloadThisOrder: function (orderId) {
let e=orderId;
vm.showOrderDesc = true;
vm.showLists=false;
vm.orderDesc(e);
vm.handleReset('formValidate');
},*/
/* reloadThisOrder: function (orderId) {
let e=orderId;
vm.showOrderDesc = true;
vm.showLists=false;
vm.orderDesc(e);
vm.handleReset('formValidate');
},*/
//重新加载备注信息
reloadMemoOrder
:
function
(
orderId
)
{
if
(
orderId
==
null
)
{
...
...
@@ -824,17 +834,18 @@ let vm = new Vue({
},
reload
:
function
(
event
)
{
vm
.
showList
=
true
;
vm
.
showOrderDesc
=
false
;
vm
.
agentVisible
=
false
;
vm
.
showLists
=
false
;
vm
.
waitPay
=
false
;
vm
.
waitShip
=
false
;
vm
.
showOrderDesc
=
false
;
vm
.
agentVisible
=
false
;
vm
.
showLists
=
false
;
vm
.
waitPay
=
false
;
vm
.
waitShip
=
false
;
let
start
=
vm
.
value
[
0
]
||
null
;
let
end
=
vm
.
value
[
1
]
||
null
;
let
payWayCode
=
vm
.
payWayCode
;
let
deliveryFlag
=
vm
.
deliveryFlag
;
let
userName
=
vm
.
userName
;
let
orderStatus
=
vm
.
orderStatus
;
let
userName
=
vm
.
userName
;
let
orderStatus
=
vm
.
orderStatus
;
let
payStatus
=
vm
.
payStatus
;
let
page
=
$
(
"#jqGrid"
).
jqGrid
(
'getGridParam'
,
'page'
);
$
(
"#jqGrid"
).
jqGrid
(
'setGridParam'
,
{
postData
:
{
...
...
@@ -843,8 +854,9 @@ let vm = new Vue({
'end'
:
end
,
'payWayCode'
:
payWayCode
,
'deliveryFlag'
:
deliveryFlag
,
'userName'
:
userName
,
'orderStatus'
:
orderStatus
'userName'
:
userName
,
'orderStatus'
:
orderStatus
,
'payStatus'
:
payStatus
},
page
:
page
}).
trigger
(
"reloadGrid"
);
...
...
@@ -856,8 +868,9 @@ let vm = new Vue({
vm
.
value
=
''
;
vm
.
payWayCode
=
''
;
vm
.
expressStatus
=
''
;
vm
.
userName
=
''
;
vm
.
orderStatus
=
''
;
vm
.
userName
=
''
;
vm
.
orderStatus
=
''
;
vm
.
payStatus
=
''
;
vm
.
reload
();
},
handleSubmit
:
function
(
name
)
{
...
...
@@ -871,7 +884,7 @@ let vm = new Vue({
}
});
function
showDefaultImg
(
img
){
function
showDefaultImg
(
img
)
{
img
.
src
=
"http://www.luolj.club/images/afrishop20190103.png"
;
//不循环执行
img
.
onerror
=
null
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论