Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
6547d0ef
提交
6547d0ef
编写于
8月 12, 2021
作者:
lyf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加立即执行按钮loading
上级
b91903c1
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
77 行增加
和
42 行删除
+77
-42
order-manage.vue
src/views/goods/order-manage.vue
+77
-42
未找到文件。
src/views/goods/order-manage.vue
浏览文件 @
6547d0ef
...
...
@@ -662,7 +662,11 @@
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"cancelExport"
>
取消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"confirmExport"
<el-button
size=
"small"
:loading=
"isLoading"
type=
"primary"
@
click=
"confirmExport"
>
确认
</el-button
>
</div>
...
...
@@ -948,9 +952,9 @@ export default {
brokerOwnerList
:
[],
showOrderNoFlag
:
false
,
LogisticsUrl
:
"https://pica-pro.oss-cn-shanghai.aliyuncs.com/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet/2021/08/1
1/20210811143152984-191c5df6
.xlsx"
,
"https://pica-pro.oss-cn-shanghai.aliyuncs.com/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet/2021/08/1
2/20210812101318239-4c4e680b
.xlsx"
,
CancelOrderUrl
:
"https://pica-pro.oss-cn-shanghai.aliyuncs.com/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet/2021/08/1
1/20210811143101795-d6363772
.xlsx"
,
"https://pica-pro.oss-cn-shanghai.aliyuncs.com/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet/2021/08/1
2/2021081210125196-5a8743b1
.xlsx"
,
timer
:
null
,
pickerOptions1
:
{
disabledDate
:
(
time
)
=>
{
...
...
@@ -968,6 +972,7 @@ export default {
errorFileUrl
:
""
,
// 失败 原因文件
errorList
:
[],
// 失败列表
},
isLoading
:
false
,
// errorFileUrl:"",
};
},
...
...
@@ -998,84 +1003,114 @@ export default {
},
// 批量更新物流操作
uploadExpress
()
{
this
.
isLoading
=
true
;
openLoading
(
this
);
uploadExpress
(
this
.
fileData
)
.
then
((
res
)
=>
{
if
(
res
&&
res
.
code
==
"000000"
)
{
closeLoading
(
this
);
this
.
getUploadExpressProgress
(
res
.
data
.
tradeBatchUploadLogId
);
this
.
getUploadExpressProgressInterval
(
res
.
data
.
tradeBatchUploadLogId
);
}
else
{
this
.
isLoading
=
false
;
this
.
$message
.
error
(
res
.
message
);
}
})
.
catch
((
err
)
=>
{
this
.
isLoading
=
false
;
closeLoading
(
this
);
});
},
// 批量取消退款操作
uploadRefund
()
{
this
.
isLoading
=
true
;
openLoading
(
this
);
uploadRefund
(
this
.
fileData
)
.
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
&&
res
.
code
==
"000000"
)
{
closeLoading
(
this
);
this
.
getUploadRefundProgress
(
res
.
data
.
tradeBatchUploadLogId
);
this
.
getUploadRefundProgress
Interval
(
res
.
data
.
tradeBatchUploadLogId
);
}
else
{
this
.
isLoading
=
false
;
this
.
$message
.
error
(
res
.
message
);
}
})
.
catch
((
err
)
=>
{
this
.
isLoading
=
false
;
closeLoading
(
this
);
});
},
// 获取物流上传进度
getUploadExpressProgress
(
id
)
{
async
getUploadExpressProgressInterval
(
id
)
{
clearInterval
(
this
.
timer
);
this
.
timer
=
setInterval
(()
=>
{
getUploadExpressProgress
(
id
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
==
"000000"
)
{
this
.
exportDialog
=
false
;
this
.
progressFlag
=
true
;
this
.
ProgressData
=
res
.
data
;
if
(
res
.
data
.
status
==
1
)
{
clearInterval
(
this
.
timer
);
setTimeout
(()
=>
{
this
.
progressFlag
=
false
;
this
.
statFlg
=
true
;
},
2000
);
}
}
else
{
this
.
$message
.
error
(
res
.
message
);
let
status
=
await
this
.
getUploadExpressProgress
(
id
);
if
(
status
==
0
)
{
console
.
log
(
"status------"
,
status
);
this
.
timer
=
setInterval
(()
=>
{
this
.
getUploadExpressProgress
(
id
);
},
2000
);
}
},
getUploadExpressProgress
(
id
)
{
return
getUploadExpressProgress
(
id
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
==
"000000"
)
{
this
.
isLoading
=
false
;
this
.
exportDialog
=
false
;
this
.
progressFlag
=
true
;
this
.
ProgressData
=
res
.
data
;
if
(
res
.
data
.
status
==
1
)
{
clearInterval
(
this
.
timer
);
setTimeout
(()
=>
{
this
.
progressFlag
=
false
;
this
.
statFlg
=
true
;
},
2000
);
}
});
},
1000
);
return
res
.
data
.
status
;
}
else
{
this
.
isLoading
=
false
;
this
.
$message
.
error
(
res
.
message
);
return
;
}
});
},
// 获取批量取消进度
getUploadRefundProgress
(
id
)
{
async
getUploadRefundProgressInterval
(
id
)
{
clearInterval
(
this
.
timer
);
this
.
timer
=
setInterval
(()
=>
{
getUploadRefundProgress
(
id
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
==
"000000"
)
{
this
.
exportDialog
=
false
;
this
.
progressFlag
=
true
;
this
.
ProgressData
=
res
.
data
;
if
(
res
.
data
.
status
==
1
)
{
clearInterval
(
this
.
timer
);
setTimeout
(()
=>
{
this
.
progressFlag
=
false
;
this
.
statFlg
=
true
;
},
2000
);
}
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
});
},
1000
);
let
status
=
await
this
.
getUploadRefundProgress
(
id
);
if
(
status
==
0
)
{
this
.
timer
=
setInterval
(()
=>
{
this
.
getUploadRefundProgress
(
id
);
},
2000
);
}
},
getUploadRefundProgress
(
id
)
{
return
getUploadRefundProgress
(
id
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
==
"000000"
)
{
this
.
exportDialog
=
false
;
this
.
progressFlag
=
true
;
this
.
ProgressData
=
res
.
data
;
this
.
isLoading
=
false
;
if
(
res
.
data
.
status
==
1
)
{
clearInterval
(
this
.
timer
);
setTimeout
(()
=>
{
this
.
progressFlag
=
false
;
this
.
statFlg
=
true
;
},
2000
);
}
return
res
.
data
.
status
;
}
else
{
this
.
isLoading
=
false
;
this
.
$message
.
error
(
res
.
message
);
return
;
}
});
},
// 取消导入物流信息
cancelExport
()
{
(
this
.
fileData
=
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录