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
eeb3f11f
Commit
eeb3f11f
authored
Jul 11, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/release2.2' into release2.2
parents
952d45ce
f77ff94c
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
328 additions
and
58 deletions
+328
-58
financial.js
src/api/ecw/financial.js
+8
-1
order.js
src/api/ecw/order.js
+32
-0
orderException.js
src/api/ecw/orderException.js
+8
-1
index.vue
src/components/WarehouseAreaSelect/index.vue
+4
-1
splitOrder.vue
...views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
+12
-6
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+31
-13
receivable.vue
src/views/ecw/financial/receivable.vue
+2
-1
DeclarationDocuments.vue
src/views/ecw/order/components/DeclarationDocuments.vue
+156
-0
detail.vue
src/views/ecw/order/detail.vue
+7
-2
edit.vue
src/views/ecw/order/edit.vue
+29
-3
index.vue
src/views/ecw/order/exception/index.vue
+15
-6
prepayDeal.vue
src/views/ecw/order/prepayDeal.vue
+4
-1
index.vue
src/views/ecw/order/splitApply/index.vue
+20
-23
No files found.
src/api/ecw/financial.js
View file @
eeb3f11f
...
...
@@ -62,7 +62,14 @@ export function getReceivableDiscountLogById(query) {
params
:
query
})
}
// 根据订单ID获得需要预付应收款列表
export
function
getReceivableByOrderId
(
query
)
{
return
request
({
url
:
'
/ecw/receivable/getReceivableByOrderId
'
,
method
:
'
get
'
,
params
:
query
})
}
// 根据订单ID获得需要预付应收款列表
export
function
getFirstReceivableListByOrderId
(
query
)
{
return
request
({
...
...
src/api/ecw/order.js
View file @
eeb3f11f
...
...
@@ -748,4 +748,36 @@ export function splitItemUpdate(data){
data
})
}
// 上传报关资料
export
function
warehousePictureCreate
(
data
)
{
return
request
({
url
:
'
/order/warehouse-picture/create
'
,
method
:
'
post
'
,
data
})
}
// 删除报关资料
export
function
warehousePictureDelete
(
id
)
{
return
request
({
url
:
'
/order/warehouse-picture/delete?id=
'
+
id
,
method
:
'
delete
'
})
}
//上传
export
function
uploadFile
(
data
)
{
return
request
({
url
:
'
/infra/file/up
'
,
method
:
'
post
'
,
data
:
data
})
}
/*根据订单ID查询目的国*/
export
function
getDestCountryByOrderId
(
params
){
return
request
({
url
:
'
/ecw/order/getDestCountryByOrderId
'
,
method
:
'
get
'
,
params
:
params
})
}
src/api/ecw/orderException.js
View file @
eeb3f11f
...
...
@@ -56,7 +56,14 @@ export function getOrderExceptionPage(query) {
params
:
query
})
}
// 获得新订单异常分页
export
function
getExceptionPage
(
query
)
{
return
request
({
url
:
'
/ecw/order-exception/exceptionPage
'
,
method
:
'
get
'
,
params
:
query
})
}
// 导出订单异常 Excel
export
function
exportOrderExceptionExcel
(
query
)
{
return
request
({
...
...
src/components/WarehouseAreaSelect/index.vue
View file @
eeb3f11f
...
...
@@ -288,7 +288,10 @@ export default {
},
// 用于储位回显选中
isSelected
(
warehouse
,
area
,
position
=
0
){
return
!!
this
.
value
.
find
(
e
=>
warehouse
===
e
.
wareId
&&
area
===
e
.
areaId
&&
(
position
===
e
.
locationId
||
undefined
===
e
.
locationId
))
return
!!
this
.
value
.
find
(
e
=>
{
// 最后一个条件不能用!e.locationId来判断,会导致选择了没有locationId的全部被选中,上次改这里忘记什么原因了,下次复现再来调整
return
warehouse
===
e
.
wareId
&&
area
===
e
.
areaId
&&
(
position
===
e
.
locationId
||
e
.
locationId
==
undefined
)
})
},
}
}
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
View file @
eeb3f11f
...
...
@@ -899,6 +899,7 @@ export default {
deleteRow
(
index
){
const
spliceIndex
=
typeof
index
!==
'
number
'
?
this
.
shopForm
.
specsRecordVOList
.
length
-
1
:
index
this
.
shopForm
.
specsRecordVOList
.
splice
(
spliceIndex
,
1
)
this
.
calcDefaultData
()
},
// 计算体积
calcVolume
(
row
){
...
...
@@ -947,18 +948,23 @@ export default {
})
this
.
currentPutIn
=
null
// 根据比例计算默认的收费方数和收费重量
const
orderItem
=
this
.
orderData
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
shopForm
.
orderItemId
)
const
rate
=
this
.
putin
.
num
/
orderItem
.
warehouseInInfoVO
.
cartonsNum
this
.
$set
(
this
.
shopForm
,
'
chargeVolume
'
,
(
orderItem
.
chargeVolume
*
rate
).
toFixed
(
2
))
this
.
$set
(
this
.
shopForm
,
'
chargeWeight
'
,
(
orderItem
.
chargeWeight
*
rate
).
toFixed
(
2
))
this
.
$set
(
this
.
shopForm
,
'
worth
'
,
(
orderItem
.
worth
*
rate
).
toFixed
(
2
))
this
.
calcDefaultData
()
},
// 清空放入记录
clearAll
(){
this
.
$confirm
(
this
.
$t
(
"
确定要清空放入数据么?
"
)).
then
(
res
=>
{
this
.
shopForm
.
specsRecordVOList
=
[]
this
.
calcDefaultData
()
})
},
// 计算默认的收费数据
calcDefaultData
()
{
// 根据比例计算默认的收费方数和收费重量
const
orderItem
=
this
.
orderData
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
shopForm
.
orderItemId
)
const
rate
=
this
.
putin
.
num
/
orderItem
.
warehouseInInfoVO
.
cartonsNum
this
.
$set
(
this
.
shopForm
,
'
chargeVolume
'
,
(
orderItem
.
chargeVolume
*
rate
).
toFixed
(
2
))
this
.
$set
(
this
.
shopForm
,
'
chargeWeight
'
,
(
orderItem
.
chargeWeight
*
rate
).
toFixed
(
2
))
this
.
$set
(
this
.
shopForm
,
'
worth
'
,
(
orderItem
.
worth
*
rate
).
toFixed
(
2
))
}
},
};
...
...
src/views/ecw/financial/creatCollection.vue
View file @
eeb3f11f
...
...
@@ -518,7 +518,7 @@
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('客户名称')
"
>
<
customer
-
selector
v
-
model
=
"
queryParams.c
onsigno
rId
"
v
-
model
=
"
queryParams.c
ustome
rId
"
@
change
=
"
consignor = $event
"
/>
<
/el-form-item
>
...
...
@@ -696,10 +696,10 @@ import { getBankAccountPage } from "@/api/ecw/bankAccount";
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
getChannelList
}
from
"
@/api/ecw/channel
"
;
import
{
getTradeCityList
}
from
"
@/api/ecw/region
"
;
import
{
createReceipt
,
get
FirstReceivableList
ByOrderId
,
getReceivableList
,
getReceivableItemDetail
,
getReceiptInfoByIds
,
getReceiptAccountList
,
getInvoicingItem
,
updateReceipt
,
updateReceivableDiscountById
,
getReceivableDiscountLogById
}
from
"
@/api/ecw/financial
"
;
import
{
createReceipt
,
get
Receivable
ByOrderId
,
getReceivableList
,
getReceivableItemDetail
,
getReceiptInfoByIds
,
getReceiptAccountList
,
getInvoicingItem
,
updateReceipt
,
updateReceivableDiscountById
,
getReceivableDiscountLogById
}
from
"
@/api/ecw/financial
"
;
import
{
getCustomer
}
from
'
@/api/ecw/customer
'
import
NP
from
'
number-precision
'
import
{
getOrder
}
from
'
@/api/ecw/order
'
import
{
getOrder
,
getDestCountryByOrderId
}
from
'
@/api/ecw/order
'
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
{
getExchangeRatePage
}
from
"
@/api/ecw/exchangeRate
"
;
import
ret
from
"
bluebird/js/release/util
"
;
...
...
@@ -769,8 +769,7 @@ export default {
}
,
pages
:
1
,
rateList
:[],
orderNo
:
null
rateList
:[]
}
;
}
,
activated
(){
...
...
@@ -782,11 +781,29 @@ export default {
if
(
this
.
$route
.
query
.
receiptId
&&
this
.
$route
.
query
.
receiptId
!=
0
)
{
this
.
receiptId
=
this
.
$route
.
query
.
receiptId
;
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
''
;
this
.
getReceivableInfo
()
}
else
{
this
.
removeData
()
}
if
(
this
.
$route
.
query
.
orderId
)
{
getReceivableByOrderId
({
orderId
:
this
.
$route
.
query
.
orderId
}
).
then
(
response
=>
{
this
.
list
=
[...
response
.
data
]
this
.
list
.
map
(
v
=>
{
if
(
!
v
.
taxPoint
){
v
.
taxAmount
=
v
.
totalAmount
}
}
)
this
.
calculation
()
getOrder
(
this
.
$route
.
query
.
orderId
).
then
(
response
=>
{
// console.log(response.data)
if
(
response
.
data
.
customerId
)
this
.
$set
(
this
.
form
,
'
customerId
'
,
response
.
data
.
customerId
)
}
)
getDestCountryByOrderId
({
orderId
:
this
.
$route
.
query
.
orderId
}
).
then
(
response
=>
{
// console.log(response.data)
if
(
response
.
data
)
this
.
$set
(
this
.
queryParams
,
'
destCountry
'
,
response
.
data
)
}
)
}
)
}
getUserProfile
().
then
(
res
=>
{
this
.
discountForm
.
author
=
res
.
data
.
username
this
.
form
.
departmentId
=
res
.
data
.
deptId
...
...
@@ -821,7 +838,7 @@ export default {
getWarehouseList
().
then
(
res
=>
this
.
warehouseList
=
res
.
data
)
let
that
=
this
;
if
(
that
.
$route
.
query
.
orderId
)
{
await
get
FirstReceivableListByOrderId
({
i
d
:
that
.
$route
.
query
.
orderId
}
).
then
(
response
=>
{
await
get
ReceivableByOrderId
({
orderI
d
:
that
.
$route
.
query
.
orderId
}
).
then
(
response
=>
{
this
.
list
=
[...
response
.
data
]
this
.
list
.
map
(
v
=>
{
if
(
!
v
.
taxPoint
){
...
...
@@ -830,10 +847,12 @@ export default {
}
)
this
.
calculation
()
getOrder
(
that
.
$route
.
query
.
orderId
).
then
(
response
=>
{
// console.log(response.data)
if
(
response
.
data
.
customerId
)
this
.
$set
(
this
.
form
,
'
customerId
'
,
response
.
data
.
customerId
)
}
)
}
)
}
)
getDestCountryByOrderId
({
orderId
:
this
.
$route
.
query
.
orderId
}
).
then
(
response
=>
{
if
(
response
.
data
)
this
.
$set
(
this
.
queryParams
,
'
destCountry
'
,
response
.
data
)
}
)
}
if
(
that
.
$route
.
query
.
id
)
{
this
.
flag
=
true
...
...
@@ -842,7 +861,6 @@ export default {
}
if
(
that
.
$route
.
query
.
receiptId
&&
that
.
$route
.
query
.
receiptId
!==
'
0
'
)
{
this
.
receiptId
=
this
.
$route
.
query
.
receiptId
;
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
''
;
this
.
getReceivableInfo
()
}
...
...
@@ -980,7 +998,7 @@ export default {
}
)
}
,
getReceivableInfo
(){
getReceivableItemDetail
({
id
:
this
.
receiptId
,
orderNo
:
this
.
orderNo
}
).
then
(
res
=>
{
getReceivableItemDetail
({
id
:
this
.
receiptId
}
).
then
(
res
=>
{
this
.
list
=
res
.
data
this
.
list
.
map
(
v
=>
{
if
(
!
v
.
taxPoint
){
...
...
@@ -1365,13 +1383,13 @@ export default {
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
queryParams
.
c
onsigno
rId
=
this
.
form
.
customerId
this
.
queryParams
.
c
ustome
rId
=
this
.
form
.
customerId
this
.
multipleSelection
=
this
.
list
this
.
open
=
true
;
}
,
hiddenDialog
()
{
this
.
open
=
false
;
this
.
queryParams
.
c
onsigno
rId
=
''
this
.
queryParams
.
c
ustome
rId
=
''
}
,
changePlatformAccountId
(
platformAccountId
,
index
){
this
.
form
.
receiptAccountList
[
index
].
platformAccountId
=
platformAccountId
...
...
src/views/ecw/financial/receivable.vue
View file @
eeb3f11f
...
...
@@ -351,7 +351,8 @@ export default {
},
/** 新增按钮操作 */
handleAdd
(
row
)
{
return
this
.
$router
.
push
(
"
creatCollection?receiptId=
"
+
row
.
id
+
'
&orderNo=
'
+
row
.
orderNo
);
if
(
!
row
)
return
this
.
$router
.
push
(
"
creatCollection
"
);
return
this
.
$router
.
push
(
"
creatCollection?orderId=
"
+
row
.
orderId
);
},
submitForm
()
{},
},
...
...
src/views/ecw/order/components/DeclarationDocuments.vue
0 → 100644
View file @
eeb3f11f
<
template
>
<el-dialog
:title=
"title"
visible
:before-close=
"closeDialog"
:close-on-click-modal=
"false"
width=
"800px"
>
<div
v-for=
"item in fileList"
:key=
"item.id"
class=
"file-list"
>
<span>
{{
getFileName
(
item
.
url
)
}}
</span>
<div
@
click=
"deleteFile(item.id)"
>
{{
$t
(
'
删除
'
)
}}
</div>
<div
@
click=
"downloadFile(item.url)"
>
{{
$t
(
'
下载
'
)
}}
</div>
</div>
<div
style=
"margin-top: 30px;display:flex;"
>
<el-upload
action=
"#"
accept=
"png"
:http-request=
"requestUpload"
:show-file-list=
"false"
:before-upload=
"beforeUploadimg1"
>
<el-button
size=
"small"
>
{{
$t
(
'
上传新附件
'
)
}}
<i
class=
"el-icon-upload el-icon--right"
/>
</el-button>
</el-upload>
<el-button
style=
"margin-left: 60px;"
@
click=
"closeDialog"
>
{{
$t
(
'
返回
'
)
}}
</el-button>
</div>
</el-dialog>
</
template
>
<
script
>
import
{
warehousePictureList
,
warehousePictureCreate
,
warehousePictureDelete
,
uploadFile
}
from
'
@/api/ecw/order
'
export
default
{
props
:
{
orderId
:
[
String
,
Number
],
orderNo
:
[
String
,
Number
]
},
data
()
{
return
{
show
:
false
,
detail
:
null
,
fileList
:
[]
}
},
computed
:
{
title
()
{
let
t
=
this
.
$t
(
'
报关资料
'
)
if
(
this
.
orderNo
)
{
t
+=
'
-
'
+
this
.
orderNo
}
return
t
}
},
created
()
{
this
.
show
=
true
this
.
loadData
()
},
methods
:
{
loadData
()
{
warehousePictureList
({
bizId
:
this
.
orderId
,
type
:
6
}).
then
((
res
)
=>
{
this
.
fileList
=
res
.
data
})
},
getFileName
(
url
)
{
if
(
!
url
)
return
'
/
'
var
file
=
url
.
split
(
'
/
'
)
return
file
[
file
.
length
-
1
]
},
closeDialog
()
{
this
.
show
=
false
this
.
$emit
(
'
close
'
)
},
// 覆盖默认的上传行为
requestUpload
()
{
},
// 上传预处理
beforeUploadimg1
(
file
)
{
if
(
this
.
fileList
.
length
>=
10
)
{
this
.
$message
.
error
(
this
.
$t
(
'
您最多上传10个附件
'
))
}
console
.
log
(
file
)
var
type
=
file
.
name
.
split
(
'
.
'
)
if
([
'
xls
'
,
'
doc
'
,
'
ppt
'
,
'
txt
'
,
'
pdf
'
,
'
jpg
'
,
'
png
'
,
'
jpeg
'
,
'
docx
'
,
'
xlsx
'
].
indexOf
(
type
[
type
.
length
-
1
])
===
-
1
)
{
this
.
$message
.
error
(
this
.
$t
(
'
附件仅限doc/xls/ppt/txt/pdf/jpg/png/jpeg/docx/xlsx格式
'
))
}
else
{
// 上传
const
formData
=
new
FormData
()
formData
.
append
(
'
file
'
,
file
)
formData
.
append
(
'
path
'
,
this
.
uuid
())
uploadFile
(
formData
).
then
(
response
=>
{
if
(
response
.
data
)
{
this
.
createImage
(
response
.
data
)
}
})
}
},
createImage
(
url
)
{
warehousePictureCreate
({
bizId
:
this
.
orderId
,
type
:
6
,
url
:
url
}).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
上传成功
'
))
this
.
loadData
()
})
},
downloadFile
(
url
)
{
window
.
open
(
url
,
'
_self
'
)
},
deleteFile
(
id
)
{
this
.
$confirm
(
this
.
$t
(
'
确定删除附件吗?
'
)).
then
(
function
()
{
return
warehousePictureDelete
(
id
)
}).
then
(()
=>
{
this
.
loadData
()
this
.
$message
({
message
:
this
.
$t
(
'
删除成功
'
),
type
:
'
success
'
})
}).
catch
(()
=>
{})
},
uuid
()
{
var
s
=
[]
var
hexDigits
=
'
0123456789abcdef
'
for
(
var
i
=
0
;
i
<
36
;
i
++
)
{
s
[
i
]
=
hexDigits
.
substr
(
Math
.
floor
(
Math
.
random
()
*
0x10
),
1
)
}
s
[
14
]
=
'
4
'
// bits 12-15 of the time_hi_and_version field to 0010
s
[
19
]
=
hexDigits
.
substr
((
s
[
19
]
&
0x3
)
|
0x8
,
1
)
// bits 6-7 of the clock_seq_hi_and_reserved to 01
s
[
8
]
=
s
[
13
]
=
s
[
18
]
=
s
[
23
]
=
'
-
'
var
uuid
=
s
.
join
(
''
)
return
uuid
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.title
{
font-size
:
16px
;
margin
:
20px
0
;
display
:
flex
;
align-items
:
center
;
&
:before
{
content
:
''
;
width
:
5px
;
height
:
15px
;
background
:
#666
;
margin-right
:
10px
;
}
}
.file-list
{
display
:
flex
;
align-items
:
center
;
color
:
#297CE7
;
margin-left
:
30px
;
font-size
:
16px
;
margin-bottom
:
10px
;
div
{
cursor
:
pointer
;
margin-left
:
30px
;
}
}
</
style
>
src/views/ecw/order/detail.vue
View file @
eeb3f11f
...
...
@@ -247,6 +247,7 @@
<el-button
v-hasPermi=
"['ecw:order:show_receipt']"
type=
"text"
@
click=
"showWarehouseReceipt=true"
:disabled=
"order.inWarehouseState == 0 && order.shipmentState == 0"
>
{{$t('查看入仓单')}}
</el-button>
<el-button
v-hasPermi=
"['ecw:order:show_landing']"
type=
"text"
@
click.native=
"showLadingBill=true"
:disabled=
"!order.ladingState"
>
{{$t('查看提货单')}}
</el-button>
<el-button
v-hasPermi=
"['ecw:order:show_packing']"
:disabled=
"!order.packingListUrl"
type=
"text"
@
click=
"downloadPackingList"
>
{{$t('装箱单')}}
</el-button>
<el-button
v-hasPermi=
"['ecw:order:show_customs']"
type=
"text"
@
click=
"showDeclaration=true"
>
{{$t('查看报关资料')}}
</el-button>
</el-tab-pane>
<el-tab-pane
:label=
"$t('费用明细')"
name=
"four"
>
<el-table
:data=
"feeList"
>
...
...
@@ -416,6 +417,8 @@
<!--
日志详情
-->
<
operate
-
log
-
detail
v
-
if
=
"
showLogDetailId
"
:
log
-
id
=
"
showLogDetailId
"
@
close
=
"
showLogDetailId=null
"
><
/operate-log-detail
>
<!--
报关资料
-->
<
declaration
-
documents
v
-
if
=
"
showDeclaration
"
:
order
-
id
=
"
order.orderId
"
:
order
-
no
=
"
order.orderNo
"
@
close
=
"
showDeclaration=false
"
/>
<
/div
>
<
/template
>
...
...
@@ -436,11 +439,12 @@ import { parseTime } from '@/utils/ruoyi';
import
WarehouseAreaSelect
from
"
@/components/WarehouseAreaSelect
"
import
{
checkPermi
}
from
'
@/utils/permission
'
import
OperateLogDetail
from
"
@/views/ecw/order/components/OprateLogDetail
"
;
import
DeclarationDocuments
from
'
./components/DeclarationDocuments
'
;
export
default
{
name
:
"
detail
"
,
components
:
{
OperateLogDetail
,
PrintWarehouseReceipt
,
PrintLadingBill
,
WarehouseDetail
,
WarehouseAreaSelect
PrintWarehouseReceipt
,
PrintLadingBill
,
WarehouseDetail
,
WarehouseAreaSelect
,
DeclarationDocuments
}
,
filters
:
{
customsTypeFilter
(
e
,
customsTypeList
)
{
...
...
@@ -484,7 +488,8 @@ export default {
showText
:
this
.
$t
(
'
显示更多
'
),
showMore
:
false
,
consigneeText
:
this
.
$t
(
'
更多
'
),
showLogDetailId
:
null
,
// 显示日志详情的ID
showLogDetailId
:
null
,
// 显示日志详情的ID,
showDeclaration
:
false
//显示报关资料
}
}
,
computed
:{
...
...
src/views/ecw/order/edit.vue
View file @
eeb3f11f
...
...
@@ -301,7 +301,8 @@
{{sum.totalWorth.toFixed() || 0}}元
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('保价费')"
>
{{fee.insuranceFee || 0}} {{$t('美元')}}
{{fee.insuranceFee || 0}}
{{ selectedRouter ? currentcyMap[selectedRouter.currencyUnit || 1] : '' }}
</el-descriptions-item>
</el-descriptions>
</el-card>
...
...
@@ -313,7 +314,14 @@
<el-input
v-model=
"form.marks"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('是否控货')"
prop=
"isCargoControl"
class=
"ml-20"
>
<dict-selector
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
formatter=
"bool"
v-model=
"form.isCargoControl"
form-type=
"radio"
/>
<dict-selector
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
v-model=
"form.isCargoControl"
formatter=
"bool"
form-type=
"radio"
:filter=
"(item) => {
return selectedRouter && selectedRouter.controlStatus === 1 && item.value === 'true' ? false : true
}"
/>
</el-form-item>
</div>
<div
class=
"form-section"
v-if=
"collectionProxy"
>
...
...
@@ -833,6 +841,17 @@ export default {
this
.
$set
(
this
.
form
,
'
objectiveId
'
,
router
.
destCityId
)
this
.
calculationPrice
()
this
.
$nextTick
(()
=>
{
// 如果开启了默认送货上门,则默认选择送货上门,2是送货上门,10是默认送货上门
this
.
$set
(
this
.
form
,
'
harvestMethod
'
,
this
.
routeOtherServices
.
indexOf
(
'
2
'
)
>
-
1
&&
this
.
routeOtherServices
.
indexOf
(
'
10
'
)
>
-
1
?
'
2
'
:
'
1
'
)
// controlStatus 0 支持控货,1不支持控货
// 如果不支持控货,则控货不能选择是
if
(
router
.
controlStatus
===
1
)
{
this
.
$set
(
this
.
form
,
'
isCargoControl
'
,
false
)
}
})
},
/* 'form.packageTypeArr'(val){
console.log('packageType', val, val.length)
...
...
@@ -1129,7 +1148,7 @@ export default {
/** 提交按钮 */
// type 在新建的时候表示状态,0草稿,2带入仓
submitForm
(
submitType
)
{
this
.
$refs
[
"
form
"
].
validate
((
valid
,
errors
)
=>
{
this
.
$refs
[
"
form
"
].
validate
(
async
(
valid
,
errors
)
=>
{
if
(
!
valid
)
{
return
this
.
$showFormValidateErrors
(
errors
)
}
...
...
@@ -1165,6 +1184,13 @@ export default {
}
})
this
.
form
.
packageType
=
this
.
form
.
packageTypeArr
.
join
(
'
,
'
)
// 付款人=发货人提示
if
(
+
this
.
form
.
drawee
===
1
)
{
await
this
.
$confirm
(
this
.
$t
(
'
请再次确认运费由您支付还是收货人支付?
'
))
}
// 修改的提交
if
(
this
.
form
.
orderNo
!=
null
)
{
let
data
=
Object
.
assign
({},
this
.
form
,
{
...
...
src/views/ecw/order/exception/index.vue
View file @
eeb3f11f
...
...
@@ -13,12 +13,12 @@
<el-date-picker
clearable
v-model=
"queryParams.endCreateTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
:placeholder=
"$t('请选择结束日期')"
/>
</el-form-item>
<el-form-item
:label=
"$t('始发仓')"
prop=
"destinationId"
>
<el-select
v-model=
"queryParams.
origin
Id"
:placeholder=
"$t('请选择始发仓')"
clearable
>
<el-select
v-model=
"queryParams.
startWarehouse
Id"
:placeholder=
"$t('请选择始发仓')"
clearable
>
<el-option
v-for=
"item in exportWarehouseList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的仓')"
prop=
"destinationId"
>
<el-select
v-model=
"queryParams.
destinationId"
:placeholder=
"$t('请选择目的仓')"
clearable
>
<el-select
v-model=
"queryParams.
pdaDestWareIds"
multiple
:placeholder=
"$t('请选择目的仓')"
clearable
>
<el-option
v-for=
"item in importWarehouseList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -35,16 +35,25 @@
<el-form-item
:label=
"$t('运输方式')+':'"
>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:clearable=
"true"
v-model=
"queryParams.transportId"
/>
</el-form-item>
<el-form-item
:label=
"$t('订单状态')"
prop=
"status"
>
<dict-selector
:type=
"DICT_TYPE.ORDER_STATUS"
v-model=
"queryParams.status"
@
keyup.enter.native=
"handleQuery"
clearable
/>
</el-form-item>
<!--
<el-form-item
:label=
"$t('跟进客服')"
prop=
"destinationId"
>
<el-select
v-model=
"queryParams.destinationId"
multiple
:placeholder=
"$t('请选择目的仓')"
clearable
>
<el-option
v-for=
"item in followUserList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
-->
</el-row>
<el-row>
<el-form-item
:label=
"$t('控货')+':'"
>
<dict-selector
:type=
"DICT_TYPE.ECW_YESNO"
:clearable=
"true"
v-model=
"queryParams.isCargoControl"
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
:label=
"$t('异常状态')+':'"
>
<dict-selector
:type=
"DICT_TYPE.ORDER_EXCEPTION_STATUS"
:clearable=
"true"
v-model=
"queryParams.orderExceptionStatus"
@
keyup.enter.native=
"handleQuery"
/>
<dict-selector
:type=
"DICT_TYPE.ORDER_EXCEPTION_STATUS"
:clearable=
"true"
v-model=
"queryParams.orderExceptionStatus"
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
:label=
"$t('异常类型')+':'"
>
<dict-selector
:type=
"DICT_TYPE.ORDER_ERROR_TYPE"
:clearable=
"true"
v-model=
"queryParams.orderExceptionType"
@
keyup.enter.native=
"handleQuery"
/>
<dict-selector
:
multiple=
"true"
:
type=
"DICT_TYPE.ORDER_ERROR_TYPE"
:clearable=
"true"
v-model=
"queryParams.orderExceptionType"
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
:label=
"$t('订单号')+':'"
>
<el-input
v-model=
"queryParams.orderNo"
:placeholder=
"$t('请输入订单号')"
clearable
@
keyup.enter.native=
"handleQuery"
/>
...
...
@@ -75,7 +84,7 @@
<dict-selector
:type=
"DICT_TYPE.PRODUCT_RECORD_ATTRIBUTE"
:clearable=
"true"
v-model=
"queryParams.productRecord"
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
:label=
"$t('客户经理')+':'"
>
<el-select
v-model=
"queryParams.salesmanId"
:placeholder=
"$t('请选择跟进业务')"
clearable
>
<el-select
v-model=
"queryParams.salesmanId"
multiple
:placeholder=
"$t('请选择跟进业务')"
clearable
>
<el-option
v-for=
"item in creatorData"
:key=
"item.id"
:label=
"item.nickname"
:value=
"item.id"
/>
</el-select>
</el-form-item>
...
...
@@ -206,7 +215,7 @@
</template>
<
script
>
import
{
getOrderExceptionPage
,
exportExcel
}
from
"
@/api/ecw/orderException
"
import
{
get
ExceptionPage
,
get
OrderExceptionPage
,
exportExcel
}
from
"
@/api/ecw/orderException
"
import
{
getTradeCityList
}
from
'
@/api/ecw/region
'
import
{
DICT_TYPE
}
from
'
@/utils/dict
'
// import { userList } from "@/api/system/user"
...
...
src/views/ecw/order/prepayDeal.vue
View file @
eeb3f11f
...
...
@@ -8,7 +8,10 @@
<el-form
v-if=
"orderData"
:model=
"orderData"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"120px"
class=
"card"
>
<el-row>
<el-form-item
:label=
"$t('订单号')+':'"
>
{{
orderData
.
orderNo
||
''
}}
<router-link
:to=
"
{path: '/order/detail',query: {orderId: orderData.orderId}}" class="link-type">
<span>
{{
orderData
.
orderNo
||
''
}}
</span>
</router-link>
</el-form-item>
</el-row>
<div
v-if=
"shopData&&orderExceptionData.orderExceptionType!='goods_add_exception'"
>
...
...
src/views/ecw/order/splitApply/index.vue
View file @
eeb3f11f
...
...
@@ -1012,6 +1012,7 @@ export default {
volume
:
this
.
putin
.
volume
,
chargeVolume
:
this
.
shopForm
.
chargeVolume
,
weight
:
this
.
putin
.
weight
,
quantity
:
this
.
putin
.
quantity
,
chargeWeight
:
this
.
shopForm
.
chargeWeight
,
worth
:
this
.
shopForm
.
worth
||
0
,
specsRecordVOList
:
this
.
shopForm
.
specsRecordVOList
...
...
@@ -1079,26 +1080,11 @@ export default {
})
})
},
// 添加一行
/*addRow(){
if(!this.shopForm.specsRecordVOList){
this.$set(this.shopForm,'specsRecordVOList',[])
}
if(!this.currentWarehouseItem){
return this.$message.info(this.$t("请选择入仓记录"))
}
let { specificationType, boxGauge1, boxGauge2, boxGauge3, volume, weight } = this.currentWarehouseItem
let num = this.currentWarehouseItem.cartonsNum
// 根据入仓记录添加一行
this.shopForm.specsRecordVOList.push({
specificationType, boxGauge1, boxGauge2, boxGauge3, volume, weight,num,
orderLocationList: this.currentWarehouseItem.orderLocationBackVOList
})
},*/
// 删除一行,可选参数index表上行号,参数不是数字则删除最后一行
deleteRow
(
index
){
const
spliceIndex
=
typeof
index
!==
'
number
'
?
this
.
shopForm
.
specsRecordVOList
.
length
-
1
:
index
this
.
shopForm
.
specsRecordVOList
.
splice
(
spliceIndex
,
1
)
this
.
calcDefaultData
()
},
// 计算体积
calcVolume
(
row
){
...
...
@@ -1147,20 +1133,31 @@ export default {
this
.
shopForm
.
specsRecordVOList
.
push
({...
item
})
})
this
.
currentPutIn
=
null
// 根据比例计算默认的收费方数和收费重量
const
orderItem
=
this
.
orderData
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
shopForm
.
orderItemId
)
const
rate
=
this
.
putin
.
num
/
orderItem
.
warehouseInInfoVO
.
cartonsNum
this
.
$set
(
this
.
shopForm
,
'
chargeVolume
'
,
(
orderItem
.
chargeVolume
*
rate
).
toFixed
(
2
))
this
.
$set
(
this
.
shopForm
,
'
chargeWeight
'
,
(
orderItem
.
chargeWeight
*
rate
).
toFixed
(
2
))
this
.
$set
(
this
.
shopForm
,
'
worth
'
,
(
orderItem
.
worth
*
rate
).
toFixed
(
2
))
this
.
calcDefaultData
()
},
// 清空放入记录
clearAll
(){
this
.
$confirm
(
this
.
$t
(
"
确定要清空放入数据么?
"
)).
then
(
res
=>
{
this
.
shopForm
.
specsRecordVOList
=
[]
this
.
calcDefaultData
()
})
},
// 计算放入的默认值
calcDefaultData
(){
const
orderItem
=
this
.
orderData
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
shopForm
.
orderItemId
)
const
rate
=
this
.
putin
.
num
/
orderItem
.
warehouseInInfoVO
.
cartonsNum
/*
* 1 普货 2 重货 3 泡货
* 普货 收费数据=入仓数据
* 泡货 收费方数=入仓方数 收费重量 = 品名收费重量*比例
* 重货 收费方数=品名收费方数*比例 收费重量 = 入仓重量
* */
const
chargeVolume
=
orderItem
.
itemType
===
2
?
(
orderItem
.
chargeVolume
*
rate
).
toFixed
(
2
)
:
this
.
putin
.
volume
const
chargeWeight
=
orderItem
.
itemType
===
3
?
(
orderItem
.
chargeWeight
*
rate
).
toFixed
(
2
)
:
this
.
putin
.
weight
this
.
$set
(
this
.
shopForm
,
'
chargeVolume
'
,
chargeVolume
)
this
.
$set
(
this
.
shopForm
,
'
chargeWeight
'
,
chargeWeight
)
this
.
$set
(
this
.
shopForm
,
'
worth
'
,
(
orderItem
.
worth
*
rate
).
toFixed
(
2
))
},
// 重置
reset
(){
return
deleteAllSplit
(
this
.
queryParams
.
orderId
).
then
(
res
=>
{
...
...
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