Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-inventory
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2e3e4b97
authored
Jul 06, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
入库管理,库存管理,出库管理
1 parent
436bf37e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
158 additions
and
18 deletions
src/api/modules/stockManage.js
src/views/outbound/index.vue
src/views/stock/index.vue
src/views/warehousing/index.vue
src/api/modules/stockManage.js
View file @
2e3e4b9
...
@@ -29,6 +29,18 @@ const getServicemerchantrefList = params => {
...
@@ -29,6 +29,18 @@ const getServicemerchantrefList = params => {
})
})
}
}
// 入库管理列表统计
const
getGoodsWarehousingCount
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
'dj.api.life.GoodsWarehousingInfo.count'
return
http
({
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 入库管理列表
// 入库管理列表
const
getGoodsWarehousingList
=
params
=>
{
const
getGoodsWarehousingList
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
...
@@ -41,6 +53,18 @@ const getGoodsWarehousingList = params => {
...
@@ -41,6 +53,18 @@ const getGoodsWarehousingList = params => {
})
})
}
}
// 库存管理统计
const
getMerchantGoodsStockMonthCount
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
'dj.api.smartcarlife.MerchantGoodsStockMonthReport.count'
return
http
({
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 库存记录分页查询
// 库存记录分页查询
const
getMerchantGoodsStockMonthReport
=
params
=>
{
const
getMerchantGoodsStockMonthReport
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
...
@@ -65,6 +89,18 @@ const getReportByGoods = params => {
...
@@ -65,6 +89,18 @@ const getReportByGoods = params => {
})
})
}
}
// 出库管理统计
const
getMerchantGoodsStockCount
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
'dj.api.smartcarlife.MerchantGoodsStockReduceRecord.count'
return
http
({
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 出库记录查询
// 出库记录查询
const
getMerchantGoodsStockReduceRecord
=
params
=>
{
const
getMerchantGoodsStockReduceRecord
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
...
@@ -286,4 +322,4 @@ export function checkShipper(params) {
...
@@ -286,4 +322,4 @@ export function checkShipper(params) {
returnAll
:
true
returnAll
:
true
})
})
}
}
export
default
{
inventoryWarningList
,
exportaInventExcel
,
exportaAllocateExcel
,
exportCheckExcel
,
exportReduceExcel
,
exportMerchantExcel
,
exportExcel
,
saveStockAllocate
,
stockAllocateDetailPage
,
stockAllocatePage
,
yqRelatedList
,
saveStockCheck
,
stockRemainPage
,
stockCheckDetailPage
,
stockCheckPage
,
getMerchantGoodsStock
ReduceRecord
,
getReportByGoods
,
getyqMerchantList
,
getGoodsWarehousingLis
t
,
getMerchantGoodsStockMonthReport
,
merchantShopGoodsStockPage
,
getServicemerchantrefList
,
checkShipper
}
export
default
{
inventoryWarningList
,
exportaInventExcel
,
exportaAllocateExcel
,
exportCheckExcel
,
exportReduceExcel
,
exportMerchantExcel
,
exportExcel
,
saveStockAllocate
,
stockAllocateDetailPage
,
stockAllocatePage
,
yqRelatedList
,
saveStockCheck
,
stockRemainPage
,
stockCheckDetailPage
,
stockCheckPage
,
getMerchantGoodsStock
Count
,
getMerchantGoodsStockReduceRecord
,
getReportByGoods
,
getyqMerchantList
,
getGoodsWarehousingCount
,
getGoodsWarehousingList
,
getMerchantGoodsStockMonthCoun
t
,
getMerchantGoodsStockMonthReport
,
merchantShopGoodsStockPage
,
getServicemerchantrefList
,
checkShipper
}
src/views/outbound/index.vue
View file @
2e3e4b9
...
@@ -3,7 +3,12 @@
...
@@ -3,7 +3,12 @@
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<h2>
出库列表
</h2>
<div>
合计:出库数量
<span
class=
"txt-blue"
>
{{
totalObj
.
totalReduceStockNum
||
'0'
}}
</span>
,出库金额
<span
class=
"txt-blue"
>
¥
{{
totalObj
.
totalReduceStockMoney
||
'0'
}}
</span>
</div>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
...
@@ -24,6 +29,7 @@ export default {
...
@@ -24,6 +29,7 @@ export default {
return
{
return
{
membraneTypeList
:
membraneTypeList
,
membraneTypeList
:
membraneTypeList
,
size
:
'small'
,
size
:
'small'
,
totalObj
:
{},
url
:
url
,
url
:
url
,
searchForm
:
{
searchForm
:
{
reduceDate
:
''
,
reduceDate
:
''
,
...
@@ -34,7 +40,8 @@ export default {
...
@@ -34,7 +40,8 @@ export default {
goodsType
:
''
,
goodsType
:
''
,
businessCode
:
''
,
businessCode
:
''
,
goodsSeries
:
''
,
goodsSeries
:
''
,
productCode
:
''
productCode
:
''
,
upgradeFlag
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
paramsObj
:
{},
paramsObj
:
{},
...
@@ -123,6 +130,15 @@ export default {
...
@@ -123,6 +130,15 @@ export default {
type
:
'input'
,
type
:
'input'
,
maxlength
:
'20'
,
maxlength
:
'20'
,
isClear
:
true
isClear
:
true
},
{
label
:
'订单类型'
,
name
:
'upgradeFlag'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'upgradeFlagList'
}
}
],
],
// 表格
// 表格
...
@@ -191,6 +207,13 @@ export default {
...
@@ -191,6 +207,13 @@ export default {
width
:
200
width
:
200
},
},
{
{
label
:
'订单类型'
,
prop
:
''
,
formatter
:
cellValue
=>
{
return
cellValue
.
eventType
==
'1'
?
this
.
baseData
.
upgradeFlagList
.
find
(
item
=>
item
.
confId
===
cellValue
.
upgradeFlag
)?.
confLabel
:
'-'
}
},
{
label
:
'出库仓库'
,
label
:
'出库仓库'
,
prop
:
'yqMerchantName'
,
prop
:
'yqMerchantName'
,
width
:
180
,
width
:
180
,
...
@@ -230,6 +253,16 @@ export default {
...
@@ -230,6 +253,16 @@ export default {
confLabel
:
'调拨出库'
confLabel
:
'调拨出库'
}
}
],
],
upgradeFlagList
:
[
{
confId
:
'Y'
,
confLabel
:
'升级'
},
{
confId
:
'N'
,
confLabel
:
'战败'
}
],
productTypeList
:
[],
productTypeList
:
[],
yqMerchantList
:
[],
yqMerchantList
:
[],
merchantIdList
:
[]
merchantIdList
:
[]
...
@@ -248,9 +281,16 @@ export default {
...
@@ -248,9 +281,16 @@ export default {
this
.
baseData
.
yqMerchantList
=
res
this
.
baseData
.
yqMerchantList
=
res
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
})
})
this
.
getMerchantGoodsStockCount
()
},
},
methods
:
{
methods
:
{
getMerchantGoodsStockCount
()
{
const
params
=
this
.
getParams
()
this
.
$apis
.
stockManage
.
getMerchantGoodsStockCount
(
params
).
then
(
res
=>
{
this
.
totalObj
=
res
||
{}
})
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
reduceDate
)
{
if
(
this
.
searchForm
.
reduceDate
)
{
...
@@ -319,6 +359,7 @@ export default {
...
@@ -319,6 +359,7 @@ export default {
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
outboundRef
.
refreshTable
()
this
.
$refs
.
outboundRef
.
refreshTable
()
this
.
getMerchantGoodsStockCount
()
},
},
handleReset
()
{
handleReset
()
{
...
@@ -331,7 +372,8 @@ export default {
...
@@ -331,7 +372,8 @@ export default {
goodsType
:
''
,
goodsType
:
''
,
businessCode
:
''
,
businessCode
:
''
,
goodsSeries
:
''
,
goodsSeries
:
''
,
productCode
:
''
productCode
:
''
,
upgradeFlag
:
''
}
}
this
.
showFormData
[
this
.
findFormIdx
(
'merchantId'
)].
optionList
=
[]
this
.
showFormData
[
this
.
findFormIdx
(
'merchantId'
)].
optionList
=
[]
this
.
handleSearch
()
this
.
handleSearch
()
...
@@ -358,5 +400,8 @@ export default {
...
@@ -358,5 +400,8 @@ export default {
color
:
#333
;
color
:
#333
;
}
}
}
}
.txt-blue
{
color
:
#5850ff
;
}
}
}
</
style
>
</
style
>
src/views/stock/index.vue
View file @
2e3e4b9
...
@@ -3,10 +3,11 @@
...
@@ -3,10 +3,11 @@
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<h2>
库存列表
</h2>
<div>
<el-button
合计:当前库存
size=
"small"
<span
class=
"txt-blue"
>
{{
totalInventory
||
'0'
}}
</span>
@
click=
"exportExcel"
>
导出
</el-button>
</div>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
...
@@ -40,6 +41,7 @@ export default {
...
@@ -40,6 +41,7 @@ export default {
return
{
return
{
membraneTypeList
:
membraneTypeList
,
membraneTypeList
:
membraneTypeList
,
size
:
'small'
,
size
:
'small'
,
totalInventory
:
''
,
url
:
url
,
url
:
url
,
searchForm
:
{
searchForm
:
{
upgradeGoodsName
:
''
,
upgradeGoodsName
:
''
,
...
@@ -172,9 +174,18 @@ export default {
...
@@ -172,9 +174,18 @@ export default {
this
.
baseData
.
yqMerchantList
=
res
this
.
baseData
.
yqMerchantList
=
res
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
})
})
this
.
getMerchantGoodsStockMonthCount
()
},
},
methods
:
{
methods
:
{
getMerchantGoodsStockMonthCount
()
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
)
params
.
dataMonth
=
dayjs
(
new
Date
()).
format
(
'YYYY-MM'
)
this
.
$apis
.
stockManage
.
getMerchantGoodsStockMonthCount
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'???....'
)
this
.
totalInventory
=
res
})
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
)
this
.
tableSearchForm
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
)
...
@@ -230,6 +241,7 @@ export default {
...
@@ -230,6 +241,7 @@ export default {
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
stockRef
.
refreshTable
()
this
.
$refs
.
stockRef
.
refreshTable
()
this
.
getMerchantGoodsStockMonthCount
()
},
},
handleReset
()
{
handleReset
()
{
...
@@ -263,5 +275,8 @@ export default {
...
@@ -263,5 +275,8 @@ export default {
color
:
#333
;
color
:
#333
;
}
}
}
}
.txt-blue
{
color
:
#5850ff
;
}
}
}
</
style
>
</
style
>
src/views/warehousing/index.vue
View file @
2e3e4b9
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<h2>
入库列表
</h2>
<div>
<div>
合计:入库数量
<span
class=
"txt-blue"
>
{{
totalObj
.
totalIncreaseStockNum
||
'0'
}}
</span>
,入库金额
<span
class=
"txt-blue"
>
¥
{{
totalObj
.
totalIncreaseStockMoney
||
'0'
}}
</span>
</div>
</div>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"warehousingRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
<GLTable
ref=
"warehousingRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
</div>
</div>
...
@@ -27,6 +31,7 @@ export default {
...
@@ -27,6 +31,7 @@ export default {
return
{
return
{
membraneTypeList
:
membraneTypeList
,
membraneTypeList
:
membraneTypeList
,
size
:
'small'
,
size
:
'small'
,
totalObj
:
{},
url
:
url
,
url
:
url
,
searchForm
:
{
searchForm
:
{
increaseTime
:
''
,
increaseTime
:
''
,
...
@@ -38,7 +43,8 @@ export default {
...
@@ -38,7 +43,8 @@ export default {
businessCode
:
''
,
businessCode
:
''
,
goodsSeries
:
''
,
goodsSeries
:
''
,
productCode
:
''
,
productCode
:
''
,
deliveryNumber
:
''
deliveryNumber
:
''
,
upgradeFlag
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
paramsObj
:
{},
paramsObj
:
{},
...
@@ -127,6 +133,15 @@ export default {
...
@@ -127,6 +133,15 @@ export default {
optionId
:
'merchantId'
,
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantIdList'
optionsName
:
'merchantIdList'
},
{
label
:
'订单类型'
,
name
:
'upgradeFlag'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'upgradeFlagList'
}
}
],
],
// 表格
// 表格
...
@@ -176,7 +191,7 @@ export default {
...
@@ -176,7 +191,7 @@ export default {
width
:
120
width
:
120
},
},
{
{
label
:
'入库金额'
,
label
:
'入库金额
/元
'
,
prop
:
'increaseStockMoney'
,
prop
:
'increaseStockMoney'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
increaseStockMoney
||
cellValue
.
increaseStockMoney
==
0
?
'¥'
+
cellValue
.
increaseStockMoney
.
toFixed
(
2
)
:
'-'
return
cellValue
.
increaseStockMoney
||
cellValue
.
increaseStockMoney
==
0
?
'¥'
+
cellValue
.
increaseStockMoney
.
toFixed
(
2
)
:
'-'
...
@@ -195,7 +210,7 @@ export default {
...
@@ -195,7 +210,7 @@ export default {
label
:
'关联业务单号'
,
label
:
'关联业务单号'
,
prop
:
'businessCode'
,
prop
:
'businessCode'
,
width
:
150
,
width
:
150
,
line
:
1
line
:
1
},
},
{
{
label
:
'关联发货单号'
,
label
:
'关联发货单号'
,
...
@@ -203,6 +218,13 @@ export default {
...
@@ -203,6 +218,13 @@ export default {
minWidth
:
150
minWidth
:
150
},
},
{
{
label
:
'订单类型'
,
prop
:
''
,
formatter
:
cellValue
=>
{
return
cellValue
.
increaseStockType
==
'4'
?
this
.
baseData
.
upgradeFlagList
.
find
(
item
=>
item
.
confId
===
cellValue
.
upgradeFlag
)?.
confLabel
:
'-'
}
},
{
label
:
'入库仓库'
,
label
:
'入库仓库'
,
prop
:
'yqMerchantName'
,
prop
:
'yqMerchantName'
,
width
:
200
width
:
200
...
@@ -235,6 +257,16 @@ export default {
...
@@ -235,6 +257,16 @@ export default {
confLabel
:
'订单入库'
confLabel
:
'订单入库'
}
}
],
],
upgradeFlagList
:
[
{
confId
:
'Y'
,
confLabel
:
'升级'
},
{
confId
:
'N'
,
confLabel
:
'战败'
}
],
productTypeList
:
[],
productTypeList
:
[],
yqMerchantList
:
[],
yqMerchantList
:
[],
merchantIdList
:
[]
merchantIdList
:
[]
...
@@ -253,9 +285,16 @@ export default {
...
@@ -253,9 +285,16 @@ export default {
this
.
baseData
.
yqMerchantList
=
res
this
.
baseData
.
yqMerchantList
=
res
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
})
})
this
.
getGoodsWarehousingCount
()
},
},
methods
:
{
methods
:
{
getGoodsWarehousingCount
()
{
const
params
=
this
.
getParams
()
this
.
$apis
.
stockManage
.
getGoodsWarehousingCount
(
params
).
then
(
res
=>
{
this
.
totalObj
=
res
})
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
increaseTime
)
{
if
(
this
.
searchForm
.
increaseTime
)
{
...
@@ -362,6 +401,7 @@ export default {
...
@@ -362,6 +401,7 @@ export default {
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
warehousingRef
.
refreshTable
()
this
.
$refs
.
warehousingRef
.
refreshTable
()
this
.
getGoodsWarehousingCount
()
},
},
handleReset
()
{
handleReset
()
{
...
@@ -375,7 +415,8 @@ export default {
...
@@ -375,7 +415,8 @@ export default {
businessCode
:
''
,
businessCode
:
''
,
goodsSeries
:
''
,
goodsSeries
:
''
,
productCode
:
''
,
productCode
:
''
,
deliveryNumber
:
''
deliveryNumber
:
''
,
upgradeFlag
:
''
}
}
this
.
showFormData
[
this
.
findFormIdx
(
'merchantId'
)].
optionList
=
[]
this
.
showFormData
[
this
.
findFormIdx
(
'merchantId'
)].
optionList
=
[]
this
.
handleSearch
()
this
.
handleSearch
()
...
@@ -402,5 +443,8 @@ export default {
...
@@ -402,5 +443,8 @@ export default {
color
:
#333
;
color
:
#333
;
}
}
}
}
.txt-blue
{
color
:
#5850ff
;
}
}
}
</
style
>
</
style
>
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