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 be273a57
authored
May 12, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
BUG修复
1 parent
d95a1702
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
149 additions
and
38 deletions
src/api/modules/stockManage.js
src/views/allocation/add.vue
src/views/allocation/index.vue
src/views/check/add.vue
src/views/stock/index.vue
src/views/stock/stockDetailDialog.vue
src/views/stock/stockMonthDialog.vue
src/views/warehousing/index.vue
src/api/modules/stockManage.js
View file @
be273a5
...
@@ -262,7 +262,7 @@ export function inventoryWarningList(params) {
...
@@ -262,7 +262,7 @@ export function inventoryWarningList(params) {
})
})
}
}
// 获取门店库存列表
// 获取门店库存列表
export
function
merchantShopGoodsStockPage
(
data
)
{
export
function
merchantShopGoodsStockPage
(
params
)
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path
}
merchantShopGoodsStock.page`
params
.
routerMethod
=
`
${
path
}
merchantShopGoodsStock.page`
// return request(data, RequestMethods.POST)
// return request(data, RequestMethods.POST)
...
...
src/views/allocation/add.vue
View file @
be273a5
...
@@ -178,8 +178,12 @@ export default {
...
@@ -178,8 +178,12 @@ export default {
}
}
},
},
{
{
label
:
'所属
门店
'
,
label
:
'所属
仓库
'
,
prop
:
'yqMerchantName'
prop
:
'yqMerchantName'
},
{
label
:
'所属门店'
,
prop
:
'merchantName'
}
}
]
]
},
},
...
@@ -320,20 +324,26 @@ export default {
...
@@ -320,20 +324,26 @@ export default {
watch
:
{
watch
:
{
'editAllocationForm.callOutYqMerchantId'
(
val
,
oldval
)
{
'editAllocationForm.callOutYqMerchantId'
(
val
,
oldval
)
{
console
.
log
(
val
,
oldval
,
"监听callOutYqMerchantId"
);
console
.
log
(
val
,
oldval
,
"监听callOutYqMerchantId"
);
// if (this.callOutYqMerchantList.length > 1) {//选项大于1个
if
(
this
.
callOutYqMerchantList
.
length
==
1
)
{
//当只有一个选项时不弹提示框
this
.
$refs
.
allocationTable
.
refreshTable
()
}
else
{
if
(
val
!=
this
.
oldyqMerchantId
)
{
//与之前的选项不一样
if
(
val
!=
this
.
oldyqMerchantId
)
{
//与之前的选项不一样
this
.
editAllocationForm
.
callOutMerchantId
=
''
this
.
editAllocationForm
.
callOutMerchantId
=
''
this
.
switchData
(
val
,
oldval
,
'yqMerchant'
)
this
.
switchData
(
val
,
oldval
,
'yqMerchant'
)
}
}
//
}
}
},
},
'editAllocationForm.callOutMerchantId'
(
val
,
oldval
)
{
'editAllocationForm.callOutMerchantId'
(
val
,
oldval
)
{
console
.
log
(
val
,
oldval
,
"监听callOutMerchantId"
);
console
.
log
(
val
,
oldval
,
"监听callOutMerchantId"
);
if
(
this
.
callOutMerchantList
.
length
==
1
)
{
//当只有一个选项时不弹提示框
this
.
$refs
.
allocationTable
.
refreshTable
()
}
else
{
if
(
val
!=
this
.
oldMerchantId
)
{
//与之前的选项不一样
if
(
val
!=
this
.
oldMerchantId
)
{
//与之前的选项不一样
this
.
switchData
(
val
,
oldval
,
'merchant'
)
this
.
switchData
(
val
,
oldval
,
'merchant'
)
}
}
}
}
}
},
},
mounted
()
{
mounted
()
{
// this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
// this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
...
@@ -341,10 +351,14 @@ export default {
...
@@ -341,10 +351,14 @@ export default {
this
.
$apis
.
stockManage
.
getyqMerchantList
({
mainPartnerMerchant
:
true
}).
then
(
res
=>
{
this
.
$apis
.
stockManage
.
getyqMerchantList
({
mainPartnerMerchant
:
true
}).
then
(
res
=>
{
this
.
callOutYqMerchantList
=
res
this
.
callOutYqMerchantList
=
res
this
.
callInYqMerchantList
=
res
this
.
callInYqMerchantList
=
res
// if (this.callOutYqMerchantList && this.callOutYqMerchantList.length == 1) {
if
(
this
.
callOutYqMerchantList
&&
this
.
callOutYqMerchantList
.
length
==
1
)
{
// this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
this
.
editAllocationForm
.
callOutYqMerchantId
=
this
.
callOutYqMerchantList
[
0
].
merchantNo
// this.getServicemerchantrefList(this.editAllocationForm.callOutYqMerchantId, 'out')
this
.
getServicemerchantrefList
(
this
.
editAllocationForm
.
callOutYqMerchantId
,
'out'
)
// }
}
if
(
this
.
callInYqMerchantList
&&
this
.
callInYqMerchantList
.
length
==
1
)
{
this
.
editAllocationForm
.
callInYqMerchantId
=
this
.
callInYqMerchantList
[
0
].
merchantNo
this
.
getServicemerchantrefList
(
this
.
editAllocationForm
.
callInYqMerchantId
,
'in'
)
}
})
})
//调入仓库
//调入仓库
// this.$apis.stockManage.yqRelatedList({ includeSelf: false }).then(res => {
// this.$apis.stockManage.yqRelatedList({ includeSelf: false }).then(res => {
...
@@ -359,6 +373,8 @@ export default {
...
@@ -359,6 +373,8 @@ export default {
methods
:
{
methods
:
{
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
editAllocationForm
.
yqMerchantId
=
this
.
editAllocationForm
.
callOutYqMerchantId
this
.
editAllocationForm
.
merchantId
=
this
.
editAllocationForm
.
callOutMerchantId
let
_form
=
{
let
_form
=
{
...
this
.
searchForm
,
...
this
.
searchForm
,
...
this
.
editAllocationForm
...
this
.
editAllocationForm
...
@@ -382,9 +398,9 @@ export default {
...
@@ -382,9 +398,9 @@ export default {
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
//门店选项中加入总店
//门店选项中加入总店
this
.
callOutMerchantList
.
push
(
_headOffice
)
this
.
callOutMerchantList
.
push
(
_headOffice
)
//
if (this.callOutMerchantList && this.callOutMerchantList.length == 1) {
if
(
this
.
callOutMerchantList
&&
this
.
callOutMerchantList
.
length
==
1
)
{
//
this.editAllocationForm.callOutMerchantId = this.callOutMerchantList[0].merchantId
this
.
editAllocationForm
.
callOutMerchantId
=
this
.
callOutMerchantList
[
0
].
merchantId
//
}
}
}
else
if
(
type
==
'in'
)
{
}
else
if
(
type
==
'in'
)
{
this
.
callInMerchantList
=
res
||
[]
this
.
callInMerchantList
=
res
||
[]
//总店
//总店
...
@@ -392,9 +408,9 @@ export default {
...
@@ -392,9 +408,9 @@ export default {
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
//门店选项中加入总店
//门店选项中加入总店
this
.
callInMerchantList
.
push
(
_headOffice
)
this
.
callInMerchantList
.
push
(
_headOffice
)
//
if (this.callInMerchantList && this.callInMerchantList.length == 1) {
if
(
this
.
callInMerchantList
&&
this
.
callInMerchantList
.
length
==
1
)
{
//
this.editAllocationForm.callInMerchantId = this.callOutMerchantList[0].merchantId
this
.
editAllocationForm
.
callInMerchantId
=
this
.
callOutMerchantList
[
0
].
merchantId
//
}
}
console
.
log
(
this
.
callInMerchantList
);
console
.
log
(
this
.
callInMerchantList
);
}
}
...
...
src/views/allocation/index.vue
View file @
be273a5
...
@@ -155,20 +155,33 @@ export default {
...
@@ -155,20 +155,33 @@ export default {
},
},
{
{
label
:
'调拨人'
,
label
:
'调拨人'
,
prop
:
'operator'
prop
:
'operator'
,
width
:
100
},
},
{
{
label
:
'调出仓库'
,
label
:
'调出仓库'
,
prop
:
'callOutYqMerchantName'
,
prop
:
'callOutYqMerchantName'
,
width
:
150
},
{
},
{
label
:
'调出门店'
,
label
:
'调出门店'
,
prop
:
'callOutMerchantName'
,
prop
:
'callOutMerchantName'
,
width
:
150
},
{
},
{
label
:
'调入仓库'
,
label
:
'调入仓库'
,
prop
:
'callInYqMerchantName'
,
prop
:
'callInYqMerchantName'
,
width
:
150
},
{
},
{
label
:
'调入门店'
,
label
:
'调入门店'
,
prop
:
'callInMerchantName'
,
prop
:
'callInMerchantName'
,
width
:
150
},
{
label
:
'承运单号'
,
prop
:
'deliveryNumber'
,
width
:
150
},
{
label
:
'承运公司'
,
prop
:
'deliveryCompany'
,
width
:
150
},
},
{
{
label
:
'备注'
,
label
:
'备注'
,
...
...
src/views/check/add.vue
View file @
be273a5
...
@@ -161,8 +161,12 @@ export default {
...
@@ -161,8 +161,12 @@ export default {
}
}
},
},
{
{
label
:
'所属
门店
'
,
label
:
'所属
仓库
'
,
prop
:
'yqMerchantName'
prop
:
'yqMerchantName'
},
{
label
:
'所属门店'
,
prop
:
'merchantName'
}
}
]
]
},
},
...
@@ -208,8 +212,12 @@ export default {
...
@@ -208,8 +212,12 @@ export default {
addHtml
:
'profitAndLoss'
addHtml
:
'profitAndLoss'
},
},
{
{
label
:
'所属
门店
'
,
label
:
'所属
仓库
'
,
prop
:
'yqMerchantName'
prop
:
'yqMerchantName'
},
{
label
:
'所属门店'
,
prop
:
'merchantName'
}
}
]
]
},
},
...
@@ -274,28 +282,36 @@ export default {
...
@@ -274,28 +282,36 @@ export default {
watch
:
{
watch
:
{
'editCheckForm.yqMerchantId'
(
val
,
oldval
)
{
'editCheckForm.yqMerchantId'
(
val
,
oldval
)
{
console
.
log
(
val
,
oldval
,
"监听yqMerchantId"
);
console
.
log
(
val
,
oldval
,
"监听yqMerchantId"
);
if
(
this
.
yqMerchantIdList
.
length
==
1
)
{
//当只有一个选项时不弹提示框
this
.
$refs
.
recordTable
.
refreshTable
()
}
else
{
if
(
val
!=
this
.
oldyqMerchantId
)
{
//与之前的选项不一样
if
(
val
!=
this
.
oldyqMerchantId
)
{
//与之前的选项不一样
this
.
editCheckForm
.
merchantId
=
''
this
.
editCheckForm
.
merchantId
=
''
this
.
switchData
(
val
,
oldval
,
'yqMerchant'
)
this
.
switchData
(
val
,
oldval
,
'yqMerchant'
)
}
}
}
},
},
'editCheckForm.merchantId'
(
val
,
oldval2
)
{
'editCheckForm.merchantId'
(
val
,
oldval2
)
{
console
.
log
(
val
,
oldval2
,
"监听merchantId"
);
console
.
log
(
val
,
oldval2
,
"监听merchantId"
);
if
(
this
.
merchantList
.
length
==
1
)
{
this
.
$refs
.
recordTable
.
refreshTable
()
}
else
{
if
(
val
!=
this
.
oldMerchantId
)
{
//与之前的选项不一样
if
(
val
!=
this
.
oldMerchantId
)
{
//与之前的选项不一样
this
.
switchData
(
val
,
oldval2
,
'merchant'
)
this
.
switchData
(
val
,
oldval2
,
'merchant'
)
}
}
}
}
}
},
},
mounted
()
{
mounted
()
{
// 获取当前登录账号可见的园区店列表
// 获取当前登录账号可见的园区店列表
this
.
$apis
.
stockManage
.
getyqMerchantList
({
mainPartnerMerchant
:
true
}).
then
(
res
=>
{
this
.
$apis
.
stockManage
.
getyqMerchantList
({
mainPartnerMerchant
:
true
}).
then
(
res
=>
{
this
.
yqMerchantIdList
=
res
this
.
yqMerchantIdList
=
res
//
if (this.yqMerchantIdList && this.yqMerchantIdList.length == 1) {
if
(
this
.
yqMerchantIdList
&&
this
.
yqMerchantIdList
.
length
==
1
)
{
//
this.editCheckForm.yqMerchantId = this.yqMerchantIdList[0].merchantNo
this
.
editCheckForm
.
yqMerchantId
=
this
.
yqMerchantIdList
[
0
].
merchantNo
//
this.getServicemerchantrefList(this.editCheckForm.yqMerchantId)
this
.
getServicemerchantrefList
(
this
.
editCheckForm
.
yqMerchantId
)
//
}
}
})
})
},
},
...
...
src/views/stock/index.vue
View file @
be273a5
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<el-button
type=
"text"
<el-button
type=
"text"
@
click=
"handleInventoryDetails(scope.scope)"
>
库存明细
</el-button>
@
click=
"handleInventoryDetails(scope.scope)"
>
库存明细
</el-button>
<el-button
type=
"text"
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
@
click=
"handleDetail(scope.scope)"
>
统计
</el-button>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
@@ -40,9 +40,9 @@
...
@@ -40,9 +40,9 @@
:stockInfo=
"stockInfo"
:stockInfo=
"stockInfo"
v-if=
"stockMonthVisible"
v-if=
"stockMonthVisible"
@
dialogClose=
"dialogClose"
/>
@
dialogClose=
"dialogClose"
/>
<stockDetailDialog
:visible=
"stockDetailDialogVisible"
<stockDetailDialog
:visible
.
sync
=
"stockDetailDialogVisible"
:
stock
Info=
"stockInfo"
:
record
Info=
"stockInfo"
v-if=
"stockDetailDialog"
/>
v-if=
"stockDetailDialog
Visible
"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -166,6 +166,10 @@ export default {
...
@@ -166,6 +166,10 @@ export default {
label
:
'所属仓库'
,
label
:
'所属仓库'
,
prop
:
'yqMerchantName'
,
prop
:
'yqMerchantName'
,
width
:
200
width
:
200
},
{
label
:
'所属商户'
,
prop
:
'partnerMerchantName'
,
width
:
'200px'
}
}
]
]
},
},
...
@@ -201,6 +205,7 @@ export default {
...
@@ -201,6 +205,7 @@ export default {
},
},
handleInventoryDetails
(
row
)
{
handleInventoryDetails
(
row
)
{
this
.
stockInfo
=
row
this
.
stockInfo
=
row
console
.
log
(
this
.
stockInfo
);
this
.
stockDetailDialogVisible
=
true
this
.
stockDetailDialogVisible
=
true
},
},
// 查看详情
// 查看详情
...
...
src/views/stock/stockDetailDialog.vue
View file @
be273a5
<!-- 库存明细弹窗 -->
<!-- 库存明细弹窗 -->
<
template
>
<
template
>
<GLDialog
bigTitle=
"库存明细"
:is-visible=
"dialogVisible"
class=
"stockMonthDailog"
width=
"30%"
:no-cancel=
"true"
okText=
"关闭"
<GLDialog
bigTitle=
"库存明细"
@
onOk=
"handleClose"
@
onCancel=
"handleClose"
>
:visible
.
sync=
"dialogVisible"
class=
"stockMonthDailog"
width=
"30%"
mode=
"big"
:destroy-on-close=
"true"
:close-on-click-modal=
"false"
okText=
"关闭"
@
onOk=
"handleClose"
@
onCancel=
"handleClose"
>
<div>
<div>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<GLTable
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchForm"
:table-params=
"tableParams"
<GLTable
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchForm"
:table-params=
"tableParams"
:pageConf=
"pageConf"
>
:pageConf=
"pageConf"
>
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleClose"
>
关闭
</el-button>
</span>
</GLDialog>
</GLDialog>
</
template
>
</
template
>
...
@@ -73,6 +90,8 @@ export default {
...
@@ -73,6 +90,8 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
'111'
);
if
(
this
.
recordInfo
)
{
if
(
this
.
recordInfo
)
{
this
.
searchForm
.
yqMerchantId
=
this
.
recordInfo
.
yqMerchantId
this
.
searchForm
.
yqMerchantId
=
this
.
recordInfo
.
yqMerchantId
this
.
searchForm
.
upgradeGoodsId
=
this
.
recordInfo
.
upgradeGoodsId
this
.
searchForm
.
upgradeGoodsId
=
this
.
recordInfo
.
upgradeGoodsId
...
...
src/views/stock/stockMonthDialog.vue
View file @
be273a5
<
template
>
<
template
>
<GLDialog
class=
"stock-dialog"
v-if=
"stockMonthVisible"
:destroy-on-close=
"true"
:before-close=
"handleClose"
bigTitle=
"月度库存结算单"
mode=
"big"
okText=
"关闭"
:visible
.
sync=
"stockMonthVisible"
:close-on-click-modal=
"false"
@
onOk=
"handleClose"
@
onCancel=
"handleClose"
>
<GLDialog
class=
"stock-dialog"
<div
class=
"detail-content"
v-if=
"stockMonthVisible"
>
v-if=
"stockMonthVisible"
<el-form
:inline=
"true"
:model=
"searchForm"
size=
"small"
>
:destroy-on-close=
"true"
:before-close=
"handleClose"
bigTitle=
"月度库存结算单"
mode=
"big"
okText=
"关闭"
:visible
.
sync=
"stockMonthVisible"
:close-on-click-modal=
"false"
@
onOk=
"handleClose"
@
onCancel=
"handleClose"
>
<div
class=
"detail-content"
v-if=
"stockMonthVisible"
>
<el-form
:inline=
"true"
:model=
"searchForm"
size=
"small"
>
<el-form-item
label=
"年度:"
>
<el-form-item
label=
"年度:"
>
<el-date-picker
v-model=
"searchForm.year"
type=
"year"
placeholder=
"选择年"
value-format=
"yyyy"
format=
"yyyy"
:clearable=
"false"
:picker-options=
"pickerOption"
@
change=
"chooseYear"
></el-date-picker>
<el-date-picker
v-model=
"searchForm.year"
type=
"year"
placeholder=
"选择年"
value-format=
"yyyy"
format=
"yyyy"
:clearable=
"false"
:picker-options=
"pickerOption"
@
change=
"chooseYear"
></el-date-picker>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"table-class"
>
<div
class=
"table-class"
>
<GLTable
ref=
"purchaseOrderDetailTable"
:tableParams=
"tableParams"
:has-num=
"false"
:hasPage=
"false"
:tableData=
"tableData"
:pageConf=
"pageConf"
></GLTable>
<GLTable
ref=
"purchaseOrderDetailTable"
:tableParams=
"tableParams"
:has-num=
"false"
:hasPage=
"false"
:tableData=
"tableData"
:pageConf=
"pageConf"
></GLTable>
</div>
</div>
<span
class=
"btn-tips"
>
<span
class=
"btn-tips"
>
<img
src=
"@/images/icon-warn.png"
/>
<img
src=
"@/images/icon-warn.png"
/>
说明:月平均加权单价=上月结存库存金额+本月采购金额/上月结存库存数量+本月采购数量
说明:月平均加权单价=上月结存库存金额+本月采购金额/上月结存库存数量+本月采购数量
</span>
</span>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
<el-button
type=
"primary"
size=
"small"
@
click=
"handleClose"
>
关闭
</el-button>
class=
"dialog-footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleClose"
>
关闭
</el-button>
</span>
</span>
</GLDialog>
</GLDialog>
</
template
>
</
template
>
...
@@ -31,7 +59,7 @@ export default {
...
@@ -31,7 +59,7 @@ export default {
},
},
stockInfo
:
{
stockInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
}
}
},
},
data
()
{
data
()
{
...
...
src/views/warehousing/index.vue
View file @
be273a5
...
@@ -48,7 +48,8 @@ export default {
...
@@ -48,7 +48,8 @@ export default {
goodsType
:
''
,
goodsType
:
''
,
businessCode
:
''
,
businessCode
:
''
,
goodsSeries
:
''
,
goodsSeries
:
''
,
productCode
:
''
productCode
:
''
,
deliveryNumber
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
paramsObj
:
{},
paramsObj
:
{},
...
@@ -101,6 +102,13 @@ export default {
...
@@ -101,6 +102,13 @@ export default {
isClear
:
true
isClear
:
true
},
},
{
{
label
:
'发货单号'
,
name
:
'deliveryNumber'
,
type
:
'input'
,
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'系列'
,
label
:
'系列'
,
name
:
'goodsSeries'
,
name
:
'goodsSeries'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -199,6 +207,11 @@ export default {
...
@@ -199,6 +207,11 @@ export default {
minWidth
:
150
minWidth
:
150
},
},
{
{
label
:
'关联发货单号'
,
prop
:
'deliveryNumber'
,
minWidth
:
150
},
{
label
:
'入库仓库'
,
label
:
'入库仓库'
,
prop
:
'yqMerchantName'
,
prop
:
'yqMerchantName'
,
width
:
200
width
:
200
...
@@ -366,7 +379,8 @@ export default {
...
@@ -366,7 +379,8 @@ export default {
goodsType
:
''
,
goodsType
:
''
,
businessCode
:
''
,
businessCode
:
''
,
goodsSeries
:
''
,
goodsSeries
:
''
,
productCode
:
''
productCode
:
''
,
deliveryNumber
:
''
}
}
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