Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
msjf-customized
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
msjf-customized
Commits
e21d1033
提交
e21d1033
authored
9月 23, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
区分图片路径
上级
17054904
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
46 行增加
和
27 行删除
+46
-27
order.vue
src/pages/customized/order.vue
+39
-25
queryRecord.vue
src/pages/customized/queryRecord.vue
+7
-2
没有找到文件。
src/pages/customized/order.vue
浏览文件 @
e21d1033
...
@@ -56,29 +56,32 @@
...
@@ -56,29 +56,32 @@
</view>
</view>
<uni-popup
ref=
"popup"
background-color=
"#f2f2f2"
>
<uni-popup
ref=
"popup"
background-color=
"#f2f2f2"
>
<scroll-view
v-if=
"JSON.stringify(detailData) != '[]'"
scroll-y=
"true"
style=
"height: 100vh; box-sizing: border-box; padding-bottom: 40rpx;"
>
<scroll-view
scroll-y=
"true"
style=
"height: 100vh; box-sizing: border-box; padding-bottom: 40rpx;"
>
<view
v-for=
"(item, i) in detailData"
class=
"msjf-detail"
>
<view
v-if=
"detailData.length"
>
<view
class=
"detail-list"
>
<view
v-for=
"(item, i) in detailData"
class=
"msjf-detail"
>
<view
class=
"label"
>
序列号
</view>
<view
class=
"detail-list"
>
<view
class=
"text"
>
{{
item
.
sequenceCode
}}
</view>
<view
class=
"label"
>
序列号
</view>
</view>
<view
class=
"text"
>
{{
item
.
sequenceCode
}}
</view>
<view
class=
"detail-list"
>
</view>
<view
class=
"label"
>
是否开瓶
</view>
<view
class=
"detail-list"
>
<view
class=
"text"
>
{{
item
.
ifDeCap
?
'已开瓶'
:
'未开瓶'
}}
</view>
<view
class=
"label"
>
是否开瓶
</view>
</view>
<view
class=
"text"
>
{{
item
.
ifDeCap
?
'已开瓶'
:
'未开瓶'
}}
</view>
<view
class=
"detail-list"
>
</view>
<view
class=
"label"
>
开瓶时间
</view>
<view
class=
"detail-list"
>
<view
class=
"text"
>
{{
item
.
deCapTime
}}
</view>
<view
class=
"label"
>
开瓶时间
</view>
</view>
<view
class=
"text"
>
{{
item
.
deCapTime
}}
</view>
<view
class=
"detail-list"
>
</view>
<view
class=
"label"
>
开瓶手机号
</view>
<view
class=
"detail-list"
v-if=
"detailData[0].ifDeCap"
>
<view
class=
"phone-list"
>
<view
class=
"label"
>
开瓶手机号
</view>
<view
v-for=
"phone in item.phoneList.length"
class=
"text"
>
{{
item
.
phoneList
[
phone
-
1
]
}}
</view>
<view
class=
"phone-list"
>
<view
v-for=
"phone in item.phoneList.length"
class=
"text"
>
{{
item
.
phoneList
[
phone
-
1
]
}}
</view>
</view>
</view>
</view>
</view>
</view>
<uni-load-more
status=
"no-more"
></uni-load-more>
</view>
</view>
<uni-load-more
v-else
status=
"no-more"
></uni-load-more>
</scroll-view>
</scroll-view>
<uni-load-more
v-else
status=
"no-more"
></uni-load-more>
</uni-popup>
</uni-popup>
</view>
</view>
</
template
>
</
template
>
...
@@ -86,13 +89,14 @@
...
@@ -86,13 +89,14 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
{
getMSJFList
,
getMSJFDetail
}
from
'@/services/api'
;
import
{
getMSJFList
,
getMSJFDetail
}
from
'@/services/api'
;
import
{
baseURL
}
from
'@/services/request'
;
import
headerVue
from
'@/pages/header/index.vue'
;
import
headerVue
from
'@/pages/header/index.vue'
;
let
color
=
ref
(
'#a27443'
);
let
color
=
ref
(
'#a27443'
);
// 订单数据
// 订单数据
let
orderData
=
ref
();
let
orderData
=
ref
();
let
detailData
=
ref
();
let
detailData
=
ref
(
[]
as
any
);
// let add = () => {
// let add = () => {
// num.value++;
// num.value++;
...
@@ -102,17 +106,27 @@ let detailData = ref();
...
@@ -102,17 +106,27 @@ let detailData = ref();
// if (num.value
<
1
)
return
;
// if (num.value
<
1
)
return
;
// else num.value--;
// else num.value--;
// };
// };
let
popup
=
ref
()
let
popup
=
ref
()
;
let
toggle
=
(
type
:
string
,
id
:
number
)
=>
{
let
toggle
=
(
type
:
string
,
id
:
number
)
=>
{
popup
.
value
?.
open
(
type
)
popup
.
value
?.
open
(
type
)
initMSJFDetail
(
id
)
initMSJFDetail
(
id
)
}
}
;
// 获取订单数据
// 获取订单数据
let
initMSJFList
=
async
()
=>
{
let
initMSJFList
=
async
()
=>
{
let
res
:
any
=
await
getMSJFList
();
let
res
:
any
=
await
getMSJFList
();
if
(
res
.
data
.
errno
===
0
)
orderData
.
value
=
res
.
data
.
data
.
list
;
if
(
res
.
data
.
errno
===
0
)
{
// 区分是否全路径
for
(
let
s
in
res
.
data
.
data
.
list
)
{
for
(
let
g
in
res
.
data
.
data
.
list
[
s
].
goodsList
)
{
let
picUrl
=
res
.
data
.
data
.
list
[
s
].
goodsList
[
g
].
picUrl
if
(
picUrl
.
split
(
'.'
).
length
!=
5
)
res
.
data
.
data
.
list
[
s
].
goodsList
[
g
].
picUrl
=
baseURL
+
'/wx/storage/fetch/'
+
picUrl
}
}
orderData
.
value
=
res
.
data
.
data
.
list
;
}
};
};
initMSJFList
();
initMSJFList
();
...
@@ -120,9 +134,9 @@ initMSJFList();
...
@@ -120,9 +134,9 @@ initMSJFList();
// 单个商品详情
// 单个商品详情
let
initMSJFDetail
=
async
(
id
:
any
)
=>
{
let
initMSJFDetail
=
async
(
id
:
any
)
=>
{
let
res
:
any
=
await
getMSJFDetail
({
orderGoodsId
:
id
})
let
res
:
any
=
await
getMSJFDetail
({
orderGoodsId
:
id
})
if
(
res
.
data
.
errno
===
0
)
{
if
(
res
.
data
.
errno
===
0
)
detailData
.
value
=
res
.
data
.
data
.
list
detailData
.
value
=
res
.
data
.
data
.
list
}
}
}
</
script
>
</
script
>
...
...
src/pages/customized/queryRecord.vue
浏览文件 @
e21d1033
...
@@ -9,11 +9,11 @@
...
@@ -9,11 +9,11 @@
<view
v-if=
"queryRecord != '[]'"
>
<view
v-if=
"queryRecord != '[]'"
>
<view
v-for=
"(item, i) in queryRecord"
:key=
"i"
>
<view
v-for=
"(item, i) in queryRecord"
:key=
"i"
>
<view
class=
"query-list"
>
<view
class=
"query-list"
>
<image
:src=
"
baseURL + downUrl +
item.goodsPicUrl"
mode=
"scaleToFill"
/>
<image
:src=
"item.goodsPicUrl"
mode=
"scaleToFill"
/>
<view
class=
"record"
>
<view
class=
"record"
>
<text
class=
"record-text"
>
{{
item
.
goodsName
}}
</text>
<text
class=
"record-text"
>
{{
item
.
goodsName
}}
</text>
<view
class=
"record-center"
>
<view
class=
"record-center"
>
<text
v-if=
"
'phoneAndTime' in queryRecord[i]"
>
扫码手机:
{{
'phoneAndTime'
in
queryRecord
[
i
]
?
item
.
phoneAndTime
[
0
].
phone
:
''
}}
</text>
<text
v-if=
"
item.used"
>
扫码手机:
{{
item
.
used
?
item
.
phoneAndTime
[
0
].
phone
:
''
}}
</text>
</view>
</view>
<view
class=
"record-footer"
>
<view
class=
"record-footer"
>
<text
class=
"price"
>
¥
{{
item
.
goodsPrice
}}
</text>
<text
class=
"price"
>
¥
{{
item
.
goodsPrice
}}
</text>
...
@@ -69,8 +69,13 @@ let queryRecord = ref();
...
@@ -69,8 +69,13 @@ let queryRecord = ref();
let
confirm
=
async
(
data
:
any
)
=>
{
let
confirm
=
async
(
data
:
any
)
=>
{
if
(
data
.
value
)
{
if
(
data
.
value
)
{
// MSJF-0000011
let
res
:
any
=
await
searchSnInfo
({
code
:
data
.
value
});
let
res
:
any
=
await
searchSnInfo
({
code
:
data
.
value
});
if
(
res
.
data
.
errno
==
0
)
{
if
(
res
.
data
.
errno
==
0
)
{
for
(
let
s
in
res
.
data
.
data
)
{
let
picUrl
=
res
.
data
.
data
[
s
].
goodsPicUrl
;
if
(
picUrl
.
split
(
'.'
).
length
!=
5
)
res
.
data
.
data
[
s
].
goodsPicUrl
=
baseURL
+
downUrl
+
picUrl
;
}
queryRecord
.
value
=
res
.
data
.
data
;
queryRecord
.
value
=
res
.
data
.
data
;
console
.
log
(
queryRecord
.
value
,
'查询记录'
);
console
.
log
(
queryRecord
.
value
,
'查询记录'
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论