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 389bcfb8
authored
May 22, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
bb1b422c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
16 deletions
src/utils/constants.js
src/views/DeliverList/deliverAdd.vue
src/views/purchaseOrder/index.vue
src/utils/constants.js
View file @
389bcfb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
export
const
defaultStatusOptions
=
[
export
const
defaultStatusOptions
=
[
{
{
id
:
1
,
id
:
1
,
label
:
"
待
审核"
label
:
"
运营
审核"
},
},
{
{
id
:
2
,
id
:
2
,
...
@@ -15,6 +15,10 @@ export const defaultStatusOptions = [
...
@@ -15,6 +15,10 @@ export const defaultStatusOptions = [
{
{
id
:
4
,
id
:
4
,
label
:
"已驳回"
label
:
"已驳回"
},
{
id
:
5
,
label
:
'商务审核'
}
}
]
]
// 发货状态
// 发货状态
...
...
src/views/DeliverList/deliverAdd.vue
View file @
389bcfb
...
@@ -24,16 +24,17 @@
...
@@ -24,16 +24,17 @@
<div>
<div>
发货数量:
发货数量:
<span>
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`${item.purchaseNumber
}
卷`
:
`${item.purchaseNumber
}
件`
}}
<
/span
>
<span>
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`${item.purchaseNumber
}
卷`
:
`${item.purchaseNumber
}
件`
}}
<
/span
>
<
span
class
=
"lookNumber"
@
click
=
"innerVisible = true"
>
查看卡号
<
/span
>
<
/div
>
<
/div
>
<
div
>
<
div
>
可用库存数量:
可用库存数量:
<
span
>
{{
item
.
stockNum
}}
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`米`
:
`件`
}}
<
/span
>
<
span
>
{{
item
.
stockNum
}}
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`米`
:
`件`
}}
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"add-btn"
@
click
=
"addLineTable(index)"
>
<
div
class
=
"add-btn"
@
click
=
"addLineTable(index)"
v
-
if
=
"index == 1"
>
添加入库记录
添加入库记录
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
el
-
form
ref
=
"addForm"
:
model
=
"item"
size
=
"small"
:
rules
=
"rules"
>
<
el
-
form
ref
=
"addForm"
:
model
=
"item"
size
=
"small"
:
rules
=
"rules"
v
-
if
=
"index == 1"
>
<
GLTable
:
tableData
=
"item.goodsWarehousingList"
:
noDataImg
=
"url"
:
tableParams
=
"tableParams"
:
hasPage
=
"false"
>
<
GLTable
:
tableData
=
"item.goodsWarehousingList"
:
noDataImg
=
"url"
:
tableParams
=
"tableParams"
:
hasPage
=
"false"
>
<
template
slot
=
"increaseStockNum"
slot
-
scope
=
"scope"
>
<
template
slot
=
"increaseStockNum"
slot
-
scope
=
"scope"
>
<
el
-
form
-
item
style
=
"margin-bottom: 0px"
:
prop
=
"'goodsWarehousingList.' + scope.index + '.increaseStockNum'"
:
rules
=
"rules.increaseStockNum"
>
<
el
-
form
-
item
style
=
"margin-bottom: 0px"
:
prop
=
"'goodsWarehousingList.' + scope.index + '.increaseStockNum'"
:
rules
=
"rules.increaseStockNum"
>
...
@@ -61,9 +62,14 @@
...
@@ -61,9 +62,14 @@
<
/div
>
<
/div
>
<
/GLTable
>
<
/GLTable
>
<
/el-form
>
<
/el-form
>
<
div
v
-
else
class
=
"message"
>
已自动入库至商户的权益卡管理中,可前往“库存管理
-
权益卡管理”中查询
<
/div
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
el
-
dialog
width
=
"60%"
title
=
"查看发货卡号"
:
visible
.
sync
=
"innerVisible"
append
-
to
-
body
>
<
GLTable
:
tableData
=
"tableData"
:
noDataImg
=
"url"
:
tableParams
=
"innerParams"
:
hasPage
=
"true"
><
/GLTable
>
<
/el-dialog
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
size
=
"small"
@
click
=
"dialogShow = false"
>
关闭
<
/el-button
>
<
el
-
button
size
=
"small"
@
click
=
"dialogShow = false"
>
关闭
<
/el-button
>
<
el
-
button
type
=
"primary"
size
=
"small"
@
click
=
"handleSave"
>
保存入库
<
/el-button
>
<
el
-
button
type
=
"primary"
size
=
"small"
@
click
=
"handleSave"
>
保存入库
<
/el-button
>
...
@@ -92,7 +98,6 @@ export default {
...
@@ -92,7 +98,6 @@ export default {
get
()
{
get
()
{
if
(
this
.
visible
)
{
if
(
this
.
visible
)
{
this
.
getDetail
()
this
.
getDetail
()
}
}
return
this
.
visible
return
this
.
visible
}
,
}
,
...
@@ -114,6 +119,7 @@ export default {
...
@@ -114,6 +119,7 @@ export default {
}
}
}
}
return
{
return
{
innerVisible
:
false
,
membraneTypeList
:
membraneTypeList
,
membraneTypeList
:
membraneTypeList
,
dayjs
:
dayjs
,
dayjs
:
dayjs
,
goodsList
:
[],
goodsList
:
[],
...
@@ -139,6 +145,20 @@ export default {
...
@@ -139,6 +145,20 @@ export default {
}
}
]
]
}
,
}
,
innerParams
:
{
tableOption
:
false
,
tableColumns
:
[
{
label
:
'卡号'
,
prop
:
'increaseStockNum'
}
]
}
,
tableData
:
[
{
increaseStockNum
:
111111111111
}
],
rules
:
{
rules
:
{
yqMerchantId
:
[{
required
:
true
,
message
:
'请选择入库仓库'
,
trigger
:
'change'
}
],
yqMerchantId
:
[{
required
:
true
,
message
:
'请选择入库仓库'
,
trigger
:
'change'
}
],
merchantId
:
[{
required
:
true
,
message
:
'请选择入库门店'
,
trigger
:
'change'
}
],
merchantId
:
[{
required
:
true
,
message
:
'请选择入库门店'
,
trigger
:
'change'
}
],
...
@@ -210,18 +230,18 @@ export default {
...
@@ -210,18 +230,18 @@ export default {
this
.
$apis
.
delivery
.
getDeliveryDetail
({
id
:
this
.
id
}
).
then
(
res
=>
{
this
.
$apis
.
delivery
.
getDeliveryDetail
({
id
:
this
.
id
}
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
res
.
data
.
deliveryDetailList
.
forEach
(
item
=>
{
res
.
data
.
deliveryDetailList
.
forEach
(
item
=>
{
item
.
goodsWarehousingList
=
[
item
.
goodsWarehousingList
=
[
{
{
increaseStockNum
:
''
,
increaseStockNum
:
''
,
yqMerchantId
:
''
,
yqMerchantId
:
''
,
yqMerchantName
:
''
,
yqMerchantName
:
''
,
merchantId
:
''
,
merchantId
:
''
,
merchantName
:
''
merchantName
:
''
}
}
]
]
}
)
}
)
this
.
detailInfo
=
res
.
data
this
.
detailInfo
=
res
.
data
this
.
getMerchantList
()
this
.
getMerchantList
()
}
}
}
)
}
)
}
,
}
,
...
@@ -304,6 +324,13 @@ export default {
...
@@ -304,6 +324,13 @@ export default {
color
:
#
5850
ff
;
color
:
#
5850
ff
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.
lookNumber
{
font
-
size
:
14
px
;
color
:
#
5850
ff
;
cursor
:
pointer
;
margin
-
left
:
8
px
;
}
}
}
.
table
-
wrap
{
.
table
-
wrap
{
border
:
1
px
solid
#
e5e5e5
;
border
:
1
px
solid
#
e5e5e5
;
...
@@ -318,5 +345,9 @@ export default {
...
@@ -318,5 +345,9 @@ export default {
/deep/
td
.
el
-
table__cell
{
/deep/
td
.
el
-
table__cell
{
height
:
64
px
;
height
:
64
px
;
}
}
.
message
{
font
-
size
:
14
px
;
color
:
#
666666
;
}
}
}
<
/style
>
<
/style
>
src/views/purchaseOrder/index.vue
View file @
389bcfb
...
@@ -219,7 +219,7 @@ export default {
...
@@ -219,7 +219,7 @@ export default {
fn
:
'取消'
fn
:
'取消'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
status
==
1
return
row
.
status
==
1
&&
row
.
purchaseType
==
1
},
},
listeners
:
{
listeners
:
{
click
:
this
.
handleCancel
click
:
this
.
handleCancel
...
...
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