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
0de4a95f
Commit
0de4a95f
authored
Mar 08, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev1.6' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into dev1.6
parents
5ba2a8a7
a6e8898f
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
376 additions
and
73 deletions
+376
-73
indexSea.vue
src/views/ecw/box/indexSea.vue
+13
-13
indexSeaAir.vue
src/views/ecw/box/indexSeaAir.vue
+15
-15
bankDetail.vue
src/views/ecw/financial/bankDetail.vue
+236
-0
creatPayment.vue
src/views/ecw/financial/creatPayment.vue
+28
-12
payable.vue
src/views/ecw/financial/payable.vue
+10
-7
paymentVoucher.vue
src/views/ecw/financial/paymentVoucher.vue
+7
-7
receivable.vue
src/views/ecw/financial/receivable.vue
+2
-3
voucher.vue
src/views/ecw/financial/voucher.vue
+17
-9
pending.vue
src/views/ecw/order/pending.vue
+15
-1
prepayDeal.vue
src/views/ecw/order/prepayDeal.vue
+25
-3
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+1
-0
index.vue
src/views/ecw/product/index.vue
+7
-3
No files found.
src/views/ecw/box/indexSea.vue
View file @
0de4a95f
...
@@ -114,31 +114,31 @@
...
@@ -114,31 +114,31 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-dropdown
trigger=
"click"
@
command=
"(command)=>handleCommand(scope.row, command)"
style=
"marginRight:10px;"
>
<el-dropdown
trigger=
"click"
v-hasPermi=
"['shipment:box:action:sea','shipment:box:action:error','shipment:box:action:cost','shipment:box:action:editLadingBill']"
@
command=
"(command)=>handleCommand(scope.row, command)"
style=
"marginRight:10px;"
>
<el-button
type=
"primary"
>
<el-button
type=
"primary"
>
{{
$t
(
'
操作
'
)
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
{{
$t
(
'
操作
'
)
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<!--
<el-dropdown-item
:disabled=
"scope.row.ldStatus>=46"
command=
"edit"
>
{{
$t
(
'
编辑
'
)
}}
</el-dropdown-item>
-->
<!--
<el-dropdown-item
:disabled=
"scope.row.ldStatus>=46"
command=
"edit"
>
{{
$t
(
'
编辑
'
)
}}
</el-dropdown-item>
-->
<el-dropdown-item
command=
"sea
"
>
{{
$t
(
'
操作-海运
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"sea"
v-hasPermi=
"['shipment:box:action:sea']
"
>
{{
$t
(
'
操作-海运
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"error"
>
{{
$t
(
'
异常登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"error"
v-hasPermi=
"['shipment:box:action:error']"
>
{{
$t
(
'
异常登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"cost"
>
{{
$t
(
'
费用登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"cost"
v-hasPermi=
"['shipment:box:action:cost']"
>
{{
$t
(
'
费用登记
'
)
}}
</el-dropdown-item>
<!--
<el-dropdown-item
command=
"delete"
>
{{
$t
(
'
删除
'
)
}}
</el-dropdown-item>
-->
<!--
<el-dropdown-item
command=
"delete"
>
{{
$t
(
'
删除
'
)
}}
</el-dropdown-item>
-->
<el-dropdown-item
:disabled=
"scope.row.ldStatus
<46
"
command=
"editLadingBill"
>
{{
$t
(
'
编辑提货单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
:disabled=
"scope.row.ldStatus
<46
"
command=
"editLadingBill"
v-hasPermi=
"['shipment:box:action:editLadingBill']"
>
{{
$t
(
'
编辑提货单
'
)
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
<el-dropdown
trigger=
"click"
@
command=
"(command)=>handleCommand(scope.row, command)"
>
<el-dropdown
trigger=
"click"
@
command=
"(command)=>handleCommand(scope.row, command)"
v-hasPermi=
"['shipment:box:download:downloadPreloadGoodsList','shipment:box:download:downloadLoadGoodsList','shipment:box:download:downloadReceivableList','shipment:box:download:downloadAgentListFiles','shipment:box:download:downloadSoncapFiles','shipment:box:download:zipDownload','shipment:box:download:downloadLadingCopy']"
>
<el-button
type=
"primary"
>
<el-button
type=
"primary"
>
{{
$t
(
'
下载
'
)
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
{{
$t
(
'
下载
'
)
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"downloadPreloadGoodsList"
>
{{
$t
(
'
预装单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadPreloadGoodsList"
v-hasPermi=
"['shipment:box:download:downloadPreloadGoodsList']"
>
{{
$t
(
'
预装单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadLoadGoodsList"
>
{{
$t
(
'
已装单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadLoadGoodsList"
v-hasPermi=
"['shipment:box:download:downloadLoadGoodsList']"
>
{{
$t
(
'
已装单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadReceivableList"
>
{{
$t
(
'
应收汇总表
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadReceivableList"
v-hasPermi=
"['shipment:box:download:downloadReceivableList']"
>
{{
$t
(
'
应收汇总表
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadAgentListFiles"
>
agent list
</el-dropdown-item>
<el-dropdown-item
command=
"downloadAgentListFiles"
v-hasPermi=
"['shipment:box:download:downloadAgentListFiles']"
>
agent list
</el-dropdown-item>
<el-dropdown-item
command=
"downloadSoncapFiles"
>
soncap
</el-dropdown-item>
<el-dropdown-item
command=
"downloadSoncapFiles"
v-hasPermi=
"['shipment:box:download:downloadSoncapFiles']"
>
soncap
</el-dropdown-item>
<el-dropdown-item
command=
"zipDownload"
>
{{
$t
(
'
提货单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"zipDownload"
v-hasPermi=
"['shipment:box:download:zipDownload']"
>
{{
$t
(
'
提货单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadLadingCopy"
>
{{
$t
(
'
提单Copy
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadLadingCopy"
v-hasPermi=
"['shipment:box:download:downloadLadingCopy']"
>
{{
$t
(
'
提单Copy
'
)
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
</
template
>
</
template
>
...
...
src/views/ecw/box/indexSeaAir.vue
View file @
0de4a95f
...
@@ -106,31 +106,31 @@
...
@@ -106,31 +106,31 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-dropdown
trigger=
"click"
@
command=
"(command)=>handleCommand(scope.row, command)"
style=
"marginRight:10px;"
>
<el-dropdown
trigger=
"click"
v-hasPermi=
"['shipment:seaAir:action:edit','shipment:seaAir:action:sea','shipment:seaAir:action:error','shipment:seaAir:action:cost','shipment:seaAir:action:delete','shipment:seaAir:action:editLadingBill']"
@
command=
"(command)=>handleCommand(scope.row, command)"
style=
"marginRight:10px;"
>
<el-button
type=
"primary"
>
<el-button
type=
"primary"
>
{{
$t
(
'
操作
'
)
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
{{
$t
(
'
操作
'
)
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
:disabled=
"scope.row.ldStatus>=46"
command=
"edit"
>
{{
$t
(
'
编辑
'
)
}}
</el-dropdown-item>
<el-dropdown-item
:disabled=
"scope.row.ldStatus>=46"
command=
"edit"
v-hasPermi=
"['shipment:seaAir:action:edit']"
>
{{
$t
(
'
编辑
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"seaAir"
>
{{
$t
(
'
操作
'
)
}}
-
{{
$t
(
'
海空联运
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"seaAir"
v-hasPermi=
"['shipment:seaAir:action:seaAir']"
>
{{
$t
(
'
海空联运
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"error"
>
{{
$t
(
'
异常登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"error"
v-hasPermi=
"['shipment:seaAir:action:error']"
>
{{
$t
(
'
异常登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"cost"
>
{{
$t
(
'
费用登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"cost"
v-hasPermi=
"['shipment:seaAir:action:cost']"
>
{{
$t
(
'
费用登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"delete"
>
{{
$t
(
'
删除
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"delete"
v-hasPermi=
"['shipment:seaAir:action:delete']"
>
{{
$t
(
'
删除
'
)
}}
</el-dropdown-item>
<el-dropdown-item
:disabled=
"scope.row.ldStatus
<46
"
command=
"editLadingBill"
>
{{
$t
(
'
编辑提货单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
:disabled=
"scope.row.ldStatus
<46
"
command=
"editLadingBill"
v-hasPermi=
"['shipment:seaAir:action:editLadingBill']"
>
{{
$t
(
'
编辑提货单
'
)
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
<el-dropdown
trigger=
"click"
@
command=
"(command)=>handleCommand(scope.row, command)"
>
<el-dropdown
trigger=
"click"
@
command=
"(command)=>handleCommand(scope.row, command)"
v-hasPermi=
"['shipment:seaAir:download:downloadPreloadGoodsList','shipment:seaAir:download:downloadLoadGoodsList','shipment:seaAir:download:downloadReceivableList','shipment:seaAir:download:downloadAgentListFiles','shipment:seaAir:download:downloadSoncapFiles','shipment:seaAir:download:zipDownload','shipment:seaAir:download:downloadLadingCopy']"
>
<el-button
type=
"primary"
>
<el-button
type=
"primary"
>
{{
$t
(
'
下载
'
)
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
{{
$t
(
'
下载
'
)
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"downloadPreloadGoodsList"
>
{{
$t
(
'
预装单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadPreloadGoodsList"
v-hasPermi=
"['shipment:seaAir:download:downloadPreloadGoodsList']"
>
{{
$t
(
'
预装单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadLoadGoodsList"
>
{{
$t
(
'
已装单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadLoadGoodsList"
v-hasPermi=
"['shipment:seaAir:download:downloadLoadGoodsList']"
>
{{
$t
(
'
已装单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadReceivableList"
>
{{
$t
(
'
应收汇总表
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadReceivableList"
v-hasPermi=
"['shipment:seaAir:download:downloadReceivableList']"
>
{{
$t
(
'
应收汇总表
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadAgentListFiles"
>
agent list
</el-dropdown-item>
<el-dropdown-item
command=
"downloadAgentListFiles"
v-hasPermi=
"['shipment:seaAir:download:downloadAgentListFiles']"
>
agent list
</el-dropdown-item>
<el-dropdown-item
command=
"downloadSoncapFiles"
>
soncap
</el-dropdown-item>
<el-dropdown-item
command=
"downloadSoncapFiles"
v-hasPermi=
"['shipment:seaAir:download:downloadSoncapFiles']"
>
soncap
</el-dropdown-item>
<el-dropdown-item
command=
"zipDownload"
>
{{
$t
(
'
提货单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"zipDownload"
v-hasPermi=
"['shipment:seaAir:download:zipDownload']"
>
{{
$t
(
'
提货单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadLadingCopy"
>
{{
$t
(
'
提单Copy
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"downloadLadingCopy"
v-hasPermi=
"['shipment:seaAir:download:downloadLadingCopy']"
>
{{
$t
(
'
提单Copy
'
)
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
</
template
>
</
template
>
...
...
src/views/ecw/financial/bankDetail.vue
0 → 100644
View file @
0de4a95f
<
template
>
<div
class=
"app-container"
>
<el-card>
<div
slot=
"header"
class=
"card-title"
>
{{
$t
(
'
银行实收明细详情
'
)
}}
</div>
<el-form
ref=
"addForm"
:data=
"addForm"
label-width=
"250px"
>
<el-form-item
:label=
"$t('收款单号')"
>
{{
form
.
receiptNo
}}
</el-form-item>
<el-form-item
:label=
"$t('剩余应收金额')"
>
<template
v-if=
"surplusData.length==0"
>
0
</
template
>
<div
v-if=
"surplusData.length>0"
>
<div
v-for=
"(amount, currency) in surplusData"
:key=
"currency"
>
<span
v-if=
"amount"
>
{{amount}}{{getCurrencyLabel(currency)}}
</span>
</div>
</div>
</el-form-item>
<el-form-item
:label=
"$t('收款账户')"
prop=
"accountNo"
>
<span>
{{ addForm.accountNo }}
</span>
</el-form-item>
<el-form-item
:label=
"$t('实收日期')"
prop=
"amountDate"
>
<span>
{{ addForm.amountDate }}
</span>
</el-form-item>
<div
style=
"display: flex;"
>
<el-form-item
:label=
"$t('实收')"
prop=
"amount"
>
<span>
{{ addForm.amount }}
</span>
</el-form-item>
<el-form-item
label-width=
"0px"
prop=
"currencyId"
>
<el-select
v-model=
"addForm.currencyId"
:disabled=
"true"
>
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"$i18n.locale=='zh_CN'?item.titleZh:item.titleEn"
:value=
"item.id"
/>
</el-select>
</el-form-item>
</div>
<el-form-item
v-if=
"showCurrencyId != addForm.currencyId"
prop=
"rate"
>
<
template
slot=
"label"
>
<span
:title=
"$t('实收币种与核销基准币种一样时,无需填写汇率,不一样需要填写汇率')"
>
{{
$t
(
'
兑核销基准币种汇率
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
</span>
</
template
>
<span>
{{ addForm.rate}}
</span>
</el-form-item>
<el-form-item
v-if=
"showCurrencyId != addForm.currencyId"
>
<
template
slot=
"label"
>
{{
$t
(
'
兑核销基准币种金额
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
</
template
>
<span>
{{ addForm.writeOffAmount?parseFloat(addForm.writeOffAmount).toFixed(6):'' }}
</span>
</el-form-item>
<el-form-item
:label=
"$t('水单附件')"
prop=
"attr"
>
<div>
<div
v-for=
"(v, i) in addForm.attr"
:key=
"i"
><el-link
:href=
"v.url"
type=
"primary"
target=
"_blank"
>
{{ v.name }}
</el-link></div>
</div>
</el-form-item>
<el-form-item
:label=
"$t('水单号')"
prop=
"billNo"
>
<span>
{{ addForm.billNo }}
</span>
</el-form-item>
</el-form>
</el-card>
<div
slot=
"header"
class=
"bpm-title"
>
{{ $t('审核流程') }}
</div>
<work-flow
xmlkey=
"merge_order"
v-model=
"selectedUsers"
></work-flow>
<div
slot=
"footer"
style=
"margin: 20px 0"
>
<el-button
type=
"primary"
@
click=
"submitForm(0)"
>
{{$t('提交审核')}}
</el-button>
<el-button
type=
"primary"
@
click=
"$store.dispatch('tagsView/delCurrentView')"
>
{{ $t('关闭') }}
</el-button>
</div>
</div>
</template>
<
script
>
import
{
getReceivableItem
,
getInvoicingItem
,
getReceiptAccountList
,
getReceiptInfoByIds
}
from
"
@/api/ecw/financial
"
;
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
WorkFlow
from
'
@/components/WorkFlow/
'
import
NP
from
'
number-precision
'
export
default
{
components
:
{
WorkFlow
},
data
()
{
return
{
addForm
:{},
id
:
0
,
detailed
:[],
currencyList
:
[],
surplusData
:[],
receiptAccountList
:[],
selectedUsers
:[],
list
:[],
params
:
{
page
:
1
,
rows
:
20
,
},
bankId
:
0
,
form
:{}
}
},
async
created
()
{
if
(
this
.
$route
.
query
.
id
)
{
this
.
id
=
this
.
$route
.
query
.
id
;
}
if
(
this
.
$route
.
query
.
bankId
)
{
this
.
bankId
=
this
.
$route
.
query
.
bankId
;
}
await
getInvoicingItem
({
id
:
this
.
id
}).
then
(
res
=>
{
this
.
list
=
[...
res
.
data
]
})
await
getReceiptAccountList
({
id
:
this
.
id
}).
then
(
res
=>
{
this
.
receiptAccountList
=
[...
res
.
data
]
})
await
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
await
this
.
getList
()
await
getReceiptInfoByIds
({
id
:
this
.
id
}).
then
(
res
=>
{
this
.
form
=
res
.
data
})
},
methods
:{
getList
()
{
getReceivableItem
({
id
:
this
.
id
}).
then
(
res
=>
{
this
.
detailed
=
res
.
data
.
map
(
v
=>
({
...
v
,
amountDate
:
this
.
parseTime
(
v
.
amountDate
,
'
{y}-{m}-{d}
'
),
accountNo
:
+
v
.
accountNo
,
rate
:
parseFloat
(
v
.
rate
).
toFixed
(
6
),
attr
:
v
.
attr
?
v
.
attr
.
split
(
'
,
'
).
map
(
t
=>
({
name
:
t
.
slice
(
t
.
lastIndexOf
(
'
/
'
)
+
1
),
url
:
t
}))
:
[]
}))
this
.
addForm
=
this
.
detailed
.
find
((
itt
)
=>
itt
.
id
==
this
.
bankId
);
this
.
handleAddReceiptItem
()
})
},
getCurrencyLabel
(
id
){
var
label
=
this
.
currencyList
.
filter
(
item
=>
item
.
id
==
id
)
if
(
label
.
length
>
0
)
return
this
.
$i18n
.
locale
==
'
zh_CN
'
?
label
[
0
].
titleZh
:
label
[
0
].
titleEn
return
''
},
handleAddReceiptItem
()
{
this
.
surplusData
=
[]
// 已收
let
recepted
=
[]
this
.
detailed
.
forEach
(
item
=>
{
if
(
!
recepted
[
item
.
currencyId
]){
recepted
[
item
.
currencyId
]
=
item
.
amount
}
else
recepted
[
item
.
currencyId
]
=
NP
.
plus
(
recepted
[
item
.
currencyId
],
item
.
amount
)
})
console
.
log
(
'
rece
'
,
recepted
)
// 应收
let
collom
=
[]
// 从期望收费金额中提取应收币种和金额
this
.
currencyList
.
forEach
((
item
,
index
)
=>
{
var
nairaListByList
=
this
.
list
.
filter
(
v
=>
v
.
currencyId
===
item
.
id
)
if
(
nairaListByList
.
length
>
0
){
var
discountNaira
=
nairaListByList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
discountTotal
||
0
),
0
)
}
var
dollarList
=
this
.
receiptAccountList
.
filter
(
v
=>
v
.
collectionCurrencyId
==
item
.
id
)
if
(
dollarList
.
length
>
0
){
var
dollar
=
dollarList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
),
0
).
toFixed
(
2
)
if
(
dollar
){
collom
[
item
.
id
]
=
dollar
}
else
{
collom
.
push
(
0
)
}
}
})
console
.
log
(
'
collom
'
,
collom
)
recepted
.
forEach
((
amount
,
currency
)
=>
{
if
(
amount
){
if
(
collom
[
currency
]){
if
((
collom
[
currency
]
-
amount
)
!=
0
)
this
.
surplusData
[
currency
]
=
+
parseFloat
((
collom
[
currency
]
-
amount
).
toPrecision
(
12
))
}
else
{
this
.
surplusData
[
currency
]
=
-
amount
}
}
})
collom
.
forEach
((
amount
,
currency
)
=>
{
if
(
amount
){
if
(
!
this
.
surplusData
[
currency
]){
if
(
recepted
[
currency
]){
if
((
amount
-
recepted
[
currency
])
!=
0
)
this
.
surplusData
[
currency
]
=
+
parseFloat
((
amount
-
recepted
[
currency
]).
toPrecision
(
12
))
}
else
{
this
.
surplusData
[
currency
]
=
amount
}
}
}
})
},
},
computed
:
{
showCurrencyId
()
{
let
fieldList
=
[];
let
groupList
=
[];
this
.
list
.
map
((
element
)
=>
{
if
(
fieldList
.
indexOf
(
element
[
'
currencyId
'
])
===-
1
){
fieldList
.
push
(
element
[
'
currencyId
'
])
}
})
for
(
let
i
=
0
;
i
<
fieldList
.
length
;
i
++
){
let
arr
=
this
.
list
.
filter
((
element
)
=>
{
return
element
[
'
currencyId
'
]
===
fieldList
[
i
];
})
groupList
.
push
({
currencyId
:
arr
[
0
].
currencyId
,
list
:
arr
})
}
if
(
groupList
.
length
===
1
)
return
groupList
[
0
].
currencyId
else
return
1
},
}
}
</
script
>
<
style
>
.card
{
margin-top
:
20px
;
}
.dialog-footer
{
text-align
:
left
;
}
.card-title
{
font-size
:
18px
;
font-weight
:
bold
;
}
.bpm-title
{
font-size
:
20px
;
font-weight
:
bold
;
color
:
#666
;
margin
:
20px
0
;
}
</
style
>
src/views/ecw/financial/creatPayment.vue
View file @
0de4a95f
...
@@ -248,8 +248,15 @@
...
@@ -248,8 +248,15 @@
</el-descriptions>
</el-descriptions>
</el-form>
</el-form>
</el-card>
</el-card>
<!-- <div slot="header" class="bpm-title">{{ $t('审核流程') }}</div>
<work-flow xmlkey="merge_order" v-model="selectedUsers"></work-flow>
<div slot="footer" style="margin: 20px 0">
<el-button type="primary" @click="submitForm(0)">{{$t('提交审核')}}</el-button>
<el-button type="primary" @click="$store.dispatch('tagsView/delCurrentView')">{{ $t('关闭') }}</el-button>
</div> -->
<div
slot=
"footer"
style=
"margin: 20px 0"
>
<div
slot=
"footer"
style=
"margin: 20px 0"
>
<
!-- <el-button type="primary" @click="submitDraft">{{ $t('保 存') }}</el-button> --
>
<
el-button
type=
"primary"
@
click=
"submitDraft"
>
{{ $t('保 存') }}
</el-button
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
{{id==0?$t('新增'):$t('编辑')}}
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
{{id==0?$t('新增'):$t('编辑')}}
</el-button>
</div>
</div>
<el-dialog
<el-dialog
...
@@ -312,7 +319,7 @@
...
@@ -312,7 +319,7 @@
/>
/>
</el-form-item>
</el-form-item>
<!-- </el-row> -->
<!-- </el-row> -->
<
!-- <
el-form-item :label="$t('出货渠道')">
<el-form-item
:label=
"$t('出货渠道')"
>
<el-select
<el-select
v-model=
"queryParams.channelId"
v-model=
"queryParams.channelId"
:placeholder=
"$t('请选择出货渠道')"
:placeholder=
"$t('请选择出货渠道')"
...
@@ -326,8 +333,8 @@
...
@@ -326,8 +333,8 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<
el-row
>
<
!-- <el-row> --
>
<el-form-item :label="$t('报关方式')">
<!--
<el-form-item :label="$t('报关方式')">
<dict-selector
<dict-selector
:type="DICT_TYPE.ECW_CUSTOMS_TYPE"
:type="DICT_TYPE.ECW_CUSTOMS_TYPE"
v-model="queryParams.customsType"
v-model="queryParams.customsType"
...
@@ -345,20 +352,21 @@
...
@@ -345,20 +352,21 @@
@change="consignor = $event"
@change="consignor = $event"
/>
/>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
-->
<el-form-item :label="$t('订单
编
号')" prop="orderNo">
<el-form-item
:label=
"$t('订单号')"
prop=
"orderNo"
>
<el-input
<el-input
v-model=
"queryParams.orderNo"
v-model=
"queryParams.orderNo"
:placeholder="$t('请输入订单
编
号')"
:placeholder=
"$t('请输入订单号')"
clearable
clearable
/>
/>
</el-form-item>
-->
</el-form-item>
<el-form-item
:label=
"$t('
自
编号')"
prop=
"selfNo"
>
<el-form-item
:label=
"$t('
业务
编号')"
prop=
"selfNo"
>
<el-input
<el-input
v-model=
"queryParams.selfNo"
v-model=
"queryParams.selfNo"
:placeholder=
"$t('请输入
自
编号')"
:placeholder=
"$t('请输入
业务
编号')"
clearable
clearable
@
blur=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
...
@@ -377,7 +385,7 @@
...
@@ -377,7 +385,7 @@
row-key=
"id"
row-key=
"id"
>
>
<el-table-column
type=
"selection"
width=
"55"
:reserve-selection=
"true"
>
</el-table-column>
<el-table-column
type=
"selection"
width=
"55"
:reserve-selection=
"true"
>
</el-table-column>
<el-table-column
:label=
"$t('
自
编号')"
align=
"center"
prop=
"payableNo"
/>
<el-table-column
:label=
"$t('
业务
编号')"
align=
"center"
prop=
"payableNo"
/>
<el-table-column
:label=
"$t('货柜号')"
align=
"center"
prop=
"containerNo"
/>
<el-table-column
:label=
"$t('货柜号')"
align=
"center"
prop=
"containerNo"
/>
<el-table-column
:label=
"$t('供应商')"
align=
"center"
prop=
"supplierName"
/>
<el-table-column
:label=
"$t('供应商')"
align=
"center"
prop=
"supplierName"
/>
<el-table-column
:label=
"$t('费用类型')"
align=
"center"
prop=
"feeType"
>
<el-table-column
:label=
"$t('费用类型')"
align=
"center"
prop=
"feeType"
>
...
@@ -425,11 +433,12 @@ import { getPayableList, getPayableInfoByIds, createPayment, getPaymentInfoByIds
...
@@ -425,11 +433,12 @@ import { getPayableList, getPayableInfoByIds, createPayment, getPaymentInfoByIds
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
NP
from
'
number-precision
'
import
NP
from
'
number-precision
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
WorkFlow
from
'
@/components/WorkFlow/
'
export
default
{
export
default
{
name
:
"
CreatPayment
"
,
name
:
"
CreatPayment
"
,
components
:
{
components
:
{
CustomerSelector
CustomerSelector
,
WorkFlow
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -461,6 +470,7 @@ export default {
...
@@ -461,6 +470,7 @@ export default {
allSupplier
:
[],
allSupplier
:
[],
currencyList
:
[],
currencyList
:
[],
warehouseList
:[],
warehouseList
:[],
selectedUsers
:[]
};
};
},
},
async
created
()
{
async
created
()
{
...
@@ -822,4 +832,10 @@ export default {
...
@@ -822,4 +832,10 @@ export default {
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.bpm-title
{
font-size
:
20px
;
font-weight
:
bold
;
color
:
#666
;
margin
:
20px
0
;
}
</
style
>
</
style
>
src/views/ecw/financial/payable.vue
View file @
0de4a95f
...
@@ -120,6 +120,7 @@
...
@@ -120,6 +120,7 @@
<el-button
<el-button
style=
"margin-left: 10px"
style=
"margin-left: 10px"
type=
"success"
type=
"success"
v-hasPermi=
"['ecw:payable:create']"
@
click=
"handleAdd(0)"
@
click=
"handleAdd(0)"
>
{{
$t
(
'
新增请款单
'
)
}}
</el-button
>
{{
$t
(
'
新增请款单
'
)
}}
</el-button
>
>
...
@@ -153,13 +154,15 @@
...
@@ -153,13 +154,15 @@
class-name=
"small-padding fixed-width"
class-name=
"small-padding fixed-width"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"editClick(scope.row)"
<el-button
>
{{
$t
(
'
编辑
'
)
}}
</el-button
size=
"mini"
>
type=
"text"
<el-button
size=
"mini"
type=
"text"
@
click=
"handleAdd(scope.row.id)"
v-hasPermi=
"['ecw:payable:edit']"
>
{{
$t
(
'
请款
'
)
}}
</el-button
@
click=
"editClick(scope.row)"
>
>
{{
$t
(
'
编辑
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"deleteClick(scope.row)"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:payable:create']"
@
click=
"handleAdd(scope.row.id)"
>
{{
$t
(
'
请款
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:payable:delete']"
@
click=
"deleteClick(scope.row)"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
src/views/ecw/financial/paymentVoucher.vue
View file @
0de4a95f
...
@@ -141,17 +141,17 @@
...
@@ -141,17 +141,17 @@
class
-
name
=
"
small-padding fixed-width
"
class
-
name
=
"
small-padding fixed-width
"
>
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
@
click
=
"
handleAdd(scope.row.id)
"
type
=
"
text
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
@
click
=
"
handleAdd(scope.row.id)
"
v
-
hasPermi
=
"
['ecw:paymentVoucher:edit']
"
type
=
"
text
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
v
-
hasPermi
=
"
['ecw:payment
:update
']
"
type
=
"
text
"
@
click
=
"
examineClick(scope.row.id)
"
>
{{
$t
(
'
审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
v
-
hasPermi
=
"
['ecw:payment
Voucher:process
']
"
type
=
"
text
"
@
click
=
"
examineClick(scope.row.id)
"
>
{{
$t
(
'
审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 2
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:payment
:update
']
"
@
click
=
"
verifyCancelClick(scope.row)
"
>
{{
$t
(
'
反审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 2
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:payment
Voucher:print
']
"
@
click
=
"
verifyCancelClick(scope.row)
"
>
{{
$t
(
'
反审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 2
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:payment
:update
']
"
@
click
=
"
verificationClick(scope.row)
"
>
{{
$t
(
'
核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 2
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:payment
Voucher:writeOff
']
"
@
click
=
"
verificationClick(scope.row)
"
>
{{
$t
(
'
核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 4
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:payment
:update
']
"
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
反核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 4
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:payment
Voucher:cancelWriteOff
']
"
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
反核销
'
)
}}
<
/el-button
>
<!--
<
el
-
button
v
-
if
=
"
scope.row.state == 3
"
size
=
"
mini
"
type
=
"
text
"
>
{{
$t
(
'
开票
'
)
}}
<
/el-button> --
>
<!--
<
el
-
button
v
-
if
=
"
scope.row.state == 3
"
size
=
"
mini
"
type
=
"
text
"
>
{{
$t
(
'
开票
'
)
}}
<
/el-button> --
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
toprint(scope.row.id)
"
v
-
hasPermi
=
"
['ecw:payment
:query
']
"
>
{{
$t
(
'
打印
'
)
}}
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
toprint(scope.row.id)
"
v
-
hasPermi
=
"
['ecw:payment
Voucher:print
']
"
>
{{
$t
(
'
打印
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:payment:delete']
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:payment
Voucher
:delete']
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<!--
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
open = true
"
>
{{
$t
(
'
导出订单
'
)
}}
<
/el-button> --
>
<!--
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
open = true
"
>
{{
$t
(
'
导出订单
'
)
}}
<
/el-button> --
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
...
src/views/ecw/financial/receivable.vue
View file @
0de4a95f
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
style=
"float: right; margin-left: 10px"
style=
"float: right; margin-left: 10px"
type=
"primary"
type=
"primary"
size=
"mini"
size=
"mini"
v-hasPermi=
"['ecw:receivable:add']"
@
click=
"handleAdd(0)"
@
click=
"handleAdd(0)"
>
{{
$t
(
'
新增收款单
'
)
}}
</el-button
>
{{
$t
(
'
新增收款单
'
)
}}
</el-button
>
>
...
@@ -232,9 +233,7 @@
...
@@ -232,9 +233,7 @@
class-name=
"small-padding fixed-width"
class-name=
"small-padding fixed-width"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleAdd(scope.row.id)"
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:receivable:collection']"
@
click=
"handleAdd(scope.row.id)"
>
{{
$t
(
'
收款
'
)
}}
</el-button>
>
{{
$t
(
'
收款
'
)
}}
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
src/views/ecw/financial/voucher.vue
View file @
0de4a95f
...
@@ -74,11 +74,11 @@
...
@@ -74,11 +74,11 @@
<span>
{{
scope
.
$index
+
1
}}
</span>
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('收款单号')"
align=
"center"
prop=
"receiptNo"
>
<el-table-column
:label=
"$t('收款单号')"
align=
"center"
prop=
"receiptNo"
/
>
<
template
slot-scope=
"scope"
>
<
!-- <template slot-scope="scope"> --
>
<
span
style=
"color: #1890ff;"
@
click=
"verificationCancelClick(scope.row)"
>
{{
scope
.
row
.
receiptNo
}}
</span
>
<
!-- <span style="color: #1890ff;" @click="verificationCancelClick(scope.row)">{{scope.row.receiptNo}}</span> --
>
<
/
template
>
<
!-- </template> --
>
<
/el-table-column
>
<
!-- </el-table-column> --
>
<el-table-column
:label=
"$t('客户名称')"
align=
"center"
prop=
"customerName"
/>
<el-table-column
:label=
"$t('客户名称')"
align=
"center"
prop=
"customerName"
/>
<el-table-column
:label=
"$t('创建日期')"
align=
"center"
prop=
"createTime"
>
<el-table-column
:label=
"$t('创建日期')"
align=
"center"
prop=
"createTime"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -110,10 +110,17 @@
...
@@ -110,10 +110,17 @@
class
-
name
=
"
small-padding fixed-width
"
class
-
name
=
"
small-padding fixed-width
"
>
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:see']
"
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
查看
'
)
}}
<
/el-button
>
<
el
-
button
<
el
-
button
v
-
if
=
"
scope.row.state === 0 || scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3
"
v
-
if
=
"
scope.row.state === 0 || scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3
"
size
=
"
mini
"
size
=
"
mini
"
type
=
"
text
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:edit']
"
@
click
=
"
handleAdd(scope.row.id)
"
@
click
=
"
handleAdd(scope.row.id)
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-butto
n
>
{{
$t
(
'
编辑
'
)
}}
<
/el-butto
n
>
>
...
@@ -128,8 +135,8 @@
...
@@ -128,8 +135,8 @@
v
-
if
=
"
scope.row.state == 4 || scope.row.state == 5 || scope.row.state == 6
"
v
-
if
=
"
scope.row.state == 4 || scope.row.state == 5 || scope.row.state == 6
"
size
=
"
mini
"
size
=
"
mini
"
type
=
"
text
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:cancelWriteOff']
"
@
click
=
"
verificationCancelClick(scope.row)
"
@
click
=
"
verificationCancelClick(scope.row)
"
v
-
hasPermi
=
"
['ecw:verification:update']
"
>
{{
$t
(
'
反核销
'
)
}}
<
/el-butto
n
>
{{
$t
(
'
反核销
'
)
}}
<
/el-butto
n
>
>
<
el
-
button
<
el
-
button
...
@@ -139,20 +146,21 @@
...
@@ -139,20 +146,21 @@
@
click
=
"
openInvoice(scope.row.id)
"
@
click
=
"
openInvoice(scope.row.id)
"
>
{{
$t
(
'
开票
'
)
}}
<
/el-butto
n
>
{{
$t
(
'
开票
'
)
}}
<
/el-butto
n
>
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3
"
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
收款
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3
"
v
-
hasPermi
=
"
['ecw:voucher:payment']
"
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
收款
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
[0,1,2].indexOf(scope.row.state) > -1
"
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
[0,1,2].indexOf(scope.row.state) > -1
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:delete']
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
el
-
button
<
el
-
button
v
-
if
=
"
scope.row.state != 0
"
v
-
if
=
"
scope.row.state != 0
"
size
=
"
mini
"
size
=
"
mini
"
type
=
"
text
"
type
=
"
text
"
@
click
=
"
toprint(scope.row.id)
"
@
click
=
"
toprint(scope.row.id)
"
v
-
hasPermi
=
"
['ecw:v
erification:create
']
"
v
-
hasPermi
=
"
['ecw:v
oucher:print
']
"
>
{{
$t
(
'
打印
'
)
}}
<
/el-butto
n
>
{{
$t
(
'
打印
'
)
}}
<
/el-butto
n
>
>
<
el
-
button
<
el
-
button
v
-
if
=
"
scope.row.state != 0
"
v
-
if
=
"
scope.row.state != 0
"
size
=
"
mini
"
size
=
"
mini
"
type
=
"
text
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:derive']
"
@
click
=
"
exportReceipt(scope.row.id)
"
@
click
=
"
exportReceipt(scope.row.id)
"
>
{{
$t
(
'
导出账单
'
)
}}
<
/el-butto
n
>
{{
$t
(
'
导出账单
'
)
}}
<
/el-butto
n
>
>
...
...
src/views/ecw/order/pending.vue
View file @
0de4a95f
...
@@ -106,7 +106,21 @@
...
@@ -106,7 +106,21 @@
<el-table-column
:label=
"$t('操作')"
align=
"center"
>
<el-table-column
:label=
"$t('操作')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-tag
v-if=
"scope.row.orderExceptionStatus==2"
>
{{
$t
(
'
已完成
'
)
}}
</el-tag>
<el-tag
v-if=
"scope.row.orderExceptionStatus==2"
>
{{
$t
(
'
已完成
'
)
}}
</el-tag>
<el-button
v-else
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_superfluous_box_exception'"
v-hasPermi=
"['ecw:exception:superfluousBox']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_lack_box_exception'"
v-hasPermi=
"['ecw:exception:lackBox']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_pay_exception'"
v-hasPermi=
"['ecw:exception:pay']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_miss_exception'"
v-hasPermi=
"['ecw:exception:miss']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_superfluous_goods_exception'"
v-hasPermi=
"['ecw:exception:superfluousGoods']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_in_water_exception'"
v-hasPermi=
"['ecw:exception:inWater']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_damage_exception'"
v-hasPermi=
"['ecw:exception:damaged']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_heavy_cargo_exception'"
v-hasPermi=
"['ecw:exception:heavyCargo']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_doc_exception'"
v-hasPermi=
"['ecw:exception:doc']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_consignor_exception'"
v-hasPermi=
"['ecw:exception:consignor']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_other_exception'"
v-hasPermi=
"['ecw:exception:other']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_cod_exception'"
v-hasPermi=
"['ecw:exception:cod']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_no_quote_exception'"
v-hasPermi=
"['ecw:exception:noQuote']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_bulky_cargo_exception'"
v-hasPermi=
"['ecw:exception:bulkyCargo']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
<el-button
v-else-if=
"scope.row.orderExceptionType=='order_pick_up_exception'"
v-hasPermi=
"['ecw:exception:pickUp']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handEdit(scope.row)"
>
{{
$t
(
'
处理
'
)
}}
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
src/views/ecw/order/prepayDeal.vue
View file @
0de4a95f
...
@@ -69,16 +69,17 @@
...
@@ -69,16 +69,17 @@
<
/el-form-item
>
<
/el-form-item
>
<
/el-row
>
<
/el-row
>
<
el
-
row
v
-
if
=
"
shopData
"
>
<
el
-
row
v
-
if
=
"
shopData
"
>
<
el
-
form
-
item
:
label
=
"
$t('入仓参数')+':'
"
v
-
if
=
"
shopData.warehouseInInfoVO
"
>
<
el
-
form
-
item
:
label
=
"
$t('入仓参数')+':'
"
><
template
v
-
if
=
"
shopData.warehouseInInfoVO
"
>
{{
$t
(
'
{num
}
箱 {volume
}
m³ {weight
}
kg {quantity
}
个
'
,
{
{{
$t
(
'
{num
}
箱 {volume
}
m³ {weight
}
kg {quantity
}
个
'
,
{
num
:
shopData
.
warehouseInInfoVO
.
cartonsNum
||
0
,
num
:
shopData
.
warehouseInInfoVO
.
cartonsNum
||
0
,
volume
:
shopData
.
warehouseInInfoVO
.
volume
||
0
,
volume
:
shopData
.
warehouseInInfoVO
.
volume
||
0
,
weight
:
shopData
.
warehouseInInfoVO
.
weight
||
0
,
weight
:
shopData
.
warehouseInInfoVO
.
weight
||
0
,
quantity
:
shopData
.
warehouseInInfoVO
.
quantityAll
||
0
quantity
:
shopData
.
warehouseInInfoVO
.
quantityAll
||
0
}
)
}}
}
)
}}
<
/template
>
<!--
<
span
>
{{(
orderData
.
sumNum
||
0
)
+
$t
(
'
箱
'
)
+
(
orderData
.
sumVolume
||
0
)
+
'
m³
'
+
(
orderData
.
sumWeight
||
0
)
+
'
kg
'
+
(
orderData
.
sumQuantity
||
0
)
+
$t
(
'
个
'
)
}}
<
/span> --
>
<!--
<
span
>
{{(
orderData
.
sumNum
||
0
)
+
$t
(
'
箱
'
)
+
(
orderData
.
sumVolume
||
0
)
+
'
m³
'
+
(
orderData
.
sumWeight
||
0
)
+
'
kg
'
+
(
orderData
.
sumQuantity
||
0
)
+
$t
(
'
个
'
)
}}
<
/span> --
>
<
/el-form-item
>
<
template
v
-
else
>
{{
$t
(
'
无入仓数据
'
)
}}
<
/template
>
<
template
v
-
else
>
{{
$t
(
'
无入仓数据
'
)
}}
<
/template
>
<
/el-form-item
>
<
/el-row
>
<
/el-row
>
<
/template
>
<
/template
>
...
@@ -102,6 +103,7 @@
...
@@ -102,6 +103,7 @@
<
/el-row
>
<
/el-row
>
<
/div
>
<
/div
>
<
/el-form
>
<
/el-form
>
<!--
预付异常的表格
-->
<!--
预付异常的表格
-->
<
el
-
table
v
-
if
=
"
orderExceptionData.orderExceptionType=='order_pay_exception'
"
v
-
loading
=
"
loading
"
border
:
data
=
"
preException
"
>
<
el
-
table
v
-
if
=
"
orderExceptionData.orderExceptionType=='order_pay_exception'
"
v
-
loading
=
"
loading
"
border
:
data
=
"
preException
"
>
<
el
-
table
-
column
:
label
=
"
$t('品名')
"
align
=
"
center
"
>
<
el
-
table
-
column
:
label
=
"
$t('品名')
"
align
=
"
center
"
>
...
@@ -380,6 +382,7 @@
...
@@ -380,6 +382,7 @@
import
{
getExceptionById
,
handlerExceptionByExceptionId
,
getOrderItemById
,
getOrderFeeById
}
from
"
@/api/ecw/orderException
"
import
{
getExceptionById
,
handlerExceptionByExceptionId
,
getOrderItemById
,
getOrderFeeById
}
from
"
@/api/ecw/orderException
"
import
{
getFirstReceivableListByOrderId
}
from
'
@/api/ecw/financial
'
import
{
getFirstReceivableListByOrderId
}
from
'
@/api/ecw/financial
'
import
WorkFlow
from
'
@/components/WorkFlow
'
import
WorkFlow
from
'
@/components/WorkFlow
'
import
{
listByIds
}
from
'
@/api/ecw/region
'
import
{
cancelProcessInstance
}
from
'
@/api/bpm/processInstance
'
import
{
cancelProcessInstance
}
from
'
@/api/bpm/processInstance
'
export
default
{
export
default
{
name
:
"
PrepayDeal
"
,
name
:
"
PrepayDeal
"
,
...
@@ -415,6 +418,7 @@
...
@@ -415,6 +418,7 @@
timers
:
""
,
//时间戳
timers
:
""
,
//时间戳
FilePreAll
:[],
// 预览数组
FilePreAll
:[],
// 预览数组
TragetPic
:{
}
,
TragetPic
:{
}
,
region
:
''
}
;
}
;
}
,
}
,
created
()
{
created
()
{
...
@@ -436,6 +440,17 @@
...
@@ -436,6 +440,17 @@
if
(
val
==
'
cod
'
&&
this
.
orderExceptionData
.
orderExceptionAmountCurrencyId
){
if
(
val
==
'
cod
'
&&
this
.
orderExceptionData
.
orderExceptionAmountCurrencyId
){
this
.
$set
(
this
.
handlerParams
,
'
currency
'
,
this
.
orderExceptionData
.
orderExceptionAmountCurrencyId
)
this
.
$set
(
this
.
handlerParams
,
'
currency
'
,
this
.
orderExceptionData
.
orderExceptionAmountCurrencyId
)
}
}
}
,
'
orderData.consigneeVO
'
(
val
){
if
(
!
val
)
return
'
-
'
listByIds
({
ids
:
[
val
.
country
,
val
.
province
,
val
.
city
].
join
(
'
,
'
)
}
).
then
(
res
=>
{
console
.
log
(
'
listById
'
,
res
)
let
region
=
''
res
.
data
.
forEach
(
item
=>
{
region
+=
"
"
+
item
.
titleZh
}
)
this
.
region
=
region
}
)
}
}
}
,
}
,
computed
:
{
computed
:
{
...
@@ -605,6 +620,13 @@
...
@@ -605,6 +620,13 @@
<
/script
>
<
/script
>
<
style
scoped
>
<
style
scoped
>
.
link
-
text
{
margin
-
top
:
20
px
;
}
.
link
-
text
span
{
font
-
size
:
16
px
;
font
-
weight
:
600
;
}
.
card
-
title
{
.
card
-
title
{
font
-
size
:
18
px
;
font
-
size
:
18
px
;
font
-
weight
:
bold
;
font
-
weight
:
bold
;
...
...
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
0de4a95f
...
@@ -497,6 +497,7 @@ export default {
...
@@ -497,6 +497,7 @@ export default {
if
(
!!
this
.
warehousing
.
brandName
){
if
(
!!
this
.
warehousing
.
brandName
){
this
.
getProductBrandPage
(
this
.
warehousing
.
brandName
)
this
.
getProductBrandPage
(
this
.
warehousing
.
brandName
)
}
}
this
.
getProductBrandPage
()
}
}
}
else
{
}
else
{
}
}
...
...
src/views/ecw/product/index.vue
View file @
0de4a95f
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<el-form-item
:label=
"$t('商品类型')"
prop=
"attrId"
>
<el-form-item
:label=
"$t('商品类型')"
prop=
"attrId"
>
<el-select
v-model=
"queryParams.typeId"
:placeholder=
"$t('选择商品类型')"
clearable
>
<el-select
v-model=
"queryParams.typeId"
:placeholder=
"$t('选择商品类型')"
clearable
>
<el-option
v-for=
"type
in typeList"
:key=
"type.id"
:label=
"$l(type, 'title')"
:value=
"type
.id"
/>
<el-option
v-for=
"type
s in typeList"
:key=
"types.id"
:label=
"$l(types, 'title')"
:value=
"types
.id"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -134,7 +134,7 @@
...
@@ -134,7 +134,7 @@
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
>
<el-form-item
:label=
"$t('商品类型')"
prop=
"typeId"
>
<el-form-item
:label=
"$t('商品类型')"
prop=
"typeId"
>
<el-select
v-model=
"form.typeId"
:placeholder=
"$t('选择商品类型')"
clearable
>
<el-select
v-model=
"form.typeId"
:placeholder=
"$t('选择商品类型')"
clearable
>
<el-option
v-for=
"type
in typeList"
:key=
"type.id"
:label=
"type.titleZh"
:value=
"type
.id"
/>
<el-option
v-for=
"type
s in typeList"
:key=
"types.id"
:label=
"types.titleZh"
:value=
"types
.id"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -206,7 +206,11 @@
...
@@ -206,7 +206,11 @@
<el-radio
v-model.number=
"form.needBook"
:label=
"1"
>
{{$t('是')}}
</el-radio>
<el-radio
v-model.number=
"form.needBook"
:label=
"1"
>
{{$t('是')}}
</el-radio>
<el-radio
v-model.number=
"form.needBook"
:label=
"0"
>
{{$t('否')}}
</el-radio>
<el-radio
v-model.number=
"form.needBook"
:label=
"0"
>
{{$t('否')}}
</el-radio>
</el-form-item>
</el-form-item>
<!-- <el-form-item :label="$t('可参与优惠活动')" prop="you">
<el-select v-model="form.you" :placeholder="$t('可参与优惠活动')" clearable>
<el-option v-for="packageItem in packagingList" :key="packageItem.value" :label="packageItem.label" :value="packageItem.value" />
</el-select>
</el-form-item> -->
<el-form-item
:label=
"$t('每日入仓上限')"
prop=
"dayLimit"
v-if=
"form.needBook==1"
>
<el-form-item
:label=
"$t('每日入仓上限')"
prop=
"dayLimit"
v-if=
"form.needBook==1"
>
<el-input
v-model.number=
"form.dayLimit"
type=
"number"
>
<el-input
v-model.number=
"form.dayLimit"
type=
"number"
>
<
template
slot=
"append"
>
{{
$t
(
'
立方米
'
)
}}
</
template
>
<
template
slot=
"append"
>
{{
$t
(
'
立方米
'
)
}}
</
template
>
...
...
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