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 423b69fe
authored
May 10, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
4.20.1版本代码提交准备合并4.20.0
1 parent
e58d467f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
381 additions
and
163 deletions
package-lock.json
src/api/modules/stockManage.js
src/views/allocation/add.vue
src/views/allocation/index.vue
src/views/check/add.vue
src/views/check/index.vue
package-lock.json
View file @
423b69f
{
{
"name"
:
"
purchase
"
,
"name"
:
"
inventory
"
,
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"lockfileVersion"
:
1
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
"requires"
:
true
,
...
@@ -1895,51 +1895,6 @@
...
@@ -1895,51 +1895,6 @@
"integrity"
:
"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A=="
,
"integrity"
:
"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A=="
,
"dev"
:
true
"dev"
:
true
},
},
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"ssri"
:
{
"ssri"
:
{
"version"
:
"8.0.1"
,
"version"
:
"8.0.1"
,
"resolved"
:
"https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz"
,
"resolved"
:
"https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz"
,
...
@@ -1948,28 +1903,6 @@
...
@@ -1948,28 +1903,6 @@
"requires"
:
{
"requires"
:
{
"minipass"
:
"^3.1.1"
"minipass"
:
"^3.1.1"
}
}
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
}
}
}
}
}
},
},
...
@@ -13414,6 +13347,75 @@
...
@@ -13414,6 +13347,75 @@
}
}
}
}
},
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
}
}
},
"vue-router"
:
{
"vue-router"
:
{
"version"
:
"3.6.5"
,
"version"
:
"3.6.5"
,
"resolved"
:
"https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz"
,
"resolved"
:
"https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz"
,
...
...
src/api/modules/stockManage.js
View file @
423b69f
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
const
path
=
"dj.api.smartcarlife."
const
path
=
'dj.api.smartcarlife.'
const
path2
=
"dj.api."
const
path2
=
'dj.api.'
const
path3
=
"dj.smartcarlife.api."
const
path3
=
'dj.smartcarlife.api.'
const
path4
=
"dj.api.goodsCategoryConfiguration."
const
path4
=
'dj.api.goodsCategoryConfiguration.'
// 获取当前登录账号可见的园区店列表
// 获取当前登录账号可见的园区店列表
const
getyqMerchantList
=
(
params
)
=>
{
const
getyqMerchantList
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path
}
permission.yqMerchant.list`
params
.
routerMethod
=
`
${
path
}
permission.yqMerchant.list`
return
http
({
return
http
({
...
@@ -17,8 +17,20 @@ const getyqMerchantList = (params) => {
...
@@ -17,8 +17,20 @@ const getyqMerchantList = (params) => {
})
})
}
}
// 根据仓库获取门店列表
const
getServicemerchantrefList
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path2
}
servicemerchantref.list`
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`
params
.
routerMethod
=
`
${
path2
}
life.GoodsWarehousingInfo.list`
params
.
routerMethod
=
`
${
path2
}
life.GoodsWarehousingInfo.list`
return
http
({
return
http
({
...
@@ -30,7 +42,7 @@ const getGoodsWarehousingList = (params) => {
...
@@ -30,7 +42,7 @@ const getGoodsWarehousingList = (params) => {
}
}
// 库存记录分页查询
// 库存记录分页查询
const
getMerchantGoodsStockMonthReport
=
(
params
)
=>
{
const
getMerchantGoodsStockMonthReport
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path
}
MerchantGoodsStockMonthReport.page`
params
.
routerMethod
=
`
${
path
}
MerchantGoodsStockMonthReport.page`
return
http
({
return
http
({
...
@@ -42,7 +54,7 @@ const getMerchantGoodsStockMonthReport = (params) => {
...
@@ -42,7 +54,7 @@ const getMerchantGoodsStockMonthReport = (params) => {
}
}
// 月度的库存结算单
// 月度的库存结算单
const
getReportByGoods
=
(
params
)
=>
{
const
getReportByGoods
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path
}
MerchantGoodsStockMonthReport.listByGoods`
params
.
routerMethod
=
`
${
path
}
MerchantGoodsStockMonthReport.listByGoods`
return
http
({
return
http
({
...
@@ -54,7 +66,7 @@ const getReportByGoods = (params) => {
...
@@ -54,7 +66,7 @@ const getReportByGoods = (params) => {
}
}
// 出库记录查询
// 出库记录查询
const
getMerchantGoodsStockReduceRecord
=
(
params
)
=>
{
const
getMerchantGoodsStockReduceRecord
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path
}
MerchantGoodsStockReduceRecord.page`
params
.
routerMethod
=
`
${
path
}
MerchantGoodsStockReduceRecord.page`
return
http
({
return
http
({
...
@@ -66,7 +78,7 @@ const getMerchantGoodsStockReduceRecord = (params) => {
...
@@ -66,7 +78,7 @@ const getMerchantGoodsStockReduceRecord = (params) => {
}
}
// 分页查询盘点单列表
// 分页查询盘点单列表
const
stockCheckPage
=
(
params
)
=>
{
const
stockCheckPage
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path3
}
stock.check.page`
params
.
routerMethod
=
`
${
path3
}
stock.check.page`
return
http
({
return
http
({
...
@@ -77,7 +89,7 @@ const stockCheckPage = (params) => {
...
@@ -77,7 +89,7 @@ const stockCheckPage = (params) => {
})
})
}
}
// // 分页查询盘点详细信息
// // 分页查询盘点详细信息
const
stockCheckDetailPage
=
(
params
)
=>
{
const
stockCheckDetailPage
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path3
}
stock.check.detail.page`
params
.
routerMethod
=
`
${
path3
}
stock.check.detail.page`
return
http
({
return
http
({
...
@@ -89,7 +101,7 @@ const stockCheckDetailPage = (params) => {
...
@@ -89,7 +101,7 @@ const stockCheckDetailPage = (params) => {
}
}
// 商品库存列表(创建盘点、调拨时展示)
// 商品库存列表(创建盘点、调拨时展示)
const
stockRemainPage
=
(
params
)
=>
{
const
stockRemainPage
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path3
}
stock.remain.page`
params
.
routerMethod
=
`
${
path3
}
stock.remain.page`
return
http
({
return
http
({
...
@@ -101,7 +113,7 @@ const stockRemainPage = (params) => {
...
@@ -101,7 +113,7 @@ const stockRemainPage = (params) => {
}
}
// 保存盘点确认单
// 保存盘点确认单
const
saveStockCheck
=
(
params
)
=>
{
const
saveStockCheck
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path3
}
stock.check.save`
params
.
routerMethod
=
`
${
path3
}
stock.check.save`
return
http
({
return
http
({
...
@@ -124,7 +136,7 @@ const saveStockCheck = (params) => {
...
@@ -124,7 +136,7 @@ const saveStockCheck = (params) => {
// }
// }
// 分页查询调拨单列表
// 分页查询调拨单列表
const
stockAllocatePage
=
(
params
)
=>
{
const
stockAllocatePage
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path3
}
stock.allocate.page`
params
.
routerMethod
=
`
${
path3
}
stock.allocate.page`
return
http
({
return
http
({
...
@@ -136,7 +148,7 @@ const stockAllocatePage = (params) => {
...
@@ -136,7 +148,7 @@ const stockAllocatePage = (params) => {
}
}
// 分页查询调拨详细信息
// 分页查询调拨详细信息
const
stockAllocateDetailPage
=
(
params
)
=>
{
const
stockAllocateDetailPage
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path3
}
stock.allocate.detail.page`
params
.
routerMethod
=
`
${
path3
}
stock.allocate.detail.page`
return
http
({
return
http
({
...
@@ -147,7 +159,7 @@ const stockAllocateDetailPage = (params) => {
...
@@ -147,7 +159,7 @@ const stockAllocateDetailPage = (params) => {
})
})
}
}
//导出
//导出
const
exportExcel
=
(
params
)
=>
{
const
exportExcel
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`dj.api.goodsWarehousing.exportExcel`
params
.
routerMethod
=
`dj.api.goodsWarehousing.exportExcel`
return
http
({
return
http
({
...
@@ -158,7 +170,7 @@ const exportExcel = (params) => {
...
@@ -158,7 +170,7 @@ const exportExcel = (params) => {
})
})
}
}
//导出
//导出
const
exportMerchantExcel
=
(
params
)
=>
{
const
exportMerchantExcel
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`dj.api.smartcarlife.MerchantGoodsStockMonthReport.export`
params
.
routerMethod
=
`dj.api.smartcarlife.MerchantGoodsStockMonthReport.export`
return
http
({
return
http
({
...
@@ -169,7 +181,7 @@ const exportMerchantExcel = (params) => {
...
@@ -169,7 +181,7 @@ const exportMerchantExcel = (params) => {
})
})
}
}
//导出
//导出
const
exportReduceExcel
=
(
params
)
=>
{
const
exportReduceExcel
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`dj.api.smartcarlife.MerchantGoodsStockReduceRecord.export`
params
.
routerMethod
=
`dj.api.smartcarlife.MerchantGoodsStockReduceRecord.export`
return
http
({
return
http
({
...
@@ -181,7 +193,7 @@ const exportReduceExcel = (params) => {
...
@@ -181,7 +193,7 @@ const exportReduceExcel = (params) => {
}
}
//导出
//导出
const
exportCheckExcel
=
(
params
)
=>
{
const
exportCheckExcel
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`dj.smartcarlife.api.stock.check.export`
params
.
routerMethod
=
`dj.smartcarlife.api.stock.check.export`
return
http
({
return
http
({
...
@@ -192,7 +204,7 @@ const exportCheckExcel = (params) => {
...
@@ -192,7 +204,7 @@ const exportCheckExcel = (params) => {
})
})
}
}
//导出
//导出
const
exportaAllocateExcel
=
(
params
)
=>
{
const
exportaAllocateExcel
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`dj.smartcarlife.api.stock.allocate.export`
params
.
routerMethod
=
`dj.smartcarlife.api.stock.allocate.export`
return
http
({
return
http
({
...
@@ -202,7 +214,7 @@ const exportaAllocateExcel = (params) => {
...
@@ -202,7 +214,7 @@ const exportaAllocateExcel = (params) => {
sign
:
true
sign
:
true
})
})
}
}
const
exportaInventExcel
=
(
params
)
=>
{
const
exportaInventExcel
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`dj.api.life.InventoryWarningInfo.exportExcel`
params
.
routerMethod
=
`dj.api.life.InventoryWarningInfo.exportExcel`
return
http
({
return
http
({
...
@@ -213,9 +225,8 @@ const exportaInventExcel = (params) => {
...
@@ -213,9 +225,8 @@ const exportaInventExcel = (params) => {
})
})
}
}
// 保存调拨单
// 保存调拨单
const
saveStockAllocate
=
(
params
)
=>
{
const
saveStockAllocate
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path3
}
stock.allocate.save`
params
.
routerMethod
=
`
${
path3
}
stock.allocate.save`
return
http
({
return
http
({
...
@@ -226,10 +237,8 @@ const saveStockAllocate = (params) => {
...
@@ -226,10 +237,8 @@ const saveStockAllocate = (params) => {
})
})
}
}
// 调入门店
// 调入门店
const
yqRelatedList
=
(
params
)
=>
{
const
yqRelatedList
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path3
}
yqRelated.yqMerchant.list`
params
.
routerMethod
=
`
${
path3
}
yqRelated.yqMerchant.list`
return
http
({
return
http
({
...
@@ -252,4 +261,4 @@ export function inventoryWarningList(params) {
...
@@ -252,4 +261,4 @@ export function inventoryWarningList(params) {
})
})
}
}
export
default
{
inventoryWarningList
,
exportaInventExcel
,
exportaAllocateExcel
,
exportCheckExcel
,
exportReduceExcel
,
exportMerchantExcel
,
exportExcel
,
saveStockAllocate
,
stockAllocateDetailPage
,
stockAllocatePage
,
yqRelatedList
,
saveStockCheck
,
stockRemainPage
,
stockCheckDetailPage
,
stockCheckPage
,
getMerchantGoodsStockReduceRecord
,
getReportByGoods
,
getyqMerchantList
,
getGoodsWarehousingList
,
getMerchantGoodsStockMonthReport
}
\ No newline at end of file
\ No newline at end of file
export
default
{
inventoryWarningList
,
exportaInventExcel
,
exportaAllocateExcel
,
exportCheckExcel
,
exportReduceExcel
,
exportMerchantExcel
,
exportExcel
,
saveStockAllocate
,
stockAllocateDetailPage
,
stockAllocatePage
,
yqRelatedList
,
saveStockCheck
,
stockRemainPage
,
stockCheckDetailPage
,
stockCheckPage
,
getMerchantGoodsStockReduceRecord
,
getReportByGoods
,
getyqMerchantList
,
getGoodsWarehousingList
,
getMerchantGoodsStockMonthReport
,
getServicemerchantrefList
}
src/views/allocation/add.vue
View file @
423b69f
<
template
>
<
template
>
<div
class=
"addWrap"
>
<div
class=
"addWrap"
>
<div
class=
"d2-container-content gl-form-min"
style=
"padding: 10px 20px"
>
<div
class=
"d2-container-content gl-form-min"
<el-form
:inline=
"true"
size=
"small"
:model=
"editAllocationForm"
ref=
"editAllocationFormRef"
:rules=
"formRules"
class=
"demo-form-inline"
>
style=
"padding: 10px 20px"
>
<el-form-item
label=
"调出门店:"
prop=
"callOutYqMerchantId"
>
<el-form
:inline=
"true"
<el-select
v-model=
"editAllocationForm.callOutYqMerchantId"
style=
"width: 300px"
>
size=
"small"
<el-option
v-for=
"item in callOutYqMerchantList"
:key=
"item.merchantNo"
:label=
"item.merchantName"
:value=
"item.merchantNo"
/>
:model=
"editAllocationForm"
ref=
"editAllocationFormRef"
:rules=
"formRules"
class=
"demo-form-inline"
>
<el-form-item
label=
"调出门店:"
prop=
"callOutYqMerchantId"
>
<el-select
v-model=
"editAllocationForm.callOutYqMerchantId"
style=
"width: 300px"
>
<el-option
v-for=
"item in callOutYqMerchantList"
:key=
"item.merchantNo"
:label=
"item.merchantName"
:value=
"item.merchantNo"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"调入门店:"
prop=
"callInYqMerchantId"
>
<el-form-item
label=
"调入门店:"
<el-select
v-model=
"editAllocationForm.callInYqMerchantId"
filterable
style=
"width: 300px"
>
prop=
"callInYqMerchantId"
>
<el-option
v-for=
"item in callInYqMerchantList"
:key=
"item.merchantId"
:label=
"item.merchantName"
:value=
"item.merchantId"
/>
<el-select
v-model=
"editAllocationForm.callInYqMerchantId"
filterable
style=
"width: 300px"
>
<el-option
v-for=
"item in callInYqMerchantList"
:key=
"item.merchantId"
:label=
"item.merchantName"
:value=
"item.merchantId"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -18,31 +35,61 @@
...
@@ -18,31 +35,61 @@
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<div
style=
"padding: 15px 0"
>
<div
style=
"padding: 15px 0"
>
<div
class=
"gl-form-min"
>
<div
class=
"gl-form-min"
>
<el-form
:inline=
"true"
size=
"small"
:model=
"editAllocationForm"
>
<el-form
:inline=
"true"
size=
"small"
:model=
"editAllocationForm"
>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<el-input
v-model=
"searchForm.searchName"
style=
"width: 200px"
placeholder=
"请输入商品名称/系列"
maxlength=
"20"
clearable
/>
<el-input
v-model=
"searchForm.searchName"
style=
"width: 200px"
placeholder=
"请输入商品名称/系列"
maxlength=
"20"
clearable
/>
</el-form-item>
</el-form-item>
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
style=
"marginleft: 15px"
>
查询
</el-button>
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
style=
"marginleft: 15px"
>
查询
</el-button>
</el-form>
</el-form>
</div>
</div>
</div>
</div>
<GLTable
ref=
"allocationTable"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"allocationTable"
<div
slot=
"auth-button"
slot-scope=
"scope"
>
:getListApi=
"getListApi"
<el-button
type=
"text"
@
click=
"allocation(scope.scope)"
:disabled=
"setDisabled(scope.scope)"
>
选择
</el-button>
:pageConf=
"pageConf"
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"allocation(scope.scope)"
:disabled=
"setDisabled(scope.scope)"
>
选择
</el-button>
</div>
</div>
</GLTable>
</GLTable>
</div>
</div>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<p
class=
"title"
>
调拨确认单
</p>
<p
class=
"title"
>
调拨确认单
</p>
<GLTable
ref=
"allocationTable2"
:tableData=
"chooseDataList"
:tableParams=
"tableParams2"
:hasPage=
"false"
>
<GLTable
ref=
"allocationTable2"
<div
slot=
"auth-button"
slot-scope=
"scope"
>
:tableData=
"chooseDataList"
<el-button
type=
"text"
@
click=
"cancelAllocation(scope.row, scope.$index)"
>
取消
</el-button>
:tableParams=
"tableParams2"
:hasPage=
"false"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"cancelAllocation(scope.row, scope.$index)"
>
取消
</el-button>
</div>
</div>
</GLTable>
</GLTable>
</div>
</div>
<glsx-form
ref=
"allocationForm"
:origin-data=
"editData"
:form-list=
"editForm"
form-ref=
"inveFormRef"
@
handleAddConfirm=
"handleAddConfirm"
@
handleClose=
"handleAddClose"
></glsx-form>
<glsx-form
ref=
"allocationForm"
:origin-data=
"editData"
:form-list=
"editForm"
form-ref=
"inveFormRef"
@
handleAddConfirm=
"handleAddConfirm"
@
handleClose=
"handleAddClose"
></glsx-form>
<!-- 盘点 -->
<!-- 盘点 -->
<allocation-num-dialog
:allocation-num-visible=
"allocationNumVisible"
:allocation-info=
"allocationInfo"
v-if=
"allocationNumVisible"
@
dialogClose=
"dialogClose"
/>
<allocation-num-dialog
:allocation-num-visible=
"allocationNumVisible"
:allocation-info=
"allocationInfo"
v-if=
"allocationNumVisible"
@
dialogClose=
"dialogClose"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -184,15 +231,23 @@ export default {
...
@@ -184,15 +231,23 @@ export default {
}
}
},
},
created
()
{
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//
if (window.__POWERED_BY_QIANKUN__) {
this
.
callOutYqMerchantList
=
[{
merchantNo
:
this
.
$globalState
.
session
.
merchantId
+
''
,
merchantName
:
this
.
$globalState
.
session
.
merchantName
}]
//
this.callOutYqMerchantList = [{ merchantNo: this.$globalState.session.merchantId + '', merchantName: this.$globalState.session.merchantName }]
}
//
}
},
},
mounted
()
{
mounted
()
{
this
.
editAllocationForm
.
callOutYqMerchantId
=
this
.
callOutYqMerchantList
[
0
].
merchantNo
// this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
//调入门店
// //调入门店
this
.
$apis
.
stockManage
.
yqRelatedList
({
includeSelf
:
false
}).
then
(
res
=>
{
// this.$apis.stockManage.yqRelatedList({ includeSelf: false }).then(res => {
this
.
callInYqMerchantList
=
res
// this.callInYqMerchantList = res
// })
// 获取当前登录账号可见的园区店列表
this
.
$apis
.
stockManage
.
getyqMerchantList
({}).
then
(
res
=>
{
this
.
yqMerchantIdList
=
res
if
(
this
.
yqMerchantIdList
&&
this
.
yqMerchantIdList
.
length
==
1
)
{
this
.
editCheckForm
.
yqMerchantId
=
this
.
yqMerchantIdList
[
0
].
merchantNo
this
.
changeYqMerchant
(
this
.
editCheckForm
.
yqMerchantId
)
}
})
})
},
},
...
...
src/views/allocation/index.vue
View file @
423b69f
...
@@ -2,24 +2,47 @@
...
@@ -2,24 +2,47 @@
<
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"
@
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"
>
<GLButton
type=
"primary"
size=
"small"
@
click=
"handleAdd"
fn=
"创建调拨"
>
创建调拨
</GLButton>
<GLButton
type=
"primary"
size=
"small"
@
click=
"handleAdd"
fn=
"创建调拨"
>
创建调拨
</GLButton>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建调拨
</el-button>
-->
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建调拨
</el-button>
-->
<!--
<h2>
调拨列表
</h2>
-->
<!--
<h2>
调拨列表
</h2>
-->
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"allocationRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"allocationRef"
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
:getListApi=
"getListApi"
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<!-- 查看 -->
<!-- 查看 -->
<allocation-detail-dialog
:allocation-detail-visible=
"allocationDetailVisible"
:allocationInfo=
"allocationInfo"
v-if=
"allocationDetailVisible"
@
dialogClose=
"dialogClose"
/>
<allocation-detail-dialog
:allocation-detail-visible=
"allocationDetailVisible"
:allocationInfo=
"allocationInfo"
v-if=
"allocationDetailVisible"
@
dialogClose=
"dialogClose"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -40,7 +63,9 @@ export default {
...
@@ -40,7 +63,9 @@ export default {
allocateTime
:
''
,
allocateTime
:
''
,
allocateCode
:
''
,
allocateCode
:
''
,
callOutYqMerchantId
:
''
,
callOutYqMerchantId
:
''
,
callInYqMerchantId
:
''
callInYqMerchantId
:
''
,
callOutMerchantId
:
''
,
callInMerchantId
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
allocationInfo
:
{},
allocationInfo
:
{},
...
@@ -59,24 +84,54 @@ export default {
...
@@ -59,24 +84,54 @@ export default {
type
:
'datePicker'
,
type
:
'datePicker'
,
isClear
:
true
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
},
},
{
{
label
:
'调出仓库'
,
label
:
'调出门店'
,
name
:
'callOutYqMerchantId'
,
name
:
'callOutYqMerchantId'
,
type
:
'select'
,
type
:
'select'
,
optionList
:
[],
optionList
:
[],
optionId
:
'merchantId'
,
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'yqRelatedMerchantList'
optionsName
:
'yqRelatedMerchantList'
,
},
changeAttr
:
(
value
,
targetItem
)
=>
{
{
value
label
:
'调入门店'
,
?
this
.
getServicemerchantrefList
(
value
,
'out'
)
:
(
this
.
baseData
.
outMerchantList
=
[])
this
.
searchForm
.
callOutMerchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
}
},
{
label
:
'调出门店'
,
name
:
'callOutMerchantId'
,
type
:
'select'
,
noDataText
:
'请先选择调出仓库'
,
optionList
:
[],
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionsName
:
'outMerchantList'
},
{
label
:
'调入仓库'
,
name
:
'callInYqMerchantId'
,
name
:
'callInYqMerchantId'
,
type
:
'select'
,
type
:
'select'
,
optionList
:
[],
optionList
:
[],
optionId
:
'merchantId'
,
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'yqRelatedMerchantList'
optionsName
:
'yqRelatedMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
value
?
this
.
getServicemerchantrefList
(
value
,
'in'
)
:
(
this
.
baseData
.
inMerchantList
=
[])
this
.
searchForm
.
callInMerchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
}
},
{
label
:
'调入门店'
,
name
:
'callInMerchantId'
,
type
:
'select'
,
noDataText
:
'请先选择调入仓库'
,
optionList
:
[],
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionsName
:
'inMerchantList'
}
}
],
],
// 表格
// 表格
...
@@ -120,7 +175,9 @@ export default {
...
@@ -120,7 +175,9 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
// 基本数据
// 基本数据
baseData
:
{
baseData
:
{
yqRelatedMerchantList
:
[]
yqRelatedMerchantList
:
[],
outMerchantList
:
[],
//调出门店
inMerchantList
:
[],
//调入门店
},
},
imgVisible
:
false
,
imgVisible
:
false
,
previewImgUrl
:
''
previewImgUrl
:
''
...
@@ -151,6 +208,32 @@ export default {
...
@@ -151,6 +208,32 @@ export default {
resolve
()
resolve
()
})
})
},
},
// 获取仓库门店
getServicemerchantrefList
(
merchantId
,
type
)
{
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
yqMerchantId
:
merchantId
}).
then
(
res
=>
{
let
_headOffice
=
{}
if
(
type
==
'out'
)
{
//调出门店
this
.
baseData
.
outMerchantList
=
res
||
[]
//总店
_headOffice
=
this
.
baseData
.
yqRelatedMerchantList
.
find
(
item
=>
item
.
merchantId
===
merchantId
)
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
//门店选项中加入总店
this
.
baseData
.
outMerchantList
.
push
(
_headOffice
)
}
else
if
(
type
==
'in'
)
{
//调入门店
this
.
baseData
.
inMerchantList
=
res
||
[]
//总店
_headOffice
=
this
.
baseData
.
yqRelatedMerchantList
.
find
(
item
=>
item
.
merchantId
===
merchantId
)
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
//门店选项中加入总店
this
.
baseData
.
inMerchantList
.
push
(
_headOffice
)
}
this
.
getOptionsList
(
'showFormData'
)
})
},
// 查看详情
// 查看详情
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
allocationInfo
=
row
this
.
allocationInfo
=
row
...
@@ -204,7 +287,9 @@ export default {
...
@@ -204,7 +287,9 @@ export default {
allocateTime
:
''
,
allocateTime
:
''
,
allocateCode
:
''
,
allocateCode
:
''
,
callOutYqMerchantId
:
''
,
callOutYqMerchantId
:
''
,
callInYqMerchantId
:
''
callInYqMerchantId
:
''
,
callOutMerchantId
:
''
,
callInMerchantId
:
''
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
...
src/views/check/add.vue
View file @
423b69f
This diff is collapsed.
Click to expand it.
src/views/check/index.vue
View file @
423b69f
...
@@ -2,31 +2,61 @@
...
@@ -2,31 +2,61 @@
<
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"
@
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"
>
<GLButton
type=
"primary"
size=
"small"
@
click=
"handleAdd"
fn=
"创建盘点"
>
创建盘点
</GLButton>
<GLButton
type=
"primary"
size=
"small"
@
click=
"handleAdd"
fn=
"创建盘点"
>
创建盘点
</GLButton>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建盘点
</el-button>
-->
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建盘点
</el-button>
-->
<!--
<h2>
盘点列表
</h2>
-->
<!--
<h2>
盘点列表
</h2>
-->
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"checkRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"checkRef"
<div
slot=
"img"
slot-scope=
"scope"
v-if=
"scope.scope.voucherPic"
>
:getListApi=
"getListApi"
<img
class=
"img-36"
:src=
"scope.scope.voucherPic"
@
click=
"handleEnlargeImg(scope.scope.voucherPic)"
/>
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"img"
slot-scope=
"scope"
v-if=
"scope.scope.voucherPic"
>
<img
class=
"img-36"
:src=
"scope.scope.voucherPic"
@
click=
"handleEnlargeImg(scope.scope.voucherPic)"
/>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<!-- 预览图片 -->
<!-- 预览图片 -->
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleCloseImg"
>
<el-dialog
:visible=
"imgVisible"
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
/>
:before-close=
"handleCloseImg"
>
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
/>
</el-dialog>
</el-dialog>
<!-- 查看 -->
<!-- 查看 -->
<inventory-detail-dialog
:inventory-detail-visible=
"inventoryDetailVisible"
:recordInfo=
"recordInfo"
v-if=
"inventoryDetailVisible"
@
dialogClose=
"dialogClose"
/>
<inventory-detail-dialog
:inventory-detail-visible=
"inventoryDetailVisible"
:recordInfo=
"recordInfo"
v-if=
"inventoryDetailVisible"
@
dialogClose=
"dialogClose"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -46,9 +76,10 @@ export default {
...
@@ -46,9 +76,10 @@ export default {
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
searchForm
:
{
searchForm
:
{
checkTime
:
''
,
checkTime
:
''
,
checkCode
:
''
,
checkCode
:
''
,
yqMerchantId
:
''
yqMerchantId
:
''
,
merchantId
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
recordInfo
:
{},
recordInfo
:
{},
...
@@ -67,15 +98,29 @@ export default {
...
@@ -67,15 +98,29 @@ export default {
type
:
'datePicker'
,
type
:
'datePicker'
,
isClear
:
true
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
},
},
{
{
label
:
'盘点仓库'
,
label
:
'所属门店'
,
name
:
'yqMerchantId'
,
name
:
'yqMerchantId'
,
type
:
'select'
,
type
:
'select'
,
optionList
:
[],
optionList
:
[],
optionId
:
'merchantNo'
,
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'yqMerchantList'
optionsName
:
'yqMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
value
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
this
.
searchForm
.
merchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
}
},
{
label
:
'盘点门店'
,
name
:
'merchantId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantIdList'
}
}
],
],
// 表格
// 表格
...
@@ -98,10 +143,12 @@ export default {
...
@@ -98,10 +143,12 @@ export default {
{
{
label
:
'盘点人'
,
label
:
'盘点人'
,
prop
:
'operator'
prop
:
'operator'
},
},
{
{
label
:
'盘点仓库'
,
prop
:
'yqMerchantName'
,
},
{
label
:
'盘点门店'
,
label
:
'盘点门店'
,
prop
:
'
yqMerchantName'
prop
:
'
merchantName'
,
},
},
{
{
label
:
'备注'
,
label
:
'备注'
,
...
@@ -119,7 +166,8 @@ export default {
...
@@ -119,7 +166,8 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
// 基本数据
// 基本数据
baseData
:
{
baseData
:
{
yqMerchantList
:
[]
yqMerchantList
:
[],
merchantIdList
:
[]
},
},
imgVisible
:
false
,
imgVisible
:
false
,
previewImgUrl
:
''
previewImgUrl
:
''
...
@@ -137,6 +185,8 @@ export default {
...
@@ -137,6 +185,8 @@ export default {
methods
:
{
methods
:
{
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
console
.
log
(
params
);
if
(
this
.
searchForm
.
checkTime
)
{
if
(
this
.
searchForm
.
checkTime
)
{
params
.
checkTimeStart
=
new
Date
(
this
.
searchForm
.
checkTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
checkTimeStart
=
new
Date
(
this
.
searchForm
.
checkTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
checkTimeEnd
=
new
Date
(
this
.
searchForm
.
checkTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
params
.
checkTimeEnd
=
new
Date
(
this
.
searchForm
.
checkTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
...
@@ -150,6 +200,22 @@ export default {
...
@@ -150,6 +200,22 @@ export default {
resolve
()
resolve
()
})
})
},
},
// 获取仓库门店
getServicemerchantrefList
(
merchantId
)
{
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
yqMerchantId
:
merchantId
}).
then
(
res
=>
{
this
.
baseData
.
merchantIdList
=
res
||
[]
//总店
let
_headOffice
=
this
.
baseData
.
yqMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
//门店选项中加入总店
this
.
baseData
.
merchantIdList
.
push
(
_headOffice
)
this
.
getOptionsList
(
'showFormData'
)
})
},
// 查看详情
// 查看详情
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
recordInfo
=
row
this
.
recordInfo
=
row
...
@@ -199,9 +265,10 @@ export default {
...
@@ -199,9 +265,10 @@ export default {
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
checkTime
:
''
,
checkTime
:
''
,
checkCode
:
''
,
checkCode
:
''
,
yqMerchantId
:
''
yqMerchantId
:
''
,
merchantId
:
''
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
...
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