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
06a7e772
Commit
06a7e772
authored
May 13, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-05-13报关公司BUG处理
parent
a663b9f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
supplierSelect.vue
...ws/ecw/box/shippingAir/nodePage/common/supplierSelect.vue
+20
-5
cusDeclaration.vue
src/views/ecw/box/shippingAir/nodePage/cusDeclaration.vue
+3
-1
No files found.
src/views/ecw/box/shippingAir/nodePage/common/supplierSelect.vue
View file @
06a7e772
...
...
@@ -25,9 +25,10 @@ export default {
companyType
:
String
,
value
:
Number
,
allSupplier
:
Array
,
//0-國内供應商,1-國外供應商 lanbm 2024-05-11 添加注释
areaType
:
{
type
:
Number
,
default
:
0
default
:
0
,
},
},
model
:
{
...
...
@@ -39,13 +40,27 @@ export default {
},
computed
:
{
getSuppliers
()
{
//alert(this.areaType);
//alert(this.companyType);
let
allSupplier
=
this
.
allSupplier
.
filter
(
(
item
)
=>
item
.
areaType
==
this
.
areaType
);
if
(
this
.
areaType
==
1
||
!
this
.
companyType
)
return
allSupplier
;
return
allSupplier
.
filter
((
item
)
=>
item
.
companyTypes
.
includes
(
this
.
companyType
)
);
//0-國内供應商,1-國外供應商 lanbm 2024-05-11 添加注释
//if(this.areaType == 1 || !this.companyType) return allSupplier;
//lanbm 2024-05-11 把或改且,解决空运供应商获取是海运供应商问题
//
if
(
this
.
areaType
==
1
)
return
allSupplier
;
if
(
this
.
companyType
==
null
||
this
.
companyType
==
""
||
this
.
companyType
==
undefined
)
{
return
allSupplier
;
}
else
{
return
allSupplier
.
filter
((
item
)
=>
item
.
companyTypes
.
includes
(
this
.
companyType
)
);
}
},
},
methods
:
{
...
...
src/views/ecw/box/shippingAir/nodePage/cusDeclaration.vue
View file @
06a7e772
...
...
@@ -12,7 +12,7 @@
</div>
</el-form-item>
<el-form-item
:label=
"$t('报关公司名称')"
>
<supplierSelect
v-model=
"cusDeclarationObj.dcCompanyId"
:companyType=
"'
2
'"
:placeholder=
"$t('请选择报关公司名称')"
:allSupplier=
"this.$attrs.allSupplier"
/>
<supplierSelect
v-model=
"cusDeclarationObj.dcCompanyId"
:companyType=
"'
7
'"
:placeholder=
"$t('请选择报关公司名称')"
:allSupplier=
"this.$attrs.allSupplier"
/>
</el-form-item>
<el-form-item
:label=
"$t('截关时间')"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"cusDeclarationObj.dcCutOffTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
...
...
@@ -213,6 +213,8 @@ import dayjs from 'dayjs'
/**
* 报关
* lanbm 2024-05-11 把 报关公司名称 下拉列表中的
* company_type 有2 改为7 解决下来框中的公司是海运公司类型的BUG
*/
export
default
{
name
:
'
cusDeclaration
'
,
...
...
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