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
30c229b1
Commit
30c229b1
authored
Jul 24, 2022
by
huhaiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海运操作接口联调
parent
a7d59736
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
280 additions
and
112 deletions
+280
-112
boxSea.js
src/api/ecw/boxSea.js
+105
-0
arrival.vue
src/views/ecw/box/shippingSea/nodePage/arrival.vue
+24
-17
barge.vue
src/views/ecw/box/shippingSea/nodePage/barge.vue
+27
-12
blCopy.vue
src/views/ecw/box/shippingSea/nodePage/blCopy.vue
+15
-8
index.vue
src/views/ecw/box/shippingSea/nodePage/cabinet/index.vue
+3
-3
startPacking.vue
...ews/ecw/box/shippingSea/nodePage/cabinet/startPacking.vue
+1
-1
clrDocument.vue
src/views/ecw/box/shippingSea/nodePage/clrDocument.vue
+28
-20
cusClearance.vue
src/views/ecw/box/shippingSea/nodePage/cusClearance.vue
+28
-21
cusDeclaration.vue
src/views/ecw/box/shippingSea/nodePage/cusDeclaration.vue
+3
-3
departure.vue
src/views/ecw/box/shippingSea/nodePage/departure.vue
+26
-16
regError.vue
src/views/ecw/box/shippingSea/nodePage/regError.vue
+2
-2
settlement.vue
src/views/ecw/box/shippingSea/nodePage/settlement.vue
+15
-6
ship.vue
src/views/ecw/box/shippingSea/nodePage/ship.vue
+1
-1
index.vue
src/views/ecw/box/shippingSea/nodePage/unloading/index.vue
+2
-2
No files found.
src/api/ecw/boxSea.js
View file @
30c229b1
...
...
@@ -77,6 +77,111 @@ export function billCreate(data) {
});
}
/**
* 驳船
*
* @export
* @param {*} data
* @return {*}
*/
export
function
bargeCreate
(
data
)
{
return
request
({
url
:
"
/ecw/box-barge/create
"
,
method
:
"
post
"
,
data
,
});
}
/**
* 起运
*
* @export
* @param {*} data
* @return {*}
*/
export
function
shippingCreate
(
data
)
{
return
request
({
url
:
"
/ecw/box-shipping/create
"
,
method
:
"
post
"
,
data
,
});
}
/**
* 提单copy
*
* @export
* @param {*} data
* @return {*}
*/
export
function
ladingCopyCreate
(
data
)
{
return
request
({
url
:
"
/ecw/box-lading-copy/create
"
,
method
:
"
post
"
,
data
,
});
}
/**
* 清关文件
*
* @export
* @param {*} data
* @return {*}
*/
export
function
clearanceDocCreate
(
data
)
{
return
request
({
url
:
"
/ecw/box-clearance-doc/create
"
,
method
:
"
post
"
,
data
,
});
}
/**
* 到港
*
* @export
* @param {*} data
* @return {*}
*/
export
function
arrivalCreate
(
data
)
{
return
request
({
url
:
"
/ecw/box-arrival/create
"
,
method
:
"
post
"
,
data
,
});
}
/**
* 清关
*
* @export
* @param {*} data
* @return {*}
*/
export
function
clearanceCreate
(
data
)
{
return
request
({
url
:
"
/ecw/box-clearance/create
"
,
method
:
"
post
"
,
data
,
});
}
/**
* 结算
*
* @export
* @param {*} data
* @return {*}
*/
export
function
settlementCreate
(
data
)
{
return
request
({
url
:
"
/ecw/box-settlement/create
"
,
method
:
"
post
"
,
data
,
});
}
/***************************** 预装 start **********************************/
/**
...
...
src/views/ecw/box/shippingSea/nodePage/arrival.vue
View file @
30c229b1
...
...
@@ -2,22 +2,22 @@
<div>
<el-form
ref=
"arrivalForm"
:rules=
"rules"
:model=
"arrivalObj"
label-width=
"120px"
>
<el-form-item
label=
"预计到港时间"
>
{{
arrivalObj
.
expectedTime
}}
</el-form-item>
<el-form-item
label=
"实际到港时间"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"arrivalObj.a
ctualTime
"
></el-date-picker>
<el-form-item
label=
"实际到港时间"
prop=
"apRealTime"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"arrivalObj.a
pRealTime"
value-format=
"yyyy-MM-dd HH:mm:ss
"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"确认到港"
prop=
"confirmTime"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"arrivalObj.
confirmTime
"
>
<el-form-item
label=
"确认到港"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"arrivalObj.
apConfirmTime"
value-format=
"yyyy-MM-dd HH:mm:ss
"
>
</el-date-picker>
<p
class=
"message-area"
v-show=
"showMsg"
>
请确认是否有异常,如有异常请进行异常登记
</p>
</el-form-item>
<el-form-item
label=
"卸港时间"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"arrivalObj.
dischargeTime
"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"arrivalObj.
apUnloadPortTime"
value-format=
"yyyy-MM-dd
"
></el-date-picker>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
<el-button
type=
"primary"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit(1)"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit
(2)
"
>
提交
</el-button>
<el-button
@
click=
"cancel"
>
关闭
</el-button>
<el-button
type=
"primary"
@
click=
"exceptionReg"
:disabled=
"!showMsg"
>
异常登记
</el-button>
</el-row>
...
...
@@ -32,6 +32,7 @@
<
script
>
import
regError
from
"
./regError
"
;
import
dayjs
from
"
dayjs
"
;
import
{
arrivalCreate
,
serviceMsg
}
from
"
@/api/ecw/boxSea
"
;
/**
* 到港
...
...
@@ -44,12 +45,10 @@ export default {
data
()
{
return
{
// 到港对象
arrivalObj
:
{
expectedTime
:
"
2022-07-18
"
,
},
arrivalObj
:
{},
// 校验
rules
:
{
a
ctu
alTime
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
change
"
}],
a
pRe
alTime
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
change
"
}],
},
// 弹窗配置
dialogVisible
:
false
,
...
...
@@ -60,21 +59,21 @@ export default {
watch
:
{
// 预计到港时间
"
arrivalObj.expectedTime
"
(
val
)
{
this
.
compareDate
(
val
,
this
.
arrivalObj
.
c
onfirmTime
);
this
.
compareDate
(
val
,
this
.
arrivalObj
.
apC
onfirmTime
);
},
// 确认到港时间
"
arrivalObj.
c
onfirmTime
"
(
val
)
{
"
arrivalObj.
apC
onfirmTime
"
(
val
)
{
this
.
compareDate
(
this
.
arrivalObj
.
expectedTime
,
val
);
},
},
methods
:
{
// 时间比较
compareDate
(
expectedTime
,
c
onfirmTime
)
{
compareDate
(
expectedTime
,
apC
onfirmTime
)
{
this
.
showMsg
=
false
;
let
date1
=
null
,
date2
=
null
;
if
(
expectedTime
)
date1
=
dayjs
(
expectedTime
);
if
(
confirmTime
)
date2
=
dayjs
(
c
onfirmTime
);
if
(
apConfirmTime
)
date2
=
dayjs
(
apC
onfirmTime
);
if
(
date1
&&
date2
)
{
const
days
=
date2
.
date
()
-
date1
.
date
();
if
(
days
>
5
)
{
...
...
@@ -87,10 +86,18 @@ export default {
this
.
dialogVisible
=
true
;
},
/** 提交 */
onSubmit
()
{
onSubmit
(
operateType
)
{
this
.
$refs
[
"
arrivalForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
alert
(
"
submit!
"
);
arrivalCreate
({
...
this
.
arrivalObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
operateType
,
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
();
});
});
}
});
},
...
...
src/views/ecw/box/shippingSea/nodePage/barge.vue
View file @
30c229b1
<
template
>
<div>
<el-form
ref=
"bargeForm"
:model=
"bargeObj"
label-width=
"80px"
>
<el-form-item
label=
"驳船"
>
<el-radio-group
v-model=
"bargeObj.
s
tatus"
>
<el-form
ref=
"bargeForm"
:model=
"bargeObj"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"驳船"
prop=
"bgExmtStatus"
>
<el-radio-group
v-model=
"bargeObj.
bgExmtS
tatus"
>
<el-radio
v-for=
"item in bargeStatus"
:key=
"item.value"
:label=
"item.value"
>
{{
item
.
label
}}
</el-radio>
</el-radio-group>
</el-form-item>
<div
v-show=
"bargeObj.
s
tatus === '2'"
>
<div
v-show=
"bargeObj.
bgExmtS
tatus === '2'"
>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"驳船预计开船时间"
label-width=
"130px"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"bargeObj.
expectedTime
"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"bargeObj.
bgEstShipTime"
value-format=
"yyyy-MM-dd
"
></el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"通知人"
label-width=
"80px"
>
<el-select
v-model=
"bargeObj.feedTimePerson"
placeholder=
"请选择通知人"
>
</el-select>
<userSelect
v-model=
"bargeObj.notifyUser"
placeholder=
"请选择通知人"
v-bind=
"$attrs"
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item
label=
"驳船实际开船时间"
label-width=
"130px"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"bargeObj.
actualTime
"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"bargeObj.
bgRealShipTime"
value-format=
"yyyy-MM-dd
"
></el-date-picker>
</el-form-item>
</div>
</el-form>
<el-row
class=
"operate-button"
>
<el-button
type=
"primary"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit(1)"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit
(2)
"
>
提交
</el-button>
<el-button
@
click=
"cancel"
>
关闭
</el-button>
</el-row>
</div>
</
template
>
<
script
>
import
{
bargeCreate
,
serviceMsg
}
from
"
@/api/ecw/boxSea
"
;
import
userSelect
from
"
./common/userSelect.vue
"
;
/**
* 驳船
*/
export
default
{
name
:
"
barge
"
,
components
:
{
userSelect
},
data
()
{
return
{
// 驳船对象
...
...
@@ -56,14 +59,26 @@ export default {
label
:
"
有驳船
"
,
},
],
// 校验
rules
:
{
bgExmtStatus
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
change
"
}],
},
};
},
methods
:
{
/** 提交 */
onSubmit
()
{
onSubmit
(
operateType
)
{
this
.
$refs
[
"
bargeForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
alert
(
"
submit!
"
);
bargeCreate
({
...
this
.
bargeObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
operateType
,
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
();
});
});
}
});
},
...
...
src/views/ecw/box/shippingSea/nodePage/blCopy.vue
View file @
30c229b1
...
...
@@ -2,20 +2,21 @@
<div>
<el-form
ref=
"blCopyForm"
:model=
"blCopyObj"
label-width=
"120px"
>
<el-form-item
label=
"提单Copy"
>
<el-upload
action=
""
:file-list=
"blCopyObj.
fileList
"
>
<el-upload
action=
""
:file-list=
"blCopyObj.
copyUrl
"
>
<el-button
size=
"small"
type=
"primary"
>
选择文件
</el-button>
</el-upload>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit
(1)
"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit
(2)
"
>
提交
</el-button>
<el-button
@
click=
"cancel"
>
关闭
</el-button>
</el-row>
</div>
</
template
>
<
script
>
import
{
ladingCopyCreate
,
serviceMsg
}
from
"
@/api/ecw/boxSea
"
;
/**
* 提单copy
*/
...
...
@@ -24,17 +25,23 @@ export default {
data
()
{
return
{
// 提单copy对象
blCopyObj
:
{
fileList
:
[],
},
blCopyObj
:
{},
};
},
methods
:
{
/** 提交 */
onSubmit
()
{
onSubmit
(
operateType
)
{
this
.
$refs
[
"
blCopyForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
alert
(
"
submit!
"
);
ladingCopyCreate
({
...
this
.
blCopyObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
operateType
,
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
();
});
});
}
});
},
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/index.vue
View file @
30c229b1
...
...
@@ -2,17 +2,17 @@
<div>
<el-form
ref=
"cabinetForm"
:rules=
"rules"
:model=
"cabinet"
label-width=
"80px"
>
<el-form-item
label=
"到仓时间"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cabinet.arrivalTime"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cabinet.arrivalTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"仓库"
>
<el-select
v-model=
"cabinet.warehouse"
placeholder=
"请选择仓库"
>
</el-select>
</el-form-item>
<el-form-item
label=
"装柜时间"
prop=
"time"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cabinet.cabinetTime"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cabinet.cabinetTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"出仓时间"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cabinet.outTime"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cabinet.outTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"装柜图片"
>
<el-upload
action=
""
:limit=
"1"
:file-list=
"cabinet.fileList"
>
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/startPacking.vue
View file @
30c229b1
...
...
@@ -102,7 +102,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"预计时间"
prop=
"estimatedTime"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"modifyCabinetObj.estimatedTime"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"modifyCabinetObj.estimatedTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"选择柜型"
prop=
"cabinetType"
>
<el-select
v-model=
"modifyCabinetObj.cabinetType"
placeholder=
"请选择柜型"
>
...
...
src/views/ecw/box/shippingSea/nodePage/clrDocument.vue
View file @
30c229b1
...
...
@@ -4,72 +4,74 @@
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"出单方式"
>
<el-select
v-model=
"cDocObj.method"
placeholder=
"请选择出单方式"
>
<el-select
v-model=
"cDocObj.cdOutBillType"
placeholder=
"请选择出单方式"
>
<el-option
v-for=
"item in method"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"电放时间"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cDocObj.
dischargeTime
"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cDocObj.
cdElectricTime"
value-format=
"yyyy-MM-dd
"
></el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"寄送时间"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cDocObj.
deliveryTime
"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cDocObj.
cdSendTime"
value-format=
"yyyy-MM-dd
"
></el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"快递单号"
>
<el-input
v-model=
"cDocObj.c
ourierNumber
"
placeholder=
"请输入快递单号"
></el-input>
<el-input
v-model=
"cDocObj.c
dBillNo
"
placeholder=
"请输入快递单号"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item
label=
"电放凭证附件"
>
<el-upload
action=
""
:file-list=
"cDocObj.
fileList
"
>
<el-upload
action=
""
:file-list=
"cDocObj.
cdElectricVoucher
"
>
<el-button
size=
"small"
type=
"primary"
>
选择文件
</el-button>
</el-upload>
</el-form-item>
<el-form-item
label=
"agent list"
>
<el-radio-group
v-model=
"cDocObj.
agent
"
>
<el-radio-group
v-model=
"cDocObj.
cdAgentlistType
"
>
<el-radio
v-for=
"item in status"
:key=
"item.value"
:label=
"item.value"
>
{{
item
.
label
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cDocObj.
agenTime
"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cDocObj.
cdAgentlistTime"
value-format=
"yyyy-MM-dd
"
></el-date-picker>
</el-form-item>
<el-form-item>
<el-upload
action=
""
:file-list=
"cDocObj.
agentFileList
"
>
<el-upload
action=
""
:file-list=
"cDocObj.
cdAgentlistFile
"
>
<el-button
size=
"small"
type=
"primary"
>
选择文件
</el-button>
</el-upload>
</el-form-item>
<el-form-item
label=
"soncap"
>
<el-radio-group
v-model=
"cDocObj.
soncap
"
>
<el-radio-group
v-model=
"cDocObj.
cdSoncapType
"
>
<el-radio
v-for=
"item in status"
:key=
"item.value"
:label=
"item.value"
>
{{
item
.
label
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cDocObj.
soncapTime
"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cDocObj.
cdSoncapTime"
value-format=
"yyyy-MM-dd
"
></el-date-picker>
</el-form-item>
<el-form-item>
<el-upload
action=
""
:file-list=
"cDocObj.
soncapFileList
"
>
<el-upload
action=
""
:file-list=
"cDocObj.
cdSoncapFile
"
>
<el-button
size=
"small"
type=
"primary"
>
选择文件
</el-button>
</el-upload>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit
(1)
"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit
(2)
"
>
提交
</el-button>
<el-button
@
click=
"cancel"
>
关闭
</el-button>
</el-row>
</div>
</
template
>
<
script
>
import
{
clearanceDocCreate
,
serviceMsg
}
from
"
@/api/ecw/boxSea
"
;
/**
* 清关文件
*/
...
...
@@ -78,18 +80,16 @@ export default {
data
()
{
return
{
// 清关文件对象
cDocObj
:
{
fileList
:
[],
},
cDocObj
:
{},
// 出单方式
method
:
[
{
value
:
"
1
"
,
label
:
"
正本
"
,
label
:
"
电放
"
,
},
{
value
:
"
2
"
,
label
:
"
电放
"
,
label
:
"
正本
"
,
},
],
// 选项
...
...
@@ -107,10 +107,18 @@ export default {
},
methods
:
{
/** 提交 */
onSubmit
()
{
onSubmit
(
operateType
)
{
this
.
$refs
[
"
cDocForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
alert
(
"
submit!
"
);
clearanceDocCreate
({
...
this
.
cDocObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
operateType
,
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
();
});
});
}
});
},
...
...
src/views/ecw/box/shippingSea/nodePage/cusClearance.vue
View file @
30c229b1
<
template
>
<div>
<el-form
ref=
"cusClearanceForm"
:rules=
"rules"
:model=
"cusClearanceObj"
label-width=
"120px"
>
<el-form-item
label=
"清关代理"
>
{{
cusClearanceObj
.
agent
}}
</el-form-item>
<el-form-item
label=
"预计清关时间"
prop=
"
expected
Time"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cusClearanceObj.
expectedTime
"
></el-date-picker>
<el-form-item
label=
"清关代理"
>
{{
cusClearanceObj
.
clAgentId
}}
</el-form-item>
<el-form-item
label=
"预计清关时间"
prop=
"
clEst
Time"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cusClearanceObj.
clEstTime"
value-format=
"yyyy-MM-dd
"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"清关时间"
prop=
"c
onfirm
Time"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"cusClearanceObj.c
onfirmTime
"
></el-date-picker>
<el-form-item
label=
"清关时间"
prop=
"c
lClear
Time"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"cusClearanceObj.c
lClearTime"
value-format=
"yyyy-MM-dd HH:mm:ss
"
></el-date-picker>
<p
class=
"message-area"
v-show=
"showMsg"
>
清关时间与预计时间不符,如有异常请登记
</p>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
<el-button
type=
"primary"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit(1)"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit
(2)
"
>
提交
</el-button>
<el-button
@
click=
"cancel"
>
关闭
</el-button>
<el-button
type=
"primary"
@
click=
"exceptionReg"
:disabled=
"!showMsg"
>
异常登记
</el-button>
</el-row>
...
...
@@ -28,6 +28,7 @@
<
script
>
import
regError
from
"
./regError
"
;
import
dayjs
from
"
dayjs
"
;
import
{
clearanceCreate
,
serviceMsg
}
from
"
@/api/ecw/boxSea
"
;
/**
* 清关
...
...
@@ -40,13 +41,11 @@ export default {
data
()
{
return
{
// 清关对象
cusClearanceObj
:
{
agent
:
"
test111
"
,
},
cusClearanceObj
:
{},
// 校验
rules
:
{
expected
Time
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
change
"
}],
c
onfirm
Time
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
change
"
}],
clEst
Time
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
change
"
}],
c
lClear
Time
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
change
"
}],
},
// 弹窗配置
dialogVisible
:
false
,
...
...
@@ -56,22 +55,22 @@ export default {
},
watch
:
{
// 预计清关时间
"
cusClearanceObj.
expected
Time
"
(
val
)
{
this
.
compareDate
(
val
,
this
.
cusClearanceObj
.
c
onfirm
Time
);
"
cusClearanceObj.
clEst
Time
"
(
val
)
{
this
.
compareDate
(
val
,
this
.
cusClearanceObj
.
c
lClear
Time
);
},
// 清关时间
"
cusClearanceObj.c
onfirm
Time
"
(
val
)
{
this
.
compareDate
(
this
.
cusClearanceObj
.
expected
Time
,
val
);
"
cusClearanceObj.c
lClear
Time
"
(
val
)
{
this
.
compareDate
(
this
.
cusClearanceObj
.
clEst
Time
,
val
);
},
},
methods
:
{
// 时间比较
compareDate
(
expectedTime
,
confirm
Time
)
{
compareDate
(
clEstTime
,
clClear
Time
)
{
this
.
showMsg
=
false
;
let
date1
=
null
,
date2
=
null
;
if
(
expectedTime
)
date1
=
dayjs
(
expected
Time
);
if
(
c
onfirmTime
)
date2
=
dayjs
(
confirm
Time
);
if
(
clEstTime
)
date1
=
dayjs
(
clEst
Time
);
if
(
c
lClearTime
)
date2
=
dayjs
(
clClear
Time
);
if
(
date1
&&
date2
&&
date2
!==
date1
)
{
this
.
showMsg
=
true
;
}
...
...
@@ -81,10 +80,18 @@ export default {
this
.
dialogVisible
=
true
;
},
/** 提交 */
onSubmit
()
{
onSubmit
(
operateType
)
{
this
.
$refs
[
"
cusClearanceForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
alert
(
"
submit!
"
);
clearanceCreate
({
...
this
.
cusClearanceObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
operateType
,
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
();
});
});
}
});
},
...
...
src/views/ecw/box/shippingSea/nodePage/cusDeclaration.vue
View file @
30c229b1
...
...
@@ -24,7 +24,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"截关时间"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cusDeclaration.cutTime"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cusDeclaration.cutTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"状态"
>
<el-radio-group
v-model=
"cusDeclaration.status"
>
...
...
@@ -44,7 +44,7 @@
<!-- 退场 -->
<div
v-show=
"cusDeclaration.check === '1' || cusDeclaration.check === '2'"
>
<el-form-item
label=
"查验时间"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cusDeclaration.checkTime"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cusDeclaration.checkTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"查验前图片"
>
<el-upload
action=
""
:limit=
"1"
:file-list=
"cusDeclaration.checkFile"
>
...
...
@@ -58,7 +58,7 @@
<!-- 放行 -->
<el-form-item
label=
"放行时间"
v-show=
"cusDeclaration.status === '2' || cusDeclaration.check === '2'"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cusDeclaration.releaseTime"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cusDeclaration.releaseTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"装箱单"
>
...
...
src/views/ecw/box/shippingSea/nodePage/departure.vue
View file @
30c229b1
...
...
@@ -4,20 +4,19 @@
<el-form-item
label=
"预计开船时间"
>
</el-form-item>
<el-form-item
label=
"实际开船时间"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"departureObj.
actualTime
"
></el-date-picker>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"departureObj.
dtRealShipTime"
value-format=
"yyyy-MM-dd HH:mm:ss
"
></el-date-picker>
<p
class=
"message-area"
>
订单状态与短信通知,将到指定时间更新与发送
</p>
<p
class=
"message-area"
v-show=
"showMsg"
>
实际开船实际与预计时间不符
</p>
</el-form-item>
<el-form-item
label=
"预期到港时间"
prop=
"arrivalTime"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"departureObj.arrivalTime"
>
</el-date-picker>
<el-form-item
label=
"预期到港时间"
prop=
"dtEstArrivalTime"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"departureObj.dtEstArrivalTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
<el-button
type=
"primary"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit(1)"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit
(2)
"
>
提交
</el-button>
<el-button
@
click=
"cancel"
>
关闭
</el-button>
<el-button
type=
"primary"
@
click=
"exceptionReg"
:disabled=
"!showMsg"
>
异常登记
</el-button>
</el-row>
...
...
@@ -31,6 +30,7 @@
<
script
>
import
regError
from
"
./regError
"
;
import
{
shippingCreate
,
serviceMsg
}
from
"
@/api/ecw/boxSea
"
;
/**
* 起运
...
...
@@ -44,7 +44,9 @@ export default {
departureObj
:
{},
// 校验
rules
:
{
arrivalTime
:
[{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
change
"
}],
dtEstArrivalTime
:
[
{
required
:
true
,
message
:
"
必填
"
,
trigger
:
"
change
"
},
],
},
// 弹窗配置
dialogVisible
:
false
,
...
...
@@ -54,22 +56,22 @@ export default {
},
watch
:
{
// 实际开船时间
"
departureObj.
actual
Time
"
(
val
)
{
this
.
compareDate
(
val
,
this
.
departureObj
.
a
rrivalTime
);
"
departureObj.
dtRealShip
Time
"
(
val
)
{
this
.
compareDate
(
val
,
this
.
departureObj
.
dtEstA
rrivalTime
);
},
// 预计到港时间
"
departureObj.
a
rrivalTime
"
(
val
)
{
this
.
compareDate
(
this
.
departureObj
.
actual
Time
,
val
);
"
departureObj.
dtEstA
rrivalTime
"
(
val
)
{
this
.
compareDate
(
this
.
departureObj
.
dtRealShip
Time
,
val
);
},
},
methods
:
{
// 时间比较
compareDate
(
actualTime
,
a
rrivalTime
)
{
compareDate
(
dtRealShipTime
,
dtEstA
rrivalTime
)
{
this
.
showMsg
=
false
;
let
date1
=
null
,
date2
=
null
;
if
(
actualTime
)
date1
=
new
Date
(
actual
Time
);
if
(
arrivalTime
)
date2
=
new
Date
(
a
rrivalTime
);
if
(
dtRealShipTime
)
date1
=
new
Date
(
dtRealShip
Time
);
if
(
dtEstArrivalTime
)
date2
=
new
Date
(
dtEstA
rrivalTime
);
if
(
date1
&&
date2
&&
date1
>
date2
)
{
this
.
showMsg
=
true
;
}
...
...
@@ -79,10 +81,18 @@ export default {
this
.
dialogVisible
=
true
;
},
/** 提交 */
onSubmit
()
{
onSubmit
(
operateType
)
{
this
.
$refs
[
"
departureForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
alert
(
"
submit!
"
);
shippingCreate
({
...
this
.
departureObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
operateType
,
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
();
});
});
}
});
},
...
...
src/views/ecw/box/shippingSea/nodePage/regError.vue
View file @
30c229b1
...
...
@@ -13,8 +13,8 @@
<el-input
v-model=
"errorObj.description"
type=
"textarea"
rows=
"2"
placeholder=
"请输入异常情况"
></el-input>
</el-form-item>
<el-form-item
label=
"异常时间"
prop=
"arrivalTime"
class=
"two-element"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"errorObj.errorStart"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"errorObj.errorend"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"errorObj.errorStart"
value-format=
"yyyy-MM-dd"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"errorObj.errorend"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"是否更新订单状态"
>
<el-radio-group
v-model=
"errorObj.updateOrder"
>
...
...
src/views/ecw/box/shippingSea/nodePage/settlement.vue
View file @
30c229b1
...
...
@@ -2,22 +2,23 @@
<div>
<el-form
ref=
"settlementForm"
:model=
"settlementObj"
label-width=
"80px"
>
<el-form-item
label=
"可结算"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"settlementObj.
billable
"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"settlementObj.
slSettlementTime"
value-format=
"yyyy-MM-dd
"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"已结算"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"settlementObj.s
ettle
d"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"settlementObj.s
lSettledTime"
value-format=
"yyyy-MM-d
d"
></el-date-picker>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
<el-button
type=
"primary"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit(1)"
>
保存
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit
(2)
"
>
提交
</el-button>
<el-button
@
click=
"cancel"
>
关闭
</el-button>
</el-row>
</div>
</
template
>
<
script
>
import
{
settlementCreate
,
serviceMsg
}
from
"
@/api/ecw/boxSea
"
;
/**
* 结算
*/
...
...
@@ -31,10 +32,18 @@ export default {
},
methods
:
{
/** 提交 */
onSubmit
()
{
onSubmit
(
operateType
)
{
this
.
$refs
[
"
settlementForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
alert
(
"
submit!
"
);
settlementCreate
({
...
this
.
settlementObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
operateType
,
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
();
});
});
}
});
},
...
...
src/views/ecw/box/shippingSea/nodePage/ship.vue
View file @
30c229b1
...
...
@@ -7,7 +7,7 @@
</el-radio-group>
</el-form-item>
<el-form-item
label=
"配船时间"
v-show=
"shipObj.saExmtStatus === '2'"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"shipObj.shipTime"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"shipObj.shipTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
</el-form>
...
...
src/views/ecw/box/shippingSea/nodePage/unloading/index.vue
View file @
30c229b1
...
...
@@ -6,10 +6,10 @@
</el-select>
</el-form-item>
<el-form-item
label=
"到仓时间"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"unloadingObj.warehouseTime"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"unloadingObj.warehouseTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"卸柜时间"
>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"unloadingObj.unloadingTime"
></el-date-picker>
<el-date-picker
type=
"datetime"
placeholder=
"请选择日期"
v-model=
"unloadingObj.unloadingTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
</el-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