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 b520ea86
authored
May 31, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
9a2c9080
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
10 deletions
src/utils/constants.js
src/views/DeliverList/deliverAdd.vue
src/views/DeliverList/index.vue
src/views/purchaseOrder/add.vue
src/utils/constants.js
View file @
b520ea8
...
...
@@ -71,7 +71,11 @@ export const defaultPutStatusOptions = [
{
id
:
2
,
label
:
"已入库"
}
},
{
id
:
3
,
label
:
"部分入库"
},
]
//采购类型
export
const
purchaseTypeList
=
[
...
...
src/views/DeliverList/deliverAdd.vue
View file @
b520ea8
...
...
@@ -24,16 +24,17 @@
<div>
发货数量:
<span>
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`${item.purchaseNumber
}
卷`
:
`${item.purchaseNumber
}
件`
}}
<
/span
>
<
span
class
=
"lookNumber"
@
click
=
"lookNumber(item.deliveryCardList)"
v
-
if
=
"item.deliveryCardList && item.deliveryCardList.length > 0"
>
查看卡号
<
/span
>
<
/div
>
<
div
>
可用库存数量:
<
span
>
{{
item
.
stockNum
}}
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`米`
:
`件`
}}
<
/span
>
<
/div
>
<
div
class
=
"add-btn"
@
click
=
"addLineTable(index)"
>
<
div
class
=
"add-btn"
@
click
=
"addLineTable(index)"
v
-
if
=
"item.deliveryCardList === null || item.deliveryCardList.length == 0"
>
添加入库记录
<
/div
>
<
/div
>
<
el
-
form
ref
=
"addForm"
:
model
=
"item"
size
=
"small"
:
rules
=
"rules"
>
<
el
-
form
ref
=
"addForm"
:
model
=
"item"
size
=
"small"
:
rules
=
"rules"
v
-
if
=
"item.deliveryCardList === null || item.deliveryCardList.length == 0"
>
<
GLTable
:
tableData
=
"item.goodsWarehousingList"
:
noDataImg
=
"url"
:
tableParams
=
"tableParams"
:
hasPage
=
"false"
>
<
template
slot
=
"increaseStockNum"
slot
-
scope
=
"scope"
>
<
el
-
form
-
item
style
=
"margin-bottom: 0px"
:
prop
=
"'goodsWarehousingList.' + scope.index + '.increaseStockNum'"
:
rules
=
"rules.increaseStockNum"
>
...
...
@@ -61,8 +62,14 @@
<
/div
>
<
/GLTable
>
<
/el-form
>
<
div
v
-
else
class
=
"message"
>
已自动入库至商户的权益卡管理中,可前往“库存管理
-
权益卡管理”中查询
<
/div
>
<
/div
>
<
/template
>
<
el
-
dialog
width
=
"750px"
title
=
"查看发货卡号"
:
visible
.
sync
=
"innerVisible"
append
-
to
-
body
>
<
GLTable
class
=
"look-card-wrap"
:
tableData
=
"tableData"
:
noDataImg
=
"url"
:
tableParams
=
"innerParams"
:
hasPage
=
"false"
><
/GLTable
>
<
/el-dialog
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
size
=
"small"
@
click
=
"dialogShow = false"
>
关闭
<
/el-button
>
<
el
-
button
type
=
"primary"
size
=
"small"
@
click
=
"handleSave"
>
保存入库
<
/el-button
>
...
...
@@ -144,11 +151,29 @@ export default {
{
validator
:
checkPrice
,
trigger
:
'blur'
}
]
}
,
detailInfo
:
{
}
detailInfo
:
{
}
,
innerVisible
:
false
,
innerParams
:
{
tableOption
:
false
,
tableColumns
:
[
{
label
:
'卡号'
,
prop
:
'cardNum'
,
width
:
630
}
]
}
,
tableData
:
[]
}
}
,
created
()
{
}
,
methods
:
{
lookNumber
(
data
)
{
this
.
innerVisible
=
true
this
.
tableData
=
data
.
map
(
item
=>
{
return
{
cardNum
:
item
}
}
)
}
,
handleCalculate
(
data
,
key
,
index
)
{
if
(
data
[
key
]
>
this
.
detailInfo
.
deliveryDetailList
[
index
].
stockNum
)
{
data
[
key
]
=
this
.
detailInfo
.
deliveryDetailList
[
index
].
stockNum
...
...
@@ -259,13 +284,13 @@ export default {
}
if
(
num
==
this
.
$refs
[
'addForm'
].
length
)
{
let
deliveryDetailList
=
this
.
detailInfo
.
deliveryDetailList
.
map
(
item
=>
{
if
(
item
.
deliveryCardList
.
length
==
0
)
{
let
deliveryDetailList
=
this
.
detailInfo
.
deliveryDetailList
.
map
(
item
=>
{
if
(
item
.
deliveryCardList
.
length
==
0
)
{
return
item
}
}
)
let
params
=
{
deliveryDetailList
:
deliveryDetailList
deliveryDetailList
:
deliveryDetailList
}
params
.
id
=
this
.
id
this
.
$apis
.
delivery
.
addPurchaseOrder
(
params
).
then
(
res
=>
{
...
...
@@ -320,4 +345,19 @@ export default {
height
:
64
px
;
}
}
.
lookNumber
{
font
-
size
:
14
px
;
color
:
#
5850
ff
!
important
;
cursor
:
pointer
;
margin
-
left
:
8
px
;
}
.
look
-
card
-
wrap
{
/
deep
/
.
el
-
table
th
.
el
-
table__cell
>
.
cell
{
padding
:
0
16
px
;
text
-
align
:
center
;
}
/deep/
.
el
-
table__body
td
.
el
-
table__cell
{
text
-
align
:
center
;
}
}
<
/style
>
src/views/DeliverList/index.vue
View file @
b520ea8
...
...
@@ -14,7 +14,7 @@
<GLTable
ref=
"orderRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<template
slot=
"putStatus"
slot-scope=
"scope"
>
<div>
<span
:class=
"[scope.scope.putStatus == 1 ? '
yellowSpot' : 'green
Spot']"
></span>
<span
:class=
"[scope.scope.putStatus == 1 ? '
ashSpot' :scope.scope.putStatus == 2? 'greenSpot':'yellow
Spot']"
></span>
<span>
{{
scope
.
scope
.
putStatus
|
puStatus
}}
</span>
</div>
</
template
>
...
...
@@ -124,7 +124,7 @@ export default {
fn
:
'入库'
},
condition
:
row
=>
{
return
row
.
putStatus
==
1
&&
row
.
operatorStatus
==
1
return
row
.
putStatus
==
1
&&
row
.
operatorStatus
==
1
||
row
.
putStatus
==
3
&&
row
.
operatorStatus
==
1
},
listeners
:
{
click
:
this
.
handleWarehousing
...
...
src/views/purchaseOrder/add.vue
View file @
b520ea8
...
...
@@ -160,7 +160,7 @@ export default {
},
// 获取类目列表
getGoodsCategoryConfiguration
()
{
this
.
$apis
.
sysBase
.
getGoodsCategoryConfiguration
({
sceneType
:
1
,
shoppingMallFlag
:
true
}).
then
(
result
=>
{
this
.
$apis
.
sysBase
.
getGoodsCategoryConfiguration
({
shoppingMallFlag
:
true
}).
then
(
result
=>
{
const
{
list
}
=
result
if
(
list
.
length
)
{
const
navList
=
list
.
map
(({
categoryType
,
categoryName
})
=>
{
...
...
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