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
ac54e1b0
Commit
ac54e1b0
authored
Sep 16, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
c3eb7ad5
44219b43
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
188 additions
and
64 deletions
+188
-64
box.js
src/api/ecw/box.js
+0
-1
indexAir.vue
src/views/ecw/box/indexAir.vue
+1
-1
index.vue
src/views/ecw/box/ladingBill/index.vue
+12
-14
addPotentialCustom.vue
src/views/ecw/customer/addPotentialCustom.vue
+6
-2
index.vue
src/views/ecw/customer/index.vue
+2
-2
query.vue
src/views/ecw/customer/query.vue
+5
-3
SplitDetail.vue
src/views/ecw/order/components/SplitDetail.vue
+47
-3
imageDisplay.vue
src/views/ecw/order/components/imageDisplay.vue
+2
-1
detail.vue
src/views/ecw/order/detail.vue
+3
-4
feeApplication.vue
src/views/ecw/order/feeApplication.vue
+52
-23
index.vue
src/views/ecw/order/splitApply/index.vue
+58
-10
No files found.
src/api/ecw/box.js
View file @
ac54e1b0
...
@@ -304,7 +304,6 @@ export function downloadCustomFiles(params) {
...
@@ -304,7 +304,6 @@ export function downloadCustomFiles(params) {
export
function
downloadLoadGoodsList
(
params
)
{
export
function
downloadLoadGoodsList
(
params
)
{
return
request
({
return
request
({
url
:
"
/ecw/box-preload-goods/downloadLoadGoodsList
"
,
url
:
"
/ecw/box-preload-goods/downloadLoadGoodsList
"
,
responseType
:
"
blob
"
,
timeout
:
3
*
60
*
1000
,
timeout
:
3
*
60
*
1000
,
method
:
"
get
"
,
method
:
"
get
"
,
params
,
params
,
...
...
src/views/ecw/box/indexAir.vue
View file @
ac54e1b0
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
<regError
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:allUsers=
"allUsers"
/>
<regError
v-if=
"dialogCfg.open"
@
closeDialog=
"closeDialog"
:shipmentObj=
"currRow"
:allUsers=
"allUsers"
/>
</
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"
type=
"air"
/>
</
template
>
</
template
>
<
template
v-if=
"dialogCfg.dialogType === 'notice'"
>
<
template
v-if=
"dialogCfg.dialogType === 'notice'"
>
<div
class=
"notice-dialog"
>
<div
class=
"notice-dialog"
>
...
...
src/views/ecw/box/ladingBill/index.vue
View file @
ac54e1b0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<el-row
class=
"oper-button"
>
<el-row
class=
"oper-button"
>
<el-button
type=
"primary"
@
click=
"clickZipDownload"
>
{{
$t
(
'
打包下载
'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"clickZipDownload"
>
{{
$t
(
'
打包下载
'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"handleCommand('downloadReceivableList')"
>
{{
$t
(
'
应收汇总表
'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"handleCommand('downloadReceivableList')"
>
{{
$t
(
'
应收汇总表
'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"handleCommand('downloadLoadGoodsList')"
>
{{
$t
(
'
下载已装单
'
)
}}
</el-button>
<el-button
v-if=
"type=='sea'"
type=
"primary"
@
click=
"handleCommand('downloadLoadGoodsList')"
>
{{
$t
(
'
下载已装单
'
)
}}
</el-button>
</el-row>
</el-row>
<el-row
style=
"margin-top:15px"
>
<el-row
style=
"margin-top:15px"
>
...
@@ -104,7 +104,7 @@ import {
...
@@ -104,7 +104,7 @@ import {
getMakeBillList
,
getMakeBillList
,
makeBillService
,
makeBillService
,
getBillService
,
getBillService
,
deleteBillService
,
deleteBillService
,
zipDownload
,
downloadReceivableList
,
}
from
"
@/api/ecw/box
"
;
}
from
"
@/api/ecw/box
"
;
import
{
import
{
getTotlContent
,
getTotlContent
,
...
@@ -120,6 +120,10 @@ export default {
...
@@ -120,6 +120,10 @@ export default {
props
:
{
props
:
{
shipmentObj
:
Object
,
shipmentObj
:
Object
,
getCabinetName
:
Function
,
getCabinetName
:
Function
,
type
:
{
type
:
String
,
default
:
'
sea
'
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -214,12 +218,9 @@ export default {
...
@@ -214,12 +218,9 @@ export default {
);
);
return
;
return
;
case
"
downloadReceivableList
"
:
case
"
downloadReceivableList
"
:
downloadFile
(
downloadReceivableList
({
shipmentId
:
this
.
shipmentObj
.
id
}).
then
(
res
=>
{
type
,
this
.
$message
.
success
(
this
.
$t
(
'
已加入导出队列,请稍后在下载日志中下载
'
))
{
shipmentId
:
this
.
shipmentObj
.
id
},
})
this
.
$t
(
"
应收汇总表
"
)
+
`(
${
this
.
shipmentObj
.
selfNo
}
).xlsx`
,
"
xlsx
"
);
return
;
return
;
}
}
this
.
currRow
=
row
;
this
.
currRow
=
row
;
...
@@ -252,12 +253,9 @@ export default {
...
@@ -252,12 +253,9 @@ export default {
});
});
},
},
clickZipDownload
()
{
clickZipDownload
()
{
downloadFile
(
zipDownload
({
shipmentId
:
this
.
shipmentObj
.
id
}).
then
(
res
=>
{
"
zipDownload
"
,
this
.
$message
.
success
(
this
.
$t
(
'
已加入导出队列,请稍后在下载日志中下载
'
))
{
shipmentId
:
this
.
shipmentObj
.
id
},
})
this
.
shipmentObj
.
selfNo
+
"
.zip
"
,
"
zip
"
);
},
},
},
},
computed
:
{
computed
:
{
...
...
src/views/ecw/customer/addPotentialCustom.vue
View file @
ac54e1b0
...
@@ -54,6 +54,9 @@
...
@@ -54,6 +54,9 @@
</el-col>
</el-col>
</el-row>
</el-row>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('图片')"
prop=
"picture"
>
<upload
v-model=
"form.picture"
:limit=
"1"
></upload>
</el-form-item>
<el-form-item
:label=
"$t('询盘信息')"
>
<el-form-item
:label=
"$t('询盘信息')"
>
<el-input
<el-input
v-model=
"form.inquiry"
v-model=
"form.inquiry"
...
@@ -78,7 +81,7 @@ import {listServiceUser} from "@/api/system/user";
...
@@ -78,7 +81,7 @@ import {listServiceUser} from "@/api/system/user";
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
;
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
;
import
{
getProductList
}
from
"
@/api/ecw/product
"
;
import
{
getProductList
}
from
"
@/api/ecw/product
"
;
import
{
createPotential
}
from
"
@/api/ecw/customer
"
;
import
{
createPotential
}
from
"
@/api/ecw/customer
"
;
import
upload
from
'
@/components/ImageUpload
'
export
default
{
export
default
{
name
:
"
addPotentialCustom
"
,
name
:
"
addPotentialCustom
"
,
methods
:
{
methods
:
{
...
@@ -100,6 +103,7 @@ export default {
...
@@ -100,6 +103,7 @@ export default {
inquiry
:
undefined
,
inquiry
:
undefined
,
productType
:
undefined
,
productType
:
undefined
,
productId
:
undefined
,
productId
:
undefined
,
picture
:
undefined
}
}
},
},
submit
(){
submit
(){
...
@@ -122,7 +126,7 @@ export default {
...
@@ -122,7 +126,7 @@ export default {
},
},
},
},
components
:
{
AreaCodeSelector
},
components
:
{
AreaCodeSelector
,
upload
},
created
()
{
created
()
{
this
.
reset
()
this
.
reset
()
listServiceUser
().
then
(
r
=>
{
listServiceUser
().
then
(
r
=>
{
...
...
src/views/ecw/customer/index.vue
View file @
ac54e1b0
...
@@ -92,11 +92,11 @@
...
@@ -92,11 +92,11 @@
<el-button
v-hasPermi=
"['ecw:customer:fcl']"
:disabled=
"!selectCustomerList.length"
@
click=
"setFullContainerLoad(true)"
v-if=
"$route.path === '/customer/customer'"
type=
"primary"
plain
size=
"mini"
:loading=
"exportLoading"
>
{{
$t
(
'
设置海运整柜客户
'
)
}}
</el-button>
<el-button
v-hasPermi=
"['ecw:customer:fcl']"
:disabled=
"!selectCustomerList.length"
@
click=
"setFullContainerLoad(true)"
v-if=
"$route.path === '/customer/customer'"
type=
"primary"
plain
size=
"mini"
:loading=
"exportLoading"
>
{{
$t
(
'
设置海运整柜客户
'
)
}}
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['ecw:customer:
create-potential
']"
:disabled=
"!selectCustomerList.length"
@
click=
"setFullContainerLoad(false)"
v-if=
"$route.path === '/customer/customer'"
type=
"primary"
plain
size=
"mini"
:loading=
"exportLoading"
<el-button
v-hasPermi=
"['ecw:customer:
fcl-mistake
']"
:disabled=
"!selectCustomerList.length"
@
click=
"setFullContainerLoad(false)"
v-if=
"$route.path === '/customer/customer'"
type=
"primary"
plain
size=
"mini"
:loading=
"exportLoading"
>
{{
$t
(
'
设置海运非整柜客户
'
)
}}
</el-button>
>
{{
$t
(
'
设置海运非整柜客户
'
)
}}
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
v-has-permi=
"['ecw:customer:
fcl-mistake
']"
v-if=
"path === '/customer/customer'"
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAddPotential"
>
{{
$t
(
'
新增潜在客户
'
)
}}
</el-button>
<el-button
v-has-permi=
"['ecw:customer:
create-potential
']"
v-if=
"path === '/customer/customer'"
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAddPotential"
>
{{
$t
(
'
新增潜在客户
'
)
}}
</el-button>
</el-col>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
...
...
src/views/ecw/customer/query.vue
View file @
ac54e1b0
...
@@ -47,9 +47,9 @@
...
@@ -47,9 +47,9 @@
<
el
-
descriptions
-
item
:
label
=
"
$t('主营类别')
"
>
{{
$l
(
customer
,
'
productTypeName
'
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('主营类别')
"
>
{{
$l
(
customer
,
'
productTypeName
'
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('常提货网点')
"
>
{{
$l
(
customer
,
'
pickupPointName
'
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('常提货网点')
"
>
{{
$l
(
customer
,
'
pickupPointName
'
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('图片')
"
>
<
el
-
descriptions
-
item
:
label
=
"
$t('图片')
"
>
<
el
-
image
v
-
if
=
"
customer.picture
"
:
src
=
"
customer.picture
"
style
=
"
width: 100px;height: 100px
"
>
<
image
-
display
:
picture
-
urls
=
"
customer.picture ? customer.picture.split(',') : []
"
>
<
span
slot
=
"
error
"
>
加载失败
<
/spa
n
>
<
el
-
button
type
=
"
text
"
>
查看图片
<
/el-butto
n
>
<
/el-image
>
<
/image-display
>
<
/el-descriptions-item
>
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('备注')
"
>
{{
customer
.
remarks
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('备注')
"
>
{{
customer
.
remarks
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('业绩类型')
"
>
{{
customer
.
isNew
?
$t
(
'
新客户
'
)
:
$t
(
'
老客户
'
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('业绩类型')
"
>
{{
customer
.
isNew
?
$t
(
'
新客户
'
)
:
$t
(
'
老客户
'
)
}}
<
/el-descriptions-item
>
...
@@ -513,10 +513,12 @@ import {getCountry} from "@/api/ecw/country"
...
@@ -513,10 +513,12 @@ import {getCountry} from "@/api/ecw/country"
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
import
customerLog
from
"
@/views/ecw/customer/customerLog.vue
"
;
import
customerLog
from
"
@/views/ecw/customer/customerLog.vue
"
;
import
{
checkPermi
}
from
"
@/utils/permission
"
;
import
{
checkPermi
}
from
"
@/utils/permission
"
;
import
ImageDisplay
from
"
@/views/ecw/order/components/imageDisplay.vue
"
;
export
default
{
export
default
{
name
:
'
query
'
,
name
:
'
query
'
,
components
:
{
components
:
{
ImageDisplay
,
Template
,
Template
,
CustomerFollow
,
CustomerFollow
,
CustomerComplaint
,
CustomerComplaint
,
...
...
src/views/ecw/order/components/SplitDetail.vue
View file @
ac54e1b0
...
@@ -72,6 +72,27 @@
...
@@ -72,6 +72,27 @@
<el-table-column
:label=
"$t('备注')"
>
<el-table-column
:label=
"$t('备注')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
remark
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
remark
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('成交单价')"
align=
"center"
min-width=
"220px"
v-if=
"[3,4].indexOf(order.transportId) > -1"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.charging != 1"
>
<div
class=
"flex"
>
{{
$t
(
'
运费
'
)
}}
<el-input
v-model=
"scope.row.oneSeaFreight"
disabled
size=
"mini"
style=
"width: 80px"
></el-input>
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
</div>
<div
class=
"flex"
>
{{
$t
(
'
清关费
'
)
}}
<el-input
v-model=
"scope.row.oneClearanceFreight"
disabled
size=
"mini"
style=
"width: 80px"
></el-input>
{{
currencyMap
[
scope
.
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
</div>
</
template
>
<
template
v-else
>
{{
$t
(
'
全包价
'
)
}}
<el-input
v-model=
"scope.row.oneSeaFreight"
@
change=
"updateField(scope.row, 'oneSeaFreight')"
size=
"mini"
style=
"width: 80px"
></el-input>
{{
currencyMap
[
scope
.
row
.
currencyId
]
}}
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
</
template
>
</template>
</el-table-column>
</el-table>
</el-table>
</template>
</template>
<warehouse-record
v-if=
"currentWarehouseRecord"
:list=
"currentWarehouseRecord"
append-to-body
@
close=
"currentWarehouseRecord=null"
></warehouse-record>
<warehouse-record
v-if=
"currentWarehouseRecord"
:list=
"currentWarehouseRecord"
append-to-body
@
close=
"currentWarehouseRecord=null"
></warehouse-record>
...
@@ -82,8 +103,11 @@ import {getApproval, getOrder} from '@/api/ecw/order'
...
@@ -82,8 +103,11 @@ import {getApproval, getOrder} from '@/api/ecw/order'
import
{
getChannel
}
from
'
@/api/ecw/channel
'
import
{
getChannel
}
from
'
@/api/ecw/channel
'
import
{
getSplitList
}
from
'
@/api/ecw/orderHandle
'
import
{
getSplitList
}
from
'
@/api/ecw/orderHandle
'
import
WarehouseRecord
from
"
@/views/ecw/order/splitApply/components/WarehouseRecord
"
;
import
WarehouseRecord
from
"
@/views/ecw/order/splitApply/components/WarehouseRecord
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
import
{
getUnitList
}
from
"
@/api/ecw/unit
"
;
export
default
{
export
default
{
components
:
{
WarehouseRecord
},
components
:
{
Template
,
WarehouseRecord
},
props
:{
props
:{
id
:
[
String
,
Number
]
id
:
[
String
,
Number
]
},
},
...
@@ -94,7 +118,9 @@ export default {
...
@@ -94,7 +118,9 @@ export default {
channel
:
null
,
channel
:
null
,
// orderSplitBackVOList: [],
// orderSplitBackVOList: [],
// 查看入仓记录的条目
// 查看入仓记录的条目
currentWarehouseRecord
:
null
currentWarehouseRecord
:
null
,
currencyList
:[],
unitList
:
[]
}
}
},
},
watch
:{
watch
:{
...
@@ -114,9 +140,23 @@ export default {
...
@@ -114,9 +140,23 @@ export default {
computed
:{
computed
:{
orderSplitBackVOList
(){
orderSplitBackVOList
(){
return
this
.
detail
?
this
.
detail
.
orderSplitBackVOList
:
[]
return
this
.
detail
?
this
.
detail
.
orderSplitBackVOList
:
[]
},
currencyMap
(){
let
map
=
{}
this
.
currencyList
.
forEach
(
item
=>
{
map
[
item
.
id
]
=
this
.
$l
(
item
,
'
title
'
)
})
return
map
},
unitMap
(){
let
map
=
{}
this
.
unitList
.
forEach
(
item
=>
{
map
[
item
.
id
]
=
this
.
$l
(
item
,
'
title
'
)
})
return
map
}
}
},
},
created
(){
async
created
(){
if
(
this
.
id
){
if
(
this
.
id
){
this
.
getData
()
this
.
getData
()
}
}
...
@@ -136,6 +176,10 @@ export default {
...
@@ -136,6 +176,10 @@ export default {
getOrder
(){
getOrder
(){
getOrder
(
this
.
detail
.
orderId
).
then
(
res
=>
{
getOrder
(
this
.
detail
.
orderId
).
then
(
res
=>
{
this
.
order
=
res
.
data
this
.
order
=
res
.
data
if
([
3
,
4
].
indexOf
(
this
.
order
.
transportId
)
>
-
1
){
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
}
})
})
},
},
getChannel
(){
getChannel
(){
...
...
src/views/ecw/order/components/imageDisplay.vue
View file @
ac54e1b0
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<el-dialog
<el-dialog
append-to-body
append-to-body
title=
"提示
"
:title=
"$t('图片')
"
:visible.sync=
"visible"
:visible.sync=
"visible"
width=
"80%"
>
width=
"80%"
>
<div
style=
"display: flex;flex-wrap: wrap;"
>
<div
style=
"display: flex;flex-wrap: wrap;"
>
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
<video
controls
width=
"148px"
height=
"148px"
slot=
"error"
:src=
"bizId ? item.url : item"
></video>
<video
controls
width=
"148px"
height=
"148px"
slot=
"error"
:src=
"bizId ? item.url : item"
></video>
</el-image>
</el-image>
</div>
</div>
<el-empty
v-if=
"!list.length"
description=
"暂无图片"
></el-empty>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/ecw/order/detail.vue
View file @
ac54e1b0
...
@@ -150,9 +150,9 @@
...
@@ -150,9 +150,9 @@
<el-descriptions-item
:label=
"$t('创建时间')"
>
<el-descriptions-item
:label=
"$t('创建时间')"
>
{{order.createTime|parseTime}}
{{order.createTime|parseTime}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('客户经理')"
>
<el-descriptions-item
:label=
"$t('客户经理')"
>
{{order.salesmanName}}
{{order.salesmanName}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
</el-card>
</el-card>
...
@@ -627,7 +627,6 @@ export default {
...
@@ -627,7 +627,6 @@ export default {
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
}
,
}
,
methods
:
{
methods
:
{
checkPermi
,
// 检查权限
checkPermi
,
// 检查权限
...
...
src/views/ecw/order/feeApplication.vue
View file @
ac54e1b0
...
@@ -12,35 +12,35 @@
...
@@ -12,35 +12,35 @@
</div></el-form-item>
</div></el-form-item>
<el-form-item
:label=
"$t('发货人')+':'"
><div
class=
"content"
>
{{
orderDetails
.
consignorVO
?
orderDetails
.
consignorVO
.
name
:
''
}}
</div></el-form-item>
<el-form-item
:label=
"$t('发货人')+':'"
><div
class=
"content"
>
{{
orderDetails
.
consignorVO
?
orderDetails
.
consignorVO
.
name
:
''
}}
</div></el-form-item>
<el-form-item
:label=
"$t('唛头')"
><div
class=
"content"
>
{{
orderDetails
.
marks
}}
</div></el-form-item>
<el-form-item
:label=
"$t('唛头')"
><div
class=
"content"
>
{{
orderDetails
.
marks
}}
</div></el-form-item>
<el-form-item>
<el-button
:disabled=
"!!processInstanceId"
@
click=
"addCost"
>
{{
$t
(
'
添加申请
'
)
}}
</el-button></el-form-item>
<el-form-item>
<el-button
:disabled=
"!!processInstanceId
|| editMode
"
@
click=
"addCost"
>
{{
$t
(
'
添加申请
'
)
}}
</el-button></el-form-item>
</el-form>
</el-form>
<el-table
:data=
"list"
>
<el-table
:data=
"list"
>
<el-table-column
:label=
"$t('序号')"
type=
"index"
></el-table-column>
<el-table-column
:label=
"$t('序号')"
type=
"index"
></el-table-column>
<el-table-column
:label=
"$t('费用类型')"
>
<el-table-column
:label=
"$t('费用类型')"
>
<template
v-slot:default =
"scope"
>
<template
v-slot:default =
"scope"
>
<dict-selector
:disabled=
"!!scope.row.status"
:type=
"DICT_TYPE.FEE_TYPE"
v-model=
"scope.row.feeType"
/>
<dict-selector
:disabled=
"!
scope.row.editMode && !
!scope.row.status"
:type=
"DICT_TYPE.FEE_TYPE"
v-model=
"scope.row.feeType"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('金额')"
>
<el-table-column
:label=
"$t('金额')"
>
<
template
v-slot:default =
'scope'
>
<
template
v-slot:default =
'scope'
>
<el-input
:disabled=
"!!scope.row.status"
v-model.number=
"scope.row.applicationFee"
></el-input>
<el-input
:disabled=
"!
scope.row.editMode && !
!scope.row.status"
v-model.number=
"scope.row.applicationFee"
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('货币类型')"
>
<el-table-column
:label=
"$t('货币类型')"
>
<
template
v-slot:default =
'scope'
>
<
template
v-slot:default =
'scope'
>
<el-select
:disabled=
"!!scope.row.status"
v-model=
"scope.row.applicationFeeCurrency"
>
<el-select
:disabled=
"!
scope.row.editMode && !
!scope.row.status"
v-model=
"scope.row.applicationFeeCurrency"
>
<el-option
v-for=
"item in JSON.parse(currencys)"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
/>
<el-option
v-for=
"item in JSON.parse(currencys)"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
/>
</el-select>
</el-select>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('付款类型')"
>
<el-table-column
:label=
"$t('付款类型')"
>
<
template
v-slot =
{row}
>
<
template
v-slot =
{row}
>
<dict-selector
:disabled=
"row.status"
:type=
"DICT_TYPE.PAYMENT_TYPE"
v-model=
"row.payType"
/>
<dict-selector
:disabled=
"
!row.editMode && !!
row.status"
:type=
"DICT_TYPE.PAYMENT_TYPE"
v-model=
"row.payType"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('备注')"
>
<el-table-column
:label=
"$t('备注')"
>
<
template
v-slot:default=
"scope"
>
<
template
v-slot:default=
"scope"
>
<el-input
:disabled=
"!!scope.row.status"
v-model=
"scope.row.remarks"
type=
"textarea"
></el-input>
<el-input
:disabled=
"!
scope.row.editMode && !
!scope.row.status"
v-model=
"scope.row.remarks"
type=
"textarea"
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('确认收款')"
>
<el-table-column
:label=
"$t('确认收款')"
>
...
@@ -55,9 +55,9 @@
...
@@ -55,9 +55,9 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
>
<el-table-column
:label=
"$t('操作')"
>
<
template
v-slot:default =
'scope'
>
<
template
v-slot:default =
'scope'
>
<el-
button
type=
"text"
v-if=
"scope.row.status !== 0&&scope.row.status !== 1"
>
{{
STATUS
[
scope
.
row
.
status
]
}}
</el-button
>
<el-
tag
v-if=
"scope.row.status !== 0 && !scope.row.editMode"
>
{{
STATUS
[
scope
.
row
.
status
]
}}
</el-tag
>
<!--el-button type="text" v-if="scope.row.status == 1" @click="examineFn">
{{
$t
(
'
审核中
'
)
}}
</el-button>
<!--el-button type="text" v-if="scope.row.status == 1" @click="examineFn">
{{
$t
(
'
审核中
'
)
}}
</el-button
--
>
<el-button
type=
"text"
v-if=
"
scope.row.status === 2"
@
click=
"modify(scope.row)"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
--
>
<el-button
type=
"text"
v-if=
"
modifable(scope.$index)"
@
click=
"modify(scope.row)"
>
{{
$t
(
'
修改
'
)
}}
</el-button
>
<el-button
type=
"text"
v-if=
"scope.row.status === 0"
@
click=
"del(scope.$index)"
>
删除
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.status === 0"
@
click=
"del(scope.$index)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<work-flow
xmlkey=
"free_apply"
v-model=
"selectedUsers"
/>
<work-flow
xmlkey=
"free_apply"
v-model=
"selectedUsers"
/>
</div>
</div>
<div
style=
"text-align: center;margin-top: 20px;"
>
<div
style=
"text-align: center;margin-top: 20px;"
>
<el-button
type=
"primary"
v-if=
"!processInstanceId"
style=
"margin-right: 30px;"
:disabled=
"!feeList.length"
@
click=
"submit"
>
{{$t('提交')}}
</el-button>
<el-button
type=
"primary"
v-if=
"!processInstanceId"
style=
"margin-right: 30px;"
:disabled=
"!feeList.length
&& !editMode
"
@
click=
"submit"
>
{{$t('提交')}}
</el-button>
<el-button
type=
"primary"
v-if=
"processInstanceId"
style=
"margin-right: 30px;"
@
click=
"goProcessDetail"
>
{{$t('审核中')}}
</el-button>
<el-button
type=
"primary"
v-if=
"processInstanceId"
style=
"margin-right: 30px;"
@
click=
"goProcessDetail"
>
{{$t('审核中')}}
</el-button>
<el-button
type=
"primary"
v-if=
"processInstanceId"
style=
"margin-right: 30px;"
@
click=
"cancel"
>
{{$t('取消审核')}}
</el-button>
<el-button
type=
"primary"
v-if=
"processInstanceId"
style=
"margin-right: 30px;"
@
click=
"cancel"
>
{{$t('取消审核')}}
</el-button>
<el-button
@
click=
"$emit('update:dialogVisible',false)"
>
{{$t('返回')}}
</el-button>
<el-button
@
click=
"$emit('update:dialogVisible',false)"
>
{{$t('返回')}}
</el-button>
...
@@ -112,14 +112,31 @@ export default {
...
@@ -112,14 +112,31 @@ export default {
DICT_TYPE
,
DICT_TYPE
,
getDictDatas
,
getDictDatas
,
STATUS
:{},
STATUS
:{},
isModify
:[],
isModifyIf
:
false
,
selectedUsers
:[]
selectedUsers
:[]
}
}
},
},
computed
:{
computed
:{
feeList
(){
feeList
(){
return
this
.
list
.
filter
(
item
=>
item
.
status
===
0
)
return
this
.
list
.
filter
(
item
=>
item
.
status
===
0
)
},
// 正在编辑的费用申请
currentItem
(){
return
this
.
list
.
find
(
item
=>
item
.
editMode
)
},
// 是否修改模式
editMode
(){
return
!!
this
.
currentItem
},
modifable
(){
return
(
index
)
=>
{
// 审核中不允许修改
if
(
this
.
processInstanceId
)
return
false
// 有未提交的不允许修改
if
(
this
.
feeList
.
length
)
return
false
// 有修改中的不允许修改
if
(
this
.
list
.
findIndex
(
item
=>
item
.
editMode
)
>
-
1
)
return
false
return
true
}
}
}
},
},
created
()
{
created
()
{
...
@@ -152,6 +169,10 @@ export default {
...
@@ -152,6 +169,10 @@ export default {
this
.
list
.
splice
(
index
,
1
)
this
.
list
.
splice
(
index
,
1
)
})
})
},
},
// 修改
modify
(
item
){
this
.
$set
(
item
,
'
editMode
'
,
true
)
},
addCost
(){
addCost
(){
this
.
list
.
push
({
this
.
list
.
push
({
orderId
:
this
.
orderId
,
orderId
:
this
.
orderId
,
...
@@ -172,17 +193,26 @@ export default {
...
@@ -172,17 +193,26 @@ export default {
if
(
errList
.
length
){
if
(
errList
.
length
){
return
this
.
$message
.
error
(
'
请填写完整费用申请信息
'
)
return
this
.
$message
.
error
(
'
请填写完整费用申请信息
'
)
}
}
feeApplicationCreateBatch
(
{
if
(
this
.
editMode
){
orderFeeApplicationCreateReqVOList
:
this
.
feeList
,
// 要提交status=1,否则保持原状态
copyUserId
:
this
.
selectedUsers
,
const
data
=
{...
this
.
currentItem
,
status
:
1
,
copyUserId
:
this
.
selectedUsers
}
orderId
:
this
.
orderId
return
applicationUpdate
(
data
).
then
(
r
=>
{
}).
then
(
r
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
修改成功
'
));
if
(
r
.
code
===
0
){
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
})
this
.
$message
.
success
(
this
.
$t
(
'
添加成功
'
));
this
.
selectedUsers
=
[];
}
}
})
feeApplicationCreateBatch
(
{
orderFeeApplicationCreateReqVOList
:
this
.
feeList
,
copyUserId
:
this
.
selectedUsers
,
orderId
:
this
.
orderId
}).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
this
.
$message
.
success
(
this
.
$t
(
'
添加成功
'
));
this
.
selectedUsers
=
[];
}
})
},
},
goProcessDetail
(){
goProcessDetail
(){
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
...
@@ -208,7 +238,6 @@ export default {
...
@@ -208,7 +238,6 @@ export default {
watch
:{
watch
:{
dialogVisible
(
val
){
dialogVisible
(
val
){
if
(
val
){
if
(
val
){
this
.
isModify
=
[]
this
.
getOrderList
()
this
.
getOrderList
()
getOrder
(
this
.
orderId
).
then
(
r
=>
{
getOrder
(
this
.
orderId
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
if
(
r
.
code
===
0
){
...
...
src/views/ecw/order/splitApply/index.vue
View file @
ac54e1b0
...
@@ -165,12 +165,12 @@
...
@@ -165,12 +165,12 @@
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('入仓体积')"
align=
"center"
>
<el-table-column
:label=
"$t('入仓体积')"
align=
"center"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
volume
}}
m³
{{
scope
.
row
.
volume
}}
m³
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('收费体积')"
align=
"center"
>
<el-table-column
:label=
"$t('收费体积')"
align=
"center"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
chargeVolume
}}
m³
{{
scope
.
row
.
chargeVolume
}}
m³
<!--
<el-input
v-model=
"scope.row.chargeVolume"
@
change=
"updateField(scope.row, 'chargeVolume')"
size=
"mini"
disabled
>
<!--
<el-input
v-model=
"scope.row.chargeVolume"
@
change=
"updateField(scope.row, 'chargeVolume')"
size=
"mini"
disabled
>
...
@@ -178,12 +178,12 @@
...
@@ -178,12 +178,12 @@
</el-input>
-->
</el-input>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('入仓重量')"
align=
"center"
>
<el-table-column
:label=
"$t('入仓重量')"
align=
"center"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
weight
}}
kg
{{
scope
.
row
.
weight
}}
kg
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('收费重量')"
align=
"center"
>
<el-table-column
:label=
"$t('收费重量')"
align=
"center"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
chargeWeight
}}
kg
{{
scope
.
row
.
chargeWeight
}}
kg
<!--
<el-input
v-model=
"scope.row.chargeWeight"
@
change=
"updateField(scope.row, 'chargeWeight')"
size=
"mini"
disabled
>
<!--
<el-input
v-model=
"scope.row.chargeWeight"
@
change=
"updateField(scope.row, 'chargeWeight')"
size=
"mini"
disabled
>
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
</el-input>
-->
</el-input>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('货值')"
align=
"center"
>
<el-table-column
:label=
"$t('货值')"
align=
"center"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
worth
}}{{
$t
(
'
元
'
)
}}
{{
scope
.
row
.
worth
}}{{
$t
(
'
元
'
)
}}
<!--
<el-input
v-model=
"scope.row.worth"
@
change=
"updateField(scope.row, 'worth')"
size=
"mini"
disabled
>
<!--
<el-input
v-model=
"scope.row.worth"
@
change=
"updateField(scope.row, 'worth')"
size=
"mini"
disabled
>
...
@@ -199,14 +199,35 @@
...
@@ -199,14 +199,35 @@
</el-input>
-->
</el-input>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('箱数')"
align=
"center"
prop=
"num"
>
<el-table-column
:label=
"$t('箱数')"
align=
"center"
prop=
"num"
width=
"70"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"currentWarehouseRecord=scope.row.specsRecordVOList"
>
<el-button
type=
"text"
@
click=
"currentWarehouseRecord=scope.row.specsRecordVOList"
>
{{
scope
.
row
.
num
}}
{{
scope
.
row
.
num
}}
</el-button>
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('数量(个)')"
align=
"center"
prop=
"quantity"
></el-table-column>
<el-table-column
:label=
"$t('数量(个)')"
align=
"center"
prop=
"quantity"
width=
"80"
></el-table-column>
<el-table-column
:label=
"$t('成交单价')"
align=
"center"
min-width=
"220px"
v-if=
"[3,4].indexOf(orderData.transportId) > -1"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.charging != 1"
>
<div
class=
"flex"
>
{{
$t
(
'
运费
'
)
}}
<el-input
v-model=
"scope.row.oneSeaFreight"
@
change=
"updateField(scope.row, 'oneSeaFreight')"
size=
"mini"
style=
"width: 80px"
></el-input>
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
</div>
<div
class=
"flex"
>
{{
$t
(
'
清关费
'
)
}}
<el-input
v-model=
"scope.row.oneClearanceFreight"
@
change=
"updateField(scope.row, 'oneClearanceFreight')"
size=
"mini"
style=
"width: 80px"
></el-input>
{{
currencyMap
[
scope
.
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
</div>
</
template
>
<
template
v-else
>
{{
$t
(
'
全包价
'
)
}}
<el-input
v-model=
"scope.row.oneSeaFreight"
@
change=
"updateField(scope.row, 'oneSeaFreight')"
size=
"mini"
style=
"width: 80px"
></el-input>
{{
currencyMap
[
scope
.
row
.
currencyId
]
}}
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
</
template
>
</template>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
align=
"center"
>
<el-table-column
:label=
"$t('操作')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"removeShop(scope.row.id)"
>
{{
$t
(
'
移出
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"removeShop(scope.row.id)"
>
{{
$t
(
'
移出
'
)
}}
</el-button>
...
@@ -503,6 +524,8 @@ import WarehouseDetail from "@/views/ecw/order/components/WarehouseDetail";
...
@@ -503,6 +524,8 @@ import WarehouseDetail from "@/views/ecw/order/components/WarehouseDetail";
import
WarehouseRecord
from
"
@/views/ecw/order/splitApply/components/WarehouseRecord
"
;
import
WarehouseRecord
from
"
@/views/ecw/order/splitApply/components/WarehouseRecord
"
;
import
PutIn
from
"
@/views/ecw/order/splitApply/components/PutIn.vue
"
;
import
PutIn
from
"
@/views/ecw/order/splitApply/components/PutIn.vue
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
import
{
getUnitList
}
from
"
@/api/ecw/unit
"
;
export
default
{
export
default
{
name
:
"
SplitApply
"
,
name
:
"
SplitApply
"
,
...
@@ -568,7 +591,11 @@ export default {
...
@@ -568,7 +591,11 @@ export default {
// 当前正在放入的入仓记录
// 当前正在放入的入仓记录
currentPutIn
:
null
,
currentPutIn
:
null
,
// 订单剩余数据,sumNum,splitNum,splitResidueNum,totalWorth,splitWorth,splitResidueWorth
// 订单剩余数据,sumNum,splitNum,splitResidueNum,totalWorth,splitWorth,splitResidueWorth
orderLeftData
:
null
orderLeftData
:
null
,
// 货币
currencyList
:
[],
// 体积单位
unitList
:
[]
};
};
},
},
async
created
()
{
async
created
()
{
...
@@ -581,15 +608,22 @@ export default {
...
@@ -581,15 +608,22 @@ export default {
this
.
queryParams
.
orderId
=
this
.
$route
.
query
.
orderId
this
.
queryParams
.
orderId
=
this
.
$route
.
query
.
orderId
}
}
Promise
.
all
([
this
.
getList
(),
this
.
getOrder
()]).
then
(
res
=>
{
Promise
.
all
([
this
.
getList
(),
this
.
getOrder
()]).
then
(
res
=>
{
console
.
log
(
"
拆单数据
"
,
this
.
splitData
,
this
.
splitData
.
length
)
if
(
this
.
orderData
.
inWarehouseState
!=
207
&&
this
.
splitData
.
length
){
if
(
this
.
orderData
.
inWarehouseState
!=
207
&&
this
.
splitData
.
length
){
this
.
reset
()
this
.
reset
()
}
}
// 空运需要获取货币和体积单位
if
([
3
,
4
].
indexOf
(
this
.
orderData
.
transportId
)
>
-
1
){
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
}
})
})
// 获取入仓记录
// 获取入仓记录
getOrderWarehouseIn
(
this
.
queryParams
.
orderId
).
then
(
res
=>
{
getOrderWarehouseIn
(
this
.
queryParams
.
orderId
).
then
(
res
=>
{
this
.
warehouseInList
=
res
.
data
this
.
warehouseInList
=
res
.
data
})
})
},
},
watch
:
{
watch
:
{
//监听table这个对象
//监听table这个对象
...
@@ -817,7 +851,21 @@ export default {
...
@@ -817,7 +851,21 @@ export default {
})
})
return
total
.
toNumber
()
return
total
.
toNumber
()
}
}
}
},
currencyMap
(){
let
map
=
{}
this
.
currencyList
.
forEach
(
item
=>
{
map
[
item
.
id
]
=
this
.
$l
(
item
,
'
title
'
)
})
return
map
},
unitMap
(){
let
map
=
{}
this
.
unitList
.
forEach
(
item
=>
{
map
[
item
.
id
]
=
this
.
$l
(
item
,
'
title
'
)
})
return
map
},
},
},
methods
:
{
methods
:
{
/*检查并提交字段(体积,重量)修改*/
/*检查并提交字段(体积,重量)修改*/
...
...
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