Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
3199d9a0
提交
3199d9a0
编写于
7月 02, 2021
作者:
minghao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feature: 增加修改物流单号功能
上级
88a695c9
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
33 行增加
和
0 行删除
+33
-0
order-detail.vue
src/views/goods/order-detail.vue
+32
-0
order-manage.vue
src/views/goods/order-manage.vue
+1
-0
未找到文件。
src/views/goods/order-detail.vue
浏览文件 @
3199d9a0
...
@@ -29,6 +29,9 @@
...
@@ -29,6 +29,9 @@
<div
v-if=
"storeType == 1"
>
<div
v-if=
"storeType == 1"
>
<p>
物流公司:
{{
orderDetailData
.
expressName
}}
</p>
<p>
物流公司:
{{
orderDetailData
.
expressName
}}
</p>
<p>
快递单号:
{{
orderDetailData
.
expressNo
}}
</p>
<p>
快递单号:
{{
orderDetailData
.
expressNo
}}
</p>
<el-button
type=
"text"
@
click=
"copyTxt"
>
复制
</el-button>
<el-button
type=
"text"
@
click=
"changeExpressNo"
>
修改物流单号
</el-button>
<input
type=
"text"
id=
"copyInput"
class=
"hidden-input"
/>
</div>
</div>
<div
v-if=
"storeType == 2"
>
<div
v-if=
"storeType == 2"
>
<p>
配送员姓名:
{{
orderDetailData
.
sender
}}
</p>
<p>
配送员姓名:
{{
orderDetailData
.
sender
}}
</p>
...
@@ -209,6 +212,35 @@
...
@@ -209,6 +212,35 @@
}
}
})
})
},
},
copyTxt
()
{
let
txt
=
document
.
getElementById
(
"copyInput"
);
txt
.
value
=
this
.
logisticeInfo
;
// if (navigator.userAgent.match(/(iPhone|iPod|iPad|Mac);?/i)) {
if
(
navigator
.
userAgent
.
indexOf
(
"Safari"
)
>
-
1
&&
navigator
.
userAgent
.
indexOf
(
"Chrome"
)
<
1
)
{
var
el
=
document
.
createElement
(
'input'
);
el
.
value
=
txt
.
value
;
//要复制的内容
el
.
style
.
opacity
=
'0'
;
document
.
body
.
appendChild
(
el
);
var
editable
=
el
.
contentEditable
;
var
readOnly
=
el
.
readOnly
;
el
.
contentEditable
=
true
;
el
.
readOnly
=
false
;
const
range
=
document
.
createRange
();
range
.
selectNodeContents
(
el
);
var
sel
=
window
.
getSelection
();
sel
.
removeAllRanges
();
sel
.
addRange
(
range
);
el
.
setSelectionRange
(
0
,
999999
);
el
.
contentEditable
=
editable
;
el
.
readOnly
=
readOnly
;
var
ret
=
document
.
execCommand
(
'copy'
);
el
.
blur
();
}
else
{
txt
.
select
();
//选择对象
document
.
execCommand
(
"copy"
);
}
this
.
$message
.
success
(
'复制成功'
);
},
},
},
filters
:
{
filters
:
{
toFixed2
:
function
(
value
)
{
toFixed2
:
function
(
value
)
{
...
...
src/views/goods/order-manage.vue
浏览文件 @
3199d9a0
...
@@ -229,6 +229,7 @@
...
@@ -229,6 +229,7 @@
<i
class=
"el-icon-truck"
style=
"font-size: 18px"
></i><span
class=
"send-status"
>
已发货
</span>
<i
class=
"el-icon-truck"
style=
"font-size: 18px"
></i><span
class=
"send-status"
>
已发货
</span>
<span
class=
"view-number"
>
{{logisticeInfo}}
</span>
<span
class=
"view-number"
>
{{logisticeInfo}}
</span>
<el-button
type=
"text"
@
click=
"copyTxt"
>
复制
</el-button>
<el-button
type=
"text"
@
click=
"copyTxt"
>
复制
</el-button>
<el-button
type=
"text"
@
click=
"changeExpressNo"
>
修改物流单号
</el-button>
</div>
</div>
<input
type=
"text"
id=
"copyInput"
class=
"hidden-input"
/>
<input
type=
"text"
id=
"copyInput"
class=
"hidden-input"
/>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录