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
0434d31a
Commit
0434d31a
authored
Sep 30, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常登记和费用登记的步骤适配海空
parent
95c648e8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
13 deletions
+32
-13
costForm.vue
src/views/ecw/box/costForm.vue
+21
-7
indexAir.vue
src/views/ecw/box/indexAir.vue
+1
-1
indexSeaAir.vue
src/views/ecw/box/indexSeaAir.vue
+2
-2
query.vue
src/views/ecw/box/query.vue
+7
-2
queryAir.vue
src/views/ecw/box/queryAir.vue
+1
-1
No files found.
src/views/ecw/box/costForm.vue
View file @
0434d31a
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
<el-form
ref=
"costForm"
:model=
"costObj"
:rules=
"rules"
label-width=
"80px"
>
<el-form
ref=
"costForm"
:model=
"costObj"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
:label=
"$t('操作步骤')"
prop=
"opStepType"
>
<el-form-item
:label=
"$t('操作步骤')"
prop=
"opStepType"
>
<el-select
v-
if=
"flag=='sea'"
v-
model=
"costObj.opStepType"
:placeholder=
"$t('请选择操作步骤')"
>
<el-select
v-model=
"costObj.opStepType"
:placeholder=
"$t('请选择操作步骤')"
>
<el-option
v-for=
"type in
this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PROCESS
)"
:key=
"type.value"
:label=
"$l(type, 'label')"
:value=
"type.value"
></el-option>
<el-option
v-for=
"type in
getDictDatas(DICT_TYPE[this.process]
)"
:key=
"type.value"
:label=
"$l(type, 'label')"
:value=
"type.value"
></el-option>
</el-select>
</el-select>
<el-select
v-if=
"flag=='seaAir'"
v-model=
"costObj.opStepType"
:placeholder=
"$t('请选择操作步骤')"
>
<
!--
<
el-select
v-if=
"flag=='seaAir'"
v-model=
"costObj.opStepType"
:placeholder=
"$t('请选择操作步骤')"
>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SEA_AIR)"
:key=
"type.value"
:label=
"$l(type, 'label')"
:value=
"type.value"
></el-option>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SEA_AIR)"
:key=
"type.value"
:label=
"$l(type, 'label')"
:value=
"type.value"
></el-option>
</el-select>
</el-select>
-->
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('费用类型')"
prop=
"costType"
>
<el-form-item
:label=
"$t('费用类型')"
prop=
"costType"
>
...
@@ -51,6 +51,7 @@ import { getSupplierPage } from "@/api/ecw/supplier";
...
@@ -51,6 +51,7 @@ import { getSupplierPage } from "@/api/ecw/supplier";
import
{
createCost
}
from
"
@/api/ecw/box
"
;
import
{
createCost
}
from
"
@/api/ecw/box
"
;
import
{
serviceMsg
}
from
"
./shippingSea/utils
"
;
import
{
serviceMsg
}
from
"
./shippingSea/utils
"
;
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
import
{
getDictDatas
}
from
"
@/utils/dict
"
;
export
default
{
export
default
{
name
:
"
costForm
"
,
name
:
"
costForm
"
,
...
@@ -70,9 +71,21 @@ export default {
...
@@ -70,9 +71,21 @@ export default {
price
:
[{
required
:
true
,
message
:
this
.
$t
(
"
金额不能为空
"
),
trigger
:
"
blur
"
}],
price
:
[{
required
:
true
,
message
:
this
.
$t
(
"
金额不能为空
"
),
trigger
:
"
blur
"
}],
priceUnit
:
[{
required
:
true
,
message
:
this
.
$t
(
"
金额单位不能为空
"
),
trigger
:
"
blur
"
}]
priceUnit
:
[{
required
:
true
,
message
:
this
.
$t
(
"
金额单位不能为空
"
),
trigger
:
"
blur
"
}]
},
},
flag
:
'
sea
'
//
flag: 'sea'
};
};
},
},
computed
:{
flag
(){
return
this
.
$attrs
.
flag
||
'
sea
'
},
process
(){
return
{
'
air
'
:
'
BOX_AIR_SHIPMENT_PROCESS
'
,
'
sea
'
:
'
BOX_SHIPPING_PROCESS
'
,
'
seaAir
'
:
'
BOX_SEA_AIR
'
}[
this
.
flag
]
}
},
created
()
{
created
()
{
// 供应商
// 供应商
getSupplierPage
({
pageNo
:
"
1
"
,
pageSize
:
"
10000
"
}).
then
((
res
)
=>
{
getSupplierPage
({
pageNo
:
"
1
"
,
pageSize
:
"
10000
"
}).
then
((
res
)
=>
{
...
@@ -84,11 +97,12 @@ export default {
...
@@ -84,11 +97,12 @@ export default {
getCurrencyList
().
then
((
res
)
=>
{
getCurrencyList
().
then
((
res
)
=>
{
this
.
currencyList
=
res
.
data
??
[];
this
.
currencyList
=
res
.
data
??
[];
});
});
if
(
this
.
$attrs
.
shipmentObj
.
bosType
==
'
seaAir
'
){
/*
if(this.$attrs.shipmentObj.bosType == 'seaAir'){
this.flag = 'seaAir';
this.flag = 'seaAir';
}
}
*/
},
},
methods
:
{
methods
:
{
getDictDatas
,
submit
()
{
submit
()
{
this
.
$refs
[
"
costForm
"
].
validate
((
valid
)
=>
{
this
.
$refs
[
"
costForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
...
src/views/ecw/box/indexAir.vue
View file @
0434d31a
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
<editAirForm
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:warehouseList=
"warehouseList"
:transportTypes=
"transportTypes"
/>
<editAirForm
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:warehouseList=
"warehouseList"
:transportTypes=
"transportTypes"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogCfg.dialogType === 'cost'"
>
<
template
v-if=
"dialogCfg.dialogType === 'cost'"
>
<costForm
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
/>
<costForm
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
flag=
"air"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogCfg.dialogType === 'error'"
>
<
template
v-if=
"dialogCfg.dialogType === 'error'"
>
<regError
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:allUsers=
"allUsers"
flag=
"air"
/>
<regError
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:allUsers=
"allUsers"
flag=
"air"
/>
...
...
src/views/ecw/box/indexSeaAir.vue
View file @
0434d31a
...
@@ -145,10 +145,10 @@
...
@@ -145,10 +145,10 @@
<editForm
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:warehouseList=
"warehouseList"
:transportTypes=
"transportTypes"
:cabinetList=
"cabinetList"
/>
<editForm
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:warehouseList=
"warehouseList"
:transportTypes=
"transportTypes"
:cabinetList=
"cabinetList"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogCfg.dialogType === 'cost'"
>
<
template
v-if=
"dialogCfg.dialogType === 'cost'"
>
<costForm
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
/>
<costForm
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
flag=
"seaAir"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogCfg.dialogType === 'error'"
>
<
template
v-if=
"dialogCfg.dialogType === 'error'"
>
<regError
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:allUsers=
"allUsers"
/>
<regError
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:allUsers=
"allUsers"
flag=
"seaAir"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogCfg.dialogType === 'editLadingBill'"
>
<
template
v-if=
"dialogCfg.dialogType === 'editLadingBill'"
>
<ladingBill
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:getCabinetName=
"getCabinetName"
/>
<ladingBill
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:getCabinetName=
"getCabinetName"
/>
...
...
src/views/ecw/box/query.vue
View file @
0434d31a
...
@@ -192,10 +192,10 @@
...
@@ -192,10 +192,10 @@
<editForm
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:warehouseList=
"warehouseList"
:transportTypes=
"transportTypes"
:cabinetList=
"cabinetList"
/>
<editForm
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:warehouseList=
"warehouseList"
:transportTypes=
"transportTypes"
:cabinetList=
"cabinetList"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogConfig.type === 'cost'"
>
<
template
v-if=
"dialogConfig.type === 'cost'"
>
<costForm
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:costDetail=
"costDetail"
/>
<costForm
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:costDetail=
"costDetail"
:flag=
"flag"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogConfig.type === 'error'"
>
<
template
v-if=
"dialogConfig.type === 'error'"
>
<regError
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:allUsers=
"allUsers"
/>
<regError
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:allUsers=
"allUsers"
:flag=
"flag"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogConfig.type === 'updateError'"
>
<
template
v-if=
"dialogConfig.type === 'updateError'"
>
<updateError
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:errorInfo=
"errorInfo"
/>
<updateError
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:errorInfo=
"errorInfo"
/>
...
@@ -639,6 +639,11 @@ export default {
...
@@ -639,6 +639,11 @@ export default {
} else {
} else {
return getTotlContent(secStatistics);
return getTotlContent(secStatistics);
}
}
},
// 异常登记和费用登记用到的标识
flag(){
// 地址中有seaAir则表示海空联运,否则就是海运
return this.$route.fullPath.toLowerCase().indexOf('seaair') > -1 ? 'seaAir' : 'air'
}
}
},
},
};
};
...
...
src/views/ecw/box/queryAir.vue
View file @
0434d31a
...
@@ -195,7 +195,7 @@
...
@@ -195,7 +195,7 @@
<editForm
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:warehouseList=
"warehouseList"
:transportTypes=
"transportTypes"
:cabinetList=
"cabinetList"
/>
<editForm
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:warehouseList=
"warehouseList"
:transportTypes=
"transportTypes"
:cabinetList=
"cabinetList"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogConfig.type === 'cost'"
>
<
template
v-if=
"dialogConfig.type === 'cost'"
>
<costForm
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:costDetail=
"costDetail"
/>
<costForm
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:costDetail=
"costDetail"
flag=
"air"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogConfig.type === 'error'"
>
<
template
v-if=
"dialogConfig.type === 'error'"
>
<regError
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:allUsers=
"allUsers"
flag=
"air"
/>
<regError
v-if=
"dialogConfig.visible"
@
closeDialog=
"closeDialog"
:shipmentObj=
"shipmentObj"
:allUsers=
"allUsers"
flag=
"air"
/>
...
...
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