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 7ddc4bfd
authored
Jul 18, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.24.0' into 'master'
v4.24.0上线后,代码合并。 See merge request
!8
2 parents
436bf37e
2e3e4b97
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 @
7ddc4bf
...
...
@@ -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
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
...
...
@@ -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
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
...
...
@@ -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
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
...
...
@@ -286,4 +322,4 @@ export function checkShipper(params) {
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 @
7ddc4bf
...
...
@@ -3,7 +3,12 @@
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<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>
</div>
...
...
@@ -24,6 +29,7 @@ export default {
return
{
membraneTypeList
:
membraneTypeList
,
size
:
'small'
,
totalObj
:
{},
url
:
url
,
searchForm
:
{
reduceDate
:
''
,
...
...
@@ -34,7 +40,8 @@ export default {
goodsType
:
''
,
businessCode
:
''
,
goodsSeries
:
''
,
productCode
:
''
productCode
:
''
,
upgradeFlag
:
''
},
tableSearchForm
:
{},
paramsObj
:
{},
...
...
@@ -123,6 +130,15 @@ export default {
type
:
'input'
,
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'订单类型'
,
name
:
'upgradeFlag'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'upgradeFlagList'
}
],
// 表格
...
...
@@ -191,6 +207,13 @@ export default {
width
:
200
},
{
label
:
'订单类型'
,
prop
:
''
,
formatter
:
cellValue
=>
{
return
cellValue
.
eventType
==
'1'
?
this
.
baseData
.
upgradeFlagList
.
find
(
item
=>
item
.
confId
===
cellValue
.
upgradeFlag
)?.
confLabel
:
'-'
}
},
{
label
:
'出库仓库'
,
prop
:
'yqMerchantName'
,
width
:
180
,
...
...
@@ -230,6 +253,16 @@ export default {
confLabel
:
'调拨出库'
}
],
upgradeFlagList
:
[
{
confId
:
'Y'
,
confLabel
:
'升级'
},
{
confId
:
'N'
,
confLabel
:
'战败'
}
],
productTypeList
:
[],
yqMerchantList
:
[],
merchantIdList
:
[]
...
...
@@ -248,9 +281,16 @@ export default {
this
.
baseData
.
yqMerchantList
=
res
this
.
getOptionsList
(
'showFormData'
)
})
this
.
getMerchantGoodsStockCount
()
},
methods
:
{
getMerchantGoodsStockCount
()
{
const
params
=
this
.
getParams
()
this
.
$apis
.
stockManage
.
getMerchantGoodsStockCount
(
params
).
then
(
res
=>
{
this
.
totalObj
=
res
||
{}
})
},
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
reduceDate
)
{
...
...
@@ -319,6 +359,7 @@ export default {
},
handleSearch
()
{
this
.
$refs
.
outboundRef
.
refreshTable
()
this
.
getMerchantGoodsStockCount
()
},
handleReset
()
{
...
...
@@ -331,7 +372,8 @@ export default {
goodsType
:
''
,
businessCode
:
''
,
goodsSeries
:
''
,
productCode
:
''
productCode
:
''
,
upgradeFlag
:
''
}
this
.
showFormData
[
this
.
findFormIdx
(
'merchantId'
)].
optionList
=
[]
this
.
handleSearch
()
...
...
@@ -358,5 +400,8 @@ export default {
color
:
#333
;
}
}
.txt-blue
{
color
:
#5850ff
;
}
}
</
style
>
src/views/stock/index.vue
View file @
7ddc4bf
...
...
@@ -3,10 +3,11 @@
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<h2>
库存列表
</h2>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<div>
合计:当前库存
<span
class=
"txt-blue"
>
{{
totalInventory
||
'0'
}}
</span>
</div>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
<!-- 表格区域 开始 -->
...
...
@@ -40,6 +41,7 @@ export default {
return
{
membraneTypeList
:
membraneTypeList
,
size
:
'small'
,
totalInventory
:
''
,
url
:
url
,
searchForm
:
{
upgradeGoodsName
:
''
,
...
...
@@ -172,9 +174,18 @@ export default {
this
.
baseData
.
yqMerchantList
=
res
this
.
getOptionsList
(
'showFormData'
)
})
this
.
getMerchantGoodsStockMonthCount
()
},
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
()
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
)
...
...
@@ -230,6 +241,7 @@ export default {
},
handleSearch
()
{
this
.
$refs
.
stockRef
.
refreshTable
()
this
.
getMerchantGoodsStockMonthCount
()
},
handleReset
()
{
...
...
@@ -263,5 +275,8 @@ export default {
color
:
#333
;
}
}
.txt-blue
{
color
:
#5850ff
;
}
}
</
style
>
src/views/warehousing/index.vue
View file @
7ddc4bf
<
template
>
<div
class=
"purchase"
>
<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"
>
<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>
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"warehousingRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<GLTable
ref=
"warehousingRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<!-- 表格区域 end -->
</div>
</div>
...
...
@@ -27,6 +31,7 @@ export default {
return
{
membraneTypeList
:
membraneTypeList
,
size
:
'small'
,
totalObj
:
{},
url
:
url
,
searchForm
:
{
increaseTime
:
''
,
...
...
@@ -38,7 +43,8 @@ export default {
businessCode
:
''
,
goodsSeries
:
''
,
productCode
:
''
,
deliveryNumber
:
''
deliveryNumber
:
''
,
upgradeFlag
:
''
},
tableSearchForm
:
{},
paramsObj
:
{},
...
...
@@ -127,6 +133,15 @@ export default {
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantIdList'
},
{
label
:
'订单类型'
,
name
:
'upgradeFlag'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'upgradeFlagList'
}
],
// 表格
...
...
@@ -176,7 +191,7 @@ export default {
width
:
120
},
{
label
:
'入库金额'
,
label
:
'入库金额
/元
'
,
prop
:
'increaseStockMoney'
,
formatter
:
cellValue
=>
{
return
cellValue
.
increaseStockMoney
||
cellValue
.
increaseStockMoney
==
0
?
'¥'
+
cellValue
.
increaseStockMoney
.
toFixed
(
2
)
:
'-'
...
...
@@ -195,7 +210,7 @@ export default {
label
:
'关联业务单号'
,
prop
:
'businessCode'
,
width
:
150
,
line
:
1
line
:
1
},
{
label
:
'关联发货单号'
,
...
...
@@ -203,6 +218,13 @@ export default {
minWidth
:
150
},
{
label
:
'订单类型'
,
prop
:
''
,
formatter
:
cellValue
=>
{
return
cellValue
.
increaseStockType
==
'4'
?
this
.
baseData
.
upgradeFlagList
.
find
(
item
=>
item
.
confId
===
cellValue
.
upgradeFlag
)?.
confLabel
:
'-'
}
},
{
label
:
'入库仓库'
,
prop
:
'yqMerchantName'
,
width
:
200
...
...
@@ -235,6 +257,16 @@ export default {
confLabel
:
'订单入库'
}
],
upgradeFlagList
:
[
{
confId
:
'Y'
,
confLabel
:
'升级'
},
{
confId
:
'N'
,
confLabel
:
'战败'
}
],
productTypeList
:
[],
yqMerchantList
:
[],
merchantIdList
:
[]
...
...
@@ -253,9 +285,16 @@ export default {
this
.
baseData
.
yqMerchantList
=
res
this
.
getOptionsList
(
'showFormData'
)
})
this
.
getGoodsWarehousingCount
()
},
methods
:
{
getGoodsWarehousingCount
()
{
const
params
=
this
.
getParams
()
this
.
$apis
.
stockManage
.
getGoodsWarehousingCount
(
params
).
then
(
res
=>
{
this
.
totalObj
=
res
})
},
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
increaseTime
)
{
...
...
@@ -362,6 +401,7 @@ export default {
},
handleSearch
()
{
this
.
$refs
.
warehousingRef
.
refreshTable
()
this
.
getGoodsWarehousingCount
()
},
handleReset
()
{
...
...
@@ -375,7 +415,8 @@ export default {
businessCode
:
''
,
goodsSeries
:
''
,
productCode
:
''
,
deliveryNumber
:
''
deliveryNumber
:
''
,
upgradeFlag
:
''
}
this
.
showFormData
[
this
.
findFormIdx
(
'merchantId'
)].
optionList
=
[]
this
.
handleSearch
()
...
...
@@ -402,5 +443,8 @@ export default {
color
:
#333
;
}
}
.txt-blue
{
color
:
#5850ff
;
}
}
</
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