Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
c655fb09
提交
c655fb09
编写于
11月 12, 2020
作者:
alex.zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
退款对象为必填字段
上级
b3b94605
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
5 行删除
+12
-5
fetch.js
src/utils-o/fetch.js
+1
-1
fetch.js
src/utils/fetch.js
+1
-1
order-manage.vue
src/views/goods/order-manage.vue
+10
-3
未找到文件。
src/utils-o/fetch.js
浏览文件 @
c655fb09
...
@@ -56,7 +56,7 @@ service.interceptors.request.use(config => {
...
@@ -56,7 +56,7 @@ service.interceptors.request.use(config => {
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// config.headers['token'] = 'BFD804F3A3194FBBBE113962222839F6';
// config.headers['token'] = 'BFD804F3A3194FBBBE113962222839F6';
// config.headers['token'] = 'F8209898391C40A0B8DBC1ED9E157291';
// config.headers['token'] = 'F8209898391C40A0B8DBC1ED9E157291';
config
.
headers
[
'token'
]
=
'
4AA3547FCA3C49528B1429ACACA1508B
'
;
config
.
headers
[
'token'
]
=
'
00AB2FF7626D4F5FB627399EDF23F5DC
'
;
}
else
{
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
}
}
...
...
src/utils/fetch.js
浏览文件 @
c655fb09
...
@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
...
@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
}
}
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境qgit
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境qgit
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// config.headers['token'] = '
663645D26D40417AA86E5395D933E7B7
';
// config.headers['token'] = '
00AB2FF7626D4F5FB627399EDF23F5DC
';
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
}
else
{
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
...
...
src/views/goods/order-manage.vue
浏览文件 @
c655fb09
...
@@ -213,7 +213,7 @@
...
@@ -213,7 +213,7 @@
@
close=
"showTuiDialog = false"
@
close=
"showTuiDialog = false"
width=
"385px"
width=
"385px"
>
>
<el-form
ref=
"tuiForm"
:model=
"tuiForm"
label-width=
"120px"
>
<el-form
ref=
"tuiForm"
:
rules=
"rules"
:
model=
"tuiForm"
label-width=
"120px"
>
<el-form-item
label=
"退款退货方式:"
>
<el-form-item
label=
"退款退货方式:"
>
<el-select
v-model=
"tuiForm.type"
placeholder=
"请选择退货方式"
>
<el-select
v-model=
"tuiForm.type"
placeholder=
"请选择退货方式"
>
<el-option
<el-option
...
@@ -228,8 +228,8 @@
...
@@ -228,8 +228,8 @@
<el-form-item
label=
"退款金额"
prop=
"name"
>
<el-form-item
label=
"退款金额"
prop=
"name"
>
<el-input
v-model=
"tuiForm.money"
:disabled=
"true"
></el-input>
<el-input
v-model=
"tuiForm.money"
:disabled=
"true"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"退款对象"
>
<el-form-item
label=
"退款对象"
prop=
"userName"
>
<el-select
v-model=
"userType"
placeholder=
"请选择退
货
对象"
>
<el-select
v-model=
"userType"
placeholder=
"请选择退
款
对象"
>
<el-option
<el-option
v-for=
"item in userTypes"
v-for=
"item in userTypes"
:key=
"item.value"
:key=
"item.value"
...
@@ -295,6 +295,9 @@
...
@@ -295,6 +295,9 @@
orderNum
:
[
orderNum
:
[
{
required
:
true
,
message
:
'请输入快递单号'
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'请输入快递单号'
,
trigger
:
"blur"
},
],
],
userName
:
[
{
required
:
true
,
message
:
'请选择退款对象'
,
trigger
:
"blur"
},
],
},
},
showTuiDialog
:
false
,
showTuiDialog
:
false
,
tuiForm
:
{
tuiForm
:
{
...
@@ -502,6 +505,10 @@
...
@@ -502,6 +505,10 @@
this
.
showTuiDialog
=
true
;
this
.
showTuiDialog
=
true
;
},
},
confirmTui
()
{
confirmTui
()
{
if
(
this
.
userType
==
null
||
this
.
userType
==
""
)
{
this
.
$message
.
error
(
"请选择退款对象"
);
return
;
}
refundApply
({
orderId
:
this
.
tuiForm
.
order
.
id
,
userType
:
this
.
userType
}).
then
(
res
=>
{
refundApply
({
orderId
:
this
.
tuiForm
.
order
.
id
,
userType
:
this
.
userType
}).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
this
.
$message
.
success
(
'操作成功'
);
this
.
$message
.
success
(
'操作成功'
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录