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
890bb844
Commit
890bb844
authored
Sep 08, 2022
by
huhaiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海运出错问题修改
parent
40eb52de
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
84 additions
and
32 deletions
+84
-32
box.js
src/api/ecw/box.js
+9
-0
index.vue
src/views/ecw/box/ladingBill/index.vue
+8
-2
clrDocument.vue
src/views/ecw/box/shippingSea/nodePage/clrDocument.vue
+22
-28
startUnloading.vue
...ecw/box/shippingSea/nodePage/unloading/startUnloading.vue
+42
-1
unloadingError.vue
...ecw/box/shippingSea/nodePage/unloading/unloadingError.vue
+3
-1
No files found.
src/api/ecw/box.js
View file @
890bb844
...
...
@@ -186,6 +186,15 @@ export function getBillService(params) {
});
}
// 打包下载提货单
export
function
zipDownload
(
params
)
{
return
request
({
url
:
"
/shipment/make-bill-of-lading/zipDownload
"
,
method
:
"
get
"
,
params
,
});
}
/**
* formData数据
*
...
...
src/views/ecw/box/ladingBill/index.vue
View file @
890bb844
<
template
>
<el-row
class=
"shipping-ladingBill"
>
<el-row
class=
"oper-button"
>
<el-button
type=
"primary"
>
打包下载
</el-button>
<el-button
type=
"primary"
@
click=
"clickZipDownload"
>
打包下载
</el-button>
<el-button
type=
"primary"
>
应收汇总单
</el-button>
<el-button
type=
"primary"
>
下载已装单
</el-button>
</el-row>
...
...
@@ -89,8 +89,9 @@ import {
makeBillService
,
getBillService
,
deleteBillService
,
zipDownload
,
}
from
"
@/api/ecw/box
"
;
import
{
getTotlContent
,
getCapacity
}
from
"
../shippingSea/utils
"
;
import
{
getTotlContent
,
getCapacity
,
serviceMsg
}
from
"
../shippingSea/utils
"
;
import
makeLadingBill
from
"
./makeLadingBill.vue
"
;
import
previewBill
from
"
./previewBill.vue
"
;
...
...
@@ -193,6 +194,11 @@ export default {
};
});
},
clickZipDownload() {
zipDownload({ shipmentId: this.shipmentObj.id }).then((res) => {
serviceMsg(res);
});
},
},
computed: {
/* 总计 */
...
...
src/views/ecw/box/shippingSea/nodePage/clrDocument.vue
View file @
890bb844
<
template
>
<div>
<el-form
ref=
"cDocForm"
:model=
"cDocObj"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"出单方式"
>
<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.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.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.cdBillNo"
placeholder=
"请输入快递单号"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item
label=
"电放凭证附件"
>
<FileUpload
:limit=
"1"
:isShowTip=
false
v-model=
"cDocObj.cdElectricVoucher"
:fileType=
"fileType"
/>
<el-form-item
label=
"出单方式"
>
<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>
<template
v-if=
"cDocObj.cdOutBillType === '1'"
>
<el-form-item
label=
"电放时间"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cDocObj.cdElectricTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"电放凭证附件"
>
<FileUpload
:limit=
"1"
:isShowTip=
false
v-model=
"cDocObj.cdElectricVoucher"
:fileType=
"fileType"
/>
</el-form-item>
</
template
>
<
template
v-if=
"cDocObj.cdOutBillType === '2'"
>
<el-form-item
label=
"寄送时间"
>
<el-date-picker
type=
"date"
placeholder=
"请选择日期"
v-model=
"cDocObj.cdSendTime"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"快递单号"
>
<el-input
v-model=
"cDocObj.cdBillNo"
placeholder=
"请输入快递单号"
></el-input>
</el-form-item>
</
template
>
<el-form-item
label=
"agent list"
>
<el-radio-group
v-model=
"cDocObj.cdAgentlistType"
>
<el-radio
v-for=
"item in status"
:key=
"item.value"
:label=
"item.value"
>
{{item.label}}
</el-radio>
...
...
src/views/ecw/box/shippingSea/nodePage/unloading/startUnloading.vue
View file @
890bb844
...
...
@@ -30,7 +30,7 @@
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
width=
"50"
/>
<el-table-column
label=
"订单号"
align=
"center"
prop=
"orderNo"
>
<template
slot-scope=
"scope"
>
<a
href=
"javascript:void(0);"
class=
"order-href"
>
{{
scope
.
row
.
orderNo
}}
</a>
{{
scope
.
row
.
orderNo
}}
</
template
>
</el-table-column>
<el-table-column
label=
"商品信息"
align=
"center"
prop=
"goodsList"
>
...
...
@@ -49,6 +49,21 @@
</el-table-column>
<el-table-column
label=
"体积"
align=
"center"
prop=
"volume"
/>
<el-table-column
label=
"重量"
align=
"center"
prop=
"weight"
/>
<el-table-column
label=
"订单状态"
align=
"center"
prop=
""
>
<
template
slot-scope=
"scope"
>
{{
getOrderError
(
scope
.
row
,
'
orderStatus
'
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"异常状态"
align=
"center"
prop=
""
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"handleError(scope.row)"
icon=
"el-icon-edit"
>
{{
getOrderError
(
scope
.
row
,
'
errorStatus
'
)
}}
</el-button>
</
template
>
</el-table-column>
<el-table-column
label=
"异常类型"
align=
"center"
prop=
""
>
<
template
slot-scope=
"scope"
>
{{
getUnloadError
(
scope
.
row
.
exceptionList
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"danger"
size=
"small"
@
click=
"openError(scope.row)"
>
异常
</el-button>
...
...
@@ -261,6 +276,32 @@ export default {
});
});
},
// 获取异常类型
getUnloadError
(
exceptionList
)
{
const
codes
=
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ORDER_ERROR_TYPE
);
let
errorLabels
=
[];
exceptionList
.
forEach
((
item
)
=>
{
const
errObj
=
codes
.
find
(
(
cItem
)
=>
cItem
.
value
===
item
.
orderExceptionType
);
if
(
errObj
)
errorLabels
.
push
(
errObj
.
label
);
});
return
errorLabels
.
join
(
"
,
"
);
},
// 订单异常
getOrderError
(
row
,
type
)
{
if
(
row
.
exceptionList
&&
row
.
exceptionList
.
length
)
{
return
type
===
"
orderStatus
"
?
"
卸柜异常
"
:
"
待处理
"
;
}
return
type
===
"
orderStatus
"
?
"
已到港
"
:
""
;
},
// 处理异常
handleError
(
row
)
{
this
.
$emit
(
"
closeStart
"
,
"
close
"
);
this
.
$router
.
push
({
path
:
`/order/pending?id=
${
row
.
orderId
}
`
,
});
},
},
computed
:
{
/* 是否审核中 */
...
...
src/views/ecw/box/shippingSea/nodePage/unloading/unloadingError.vue
View file @
890bb844
...
...
@@ -40,7 +40,9 @@ export default {
return
{
// 异常对象
errorObj
:
{},
errorObj
:
{
productId
:
currRow
.
goodsList
[
0
].
orderItemId
,
},
// 品名
goodsList
:
currRow
.
goodsList
??
[],
};
...
...
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