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
86ac0e37
Commit
86ac0e37
authored
Jun 03, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善待出订单,备货列表,泡货优惠
parent
1ce08064
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
95 additions
and
22 deletions
+95
-22
order.js
src/api/ecw/order.js
+31
-5
index.vue
src/views/ecw/order/index.vue
+13
-0
penddingList.vue
src/views/ecw/order/penddingList.vue
+2
-2
Preferential.vue
src/views/ecw/order/special/Preferential.vue
+30
-8
index.vue
src/views/ecw/order/special/index.vue
+6
-3
stockingList.vue
src/views/ecw/order/stockingList.vue
+13
-4
No files found.
src/api/ecw/order.js
View file @
86ac0e37
...
@@ -751,7 +751,24 @@ export function splitItemUpdate(data){
...
@@ -751,7 +751,24 @@ export function splitItemUpdate(data){
// 可出订单列表
// 可出订单列表
export
function
canShipmentPage
(
params
){
export
function
canShipmentPage
(
params
){
return
request
({
return
request
({
url
:
'
air/order/can/shipment/page
'
,
url
:
'
/air/order/can/shipment/page
'
,
method
:
'
get
'
,
params
})
}
// 待出订单列表
export
function
waitingShipmentPage
(
params
){
return
request
({
url
:
'
/air/order/waiting/shipment/page
'
,
method
:
'
get
'
,
params
})
}
// 备货订单列表
export
function
canReadyStockShipmentPage
(
params
){
return
request
({
url
:
'
/air/order/can-ready-stock/shipment/page
'
,
method
:
'
get
'
,
method
:
'
get
'
,
params
params
})
})
...
@@ -765,15 +782,24 @@ export function setCanShipment(orderId){
...
@@ -765,15 +782,24 @@ export function setCanShipment(orderId){
})
})
}
}
// 批量可出
// 批量可出
export
function
batchCanShipment
(
ids
){
export
function
batchCanShipment
(
orderIdList
){
throw
new
Error
(
'
接口未出,待完善,以下代码是copilot生成
'
)
return
request
({
return
request
({
url
:
'
/air/order/can/shipment/
batch
'
,
url
:
'
/air/order/can/shipment/
'
,
method
:
'
put
'
,
method
:
'
put
'
,
params
:
{
ids
}
data
:
{
orderIdList
}
})
})
}
}
// 批量转异
// 批量转异
export
function
batchException
(
ids
){
export
function
batchException
(
ids
){
throw
new
Error
(
'
接口未出,待完善,以下代码是copilot生成
'
)
throw
new
Error
(
'
接口未出,待完善,以下代码是copilot生成
'
)
}
}
// 导出备货订单
export
function
exportReadyStock
(
params
){
return
request
({
url
:
'
/ecw/order/export/ready-stock/search
'
,
method
:
'
get
'
,
params
,
responseType
:
'
blob
'
})
}
src/views/ecw/order/index.vue
View file @
86ac0e37
...
@@ -427,6 +427,19 @@
...
@@ -427,6 +427,19 @@
<el-dropdown-item
@
click.native=
"$router.push(
{path:'/order/transfer-to-warehouse/' + scope.row.orderId + '/' + 2 })" v-hasPermi="['ecw:order:warehouse_arrive']">
{{
$t
(
'
调拨到仓
'
)
}}
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$router.push(
{path:'/order/transfer-to-warehouse/' + scope.row.orderId + '/' + 2 })" v-hasPermi="['ecw:order:warehouse_arrive']">
{{
$t
(
'
调拨到仓
'
)
}}
</el-dropdown-item>
</
template
>
</
template
>
<!--开始备货-->
<
template
v-if=
"
include(scope.row.airShipment, [2])
"
>
<el-dropdown-item
@
click.native=
"$router.push(
{path:'/order/stocking?id=' + scope.row.orderId})" v-hasPermi="['ecw:order:stocking']">
{{
$t
(
'
开始备货
'
)
}}
</el-dropdown-item>
</
template
>
<!--修改备货-->
<
template
v-if=
"
include(scope.row.airShipment, [3, 4, 10])
"
>
<el-dropdown-item
@
click.native=
"$router.push(
{path:'/order/stocking?action=update
&
id=' + scope.row.orderId})" v-hasPermi="['ecw:order:stocking_update']">
{{
$t
(
'
修改备货
'
)
}}
</el-dropdown-item>
</
template
>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
</template>
</template>
...
...
src/views/ecw/order/penddingList.vue
View file @
86ac0e37
...
@@ -237,7 +237,7 @@ import {
...
@@ -237,7 +237,7 @@ import {
exportCustomsDatas
,
exportCustomsDatas
,
exportShippingDatas
,
exportShippingDatas
,
exportShipFee
,
exportShipFee
,
exportUnload
,
setCanShipment
,
canShipmentPage
,
batchCanShipment
,
batchException
exportUnload
,
setCanShipment
,
canShipmentPage
,
batchCanShipment
,
batchException
,
waitingShipmentPage
}
from
"
@/api/ecw/order
"
;
}
from
"
@/api/ecw/order
"
;
import
PrintTag
from
'
./components/PrintTag
'
import
PrintTag
from
'
./components/PrintTag
'
import
PrintWarehouseReceipt
from
'
./components/PrintWarehouseReceipt
'
import
PrintWarehouseReceipt
from
'
./components/PrintWarehouseReceipt
'
...
@@ -362,7 +362,7 @@ export default {
...
@@ -362,7 +362,7 @@ export default {
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
// 执行查询
// 执行查询
can
ShipmentPage
(
this
.
combinedQueryParams
).
then
(
response
=>
{
waiting
ShipmentPage
(
this
.
combinedQueryParams
).
then
(
response
=>
{
// 部分情况下,订单后面的操作下拉菜单会显示按钮,但是下来没有选项,在elTable组件更新的时候会导致渲染错误,所以要在更新渲染前清空一次list让table彻底重新渲染,避免部分更新导致异常
// 部分情况下,订单后面的操作下拉菜单会显示按钮,但是下来没有选项,在elTable组件更新的时候会导致渲染错误,所以要在更新渲染前清空一次list让table彻底重新渲染,避免部分更新导致异常
this
.
list
=
[]
this
.
list
=
[]
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
src/views/ecw/order/special/Preferential.vue
View file @
86ac0e37
<
template
>
<
template
>
<el-dialog
visible
:close-on-click-modal=
"false"
:before-close=
"closeDialog"
:title=
"title"
>
<el-dialog
visible
:close-on-click-modal=
"false"
:before-close=
"closeDialog"
:title=
"title"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
:rules=
"rules"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
:rules=
"rules"
>
<!-- 海运是重货,空运是泡货 -->
<!-- 海运是重货,空运是泡货 -->
<template
v-if=
"
order.transportId === 1 || order.transportId === 2
"
>
<template
v-if=
"
applyType == 4
"
>
<el-form-item
:label=
"$t('原重货标准')"
>
<el-form-item
:label=
"$t('原重货标准')"
>
{{
form
.
orgWVolume
}}
kg/cbm
{{
form
.
orgWVolume
}}
kg/cbm
</el-form-item>
</el-form-item>
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-input
v-model=
"form.wvolume"
type=
"number"
class=
"w-100"
/>
kg/cbm
<el-input
v-model=
"form.wvolume"
type=
"number"
class=
"w-100"
/>
kg/cbm
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
-if=
"applyType == 5"
>
<el-form-item
:label=
"$t('原泡货标准')"
>
<el-form-item
:label=
"$t('原泡货标准')"
>
{{
form
.
orgVWeight
}}
kg
{{
form
.
orgVWeight
}}
kg
</el-form-item>
</el-form-item>
...
@@ -19,9 +19,17 @@
...
@@ -19,9 +19,17 @@
<el-input
v-model=
"form.vweight"
type=
"number"
class=
"w-100"
/>
kg
<el-input
v-model=
"form.vweight"
type=
"number"
class=
"w-100"
/>
kg
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<
template
v-else-if=
"applyType == 29"
>
<el-form-item
:label=
"$t('现订单泡重')"
>
{{
form
.
orgVWeight
}}
kg
</el-form-item>
<el-form-item
:label=
"$t('新订单泡重')"
style=
"width: 400px"
prop=
"clearanceFreight"
>
<el-input
v-model=
"form.vweight"
type=
"number"
class=
"w-100"
/>
kg
</el-form-item>
</
template
>
</el-form>
</el-form>
<div
class=
"page-title"
>
{{ $t('审批流程') }}
</div>
<div
class=
"page-title"
>
{{ $t('审批流程') }}
</div>
<work-flow
xmlkey=
"special_appl
y"
v-model=
"ccIdArr"
/>
<work-flow
:xmlkey=
"workFlowKe
y"
v-model=
"ccIdArr"
/>
<div
v-if=
"form.applyStatus != 1"
>
<div
v-if=
"form.applyStatus != 1"
>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
{{ $t('提交') }}
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
{{ $t('提交') }}
</el-button>
</div>
</div>
...
@@ -29,7 +37,7 @@
...
@@ -29,7 +37,7 @@
<el-button
type=
"primary"
@
click=
"$router.push('/bpm/process-instance/detail?id=' + form.formId)"
>
<el-button
type=
"primary"
@
click=
"$router.push('/bpm/process-instance/detail?id=' + form.formId)"
>
<dict-tag
:type=
"DICT_TYPE.APPLY_STATUS"
:value=
"form.applyStatus"
/>
<dict-tag
:type=
"DICT_TYPE.APPLY_STATUS"
:value=
"form.applyStatus"
/>
</el-button>
</el-button>
<el-button
type=
"primary"
@
click=
"cancelAudit"
>
{{ $t('取消审核') }}
</el-button>
<el-button
type=
"primary"
@
click=
"cancelAudit"
>
{{ $t('取消审核') }}
</el-button>
<el-button
type=
"default"
@
click=
"closeDialog"
>
{{ $t('返回') }}
</el-button>
<el-button
type=
"default"
@
click=
"closeDialog"
>
{{ $t('返回') }}
</el-button>
</div>
</div>
...
@@ -50,7 +58,7 @@ export default {
...
@@ -50,7 +58,7 @@ export default {
props
:
{
props
:
{
order
:
Object
,
order
:
Object
,
orderItem
:
Object
,
orderItem
:
Object
,
applyType
:
Number
// 4是重货
优惠5是
泡货优惠
applyType
:
Number
// 4是重货
标准优惠5是泡货标准优惠,29
泡货优惠
},
},
components
:
{
components
:
{
WorkFlow
WorkFlow
...
@@ -65,7 +73,7 @@ export default {
...
@@ -65,7 +73,7 @@ export default {
// applyType: 2, //1是优惠申请2是管理折扣3是佣金设置4是重货优惠5是泡货优惠
// applyType: 2, //1是优惠申请2是管理折扣3是佣金设置4是重货优惠5是泡货优惠
ccIdArr
:
[],
ccIdArr
:
[],
form
:
{
form
:
{
},
},
rules
:{
rules
:{
...
@@ -79,7 +87,21 @@ export default {
...
@@ -79,7 +87,21 @@ export default {
},
},
computed
:{
computed
:{
title
(){
title
(){
return
this
.
applyType
==
4
?
this
.
$t
(
'
重货优惠申请
'
)
:
this
.
$t
(
'
泡货优惠申请
'
)
return
{
4
:
this
.
$t
(
'
重货标准优惠申请
'
),
5
:
this
.
$t
(
'
泡货标准优惠申请
'
),
29
:
this
.
$t
(
'
泡货优惠申请
'
)
}[
this
.
applyType
]
// return this.applyType == 4 ? this.$t('重货优惠申请') : this.$t('泡货优惠申请')
},
// 流程key
workFlowKey
(){
// 泡货优惠申请审核
if
(
this
.
applyType
==
29
){
return
'
shipment_bulky_cargo
'
}
// 订单特价审核
return
'
special_apply
'
}
}
},
},
methods
:
{
methods
:
{
...
...
src/views/ecw/order/special/index.vue
View file @
86ac0e37
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
:formatter=
"(_, __, v) => parseTime(v)"
:formatter=
"(_, __, v) => parseTime(v)"
:label=
"$t('最后操作时间')"
>
:label=
"$t('最后操作时间')"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
:label=
"$t('原价')"
>
:label=
"$t('原价')"
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
...
@@ -111,7 +111,10 @@
...
@@ -111,7 +111,10 @@
2.空运专线、海空联运显示泡货优惠 3,4
2.空运专线、海空联运显示泡货优惠 3,4
-->
-->
<el-button
v-hasPermi=
"['ecw:order:heavy']"
type=
"primary"
@
click=
"showPreferentialType=4"
v-if=
"order.transportId === 1 || order.transportId === 2"
>
{{$t('申请重货优惠')}}
</el-button>
<el-button
v-hasPermi=
"['ecw:order:heavy']"
type=
"primary"
@
click=
"showPreferentialType=4"
v-if=
"order.transportId === 1 || order.transportId === 2"
>
{{$t('申请重货优惠')}}
</el-button>
<el-button
v-hasPermi=
"['ecw:order:bulky']"
type=
"primary"
@
click=
"showPreferentialType=5"
v-else
>
{{$t('申请泡货优惠')}}
</el-button>
<
template
v-else
>
<el-button
v-hasPermi=
"['ecw:order:bulky2']"
type=
"primary"
@
click=
"showPreferentialType=29"
>
{{
$t
(
'
申请泡货优惠
'
)
}}
</el-button>
<el-button
v-hasPermi=
"['ecw:order:bulky']"
type=
"primary"
@
click=
"showPreferentialType=5"
>
{{
$t
(
'
申请泡货标准优惠
'
)
}}
</el-button>
</
template
>
<el-button
type=
"primary"
@
click=
"$tab.closePage()"
>
{{$t('关闭窗口')}}
</el-button>
<el-button
type=
"primary"
@
click=
"$tab.closePage()"
>
{{$t('关闭窗口')}}
</el-button>
</div>
</div>
</el-card>
</el-card>
...
@@ -122,7 +125,7 @@
...
@@ -122,7 +125,7 @@
<discount
v-if=
"!!showAllowanceItem"
:order=
"order"
:orderItem=
"showAllowanceItem"
@
close=
"showAllowanceItem=null"
:applyType=
"2"
@
success=
"onDiscountSuccess"
/>
<discount
v-if=
"!!showAllowanceItem"
:order=
"order"
:orderItem=
"showAllowanceItem"
@
close=
"showAllowanceItem=null"
:applyType=
"2"
@
success=
"onDiscountSuccess"
/>
<!-- 佣金规则 -->
<!-- 佣金规则 -->
<commission
v-if=
"!!showCommissionItem"
:order=
"order"
:orderItem=
"showCommissionItem"
@
close=
"showCommissionItem=null"
@
success=
"onCommissionSuccess"
/>
<commission
v-if=
"!!showCommissionItem"
:order=
"order"
:orderItem=
"showCommissionItem"
@
close=
"showCommissionItem=null"
@
success=
"onCommissionSuccess"
/>
<!-- 重泡货优惠 -->
<!-- 重泡货
(标准)
优惠 -->
<preferential
v-if=
"!!showPreferentialType"
:applyType=
"showPreferentialType"
:order=
"order"
@
close=
"showPreferentialType=null"
@
success=
"onPreferentialSuccess"
/>
<preferential
v-if=
"!!showPreferentialType"
:applyType=
"showPreferentialType"
:order=
"order"
@
close=
"showPreferentialType=null"
@
success=
"onPreferentialSuccess"
/>
</div>
</div>
</template>
</template>
...
...
src/views/ecw/order/stockingList.vue
View file @
86ac0e37
...
@@ -104,8 +104,8 @@
...
@@ -104,8 +104,8 @@
<!-- 操作工具栏 -->
<!-- 操作工具栏 -->
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
:disabled=
"!multipleSelection.length"
type=
"primary"
plain
size=
"mini"
@
click=
"$alert('//TODO'
)"
v-hasPermi=
"['ecw:order:stockingList:export_selected']"
>
{{
$t
(
'
导出所选
'
)
}}
</el-button>
<el-button
:disabled=
"!multipleSelection.length"
type=
"primary"
:loading=
"exporting"
plain
size=
"mini"
@
click=
"exportXls(ids
)"
v-hasPermi=
"['ecw:order:stockingList:export_selected']"
>
{{
$t
(
'
导出所选
'
)
}}
</el-button>
<el-button
:disabled=
"!multipleSelection.length"
type=
"primary"
plain
size=
"mini"
@
click=
"$alert('//TODO'
)"
v-hasPermi=
"['ecw:order:stockingList:export_search']"
>
{{
$t
(
'
导出搜索
'
)
}}
</el-button>
<el-button
type=
"primary"
:loading=
"exporting"
plain
size=
"mini"
@
click=
"exportXls(queryParams
)"
v-hasPermi=
"['ecw:order:stockingList:export_search']"
>
{{
$t
(
'
导出搜索
'
)
}}
</el-button>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -192,7 +192,7 @@ import { getProductAttrList } from '@/api/ecw/productAttr'
...
@@ -192,7 +192,7 @@ 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
{
getOrderPage
}
from
"
@/api/ecw/order
"
;
import
{
canReadyStockShipmentPage
,
exportReadyStock
,
getOrderPage
}
from
"
@/api/ecw/order
"
;
import
PrintTag
from
'
./components/PrintTag
'
import
PrintTag
from
'
./components/PrintTag
'
import
PrintWarehouseReceipt
from
'
./components/PrintWarehouseReceipt
'
import
PrintWarehouseReceipt
from
'
./components/PrintWarehouseReceipt
'
import
PrintLadingBill
from
'
./components/PrintLadingBill
'
import
PrintLadingBill
from
'
./components/PrintLadingBill
'
...
@@ -298,7 +298,7 @@ export default {
...
@@ -298,7 +298,7 @@ export default {
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
// 执行查询
// 执行查询
getOrder
Page
(
this
.
combinedQueryParams
).
then
(
response
=>
{
canReadyStockShipment
Page
(
this
.
combinedQueryParams
).
then
(
response
=>
{
// 部分情况下,订单后面的操作下拉菜单会显示按钮,但是下来没有选项,在elTable组件更新的时候会导致渲染错误,所以要在更新渲染前清空一次list让table彻底重新渲染,避免部分更新导致异常
// 部分情况下,订单后面的操作下拉菜单会显示按钮,但是下来没有选项,在elTable组件更新的时候会导致渲染错误,所以要在更新渲染前清空一次list让table彻底重新渲染,避免部分更新导致异常
this
.
list
=
[]
this
.
list
=
[]
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -336,6 +336,15 @@ export default {
...
@@ -336,6 +336,15 @@ export default {
this
.
ids
=
selection
.
map
(
item
=>
item
.
orderId
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
orderId
)
this
.
single
=
selection
.
length
!==
1
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
this
.
multiple
=
!
selection
.
length
},
// 导出
exportXls
(
params
){
this
.
exporting
=
true
exportReadyStock
(
params
).
then
(
res
=>
{
this
.
$download
.
excel
(
res
,
this
.
$t
(
'
备货订单
'
)
+
'
.xls
'
);
}).
finally
(()
=>
{
this
.
exporting
=
false
})
}
}
}
}
};
};
...
...
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