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
1f796607
Commit
1f796607
authored
Aug 23, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待出列表增加导出
parent
6c9cdd1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
2 deletions
+52
-2
order.js
src/api/ecw/order.js
+10
-0
penddingList.vue
src/views/ecw/order/penddingList.vue
+42
-2
No files found.
src/api/ecw/order.js
View file @
1f796607
...
...
@@ -884,6 +884,16 @@ export function exportCanShipment(params){
})
}
// 导出待出订单
export
function
exportWaitingShipment
(
params
){
return
request
({
url
:
'
/ecw/order/export/waiting-shipment/search
'
,
method
:
'
get
'
,
params
,
responseType
:
'
blob
'
})
}
// 无需打包
export
function
noNeedPack
(
orderItemId
){
return
request
({
...
...
src/views/ecw/order/penddingList.vue
View file @
1f796607
...
...
@@ -106,6 +106,8 @@
<el-col
:span=
"1.5"
>
<el-button
:disabled=
"!multipleSelection.length"
type=
"primary"
plain
size=
"mini"
@
click=
"batchCanShipment"
v-hasPermi=
"['ecw:order:peddingList:batch_can_shipment']"
>
{{
$t
(
'
批量可出
'
)
}}
</el-button>
<el-button
:disabled=
"!multipleSelection.length"
type=
"primary"
plain
size=
"mini"
@
click=
"batchException"
v-hasPermi=
"['ecw:order:peddingList:batch_exception']"
>
{{
$t
(
'
批量转异
'
)
}}
</el-button>
<el-button
:disabled=
"!multipleSelection.length"
type=
"primary"
:loading=
"exporting"
plain
size=
"mini"
@
click=
"exportXls(ids)"
v-hasPermi=
"['ecw:order:peddingList:export_selected']"
>
{{
$t
(
'
导出所选
'
)
}}
</el-button>
<el-button
type=
"primary"
:loading=
"exporting"
plain
size=
"mini"
@
click=
"exportXls(queryParams)"
v-hasPermi=
"['ecw:order:peddingList:export_search']"
>
{{
$t
(
'
导出搜索
'
)
}}
</el-button>
</el-col>
</el-row>
...
...
@@ -212,7 +214,14 @@ import ProductSelector from '@/components/ProductSelector'
import
{
getProductAttrList
}
from
'
@/api/ecw/productAttr
'
import
CustomerSelector
from
'
@/components/CustomerSelector
'
import
specialNeeds
from
'
@/views/ecw/order/components/specialNeeds
'
;
import
{
setCanShipment
,
canShipmentPage
,
batchCanShipment
,
batchException
,
waitingShipmentPage
}
from
"
@/api/ecw/order
"
;
import
{
setCanShipment
,
canShipmentPage
,
batchCanShipment
,
batchException
,
waitingShipmentPage
,
orderSpecialNeed
,
exportCanShipment
,
exportWaitingShipment
}
from
"
@/api/ecw/order
"
;
import
PrintTag
from
'
./components/PrintTag
'
import
PrintWarehouseReceipt
from
'
./components/PrintWarehouseReceipt
'
import
PrintLadingBill
from
'
./components/PrintLadingBill
'
...
...
@@ -242,6 +251,8 @@ export default {
},
data
()
{
return
{
// 导出中
exporting
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
...
...
@@ -416,7 +427,36 @@ export default {
})
}
})
}
},
specialRendering
(
val
){
console
.
log
(
'
val
'
,
val
)
if
(
val
!==
undefined
){
let
i
=
val
.
split
(
'
,
'
)
return
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ORDER_SPECIAL_NEEDS
).
filter
(
e
=>
{
return
i
.
indexOf
(
e
.
value
)
>
-
1
}).
map
(
item
=>
{
// 打字开头的用最后一个字,否则取第一个字
item
.
symbol
=
item
.
label
[
0
]
==
'
打
'
?
item
.
label
[
item
.
label
.
length
-
1
]:
item
.
label
[
0
]
return
item
})
}
},
deleteSpecial
(
id
,
orderId
){
this
.
$confirm
(
this
.
$t
(
'
确定删除此特需么?
'
)).
then
(()
=>
{
return
orderSpecialNeed
({
orderId
:
orderId
,
advanceType
:
id
})
}).
then
(()
=>
{
this
.
getList
()
})
},
exportXls
(
params
){
this
.
exporting
=
true
const
exportParams
=
Array
.
isArray
(
params
)
?
{
orderIdList
:
params
}
:
{...
params
}
exportWaitingShipment
(
exportParams
).
then
(
res
=>
{
this
.
$download
.
excel
(
res
,
this
.
$t
(
'
待出订单
'
)
+
'
.xls
'
);
}).
finally
(()
=>
{
this
.
exporting
=
false
})
}
}
};
</
script
>
...
...
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