Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-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-operator-master
Commits
f43fc7e9
Commit
f43fc7e9
authored
Oct 25, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款单审核优化
parent
b2cb33df
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
143 additions
and
12 deletions
+143
-12
dict.js
src/utils/dict.js
+1
-0
CollectionWriteoff.vue
src/views/ecw/financial/components/CollectionWriteoff.vue
+62
-10
PackHistoryDetail.vue
src/views/ecw/order/components/PackHistoryDetail.vue
+69
-2
detail.vue
src/views/ecw/order/detail.vue
+11
-0
No files found.
src/utils/dict.js
View file @
f43fc7e9
...
...
@@ -194,6 +194,7 @@ export const DICT_TYPE = {
APPLY_STATUS
:
'
apply_status
'
,
//特价申请审核状态
WAREHOUSING_SPECIFICATION_TYPE
:
'
warehousing_specification_type
'
,
ECW_AUTH_TYPE
:
'
auth_type
'
,
//品牌授权
OREER_ITEM_USAGE
:
'
order_item_usage
'
,
//用途
NEED_ORDER_INQUIRY
:
'
need_order_inquiry
'
,
// 是否需要単询
EXCEPTION_SELECT_FILED
:
'
exception_select_filed
'
,
...
...
src/views/ecw/financial/components/CollectionWriteoff.vue
View file @
f43fc7e9
<
template
>
<div>
<div
class=
"app-container"
>
<el-descriptions
:column=
"
5"
>
<el-descriptions
:column=
"
4"
border
>
<el-descriptions-item
:label=
"$t('收款单编号')"
>
{{
form
.
receiptNo
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('客户')"
>
{{
form
.
customerName
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('创建时间')"
>
...
...
@@ -14,11 +14,8 @@
<
div
v
-
for
=
"
itemAmount in collectionAmount
"
:
key
=
"
itemAmount.currencyNameZh
"
>
{{
$i18n
.
locale
==
'
zh_CN
'
?
itemAmount
.
currencyNameZh
:
itemAmount
.
currencyNameEn
}}
:
{{
itemAmount
.
amount
}}
<
/div
>
<
/template
>
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
v
-
if
=
"
reason
"
:
label
=
"
$t('申请理由')
"
>
{{
reason
}}
<
/el-descriptions-item
>
<
/el-descriptions
>
<
/div
>
<
el
-
descriptions
:
column
=
"
3
"
border
>
<
el
-
descriptions
-
item
>
<
template
slot
=
"
label
"
>
{{
$t
(
'
实收已核销总金额
'
)
}}
...
...
@@ -29,7 +26,7 @@
<
/template
>
<
div
v
-
else
>
<
div
v
-
for
=
"
(amount, currency) in writeOffTotal
"
:
key
=
"
currency
"
>
{{
amount
}}
{{
getCurrencyLabel
(
currency
)
}}
{{
getCurrencyLabel
(
currency
)
}}
:
{{
amount
}}
<
/div
>
<
/div
>
<
/el-descriptions-item
>
...
...
@@ -49,8 +46,56 @@
<
/template
>
{{
WriteOffProportion
}}
%
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
v
-
if
=
"
reason
"
:
label
=
"
$t('申请理由')
"
>
{{
reason
}}
<
/el-descriptions-item
>
<
/el-descriptions
>
<
/div
>
<
div
style
=
"
margin: 20px 0;font-size:16px
"
v
-
if
=
"
form.financeRemark
"
>
{{
$t
(
'
备注
'
)
}}
:{{
form
.
financeRemark
}}
<
/div
>
<
el
-
card
class
=
"
card
"
>
<
div
slot
=
"
header
"
class
=
"
card-title
"
>
{{
$t
(
'
应收明细
'
)
}}
<
/div
>
<
el
-
table
:
data
=
"
list
"
border
>
<
el
-
table
-
column
:
label
=
"
$t('订单号')
"
align
=
"
center
"
prop
=
"
orderNo
"
/>
<
el
-
table
-
column
:
label
=
"
$t('提单号')
"
align
=
"
center
"
prop
=
"
tidanNo
"
/>
<
el
-
table
-
column
:
label
=
"
$t('唛头')
"
align
=
"
center
"
prop
=
"
marks
"
/>
<
el
-
table
-
column
:
label
=
"
$t('品名')
"
align
=
"
center
"
prop
=
"
title
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
v
-
if
=
"
scope.row.feeType!=5
"
>
{{
scope
.
row
.
titleZh
?(
scope
.
row
.
titleZh
+
"
(
"
+
scope
.
row
.
titleEn
+
"
)
"
):
''
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('箱数')
"
align
=
"
center
"
prop
=
"
num
"
/>
<
el
-
table
-
column
:
label
=
"
$t('体积/重量')
"
align
=
"
center
"
prop
=
"
weight
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
v
-
if
=
"
scope.row.feeType!=5
"
>
{{
scope
.
row
.
volume
+
"
/
"
+
scope
.
row
.
weight
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('收入类型')
"
align
=
"
center
"
prop
=
"
feeType
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.FEE_TYPE
"
:
value
=
"
scope.row.feeType
"
><
/dict-tag
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('单价金额')
"
align
=
"
center
"
prop
=
"
unitPrice
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
scope
.
row
.
unitPrice
}}
<
/span
>
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('总金额')
"
align
=
"
center
"
prop
=
"
totalAmount
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
scope
.
row
.
totalAmount
}}
<
/span
>
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('优惠金额')
"
align
=
"
center
"
>
<
template
slot
-
scope
=
"
scope
"
>
{{
scope
.
row
.
discountTotal
?
`${scope.row.discountTotal
}
(${scope.row.discountRemark
}
)`
:
0
}}
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
/el-card
>
<
div
class
=
"
btn
"
>
<
el
-
button
size
=
"
mini
"
...
...
@@ -245,12 +290,19 @@ export default {
}
.
app
-
container
{
::
v
-
deep
.
el
-
descriptions
-
item__label
{
font
-
size
:
1
6
px
;
font
-
weight
:
600
;
font
-
size
:
1
4
px
;
//
font-weight:600;
}
::
v
-
deep
.
el
-
descriptions
-
item__content
{
font
-
size
:
16
px
;
font
-
weight
:
600
;
font
-
size
:
14
px
;
// font-weight:600;
}
}
.
card
{
margin
-
top
:
20
px
;
}
.
card
-
title
{
font
-
size
:
18
px
;
font
-
weight
:
bold
;
}
<
/style
>
src/views/ecw/order/components/PackHistoryDetail.vue
View file @
f43fc7e9
<
template
>
<div>
<!-- 订单获取入仓记录 -->
<el-dialog
:title=
"title"
visible
:before-close=
"closeDialog"
:close-on-click-modal=
"false"
width=
"1200px"
>
<el-card
style=
"margin-bottom:10px"
>
...
...
@@ -15,6 +16,14 @@
<el-descriptions-item
:label=
"$t('数量')"
>
{{orderItem.warehouseInInfoVO ? orderItem.warehouseInInfoVO.quantityAll : orderItem.quantity}}{{$t('个')}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('备货状态')"
>
{{airShipmentData[info.airShipment]}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('商品特性')"
>
{{productAttr}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('用途')"
>
<div
v-if=
"orderItem.usageIds"
>
<div
v-for=
"(item,index) in row.usageIds.split(',')"
>
<dict-tag
:type=
"DICT_TYPE.OREER_ITEM_USAGE"
:value=
"item"
/>
<span
v-if=
"(index+1)!=row.usageIds.split(',').length"
>
,
</span>
</div>
</div>
</el-descriptions-item>
</el-descriptions>
</el-card>
<el-card
style=
"margin-bottom:10px"
>
...
...
@@ -23,7 +32,12 @@
</div>
<el-table
v-if=
"orderWarehouseInContent"
:data=
"orderWarehouseInContent"
>
<el-table-column
type=
"index"
:label=
"$t('序号')"
/>
<el-table-column
:label=
"$t('箱数')"
prop=
"cartonsNum"
/>
<el-table-column
:label=
"$t('箱数')"
prop=
"cartonsNum"
>
<
template
slot-scope=
"{row}"
>
<span>
{{
row
.
cartonsNum
}}
</span>
<!--
<el-button
type=
"primary"
@
click=
"seeBox(row)"
>
(
{{
$t
(
'
混箱
'
)
}}
)
</el-button>
-->
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('入仓类型')"
prop=
"cartonsNum"
>
<
template
slot-scope=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.WAREHOUSING_SPECIFICATION_TYPE"
:value=
"row.specificationType"
/>
...
...
@@ -61,6 +75,11 @@
{{
getLocationName
(
row
.
orderLocationBackVOList
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('入仓影像')"
prop=
"orderLocationBackVOList"
>
<
template
slot-scope=
"{row}"
>
<el-button
type=
"primary"
@
click=
"seeMv(row.pictureUrls)"
>
{{
$t
(
'
查看
'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
</el-card>
<el-card
style=
"margin-bottom:10px"
>
...
...
@@ -107,6 +126,11 @@
{{
getLocationName
(
row
.
orderLocationBackVOList
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('入仓影像')"
prop=
"orderLocationBackVOList"
>
<
template
slot-scope=
"{row}"
>
<el-button
type=
"primary"
@
click=
"seeMv(row.pictureUrls)"
>
{{
$t
(
'
查看
'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
</el-card>
<el-card
style=
"margin-bottom:10px"
>
...
...
@@ -120,7 +144,20 @@
</el-descriptions>
</el-card>
<el-button
type=
"primary"
@
click=
"closeDialog"
>
{{$t('关闭窗口')}}
</el-button>
</el-dialog>
<el-dialog
:title=
"$t('入仓影像')"
:visible=
"mvShow"
:before-close=
"closeMv"
:close-on-click-modal=
"false"
width=
"600px"
>
<div
style=
"display:flex;flex-wrap:wrap"
>
<div
v-for=
"(item, index) in pictureUrls"
:index=
"index"
:key=
"index"
style=
"width:80px;height:80px"
>
<image
v-if=
"item.type === 'image'"
:src=
"item.url"
mode=
"scaleToFill"
style=
"height: 100%"
@
tap=
"previewImage(item.url)"
/>
<video
v-else-if=
"item.type === 'video'"
:id=
"`video_${index}`"
style=
"width: 100%;height: 100%"
:src=
"item.url"
@
play=
"playVideo(index)"
@
tap=
"playVideo(index)"
@
fullscreenchange=
"fullscreenchange"
></video>
</div>
</div>
<div
v-if=
"pictureUrls.length==0"
>
<span>
{{$t('暂无影像')}}
</span>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
getOrder
,
getOrderWarehouseIn
}
from
'
@/api/ecw/order
'
...
...
@@ -149,7 +186,9 @@ export default {
volume
:
0
,
weight
:
0
,
quantityAll
:
0
}
},
pictureUrls
:[],
mvShow
:
false
}
},
computed
:{
...
...
@@ -225,6 +264,34 @@ export default {
}
})
},
seeMv
(
list
){
this
.
mvShow
=
true
if
(
list
){
this
.
pictureUrls
=
list
.
map
(
e
=>
{
return
{
url
:
e
,
type
:
this
.
isImageFile
(
e
)
?
'
image
'
:
'
video
'
,
}
})
}
},
isImageFile
(
filename
)
{
var
imageExtensions
=
[
"
.jpeg
"
,
"
.jpg
"
,
"
.png
"
,
"
.gif
"
,
"
.bmp
"
,
"
.tiff
"
];
var
extension
=
""
;
var
length
=
filename
.
length
;
for
(
var
i
=
length
-
1
;
i
>=
0
;
i
--
)
{
if
(
filename
[
i
]
===
"
.
"
)
{
extension
=
filename
.
slice
(
i
).
toLowerCase
();
break
;
}
}
return
imageExtensions
.
indexOf
(
extension
)
!==
-
1
;
},
closeMv
(){
this
.
mvShow
=
false
}
}
}
</
script
>
...
...
src/views/ecw/order/detail.vue
View file @
f43fc7e9
...
...
@@ -264,6 +264,17 @@
<dict-tag
:type=
"DICT_TYPE.ECW_PAY_ADVANCE"
:value=
"row.isPayAdvance"
/>
</
template
>
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('用途')"
>
<
template
slot-scope=
"{row}"
>
<div
v-if=
"row.usageIds"
>
<div
v-for=
"(item,index) in row.usageIds.split(',')"
>
<dict-tag
:type=
"DICT_TYPE.OREER_ITEM_USAGE"
:value=
"item"
/>
<span
v-if=
"(index+1)!=row.usageIds.split(',').length"
>
,
</span>
</div>
</div>
<div
v-else
></div>
</
template
>
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('成交单价')"
width=
"220px"
>
<
template
slot-scope=
"{row}"
>
...
...
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