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 64dd26f9
authored
Jun 01, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.22.0' into 'master'
V4.22.0 See merge request
!6
2 parents
f7385062
a81e1ca4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
169 additions
and
252 deletions
src/views/allocation/add.vue
src/views/allocation/index.vue
src/views/check/index.vue
src/views/earlyWarning/index.vue
src/views/outbound/index.vue
src/views/stock/index.vue
src/views/warehousing/index.vue
src/views/allocation/add.vue
View file @
64dd26f
...
...
@@ -354,8 +354,8 @@ export default {
// this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
// 调出仓库
this
.
$apis
.
stockManage
.
getyqMerchantList
({
mainPartnerMerchant
:
true
}).
then
(
res
=>
{
this
.
callOutYqMerchantList
=
res
this
.
callInYqMerchantList
=
res
this
.
callOutYqMerchantList
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
callInYqMerchantList
=
this
.
$common
.
utils
.
deepClone
(
res
)
if
(
this
.
callOutYqMerchantList
&&
this
.
callOutYqMerchantList
.
length
==
1
)
{
this
.
editAllocationForm
.
callOutYqMerchantId
=
this
.
callOutYqMerchantList
[
0
].
merchantNo
this
.
getServicemerchantrefList
(
this
.
editAllocationForm
.
callOutYqMerchantId
,
'out'
)
...
...
@@ -415,7 +415,7 @@ export default {
//门店选项中加入总店
this
.
callInMerchantList
.
push
(
_headOffice
)
if
(
this
.
callInMerchantList
&&
this
.
callInMerchantList
.
length
==
1
)
{
this
.
editAllocationForm
.
callInMerchantId
=
this
.
call
Out
MerchantList
[
0
].
merchantId
this
.
editAllocationForm
.
callInMerchantId
=
this
.
call
In
MerchantList
[
0
].
merchantId
}
}
...
...
src/views/allocation/index.vue
View file @
64dd26f
<
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"
>
<GLButton
type=
"primary"
size=
"small"
@
click=
"handleAdd"
fn=
"创建调拨"
>
创建调拨
</GLButton>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建调拨
</el-button>
-->
<!--
<h2>
调拨列表
</h2>
-->
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<h2>
调拨列表
</h2>
<div>
<GLButton
type=
"primary"
size=
"small"
plain
@
click=
"handleAdd"
fn=
"创建调拨"
>
创建调拨
</GLButton>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建调拨
</el-button>
-->
<el-button
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"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
<GLTable
ref=
"allocationRef"
:getListApi=
"getListApi"
: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>
</GLTable>
<!-- 表格区域 end -->
</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>
</
template
>
...
...
@@ -84,7 +63,8 @@ export default {
type
:
'datePicker'
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
},
{
},
{
label
:
'调出仓库'
,
name
:
'callOutYqMerchantId'
,
type
:
'select'
,
...
...
@@ -93,13 +73,12 @@ export default {
optionLabel
:
'merchantName'
,
optionsName
:
'yqRelatedMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
value
?
this
.
getServicemerchantrefList
(
value
,
'out'
)
:
(
this
.
baseData
.
outMerchantList
=
[])
value
?
this
.
getServicemerchantrefList
(
value
,
'out'
)
:
(
this
.
baseData
.
outMerchantList
=
[])
this
.
searchForm
.
callOutMerchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
}
},
{
},
{
label
:
'调出门店'
,
name
:
'callOutMerchantId'
,
type
:
'select'
,
...
...
@@ -108,7 +87,8 @@ export default {
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionsName
:
'outMerchantList'
},
{
},
{
label
:
'调入仓库'
,
name
:
'callInYqMerchantId'
,
type
:
'select'
,
...
...
@@ -117,13 +97,12 @@ export default {
optionLabel
:
'merchantName'
,
optionsName
:
'yqRelatedMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
value
?
this
.
getServicemerchantrefList
(
value
,
'in'
)
:
(
this
.
baseData
.
inMerchantList
=
[])
value
?
this
.
getServicemerchantrefList
(
value
,
'in'
)
:
(
this
.
baseData
.
inMerchantList
=
[])
this
.
searchForm
.
callInMerchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
}
},
{
},
{
label
:
'调入门店'
,
name
:
'callInMerchantId'
,
type
:
'select'
,
...
...
@@ -162,23 +141,28 @@ export default {
label
:
'调出仓库'
,
prop
:
'callOutYqMerchantName'
,
width
:
150
},
{
},
{
label
:
'调出门店'
,
prop
:
'callOutMerchantName'
,
width
:
150
},
{
},
{
label
:
'调入仓库'
,
prop
:
'callInYqMerchantName'
,
width
:
150
},
{
},
{
label
:
'调入门店'
,
prop
:
'callInMerchantName'
,
width
:
150
},
{
},
{
label
:
'承运单号'
,
prop
:
'deliveryNumber'
,
width
:
150
},
{
},
{
label
:
'承运公司'
,
prop
:
'deliveryCompany'
,
width
:
150
...
...
@@ -195,8 +179,8 @@ export default {
// 基本数据
baseData
:
{
yqRelatedMerchantList
:
[],
outMerchantList
:
[],
//调出门店
inMerchantList
:
[]
,
//调入门店
outMerchantList
:
[],
//调出门店
inMerchantList
:
[]
//调入门店
},
imgVisible
:
false
,
previewImgUrl
:
''
...
...
@@ -234,27 +218,31 @@ export default {
// 获取仓库门店
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
.
merchantNo
===
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
.
merchantNo
===
merchantId
)
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
//门店选项中加入总店
this
.
baseData
.
inMerchantList
.
push
(
_headOffice
)
}
this
.
getOptionsList
(
'showFormData'
)
})
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
yqMerchantId
:
merchantId
})
.
then
(
res
=>
{
let
_headOffice
=
{}
if
(
type
==
'out'
)
{
//调出门店
this
.
baseData
.
outMerchantList
=
res
||
[]
//总店
_headOffice
=
this
.
baseData
.
yqRelatedMerchantList
.
find
(
item
=>
item
.
merchantNo
===
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
.
merchantNo
===
merchantId
)
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
//门店选项中加入总店
this
.
baseData
.
inMerchantList
.
push
(
_headOffice
)
}
this
.
getOptionsList
(
'showFormData'
)
})
},
// 查看详情
...
...
src/views/check/index.vue
View file @
64dd26f
<
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"
>
<GLButton
type=
"primary"
size=
"small"
@
click=
"handleAdd"
fn=
"创建盘点"
>
创建盘点
</GLButton>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建盘点
</el-button>
-->
<!--
<h2>
盘点列表
</h2>
-->
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<h2>
盘点列表
</h2>
<div>
<GLButton
type=
"primary"
size=
"small"
plain
@
click=
"handleAdd"
fn=
"创建盘点"
>
创建盘点
</GLButton>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建盘点
</el-button>
-->
<el-button
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"
>
<div
slot=
"img"
slot-scope=
"scope"
v-if=
"scope.scope.voucherPic"
>
<img
class=
"img-36"
:src=
"scope.scope.voucherPic"
@
click=
"handleEnlargeImg(scope.scope.voucherPic)"
/>
<GLTable
ref=
"checkRef"
:getListApi=
"getListApi"
: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
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<!-- 预览图片 -->
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleCloseImg"
>
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
/>
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleCloseImg"
>
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
/>
</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>
</
template
>
...
...
@@ -98,7 +70,8 @@ export default {
type
:
'datePicker'
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
},
{
},
{
label
:
'盘点仓库'
,
name
:
'yqMerchantId'
,
type
:
'select'
,
...
...
@@ -107,13 +80,12 @@ export default {
optionLabel
:
'merchantName'
,
optionsName
:
'yqMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
value
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
value
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
this
.
searchForm
.
merchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
}
},
{
},
{
label
:
'盘点门店'
,
name
:
'merchantId'
,
type
:
'select'
,
...
...
@@ -132,7 +104,7 @@ export default {
tableColumns
:
[
{
label
:
'盘点单号'
,
prop
:
'checkCode'
,
prop
:
'checkCode'
},
{
label
:
'盘点时间'
,
...
...
@@ -144,12 +116,14 @@ export default {
{
label
:
'盘点人'
,
prop
:
'operator'
},
{
},
{
label
:
'盘点仓库'
,
prop
:
'yqMerchantName'
,
},
{
prop
:
'yqMerchantName'
},
{
label
:
'盘点门店'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
},
{
label
:
'备注'
,
...
...
@@ -186,7 +160,7 @@ export default {
methods
:
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
console
.
log
(
params
)
;
console
.
log
(
params
)
if
(
this
.
searchForm
.
checkTime
)
{
params
.
checkTimeStart
=
new
Date
(
this
.
searchForm
.
checkTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
...
...
@@ -204,17 +178,19 @@ export default {
// 获取仓库门店
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'
)
})
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'
)
})
},
// 查看详情
...
...
src/views/earlyWarning/index.vue
View file @
64dd26f
<
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>
<el-button
type=
"primary"
size=
"small"
@
click=
"gotoReplenishment"
>
去补货
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
type=
"primary"
plain
size=
"small"
@
click=
"gotoReplenishment"
>
去补货
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"earlyWarningRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<GLTable
ref=
"earlyWarningRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<!-- 表格区域 end -->
</div>
</div>
...
...
@@ -94,13 +77,12 @@ export default {
optionLabel
:
'merchantName'
,
optionsName
:
'yqMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
value
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
value
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
this
.
searchForm
.
merchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
}
},
{
},
{
label
:
'所属门店'
,
name
:
'merchantId'
,
type
:
'select'
,
...
...
@@ -148,6 +130,13 @@ export default {
}
},
{
label
:
'最高库存'
,
prop
:
'warningValueMax'
,
formatter
:
cellValue
=>
{
return
cellValue
.
warningValueMax
||
cellValue
.
warningValueMax
==
0
?
parseFloat
(
cellValue
.
warningValueMax
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
},
{
label
:
'所属仓库'
,
prop
:
'yqMerchantName'
},
...
...
@@ -189,17 +178,19 @@ export default {
},
// 获取仓库门店
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'
)
})
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
)
{
...
...
@@ -247,14 +238,14 @@ export default {
})
},
//去补货
// gotoReplenishment() {
// this.$history.push(`/purchase/purchaseOrder/add`)
// },
async
gotoReplenishment
()
{
let
result
=
await
this
.
checkShipper
()
console
.
log
(
result
)
if
(
result
)
this
.
$history
.
push
(
`/purchase/purchaseOrder/add`
)
gotoReplenishment
()
{
this
.
$history
.
push
(
`/purchase/purchaseOrder/add`
)
},
// async gotoReplenishment() {
// let result = await this.checkShipper()
// console.log(result)
// if (result) this.$history.push(`/purchase/purchaseOrder/add`)
// },
checkShipper
()
{
return
new
Promise
(
resolve
=>
{
this
.
$apis
.
stockManage
.
checkShipper
({}).
then
(
res
=>
{
...
...
@@ -283,7 +274,6 @@ export default {
goodsType
:
''
,
goodsSeries
:
''
,
productCode
:
''
}
this
.
showFormData
[
this
.
findFormIdx
(
'merchantId'
)].
optionList
=
[]
this
.
handleSearch
()
...
...
src/views/outbound/index.vue
View file @
64dd26f
<
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>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"outboundRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<GLTable
ref=
"outboundRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<!-- 表格区域 end -->
</div>
</div>
...
...
@@ -94,13 +79,12 @@ export default {
optionLabel
:
'merchantName'
,
optionsName
:
'yqMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
value
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
value
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
this
.
searchForm
.
merchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
}
},
{
},
{
label
:
'出库门店'
,
name
:
'merchantId'
,
type
:
'select'
,
...
...
@@ -279,17 +263,19 @@ export default {
},
// 获取仓库门店
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'
)
})
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'
)
})
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
...
...
src/views/stock/index.vue
View file @
64dd26f
<
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>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"stockRef"
:getListApi=
"getListApi"
: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=
"handleInventoryDetails(scope.scope)"
>
库存明细
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
统计
</el-button>
<GLTable
ref=
"stockRef"
:getListApi=
"getListApi"
: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=
"handleInventoryDetails(scope.scope)"
>
库存明细
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
统计
</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<!-- 查看 -->
<stock-month-dialog
:stock-month-visible=
"stockMonthVisible"
:stockInfo=
"stockInfo"
v-if=
"stockMonthVisible"
@
dialogClose=
"dialogClose"
/>
<stockDetailDialog
:visible
.
sync=
"stockDetailDialogVisible"
:recordInfo=
"stockInfo"
v-if=
"stockDetailDialogVisible"
/>
<stock-month-dialog
:stock-month-visible=
"stockMonthVisible"
:stockInfo=
"stockInfo"
v-if=
"stockMonthVisible"
@
dialogClose=
"dialogClose"
/>
<stockDetailDialog
:visible
.
sync=
"stockDetailDialogVisible"
:recordInfo=
"stockInfo"
v-if=
"stockDetailDialogVisible"
/>
</div>
</
template
>
...
...
@@ -166,7 +142,8 @@ export default {
label
:
'所属仓库'
,
prop
:
'yqMerchantName'
,
width
:
200
},
{
},
{
label
:
'所属商户'
,
prop
:
'partnerMerchantName'
,
width
:
'200px'
...
...
@@ -205,7 +182,7 @@ export default {
},
handleInventoryDetails
(
row
)
{
this
.
stockInfo
=
row
console
.
log
(
this
.
stockInfo
)
;
console
.
log
(
this
.
stockInfo
)
this
.
stockDetailDialogVisible
=
true
},
// 查看详情
...
...
src/views/warehousing/index.vue
View file @
64dd26f
...
...
@@ -5,7 +5,7 @@
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<h2>
入库列表
</h2>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
<!-- 表格区域 开始 -->
...
...
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