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
a823db0e
Commit
a823db0e
authored
Nov 06, 2022
by
dcy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
188c891a
e892e5eb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
39 deletions
+55
-39
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+1
-0
creatPayment.vue
src/views/ecw/financial/creatPayment.vue
+44
-30
payable.vue
src/views/ecw/financial/payable.vue
+4
-4
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+6
-5
No files found.
src/views/ecw/financial/creatCollection.vue
View file @
a823db0e
...
...
@@ -1088,6 +1088,7 @@ export default {
addDiscount
(
row
,
index
)
{
this
.
discountVisible
=
true
this
.
selectListRow
=
{
...
row
}
console
.
log
(
this
.
selectListRow
)
this
.
selectListIndex
=
index
this
.
$set
(
this
.
discountForm
,
'
time
'
,
dayjs
().
format
(
'
YYYY-MM-DD HH:mm:ss
'
))
getReceivableDiscountLogById
({
id
:
row
.
id
}
).
then
(
res
=>
{
...
...
src/views/ecw/financial/creatPayment.vue
View file @
a823db0e
...
...
@@ -269,39 +269,41 @@
:inline=
"true"
label-width=
"80px"
>
<
el-row
>
<
!-- <el-row> --
>
<el-form-item
:label=
"$t('供应商')"
>
<customer-selector
v-model=
"queryParams.supplierId"
@
change=
"consignor = $event"
/>
</el-form-item>
<el-form-item
:label=
"$t('始发城市')"
>
<el-select
v-model=
"queryParams.departureId"
:placeholder=
"$t('请选择始发地')"
>
<el-option
v-for=
"item in expoerCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的城市')"
>
<el-select
v-model=
"queryParams.objectiveId"
:placeholder=
"$t('请选择始发地')"
>
<el-option
v-for=
"item in importCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('始发仓')"
>
<el-select
v-model=
"queryParams.departureId"
:placeholder=
"$t('请选择始发仓')"
clearable
>
<el-option
v-for=
"item in exportWarehouseList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的仓')"
>
<el-select
v-model=
"queryParams.objectiveId"
:placeholder=
"$t('请选择目的仓')"
clearable
>
<el-option
v-for=
"item in importWarehouseList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('运输方式')"
>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
...
...
@@ -309,7 +311,8 @@
formatter=
"number"
/>
</el-form-item>
<el-form-item
:label=
"$t('出货渠道')"
>
<!-- </el-row> -->
<!-- <el-form-item :label="$t('出货渠道')">
<el-select
v-model="queryParams.channelId"
:placeholder="$t('请选择出货渠道')"
...
...
@@ -349,7 +352,7 @@
:placeholder="$t('请输入订单编号')"
clearable
/>
</el-form-item>
</el-form-item>
-->
<el-form-item
:label=
"$t('自编号')"
prop=
"selfNo"
>
<el-input
...
...
@@ -421,6 +424,8 @@ import { getSupplierPage,getSupplier } from "@/api/ecw/supplier";
import
{
getPayableList
,
getPayableInfoByIds
,
createPayment
,
getPaymentInfoByIds
,
getPaymentItem
,
updatePayment
}
from
"
@/api/ecw/financial
"
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
NP
from
'
number-precision
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
export
default
{
name
:
"
CreatPayment
"
,
components
:
{
...
...
@@ -455,10 +460,12 @@ export default {
tradeCityList
:
[],
allSupplier
:
[],
currencyList
:
[],
warehouseList
:[],
};
},
async
created
()
{
await
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
getWarehouseList
().
then
(
res
=>
this
.
warehouseList
=
res
.
data
)
let
that
=
this
;
if
(
that
.
$route
.
query
.
payableId
&&
that
.
$route
.
query
.
payableId
!==
'
0
'
)
{
this
.
payableId
=
this
.
$route
.
query
.
payableId
;
...
...
@@ -478,7 +485,7 @@ export default {
applicationAt
:
this
.
parseTime
(
res
.
data
.
applicationAt
,
'
{y}-{m}-{d}
'
),
invoiceStatus
:
String
(
res
.
data
.
invoiceStatus
),
}
this
.
$set
(
this
.
form
,
'
supplierBankAccount
'
,
res
.
data
.
supplierBankAccount
)
console
.
log
(
this
.
form
)
})
...
...
@@ -522,6 +529,13 @@ export default {
importCityList
()
{
return
this
.
tradeCityList
.
filter
((
item
)
=>
item
.
type
==
1
);
},
exportWarehouseList
(){
/* tradeType 1 进口,2出口,3进出口 */
return
this
.
warehouseList
.
filter
(
item
=>
item
.
tradeType
==
2
||
item
.
tradeType
==
3
)
},
importWarehouseList
(){
return
this
.
warehouseList
.
filter
(
item
=>
item
.
tradeType
==
1
||
item
.
tradeType
==
3
)
},
},
methods
:
{
getCurrencyLabel
(
id
){
...
...
src/views/ecw/financial/payable.vue
View file @
a823db0e
...
...
@@ -33,10 +33,10 @@
<!--
<el-form-item
label=
"订单号:"
>
<el-input
style=
"max-width: 188px;"
v-model=
"queryParams.orderNo"
placeholder=
"请输入订单号"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
-->
<el-form-item
:label=
"$t('始发
城市
')"
>
<el-form-item
:label=
"$t('始发
仓
')"
>
<el-select
v-model=
"queryParams.departureId"
:placeholder=
"$t('请选择始发
城市
')"
:placeholder=
"$t('请选择始发
仓
')"
clearable
>
<el-option
...
...
@@ -47,10 +47,10 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的
城市
')"
>
<el-form-item
:label=
"$t('目的
仓
')"
>
<el-select
v-model=
"queryParams.objectiveId"
:placeholder=
"$t('请选择目的
城市
')"
:placeholder=
"$t('请选择目的
仓
')"
clearable
>
<el-option
...
...
src/views/ecw/financial/receiptDetail.vue
View file @
a823db0e
...
...
@@ -517,11 +517,12 @@ export default {
let
amountTotal
=
this
.
form
.
receiptAccountList
.
find
(
item
=>
item
.
type
==
'
total
'
).
writeOffAmount
this
.
detailed
.
forEach
(
item
=>
{
//
if(item.status)
{
// amountTotal = NP.plus(amountT
otal, item.writeOffAmount)
//
}
total
=
NP
.
plus
(
total
,
item
.
writeOffAmount
)
if
(
item
.
status
){
total
=
NP
.
plus
(
t
otal
,
item
.
writeOffAmount
)
}
//
total = NP.plus(total, item.writeOffAmount)
}
)
console
.
log
(
total
);
let
portion
=
NP
.
divide
(
total
,
amountTotal
)
return
(
portion
*
100
).
toFixed
(
2
)
}
...
...
@@ -624,7 +625,7 @@ export default {
}
else
{
amountList
.
push
({
currencyName
:
item
.
titleZh
,
amount
:
dollar
}
)
}
}
}
)
this
.
form
.
receiptAccountList
[
this
.
form
.
receiptAccountList
.
length
-
1
].
collectionAmount
=
amountList
...
...
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