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
c63e5f0a
Commit
c63e5f0a
authored
Apr 28, 2023
by
Marcus
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
c536abb6
08831f99
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
265 additions
and
12 deletions
+265
-12
order.js
src/api/ecw/order.js
+35
-0
detail.vue
src/views/bpm/processInstance/detail.vue
+5
-0
SplitRevoke.vue
src/views/ecw/order/components/SplitRevoke.vue
+84
-0
SplitRevokeDetail.vue
src/views/ecw/order/components/SplitRevokeDetail.vue
+130
-0
index.vue
src/views/ecw/order/index.vue
+11
-12
No files found.
src/api/ecw/order.js
View file @
c63e5f0a
...
@@ -684,3 +684,38 @@ export function splitCancelApply(data){
...
@@ -684,3 +684,38 @@ export function splitCancelApply(data){
data
data
})
})
}
}
// 撤销拆单
export
function
orderSplitRevoke
(
data
){
return
request
({
url
:
'
/order/split/revoke
'
,
method
:
'
put
'
,
data
})
}
/*根据订单ID获取撤销拆单详情*/
export
function
splitRevoke
(
orderId
){
return
request
({
url
:
'
/order/split/revoke/
'
+
orderId
,
method
:
'
get
'
})
}
/*根据审批ID获取撤销拆单详情*/
export
function
splitRevokeApply
(
approvalId
){
return
request
({
url
:
'
/order/split/revoke/apply/
'
+
approvalId
,
method
:
'
get
'
})
}
/*取消撤销拆单*/
export
function
cancelSplitRevoke
(
data
){
return
request
({
url
:
'
/order/split/cancel/revoke
'
,
method
:
'
put
'
,
data
})
}
src/views/bpm/processInstance/detail.vue
View file @
c63e5f0a
...
@@ -386,6 +386,11 @@ export default {
...
@@ -386,6 +386,11 @@ export default {
component
:
()
=>
import
(
'
@/views/ecw/financial/components/commissionPaymentDetails.vue
'
),
component
:
()
=>
import
(
'
@/views/ecw/financial/components/commissionPaymentDetails.vue
'
),
id
:
this
.
processInstance
.
businessKey
,
id
:
this
.
processInstance
.
businessKey
,
path
:
this
.
processInstance
.
processDefinition
?.
formCustomViewPath
path
:
this
.
processInstance
.
processDefinition
?.
formCustomViewPath
},
/*撤销拆单*/
split_revoke
:{
component
:
()
=>
import
(
"
@/views/ecw/order/components/SplitRevokeDetail
"
),
id
:
this
.
processInstance
.
businessKey
}
}
}
}
console
.
log
(
'
formCustomViewPath
'
,
this
.
processInstance
.
processDefinition
.
formCustomViewPath
.
trim
())
console
.
log
(
'
formCustomViewPath
'
,
this
.
processInstance
.
processDefinition
.
formCustomViewPath
.
trim
())
...
...
src/views/ecw/order/components/SplitRevoke.vue
0 → 100644
View file @
c63e5f0a
<
template
>
<el-dialog
:visible=
"true"
title=
"撤销拆单"
:before-close=
"close"
>
<el-form
:model=
"form"
label-width=
"100px"
>
<!--
<el-form-item
label=
"申请理由"
>
<el-input
v-model=
"form.reason"
></el-input>
</el-form-item>
-->
<el-form-item
label=
"抄送"
>
<work-flow
v-model=
"form.ccIds"
xmlkey=
"revoke_split_order"
></work-flow>
</el-form-item>
</el-form>
<div
slot=
"footer"
>
<template
v-if=
"formId"
>
<el-button
type=
"primary"
@
click=
"toBpmDetail"
>
审核中
</el-button>
<el-button
type=
"default"
@
click=
"cancelApproval"
>
取消审核
</el-button>
</
template
>
<el-button
v-else
type=
"primary"
@
click=
"submit"
:loading=
"submitting"
:disabled=
"submitting"
>
确认
</el-button>
</div>
</el-dialog>
</template>
<
script
>
import
WorkFlow
from
"
@/components/WorkFlow
"
;
import
{
cancelSplitRevoke
,
orderSplitRevoke
,
splitRevoke
}
from
'
@/api/ecw/order
'
export
default
{
name
:
"
SplitRevoke
"
,
components
:
{
WorkFlow
},
props
:{
orderId
:
Number
},
data
(){
return
{
formId
:
null
,
// 审批ID
submitting
:
false
,
form
:
{
ccIds
:
[]
}
}
},
created
()
{
splitRevoke
(
this
.
orderId
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
formId
){
this
.
formId
=
res
.
data
.
formId
}
})
},
methods
:{
submit
(){
console
.
log
(
'
提交
'
)
if
(
this
.
submitting
)
return
this
.
submitting
=
true
orderSplitRevoke
({
orderId
:
this
.
orderId
,
copyUserId
:
this
.
form
.
ccIds
}).
then
(
res
=>
{
this
.
$message
.
success
(
res
.
msg
||
'
操作成功
'
)
this
.
close
()
}).
finally
(()
=>
{
this
.
submitting
=
false
})
},
close
(){
this
.
$emit
(
'
close
'
)
},
toBpmDetail
(){
this
.
$router
.
push
(
`/bpm/process-instance/detail?id=
${
this
.
formId
}
`
)
this
.
close
()
},
// 取消审核
cancelApproval
(){
this
.
$prompt
(
this
.
$t
(
"
请输入取消原因
"
)).
then
(
res
=>
{
return
cancelSplitRevoke
({
orderId
:
this
.
orderId
,
reason
:
res
.
value
})
}).
then
(
res
=>
{
this
.
$message
.
success
(
res
.
msg
||
this
.
$t
(
'
操作成功
'
))
this
.
close
()
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ecw/order/components/SplitRevokeDetail.vue
0 → 100644
View file @
c63e5f0a
<!--拆单审核中的申请信息部分-->
<
template
>
<div
v-if=
"orders"
>
<el-table
:data=
"orders"
>
<el-table-column
:label=
"$t('订单编号')"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
orderNo
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('唛头')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
marks
}}
</
template
>
</el-table-column>
<el-table-column
label=
"订单状态"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
statusMsg
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('填单统计')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
costVO
.
totalNum
}}{{
$t
(
'
箱
'
)
}}
<br/>
{{
row
.
costVO
.
totalVolume
}}
m³
<br/>
{{
row
.
costVO
.
totalWeight
}}
kg
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('入仓统计')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
sumNum
}}{{
$t
(
'
箱
'
)
}}
<br/>
{{
row
.
sumVolume
}}
m³
<br/>
{{
row
.
sumWeight
}}
kg
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('入仓时间')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
rucangTime
|
parseTime
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('运输方式')"
>
<
template
slot-scope=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"row.transportId"
/>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('出货渠道')"
>
<
template
slot-scope=
"{row}"
>
{{
getChannelName
(
row
.
channelId
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('始发仓')"
>
<
template
slot-scope=
"{row}"
>
{{
jsonParse
(
row
.
departureVO
.
departure
).
titleZh
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('目的仓')"
>
<
template
slot-scope=
"{row}"
>
{{
jsonParse
(
row
.
objectiveVO
.
objective
).
titleZh
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('发货人')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
consignorVO
.
name
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('收货人')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
consigneeVO
.
name
}}
</
template
>
</el-table-column>
</el-table>
</div>
</template>
<
script
>
import
{
getApproval
,
getOrder
,
splitRevokeApply
}
from
'
@/api/ecw/order
'
import
{
getMergeListByMergeId
}
from
'
@/api/ecw/orderHandle
'
import
{
getChannelListByIds
}
from
'
@/api/ecw/channel
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
export
default
{
name
:
'
SplitRevokeDetail
'
,
filters
:
{
parseTime
},
props
:{
id
:
[
String
,
Number
]
},
data
(){
return
{
orders
:
null
,
channels
:
[]
}
},
watch
:{
id
(){
this
.
getData
()
}
},
computed
:{
jsonParse
(){
return
d
=>
{
return
JSON
.
parse
(
d
)
}
},
getChannelName
(){
return
id
=>
{
let
channel
=
this
.
channels
.
find
(
item
=>
item
.
channelId
==
id
)
return
channel
?
channel
.
nameZh
:
'
/
'
}
}
},
created
(){
if
(
this
.
id
){
this
.
getData
()
}
},
methods
:{
getData
(){
splitRevokeApply
(
this
.
id
).
then
(
res
=>
{
this
.
orders
=
res
.
data
.
childrenOrderList
this
.
getChannels
()
})
},
getChannels
(){
let
ids
=
[]
this
.
orders
.
forEach
(
order
=>
{
if
(
order
.
channelId
){
ids
.
push
(
order
.
channelId
)
}
})
if
(
!
ids
.
length
)
return
false
getChannelListByIds
({
ids
:
ids
.
join
(
'
,
'
)}).
then
(
res
=>
{
this
.
channels
=
res
.
data
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.title
{
padding
:
10px
0
;
span
{
font-size
:
14px
;
font-weight
:
bold
;
}
}
</
style
>
src/views/ecw/order/index.vue
View file @
c63e5f0a
...
@@ -317,8 +317,8 @@
...
@@ -317,8 +317,8 @@
</
template
>
</
template
>
<!--撤销拆单,拆单的子订单,预装前显示,预装后变灰不可点击-->
<!--撤销拆单,拆单的子订单,预装前显示,预装后变灰不可点击-->
<
template
v-if=
"scope.row.parentOrderId"
>
<
template
v-if=
"scope.row.parentOrderId
&& scope.row.status < 11
"
>
<el-dropdown-item
@
click.native=
"
cancelSplit(scope.row)"
v-hasPermi=
"['ecw:order:cancel_split
']"
>
{{
$t
(
'
撤销拆单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"
splitRevoke(scope.row)"
v-hasPermi=
"['ecw:order:split_revoke
']"
>
{{
$t
(
'
撤销拆单
'
)
}}
</el-dropdown-item>
</
template
>
</
template
>
...
@@ -462,6 +462,7 @@
...
@@ -462,6 +462,7 @@
<fee-application
:order-id=
"orderId"
:currencys=
"JSON.stringify(currencyList)"
:dialog-visible.sync=
"feeApplicationBol"
></fee-application>
<fee-application
:order-id=
"orderId"
:currencys=
"JSON.stringify(currencyList)"
:dialog-visible.sync=
"feeApplicationBol"
></fee-application>
<merge-log
:order-no=
"showMergedLogOrderNo"
v-if=
"showMergedLogOrderNo !== null"
@
close=
"showMergedLogOrderNo=null"
/>
<merge-log
:order-no=
"showMergedLogOrderNo"
v-if=
"showMergedLogOrderNo !== null"
@
close=
"showMergedLogOrderNo=null"
/>
<pickup-log
v-if=
"showPickupLogOrderNo"
:order-no=
"showPickupLogOrderNo"
@
close=
"showPickupLogOrderNo=null"
@
delete=
"getList"
/>
<pickup-log
v-if=
"showPickupLogOrderNo"
:order-no=
"showPickupLogOrderNo"
@
close=
"showPickupLogOrderNo=null"
@
delete=
"getList"
/>
<SplitRevoke
v-if=
"splitRevokeOrderId"
:order-id=
"splitRevokeOrderId"
@
close=
"splitRevokeOrderId=null;getList()"
></SplitRevoke>
</div>
</div>
</template>
</template>
...
@@ -471,7 +472,6 @@ import ProductSelector from '@/components/ProductSelector'
...
@@ -471,7 +472,6 @@ import ProductSelector from '@/components/ProductSelector'
import
{
getProductAttrList
}
from
'
@/api/ecw/productAttr
'
import
{
getProductAttrList
}
from
'
@/api/ecw/productAttr
'
import
CustomerSelector
from
'
@/components/CustomerSelector
'
import
CustomerSelector
from
'
@/components/CustomerSelector
'
import
specialNeeds
from
'
@/views/ecw/order/components/specialNeeds
'
;
import
specialNeeds
from
'
@/views/ecw/order/components/specialNeeds
'
;
import
{
getTradeCityList
}
from
'
@/api/ecw/region
'
import
{
import
{
createOrder
,
createOrder
,
updateOrder
,
updateOrder
,
...
@@ -497,7 +497,7 @@ import {
...
@@ -497,7 +497,7 @@ import {
exportCustomsDatas
,
exportCustomsDatas
,
exportShippingDatas
,
exportShippingDatas
,
exportShipFee
,
exportShipFee
,
exportUnload
,
splitCancelApply
exportUnload
,
splitCancelApply
,
orderSplitRevoke
}
from
"
@/api/ecw/order
"
;
}
from
"
@/api/ecw/order
"
;
/* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */
/* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */
import
PrintTag
from
'
./components/PrintTag
'
import
PrintTag
from
'
./components/PrintTag
'
...
@@ -512,6 +512,7 @@ import MergeLog from '@/views/ecw/order/components/MergeLog'
...
@@ -512,6 +512,7 @@ import MergeLog from '@/views/ecw/order/components/MergeLog'
import
PickupLog
from
'
./components/PickupLog
'
import
PickupLog
from
'
./components/PickupLog
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
SplitRevoke
from
"
@/views/ecw/order/components/SplitRevoke
"
;
export
default
{
export
default
{
name
:
"
EcwOrderIndex
"
,
name
:
"
EcwOrderIndex
"
,
components
:
{
components
:
{
...
@@ -520,6 +521,7 @@ export default {
...
@@ -520,6 +521,7 @@ export default {
BatchSingleApplication
,
BatchSingleApplication
,
MergeLog
,
MergeLog
,
PickupLog
,
PickupLog
,
SplitRevoke
,
CustomerSelector
,
ProductSelector
,
Selector
,
specialNeeds
,
PrintTag
,
PrintWarehouseReceipt
,
PrintLadingBill
,
BatchPickup
,
withdrawal
CustomerSelector
,
ProductSelector
,
Selector
,
specialNeeds
,
PrintTag
,
PrintWarehouseReceipt
,
PrintLadingBill
,
BatchPickup
,
withdrawal
},
},
props
:
{
props
:
{
...
@@ -583,6 +585,8 @@ export default {
...
@@ -583,6 +585,8 @@ export default {
},
},
currencyList
:[],
currencyList
:[],
statistics
:
null
,
// 统计数据
statistics
:
null
,
// 统计数据
splitRevokeOrderId
:
null
,
// 撤销拆单的订单ID
};
};
},
},
watch
:{
watch
:{
...
@@ -646,7 +650,7 @@ export default {
...
@@ -646,7 +650,7 @@ export default {
}
}
},
},
activated
(){
activated
(){
this
.
handleQuery
()
this
.
getList
()
},
},
created
()
{
created
()
{
this
.
getTransportFromRoute
()
this
.
getTransportFromRoute
()
...
@@ -659,13 +663,8 @@ export default {
...
@@ -659,13 +663,8 @@ export default {
},
},
methods
:
{
methods
:
{
// 取消拆单申请
// 取消拆单申请
cancelSplit
(
row
){
splitRevoke
(
row
){
this
.
$prompt
(
'
请输入撤销理由
'
).
then
(
res
=>
{
this
.
splitRevokeOrderId
=
row
.
orderId
console
.
log
(
"
res
"
,
res
)
return
splitCancelApply
({
orderId
:
row
.
orderId
,
reason
:
res
.
value
})
}).
then
(()
=>
{
this
.
getList
()
})
},
},
// 获得导出函数
// 获得导出函数
getExportFunc
(){
getExportFunc
(){
...
...
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