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
11713ac6
Commit
11713ac6
authored
Jul 28, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
国家区域设置设置币种
parent
4840b7f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
2 deletions
+58
-2
index.vue
src/views/ecw/region/index.vue
+58
-2
No files found.
src/views/ecw/region/index.vue
View file @
11713ac6
...
...
@@ -78,7 +78,7 @@
<!-- 添加或修改部门对话框 -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"600px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
8
0px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
16
0px"
>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
:label=
"$t('上级区域')"
prop=
"parentId"
>
...
...
@@ -108,6 +108,46 @@
<el-form-item
:label=
"$t('显示顺序')"
prop=
"sort"
>
<el-input
v-model=
"form.sort"
:placeholder=
"$t('请输入显示顺序')"
/>
</el-form-item>
<div
v-if=
"(form.type==2||form.type==3)&&isSecond"
>
<el-form-item
:label=
"$t('出口运费/全包价币种')"
prop=
"exportCurrency1"
>
<el-select
v-model=
"form.exportCurrency1"
:placeholder=
"$t('请选择')"
>
<el-option
v-for=
"dict in currencyList "
:key=
"dict.id"
:label=
"dict.titleZh"
:value=
"dict.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('出口清关费币种')"
prop=
"exportCurrency2"
>
<el-select
v-model=
"form.exportCurrency2"
:placeholder=
"$t('请选择')"
>
<el-option
v-for=
"dict in currencyList "
:key=
"dict.id"
:label=
"dict.titleZh"
:value=
"dict.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('出口额外费用币种')"
prop=
"出口额外费用币种"
>
<el-select
v-model=
"form.exportCurrency3"
:placeholder=
"$t('请选择')"
>
<el-option
v-for=
"dict in currencyList "
:key=
"dict.id"
:label=
"dict.titleZh"
:value=
"dict.id"
/>
</el-select>
</el-form-item>
</div>
<div
v-if=
"(form.type==1||form.type==3)&&isSecond"
>
<el-form-item
:label=
"$t('进口运费/全包价币种')"
prop=
"importCurrency1"
>
<el-select
v-model=
"form.importCurrency1"
:placeholder=
"$t('请选择')"
>
<el-option
v-for=
"dict in currencyList "
:key=
"dict.id"
:label=
"dict.titleZh"
:value=
"dict.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('进口清关费币种')"
prop=
"importCurrency2"
>
<el-select
v-model=
"form.importCurrency2"
:placeholder=
"$t('请选择')"
>
<el-option
v-for=
"dict in currencyList "
:key=
"dict.id"
:label=
"dict.titleZh"
:value=
"dict.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('进口额外费用币种')"
prop=
"importCurrency3"
>
<el-select
v-model=
"form.importCurrency3"
:placeholder=
"$t('请选择')"
>
<el-option
v-for=
"dict in currencyList "
:key=
"dict.id"
:label=
"dict.titleZh"
:value=
"dict.id"
/>
</el-select>
</el-form-item>
</div>
<!-- <el-col :span="12">-->
<!-- <el-form-item :label="$t('部门状态')" prop="status">-->
<!-- <el-radio-group v-model="form.status">-->
...
...
@@ -145,6 +185,7 @@ import {
}
from
"
@/api/ecw/region
"
;
import
{
changeUserStatus
}
from
"
@/api/system/user
"
;
import
{
updateBankAccount
}
from
"
@/api/ecw/bankAccount
"
;
import
{
getCurrencyList
}
from
'
@/api/ecw/currency
'
export
default
{
name
:
"
Region
"
,
...
...
@@ -198,11 +239,14 @@ export default {
CommonStatusEnum
:
CommonStatusEnum
,
// 数据字典
statusDictDatas
:
getDictDatas
(
DICT_TYPE
.
COMMON_STATUS
),
regionTypeDatas
:
getDictDatas
(
DICT_TYPE
.
ECW_REGION_TYPE
)
regionTypeDatas
:
getDictDatas
(
DICT_TYPE
.
ECW_REGION_TYPE
),
currencyList
:[],
//币种
isSecond
:
false
,
};
},
created
()
{
this
.
getList
();
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
// 获得用户列表
listSimpleUsers
().
then
(
response
=>
{
this
.
users
=
response
.
data
;
...
...
@@ -289,6 +333,12 @@ export default {
/** 新增按钮操作 */
handleAdd
(
row
)
{
this
.
reset
();
var
region
=
this
.
regionList
.
find
(
v
=>
v
.
id
==
row
.
parentId
)
if
(
region
){
this
.
isSecond
=
true
}
else
{
this
.
isSecond
=
false
}
if
(
row
!==
undefined
)
{
this
.
form
.
parentId
=
row
.
id
;
}
...
...
@@ -311,6 +361,12 @@ export default {
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
var
region
=
this
.
regionList
.
find
(
v
=>
v
.
id
==
row
.
parentId
)
if
(
region
){
this
.
isSecond
=
true
}
else
{
this
.
isSecond
=
false
}
getRegion
(
row
.
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
// console.log("getRegion("+row.id+"):"+JSON.stringify(this.form));
...
...
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