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
e02244d3
Commit
e02244d3
authored
Nov 06, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应收款应付款搜索始发城市改始发仓
parent
6bc49b26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
14 deletions
+34
-14
payable.vue
src/views/ecw/financial/payable.vue
+15
-5
receivable.vue
src/views/ecw/financial/receivable.vue
+19
-9
No files found.
src/views/ecw/financial/payable.vue
View file @
e02244d3
...
...
@@ -40,8 +40,8 @@
clearable
>
<el-option
v-for=
"item in expo
erCity
List"
:label=
"
item.titleZh
"
v-for=
"item in expo
rtWarehouse
List"
:label=
"
$l(item, 'title')
"
:value=
"item.id"
:key=
"item.id"
></el-option>
...
...
@@ -54,8 +54,8 @@
clearable
>
<el-option
v-for=
"item in import
City
List"
:label=
"
item.titleZh
"
v-for=
"item in import
Warehouse
List"
:label=
"
$l(item, 'title')
"
:value=
"item.id"
:key=
"item.id"
></el-option>
...
...
@@ -228,6 +228,7 @@ import { getTradeCityList } from "@/api/ecw/region";
import
{
getPayableList
,
deletePayable
,
updatePayable
}
from
"
@/api/ecw/financial
"
import
{
getSupplierPage
}
from
"
@/api/ecw/supplier
"
;
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
export
default
{
name
:
"
EcwFinancialPayable
"
,
...
...
@@ -253,7 +254,8 @@ export default {
rows
:
20
,
},
allSupplier
:
[],
currencyList
:[]
currencyList
:[],
warehouseList
:[],
};
},
computed
:
{
...
...
@@ -263,9 +265,17 @@ 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
)
},
},
created
()
{
let
that
=
this
;
getWarehouseList
().
then
(
res
=>
this
.
warehouseList
=
res
.
data
)
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
userList
(
"
salesman
"
).
then
((
res
)
=>
(
that
.
creatorData
=
res
.
data
));
getTradeCityList
().
then
((
res
)
=>
(
that
.
tradeCityList
=
res
.
data
));
...
...
src/views/ecw/financial/receivable.vue
View file @
e02244d3
...
...
@@ -39,29 +39,29 @@
class=
"card"
>
<el-row>
<el-form-item
:label=
"$t('始发
城市
')"
>
<el-form-item
:label=
"$t('始发
地
')"
>
<el-select
v-model=
"queryParams.departureId"
:placeholder=
"$t('请选择始发
城市
')"
:placeholder=
"$t('请选择始发
地
')"
clearable
>
<el-option
v-for=
"item in expo
erCity
List"
:label=
"
item.titleZh
"
v-for=
"item in expo
rtWarehouse
List"
:label=
"
$l(item, 'title')
"
:value=
"item.id"
:key=
"item.id"
></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
v-for=
"item in import
City
List"
:label=
"
item.titleZh
"
v-for=
"item in import
Warehouse
List"
:label=
"
$l(item, 'title')
"
:value=
"item.id"
:key=
"item.id"
></el-option>
...
...
@@ -256,6 +256,7 @@ import CustomerSelector from "@/components/CustomerSelector";
import
{
getTradeCityList
}
from
"
@/api/ecw/region
"
;
import
{
getReceivableList
}
from
"
@/api/ecw/financial
"
;
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
export
default
{
name
:
"
EcwFinancialReceivable
"
,
...
...
@@ -285,7 +286,8 @@ export default {
page
:
1
,
rows
:
20
,
},
currencyList
:[]
currencyList
:[],
warehouseList
:[],
};
},
created
()
{
...
...
@@ -294,6 +296,7 @@ export default {
userList
(
"
salesman
"
).
then
((
res
)
=>
(
that
.
creatorData
=
res
.
data
));
getTradeCityList
().
then
((
res
)
=>
(
that
.
tradeCityList
=
res
.
data
));
this
.
getList
();
getWarehouseList
().
then
(
res
=>
this
.
warehouseList
=
res
.
data
)
},
computed
:
{
expoerCityList
()
{
...
...
@@ -302,6 +305,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
){
...
...
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