Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
383241fb
提交
383241fb
authored
3月 30, 2020
作者:
zgy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改订单
上级
f0613cef
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
64 行增加
和
26 行删除
+64
-26
TbCfOrderController.java
...ain/java/com/platform/controller/TbCfOrderController.java
+20
-3
TbCfOrderService.java
.../src/main/java/com/platform/service/TbCfOrderService.java
+1
-1
TbCfOrderServiceImpl.java
.../java/com/platform/service/impl/TbCfOrderServiceImpl.java
+5
-2
TbCfPlatformOrderDao.xml
.../main/resources/com/platform/dao/TbCfPlatformOrderDao.xml
+2
-1
tbcfdelivery.html
...-admin/src/main/webapp/WEB-INF/page/sys/tbcfdelivery.html
+3
-3
tbcforderlist.html
...admin/src/main/webapp/WEB-INF/page/sys/tbcforderlist.html
+4
-4
tbcforderList.js
platform-admin/src/main/webapp/js/sys/tbcforderList.js
+29
-12
没有找到文件。
platform-admin/src/main/java/com/platform/controller/TbCfOrderController.java
浏览文件 @
383241fb
package
com
.
platform
.
controller
;
import
com.platform.entity.SysUserEntity
;
import
com.platform.entity.TbCfItemDetailEntity
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.entity.TbCfOrderListEntity
;
...
...
@@ -170,7 +171,23 @@ public class TbCfOrderController extends AbstractController {
// orderVo.setUserName(userName);
// r.put("data", orderVo);
// }
return
r
.
put
(
"data"
,
tbCfPlatformOrder
);
return
r
.
put
(
"data"
,
tbCfPlatformOrder
);
}
/**
* 获取当前的系统用户
*
* @return R
*/
@GetMapping
(
"/agent/user"
)
@RequiresPermissions
(
"tbcforder:info"
)
@ResponseBody
public
R
queryCurrentUser
()
{
String
user
=
getUser
().
getUserName
();
return
R
.
ok
().
put
(
"user"
,
user
);
}
/**
...
...
@@ -180,8 +197,8 @@ public class TbCfOrderController extends AbstractController {
@RequiresPermissions
(
"tbcforder:info"
)
@ResponseBody
public
R
saveOrUpdateAgentInfo
(
@RequestBody
PlatformOrderVo
platformOrderVo
)
{
int
res
=
tbCfOrderService
.
saveOrUpdateAgentInfo
(
platformOrderVo
);
return
R
.
ok
().
put
(
"result"
,
res
);
PlatformOrderVo
orderVo
=
tbCfOrderService
.
saveOrUpdateAgentInfo
(
platformOrderVo
);
return
R
.
ok
().
put
(
"result"
,
orderVo
);
}
@GetMapping
(
"/totalPay"
)
...
...
platform-admin/src/main/java/com/platform/service/TbCfOrderService.java
浏览文件 @
383241fb
...
...
@@ -90,7 +90,7 @@ public interface TbCfOrderService {
* @param tbCfPlatformOrder
* @return
*/
int
saveOrUpdateAgentInfo
(
PlatformOrderVo
tbCfPlatformOrder
);
PlatformOrderVo
saveOrUpdateAgentInfo
(
PlatformOrderVo
tbCfPlatformOrder
);
/**
* 根据订单id查询商品详情
...
...
platform-admin/src/main/java/com/platform/service/impl/TbCfOrderServiceImpl.java
浏览文件 @
383241fb
...
...
@@ -85,7 +85,7 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
}
@Override
public
int
saveOrUpdateAgentInfo
(
PlatformOrderVo
tbCfPlatformOrder
)
{
public
PlatformOrderVo
saveOrUpdateAgentInfo
(
PlatformOrderVo
tbCfPlatformOrder
)
{
//tbCfPlatformOrder 有relativeId 则就是修改
int
res
=
0
;
if
(
StringUtils
.
isNotEmpty
(
tbCfPlatformOrder
.
getRelativeId
()))
{
...
...
@@ -131,7 +131,10 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
tbCfItemOrderREntity3
.
setDeliveryTime
(
new
Date
());
tbCfItemOrderRDao
.
updateDeliveryTime
(
tbCfItemOrderREntity3
);
}
return
res
;
if
(
res
>
0
){
tbCfPlatformOrder
=
tbCfPlatformOrderDao
.
queryObject
(
tbCfPlatformOrder
.
getOrdersId
());
}
return
tbCfPlatformOrder
;
}
@Override
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfPlatformOrderDao.xml
浏览文件 @
383241fb
...
...
@@ -129,7 +129,7 @@
</set>
where relative_id = #{relativeId}
</update>-->
<update
id=
"updates"
parameterType=
"com.platform.vo.PlatformOrderVo"
>
<update
id=
"updates"
parameterType=
"com.platform.vo.PlatformOrderVo"
>
update tb_cf_platform_order p left join tb_cf_express_template e on e.template_id=p.descripition_id
left join tb_cf_item_order_r i on i.order_id=p.order_id
<set>
...
...
@@ -160,6 +160,7 @@
<!--获取订单的代购信息-->
<select
id=
"getAgentInfo"
resultType=
"com.platform.vo.PlatformOrderVo"
>
select
o.order_id,
p.relative_id,
i.order_item_id ordersId,
p.p_order_id,
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfdelivery.html
浏览文件 @
383241fb
...
...
@@ -48,13 +48,13 @@
<el-form-item
label=
"代购人"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"agentInfo.userName"
disabled=
"true"
></el-input>
</el-form-item>
<el-form-item
label=
"代购平台名称"
:label-width=
"formLabelWidth"
>
<
!--<
el-form-item label="代购平台名称" :label-width="formLabelWidth">
<i-select v-model="agentInfo.platformName" >
<i-option
v-for="(el,i) in store" :key = 'el.platformCode'
:value="el.platformCode">{{el.platformName}}</i-option>
</i-select>
</el-form-item>
</el-form-item>
-->
<el-form-item
label=
"原网站订单号"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"agentInfo.pOrderId"
></el-input>
</el-form-item>
...
...
@@ -65,7 +65,7 @@
:value=
"el.templateId"
>
{{el.templateTitle}}
</i-option>
</i-select>
</el-form-item>
<el-form-item
label=
"
实际付款
"
:label-width=
"formLabelWidth"
>
<el-form-item
label=
"
成本价
"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"agentInfo.realityPay"
></el-input>
</el-form-item>
<el-form-item
label=
"快递单号"
:label-width=
"formLabelWidth"
>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcforderlist.html
浏览文件 @
383241fb
...
...
@@ -337,7 +337,7 @@
</td>
<td>
{{item.deliveryFlag}}
</td>
<td>
{{item.pExpressNumber}}
</td>
<td><i-button
@
click=
"showAgent(item.ordersId)"
>
代购
</i-button></td>
<td><i-button
@
click=
"showAgent(item.ordersId
,item.orderId
)"
>
代购
</i-button></td>
</tr>
</table>
</div>
...
...
@@ -359,13 +359,13 @@
<el-form-item
label=
"代购人"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"agentInfo.userName"
disabled=
"true"
></el-input>
</el-form-item>
<el-form-item
label=
"代购平台名称"
:label-width=
"formLabelWidth"
>
<!--
<el-form-item label="代购平台名称" :label-width="formLabelWidth">
<i-select v-model="agentInfo.platformName" >
<i-option
v-for="(el,i) in store" :key = 'el.platformCode'
:value="el.platformCode">{{el.platformName}}</i-option>
</i-select>
</el-form-item>
</el-form-item>
-->
<el-form-item
label=
"原网站订单号"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"agentInfo.pOrderId"
></el-input>
</el-form-item>
...
...
@@ -376,7 +376,7 @@
:value=
"el.templateId"
>
{{el.templateTitle}}
</i-option>
</i-select>
</el-form-item>
<el-form-item
label=
"
实际付款
"
:label-width=
"formLabelWidth"
>
<el-form-item
label=
"
成本价
"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"agentInfo.realityPay"
></el-input>
</el-form-item>
<el-form-item
label=
"快递单号"
:label-width=
"formLabelWidth"
>
...
...
platform-admin/src/main/webapp/js/sys/tbcforderList.js
浏览文件 @
383241fb
...
...
@@ -544,9 +544,10 @@ let vm = new Vue({
},
//获取代购信息
showAgent
:
function
(
ordersId
)
{
showAgent
:
function
(
ordersId
,
orderId
)
{
vm
.
agentVisible
=
true
;
vm
.
agentInfo
.
ordersId
=
ordersId
;
vm
.
agentInfo
.
orderId
=
orderId
;
vm
.
getAgentInfo
(
ordersId
);
},
/*获取订单的代购信息*/
...
...
@@ -559,17 +560,18 @@ let vm = new Vue({
successCallback
:
function
(
r
)
{
if
(
!!
r
.
data
)
{
vm
.
agentInfo
=
r
.
data
;
console
.
log
(
vm
.
agentInfo
)
}
else
{
vm
.
agentInfo
=
{
ordersId
:
ordersId
,
//代购人
userName
:
''
,
userName
:
vm
.
agentInfo
.
userName
,
//商品品名
descripitionId
:
''
,
//快递单号
pExpressNumber
:
''
,
//订单号
orderId
:
''
,
orderId
:
vm
.
agentInfo
.
orderId
,
//实际付款
realityPay
:
''
,
//原网站订单号
...
...
@@ -580,6 +582,18 @@ let vm = new Vue({
}
}
});
Ajax
.
request
({
url
:
"../tbcforder/agent/user"
,
type
:
"get"
,
dataType
:
"json"
,
contentType
:
'application/json'
,
successCallback
:
function
(
r
)
{
if
(
!!
r
)
{
vm
.
agentInfo
.
userName
=
r
.
user
;
}
}
});
},
//新增或者修改代购信息
saveOrUpdateAgentInfo
:
function
(
orderId
)
{
...
...
@@ -592,16 +606,18 @@ let vm = new Vue({
dataType
:
"json"
,
contentType
:
'application/json'
,
successCallback
:
function
(
r
)
{
if
(
r
.
result
==
"1"
)
{
vm
.
agentVisible
=
false
;
layer
.
msg
(
"保存成功"
,
{
time
:
2000
//2秒关闭(如果不配置,默认是3秒)
});
that
.
reloadDelivery
(
orderId
);
}
else
{
alert
(
"保存失败"
);
// if (r.result == "1") {
vm
.
agentVisible
=
false
;
layer
.
msg
(
"保存成功"
,
{
time
:
2000
//2秒关闭(如果不配置,默认是3秒)
});
let
order_id
=
vm
.
agentInfo
.
orderId
if
(
!!
order_id
)
{
that
.
reloadDelivery
(
order_id
);
}
// } else {
// alert("保存失败");
// }
}
});
}
else
{
...
...
@@ -810,6 +826,7 @@ let vm = new Vue({
vm
.
showList
=
true
;
vm
.
showOrderDesc
=
false
;
vm
.
handleReset
(
'formValidate'
);
vm
.
reloadSearch
();
},
//弃用
/* reloadThisOrder: function (orderId) {
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论