Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-purchase
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit caa82450
authored
Jul 10, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
发货单加字段
1 parent
2e01460a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
src/views/DeliverList/index.vue
src/views/DeliverList/index.vue
View file @
caa8245
...
@@ -34,6 +34,7 @@ import * as dayjs from 'dayjs'
...
@@ -34,6 +34,7 @@ import * as dayjs from 'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
DeliverAdd
from
'./deliverAdd'
import
DeliverAdd
from
'./deliverAdd'
import
DeliverDetail
from
'./deliverDetail'
import
DeliverDetail
from
'./deliverDetail'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
import
{
defaultStatusOptions
,
defaultDeliveryStatusOptions
,
defaultPutStatusOptions
,
purchaseTypeList
}
from
'@/utils/constants.js'
import
{
defaultStatusOptions
,
defaultDeliveryStatusOptions
,
defaultPutStatusOptions
,
purchaseTypeList
}
from
'@/utils/constants.js'
export
default
{
export
default
{
name
:
'PurchaseOrder'
,
name
:
'PurchaseOrder'
,
...
@@ -155,7 +156,7 @@ export default {
...
@@ -155,7 +156,7 @@ export default {
fn
:
'入库'
fn
:
'入库'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
putStatus
==
1
&&
row
.
operatorStatus
==
1
||
row
.
putStatus
==
3
&&
row
.
operatorStatus
==
1
return
row
.
putStatus
==
1
&&
row
.
operatorStatus
==
1
||
row
.
putStatus
==
3
&&
row
.
operatorStatus
==
1
},
},
listeners
:
{
listeners
:
{
click
:
this
.
handleWarehousing
click
:
this
.
handleWarehousing
...
@@ -185,6 +186,21 @@ export default {
...
@@ -185,6 +186,21 @@ export default {
prop
:
'goodsTypeName'
prop
:
'goodsTypeName'
},
},
{
{
label
:
'发货数量'
,
prop
:
''
,
formatter
:
cellValue
=>
{
return
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
purchaseNumber
}
卷`
:
`
${
cellValue
.
purchaseNumber
}
件`
}
},
{
label
:
'可用库存数量'
,
prop
:
''
,
width
:
'120px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
stockNum
+
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`米`
:
`件`
}
},
{
label
:
'承运单号'
,
label
:
'承运单号'
,
prop
:
'deliveryNumber'
,
prop
:
'deliveryNumber'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
...
@@ -203,7 +219,7 @@ export default {
...
@@ -203,7 +219,7 @@ export default {
label
:
'发货时间'
,
label
:
'发货时间'
,
prop
:
'deliveryDate'
,
prop
:
'deliveryDate'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
deliveryDate
?
dayjs
(
cellValue
.
deliveryDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
):
'--'
return
cellValue
.
deliveryDate
?
dayjs
(
cellValue
.
deliveryDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
}
}
},
},
{
{
...
@@ -261,7 +277,7 @@ export default {
...
@@ -261,7 +277,7 @@ export default {
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
placeOrderTimeStr
.
length
)
{
if
(
this
.
searchForm
.
placeOrderTimeStr
.
length
)
{
params
.
deliveryDateStart
=
dayjs
(
this
.
searchForm
.
placeOrderTimeStr
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
params
.
deliveryDateStart
=
dayjs
(
this
.
searchForm
.
placeOrderTimeStr
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
params
.
deliveryDateEnd
=
dayjs
(
this
.
searchForm
.
placeOrderTimeStr
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
params
.
deliveryDateEnd
=
dayjs
(
this
.
searchForm
.
placeOrderTimeStr
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
}
delete
params
.
placeOrderTimeStr
delete
params
.
placeOrderTimeStr
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment