Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-pda-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-pda-master
Commits
873c6c7f
Commit
873c6c7f
authored
Nov 09, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 修改订单详情显示
parent
8f646dfc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
21 deletions
+50
-21
index.vue
src/components/order-detail-modal/index.vue
+31
-2
package.vue
src/pages/mergePkg/package.vue
+18
-18
config.js
src/util/config.js
+1
-1
No files found.
src/components/order-detail-modal/index.vue
View file @
873c6c7f
...
...
@@ -27,7 +27,7 @@
</view>
<view
class=
"cu-form-group"
>
<view
class=
"title"
>
{{
$t
(
'
入仓时间
'
)
}}
</view>
<view
class=
"content"
>
{{
orderDetail
.
rucangTime
|
formatDate
}}
</view>
<view
class=
"content"
>
{{
formatDate
(
orderDetail
.
rucangTime
)
}}
</view>
</view>
<view
class=
"cu-form-group"
>
<view
class=
"title"
>
{{
$t
(
'
路线
'
)
}}
</view>
...
...
@@ -58,7 +58,7 @@
<
/view
>
<
/view
>
<
view
>
<
!--
<
view
v
-
if
=
"
v.attrNameList
"
>
{{
$t
(
'
特性
'
)
}}
:
{{
v
.
attrNameList
.
join
(
'
,
'
)
}}
<
/view> --
>
<
view
>
{{
$t
(
'
特性
'
)
}}
:
{{
getProductNamesByIds
(
v
.
warehouseInInfoVO
?
v
.
warehouseInProdAttrIds
:
v
.
prodAttrIds
)
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
...
@@ -72,6 +72,8 @@
<
/template
>
<
script
>
import
{
getProductAttrList
}
from
'
@/api/system
'
import
util
from
"
@/util/util.js
"
;
export
default
{
name
:
'
orderDetailModal
'
,
...
...
@@ -85,10 +87,37 @@ export default {
default
:
true
}
}
,
computed
:
{
isChinese
(){
return
uni
.
getLocale
()
===
'
zh-Hans
'
}
}
,
data
()
{
return
{
productAttrList
:
[],
}
}
,
created
()
{
getProductAttrList
().
then
(
data
=>
{
this
.
productAttrList
=
data
}
)
}
,
methods
:
{
formatDate
:
util
.
formatDate
,
showOrderDetail
(
index
)
{
this
.
$emit
(
'
close
'
,
false
);
}
,
getProductNamesByIds
(
ids
){
const
result
=
[]
ids
?.
split
(
'
,
'
).
forEach
(
e
=>
{
this
.
productAttrList
.
forEach
(
f
=>
{
if
(
parseInt
(
e
)
===
f
.
id
)
{
result
.
push
(
this
.
isChinese
?
f
.
attrName
:
f
.
attrNameEn
)
}
}
)
}
)
return
result
.
join
(
'
、
'
)
}
,
}
}
;
<
/script
>
...
...
src/pages/mergePkg/package.vue
View file @
873c6c7f
...
...
@@ -61,12 +61,13 @@
{{ index + 1 }}
</view>
</view>
</view>
<view>
<view
class=
"label"
>
{{$t('订单号')}}:
</view>
<div
class=
"content"
>
<view
class=
"content"
>
<text
@
tap=
"showOrderDetail(true, item.orderId)"
>
{{item.orderNo}}
</text>
<text>
itemType
</text>
<!-- 调仓 -->
<text></text>
<!-- 报关方式 -->
<dict-tag
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
:value=
"item.customsType"
/>
<!-- 包装类型 -->
...
...
@@ -75,7 +76,6 @@
<!-- 有牌 -->
<text
v-if=
"item.orderItemDOS.some(ele => ele.checkBrandType && ele.checkBrandType !== 0)"
>
有牌
</text>
<!-- 带电 -->
</div>
</view>
</view>
<view>
...
...
@@ -306,10 +306,10 @@ import {uniIcons} from '@dcloudio/uni-ui';
import
{
createMergePkgOrder
,
createMergePkgOrderBatch
,
finishMergePkg
,
getPkgPageByPkgId
,
getUnPkgPage
,
removeMergePkg
,
removeMergePkgBatch
,
scanOrderNoCreate
scanOrderNoCreate
,
listByOrderId
}
from
"
./api
"
;
import
{
batchCreateMore
,
batchDeleteMore
,
singleCreate
,
orderTagList
}
from
"
../tallyAir/api
"
;
import
{
getOrderDetailByBoxNo
}
from
"
../loading/api
"
;
import
{
getOrderDetail
,
getOrderDetail
ByBoxNo
}
from
"
../loading/api
"
;
import
EditMergePkgDialog
from
"
@/pages/mergePkg/components/editMergePkgDialog.vue
"
;
import
OrderDetailModal
from
"
@/components/order-detail-modal/index.vue
"
import
util
from
'
@/util/util
'
...
...
@@ -452,7 +452,7 @@ export default {
/* 读取订单详情 */
getOrderDetail
(
id
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getOrderDetail
Admin
(
id
).
then
((
data
)
=>
{
getOrderDetail
(
id
).
then
((
data
)
=>
{
//订单信息
this
.
orderDetail
=
data
;
listByOrderId
({
orderId
:
id
}).
then
((
data
)
=>
{
...
...
src/util/config.js
View file @
873c6c7f
...
...
@@ -18,8 +18,8 @@ if (process.env.NODE_ENV === 'development') {
/**
* 配置api基础路径
*/
//let apiBaseUrl = 'https://api2.groupage.cn/'
let
apiBaseUrl
=
'
https://api2.groupage.cn/
'
// let apiBaseUrl = 'https://api.jd.qipx.top/'
//let apiBaseUrl = 'http://192.168.1.13:48080/'
let
localApiBaseUrl
=
uni
.
getStorageSync
(
"
localApiBaseUrl
"
)
if
(
localApiBaseUrl
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment