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
edd5d053
Commit
edd5d053
authored
Mar 07, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务异常按钮权限
parent
7c203dde
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
347 additions
and
45 deletions
+347
-45
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
index.vue
src/views/ecw/product/index.vue
+7
-3
No files found.
src/views/ecw/financial/bankDetail.vue
0 → 100644
View file @
edd5d053
<
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 @
edd5d053
...
...
@@ -248,8 +248,15 @@
</el-descriptions>
</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
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>
</div>
<el-dialog
...
...
@@ -312,7 +319,7 @@
/>
</el-form-item>
<!-- </el-row> -->
<
!-- <
el-form-item :label="$t('出货渠道')">
<el-form-item
:label=
"$t('出货渠道')"
>
<el-select
v-model=
"queryParams.channelId"
:placeholder=
"$t('请选择出货渠道')"
...
...
@@ -326,8 +333,8 @@
</el-select>
</el-form-item>
</el-row>
<
el-row
>
<el-form-item :label="$t('报关方式')">
<
!-- <el-row> --
>
<!--
<el-form-item :label="$t('报关方式')">
<dict-selector
:type="DICT_TYPE.ECW_CUSTOMS_TYPE"
v-model="queryParams.customsType"
...
...
@@ -345,20 +352,21 @@
@change="consignor = $event"
/>
</el-form-item>
</el-row>
<el-form-item :label="$t('订单
编
号')" prop="orderNo">
</el-row>
-->
<el-form-item
:label=
"$t('订单号')"
prop=
"orderNo"
>
<el-input
v-model=
"queryParams.orderNo"
:placeholder="$t('请输入订单
编
号')"
:placeholder=
"$t('请输入订单号')"
clearable
/>
</el-form-item>
-->
</el-form-item>
<el-form-item
:label=
"$t('
自
编号')"
prop=
"selfNo"
>
<el-form-item
:label=
"$t('
业务
编号')"
prop=
"selfNo"
>
<el-input
v-model=
"queryParams.selfNo"
:placeholder=
"$t('请输入
自
编号')"
:placeholder=
"$t('请输入
业务
编号')"
clearable
@
blur=
"handleQuery"
/>
</el-form-item>
...
...
@@ -377,7 +385,7 @@
row-key=
"id"
>
<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=
"supplierName"
/>
<el-table-column
:label=
"$t('费用类型')"
align=
"center"
prop=
"feeType"
>
...
...
@@ -425,11 +433,12 @@ import { getPayableList, getPayableInfoByIds, createPayment, getPaymentInfoByIds
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
NP
from
'
number-precision
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
WorkFlow
from
'
@/components/WorkFlow/
'
export
default
{
name
:
"
CreatPayment
"
,
components
:
{
CustomerSelector
CustomerSelector
,
WorkFlow
},
data
()
{
return
{
...
...
@@ -461,6 +470,7 @@ export default {
allSupplier
:
[],
currencyList
:
[],
warehouseList
:[],
selectedUsers
:[]
};
},
async
created
()
{
...
...
@@ -822,4 +832,10 @@ export default {
font-size
:
18px
;
font-weight
:
bold
;
}
.bpm-title
{
font-size
:
20px
;
font-weight
:
bold
;
color
:
#666
;
margin
:
20px
0
;
}
</
style
>
src/views/ecw/financial/payable.vue
View file @
edd5d053
...
...
@@ -120,6 +120,7 @@
<el-button
style=
"margin-left: 10px"
type=
"success"
v-hasPermi=
"['ecw:payable:create']"
@
click=
"handleAdd(0)"
>
{{
$t
(
'
新增请款单
'
)
}}
</el-button
>
...
...
@@ -153,13 +154,15 @@
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"editClick(scope.row)"
>
{{
$t
(
'
编辑
'
)
}}
</el-button
>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleAdd(scope.row.id)"
>
{{
$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:edit']"
@
click=
"editClick(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
>
</el-table-column>
</el-table>
...
...
src/views/ecw/financial/paymentVoucher.vue
View file @
edd5d053
...
...
@@ -141,17 +141,17 @@
class
-
name
=
"
small-padding fixed-width
"
>
<
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
"
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
"
@
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
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
: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:print
']
"
@
click
=
"
verifyCancelClick(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
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
toprint(scope.row.id)
"
v
-
hasPermi
=
"
['ecw:payment
:query
']
"
>
{{
$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
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
Voucher
:delete']
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<!--
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
open = true
"
>
{{
$t
(
'
导出订单
'
)
}}
<
/el-button> --
>
<
/template
>
<
/el-table-column
>
...
...
src/views/ecw/financial/receivable.vue
View file @
edd5d053
...
...
@@ -8,6 +8,7 @@
style=
"float: right; margin-left: 10px"
type=
"primary"
size=
"mini"
v-hasPermi=
"['ecw:receivable:add']"
@
click=
"handleAdd(0)"
>
{{
$t
(
'
新增收款单
'
)
}}
</el-button
>
...
...
@@ -232,9 +233,7 @@
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleAdd(scope.row.id)"
>
{{
$t
(
'
收款
'
)
}}
</el-button
>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:receivable:collection']"
@
click=
"handleAdd(scope.row.id)"
>
{{
$t
(
'
收款
'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
src/views/ecw/financial/voucher.vue
View file @
edd5d053
...
...
@@ -74,11 +74,11 @@
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('收款单号')"
align=
"center"
prop=
"receiptNo"
>
<
template
slot-scope=
"scope"
>
<
span
style=
"color: #1890ff;"
@
click=
"verificationCancelClick(scope.row)"
>
{{
scope
.
row
.
receiptNo
}}
</span
>
<
/
template
>
<
/el-table-column
>
<el-table-column
:label=
"$t('收款单号')"
align=
"center"
prop=
"receiptNo"
/
>
<
!-- <template slot-scope="scope"> --
>
<
!-- <span style="color: #1890ff;" @click="verificationCancelClick(scope.row)">{{scope.row.receiptNo}}</span> --
>
<
!-- </template> --
>
<
!-- </el-table-column> --
>
<el-table-column
:label=
"$t('客户名称')"
align=
"center"
prop=
"customerName"
/>
<el-table-column
:label=
"$t('创建日期')"
align=
"center"
prop=
"createTime"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -110,10 +110,17 @@
class
-
name
=
"
small-padding fixed-width
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:see']
"
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
查看
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state === 0 || scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:edit']
"
@
click
=
"
handleAdd(scope.row.id)
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-butto
n
>
...
...
@@ -128,8 +135,8 @@
v
-
if
=
"
scope.row.state == 4 || scope.row.state == 5 || scope.row.state == 6
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:cancelWriteOff']
"
@
click
=
"
verificationCancelClick(scope.row)
"
v
-
hasPermi
=
"
['ecw:verification:update']
"
>
{{
$t
(
'
反核销
'
)
}}
<
/el-butto
n
>
<
el
-
button
...
...
@@ -139,20 +146,21 @@
@
click
=
"
openInvoice(scope.row.id)
"
>
{{
$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
=
"
[0,1,2].indexOf(scope.row.state) > -1
"
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
deleteClick(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
"
v
-
hasPermi
=
"
['ecw:voucher:delete']
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state != 0
"
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
toprint(scope.row.id)
"
v
-
hasPermi
=
"
['ecw:v
erification:create
']
"
v
-
hasPermi
=
"
['ecw:v
oucher:print
']
"
>
{{
$t
(
'
打印
'
)
}}
<
/el-butto
n
>
<
el
-
button
v
-
if
=
"
scope.row.state != 0
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:derive']
"
@
click
=
"
exportReceipt(scope.row.id)
"
>
{{
$t
(
'
导出账单
'
)
}}
<
/el-butto
n
>
...
...
src/views/ecw/order/pending.vue
View file @
edd5d053
...
...
@@ -106,7 +106,21 @@
<el-table-column
:label=
"$t('操作')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<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
>
</el-table-column>
</el-table>
...
...
src/views/ecw/order/prepayDeal.vue
View file @
edd5d053
...
...
@@ -69,16 +69,17 @@
<
/el-form-item
>
<
/el-row
>
<
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
}
个
'
,
{
num
:
shopData
.
warehouseInInfoVO
.
cartonsNum
||
0
,
volume
:
shopData
.
warehouseInInfoVO
.
volume
||
0
,
weight
:
shopData
.
warehouseInInfoVO
.
weight
||
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> --
>
<
/el-form-item
>
<
template
v
-
else
>
{{
$t
(
'
无入仓数据
'
)
}}
<
/template
>
<
/el-form-item
>
<
/el-row
>
<
/template
>
...
...
@@ -102,6 +103,7 @@
<
/el-row
>
<
/div
>
<
/el-form
>
<!--
预付异常的表格
-->
<
el
-
table
v
-
if
=
"
orderExceptionData.orderExceptionType=='order_pay_exception'
"
v
-
loading
=
"
loading
"
border
:
data
=
"
preException
"
>
<
el
-
table
-
column
:
label
=
"
$t('品名')
"
align
=
"
center
"
>
...
...
@@ -380,6 +382,7 @@
import
{
getExceptionById
,
handlerExceptionByExceptionId
,
getOrderItemById
,
getOrderFeeById
}
from
"
@/api/ecw/orderException
"
import
{
getFirstReceivableListByOrderId
}
from
'
@/api/ecw/financial
'
import
WorkFlow
from
'
@/components/WorkFlow
'
import
{
listByIds
}
from
'
@/api/ecw/region
'
import
{
cancelProcessInstance
}
from
'
@/api/bpm/processInstance
'
export
default
{
name
:
"
PrepayDeal
"
,
...
...
@@ -415,6 +418,7 @@
timers
:
""
,
//时间戳
FilePreAll
:[],
// 预览数组
TragetPic
:{
}
,
region
:
''
}
;
}
,
created
()
{
...
...
@@ -436,6 +440,17 @@
if
(
val
==
'
cod
'
&&
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
:
{
...
...
@@ -605,6 +620,13 @@
<
/script
>
<
style
scoped
>
.
link
-
text
{
margin
-
top
:
20
px
;
}
.
link
-
text
span
{
font
-
size
:
16
px
;
font
-
weight
:
600
;
}
.
card
-
title
{
font
-
size
:
18
px
;
font
-
weight
:
bold
;
...
...
src/views/ecw/product/index.vue
View file @
edd5d053
...
...
@@ -17,7 +17,7 @@
<el-form-item
:label=
"$t('商品类型')"
prop=
"attrId"
>
<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-form-item>
...
...
@@ -134,7 +134,7 @@
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
>
<el-form-item
:label=
"$t('商品类型')"
prop=
"typeId"
>
<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-form-item>
...
...
@@ -206,7 +206,11 @@
<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-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-input
v-model.number=
"form.dayLimit"
type=
"number"
>
<
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