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 a81e1ca4
authored
May 29, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式走查修改
1 parent
0553fda3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
106 additions
and
196 deletions
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/index.vue
View file @
a81e1ca
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<GLButton
type=
"primary"
<h2>
调拨列表
</h2>
size=
"small"
<div>
@
click=
"handleAdd"
<GLButton
type=
"primary"
size=
"small"
plain
@
click=
"handleAdd"
fn=
"创建调拨"
>
创建调拨
</GLButton>
fn=
"创建调拨"
>
创建调拨
</GLButton>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建调拨
</el-button>
-->
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建调拨
</el-button>
-->
<!--
<h2>
调拨列表
</h2>
-->
<el-button
type=
"primary"
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
size=
"small"
</div>
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"allocationRef"
<GLTable
ref=
"allocationRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
:getListApi=
"getListApi"
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
:noDataImg=
"url"
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
: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"
<allocation-detail-dialog
:allocation-detail-visible=
"allocationDetailVisible"
:allocationInfo=
"allocationInfo"
v-if=
"allocationDetailVisible"
@
dialogClose=
"dialogClose"
/>
:allocationInfo=
"allocationInfo"
v-if=
"allocationDetailVisible"
@
dialogClose=
"dialogClose"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -84,7 +63,8 @@ export default {
...
@@ -84,7 +63,8 @@ export default {
type
:
'datePicker'
,
type
:
'datePicker'
,
isClear
:
true
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
},
{
},
{
label
:
'调出仓库'
,
label
:
'调出仓库'
,
name
:
'callOutYqMerchantId'
,
name
:
'callOutYqMerchantId'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -93,13 +73,12 @@ export default {
...
@@ -93,13 +73,12 @@ export default {
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'yqRelatedMerchantList'
,
optionsName
:
'yqRelatedMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
changeAttr
:
(
value
,
targetItem
)
=>
{
value
value
?
this
.
getServicemerchantrefList
(
value
,
'out'
)
:
(
this
.
baseData
.
outMerchantList
=
[])
?
this
.
getServicemerchantrefList
(
value
,
'out'
)
:
(
this
.
baseData
.
outMerchantList
=
[])
this
.
searchForm
.
callOutMerchantId
=
''
this
.
searchForm
.
callOutMerchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
}
}
},
{
},
{
label
:
'调出门店'
,
label
:
'调出门店'
,
name
:
'callOutMerchantId'
,
name
:
'callOutMerchantId'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -108,7 +87,8 @@ export default {
...
@@ -108,7 +87,8 @@ export default {
optionId
:
'merchantId'
,
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'outMerchantList'
optionsName
:
'outMerchantList'
},
{
},
{
label
:
'调入仓库'
,
label
:
'调入仓库'
,
name
:
'callInYqMerchantId'
,
name
:
'callInYqMerchantId'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -117,13 +97,12 @@ export default {
...
@@ -117,13 +97,12 @@ export default {
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'yqRelatedMerchantList'
,
optionsName
:
'yqRelatedMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
changeAttr
:
(
value
,
targetItem
)
=>
{
value
value
?
this
.
getServicemerchantrefList
(
value
,
'in'
)
:
(
this
.
baseData
.
inMerchantList
=
[])
?
this
.
getServicemerchantrefList
(
value
,
'in'
)
:
(
this
.
baseData
.
inMerchantList
=
[])
this
.
searchForm
.
callInMerchantId
=
''
this
.
searchForm
.
callInMerchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
}
}
},
{
},
{
label
:
'调入门店'
,
label
:
'调入门店'
,
name
:
'callInMerchantId'
,
name
:
'callInMerchantId'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -162,23 +141,28 @@ export default {
...
@@ -162,23 +141,28 @@ export default {
label
:
'调出仓库'
,
label
:
'调出仓库'
,
prop
:
'callOutYqMerchantName'
,
prop
:
'callOutYqMerchantName'
,
width
:
150
width
:
150
},
{
},
{
label
:
'调出门店'
,
label
:
'调出门店'
,
prop
:
'callOutMerchantName'
,
prop
:
'callOutMerchantName'
,
width
:
150
width
:
150
},
{
},
{
label
:
'调入仓库'
,
label
:
'调入仓库'
,
prop
:
'callInYqMerchantName'
,
prop
:
'callInYqMerchantName'
,
width
:
150
width
:
150
},
{
},
{
label
:
'调入门店'
,
label
:
'调入门店'
,
prop
:
'callInMerchantName'
,
prop
:
'callInMerchantName'
,
width
:
150
width
:
150
},
{
},
{
label
:
'承运单号'
,
label
:
'承运单号'
,
prop
:
'deliveryNumber'
,
prop
:
'deliveryNumber'
,
width
:
150
width
:
150
},
{
},
{
label
:
'承运公司'
,
label
:
'承运公司'
,
prop
:
'deliveryCompany'
,
prop
:
'deliveryCompany'
,
width
:
150
width
:
150
...
@@ -195,8 +179,8 @@ export default {
...
@@ -195,8 +179,8 @@ export default {
// 基本数据
// 基本数据
baseData
:
{
baseData
:
{
yqRelatedMerchantList
:
[],
yqRelatedMerchantList
:
[],
outMerchantList
:
[],
//调出门店
outMerchantList
:
[],
//调出门店
inMerchantList
:
[]
,
//调入门店
inMerchantList
:
[]
//调入门店
},
},
imgVisible
:
false
,
imgVisible
:
false
,
previewImgUrl
:
''
previewImgUrl
:
''
...
@@ -234,18 +218,22 @@ export default {
...
@@ -234,18 +218,22 @@ export default {
// 获取仓库门店
// 获取仓库门店
getServicemerchantrefList
(
merchantId
,
type
)
{
getServicemerchantrefList
(
merchantId
,
type
)
{
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
yqMerchantId
:
merchantId
yqMerchantId
:
merchantId
}).
then
(
res
=>
{
})
.
then
(
res
=>
{
let
_headOffice
=
{}
let
_headOffice
=
{}
if
(
type
==
'out'
)
{
//调出门店
if
(
type
==
'out'
)
{
//调出门店
this
.
baseData
.
outMerchantList
=
res
||
[]
this
.
baseData
.
outMerchantList
=
res
||
[]
//总店
//总店
_headOffice
=
this
.
baseData
.
yqRelatedMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
_headOffice
=
this
.
baseData
.
yqRelatedMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
//门店选项中加入总店
//门店选项中加入总店
this
.
baseData
.
outMerchantList
.
push
(
_headOffice
)
this
.
baseData
.
outMerchantList
.
push
(
_headOffice
)
}
else
if
(
type
==
'in'
)
{
//调入门店
}
else
if
(
type
==
'in'
)
{
//调入门店
this
.
baseData
.
inMerchantList
=
res
||
[]
this
.
baseData
.
inMerchantList
=
res
||
[]
//总店
//总店
_headOffice
=
this
.
baseData
.
yqRelatedMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
_headOffice
=
this
.
baseData
.
yqRelatedMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
...
...
src/views/check/index.vue
View file @
a81e1ca
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<GLButton
type=
"primary"
<h2>
盘点列表
</h2>
size=
"small"
<div>
@
click=
"handleAdd"
<GLButton
type=
"primary"
size=
"small"
plain
@
click=
"handleAdd"
fn=
"创建盘点"
>
创建盘点
</GLButton>
fn=
"创建盘点"
>
创建盘点
</GLButton>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建盘点
</el-button>
-->
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建盘点
</el-button>
-->
<!--
<h2>
盘点列表
</h2>
-->
<el-button
type=
"primary"
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
size=
"small"
</div>
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"checkRef"
<GLTable
ref=
"checkRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
:getListApi=
"getListApi"
<div
slot=
"img"
slot-scope=
"scope"
v-if=
"scope.scope.voucherPic"
>
:noDataImg=
"url"
<img
class=
"img-36"
:src=
"scope.scope.voucherPic"
@
click=
"handleEnlargeImg(scope.scope.voucherPic)"
/>
: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"
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
slot=
"auth-button"
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-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"
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleCloseImg"
>
:before-close=
"handleCloseImg"
>
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
/>
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
/>
</el-dialog>
</el-dialog>
<!-- 查看 -->
<!-- 查看 -->
<inventory-detail-dialog
:inventory-detail-visible=
"inventoryDetailVisible"
<inventory-detail-dialog
:inventory-detail-visible=
"inventoryDetailVisible"
:recordInfo=
"recordInfo"
v-if=
"inventoryDetailVisible"
@
dialogClose=
"dialogClose"
/>
:recordInfo=
"recordInfo"
v-if=
"inventoryDetailVisible"
@
dialogClose=
"dialogClose"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -98,7 +70,8 @@ export default {
...
@@ -98,7 +70,8 @@ export default {
type
:
'datePicker'
,
type
:
'datePicker'
,
isClear
:
true
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
},
{
},
{
label
:
'盘点仓库'
,
label
:
'盘点仓库'
,
name
:
'yqMerchantId'
,
name
:
'yqMerchantId'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -107,13 +80,12 @@ export default {
...
@@ -107,13 +80,12 @@ export default {
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'yqMerchantList'
,
optionsName
:
'yqMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
changeAttr
:
(
value
,
targetItem
)
=>
{
value
value
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
this
.
searchForm
.
merchantId
=
''
this
.
searchForm
.
merchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
}
}
},
{
},
{
label
:
'盘点门店'
,
label
:
'盘点门店'
,
name
:
'merchantId'
,
name
:
'merchantId'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -132,7 +104,7 @@ export default {
...
@@ -132,7 +104,7 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'盘点单号'
,
label
:
'盘点单号'
,
prop
:
'checkCode'
,
prop
:
'checkCode'
},
},
{
{
label
:
'盘点时间'
,
label
:
'盘点时间'
,
...
@@ -144,12 +116,14 @@ export default {
...
@@ -144,12 +116,14 @@ export default {
{
{
label
:
'盘点人'
,
label
:
'盘点人'
,
prop
:
'operator'
prop
:
'operator'
},
{
},
{
label
:
'盘点仓库'
,
label
:
'盘点仓库'
,
prop
:
'yqMerchantName'
,
prop
:
'yqMerchantName'
},
{
},
{
label
:
'盘点门店'
,
label
:
'盘点门店'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
},
},
{
{
label
:
'备注'
,
label
:
'备注'
,
...
@@ -186,7 +160,7 @@ export default {
...
@@ -186,7 +160,7 @@ 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
)
;
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'
...
@@ -204,9 +178,11 @@ export default {
...
@@ -204,9 +178,11 @@ export default {
// 获取仓库门店
// 获取仓库门店
getServicemerchantrefList
(
merchantId
)
{
getServicemerchantrefList
(
merchantId
)
{
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
yqMerchantId
:
merchantId
yqMerchantId
:
merchantId
}).
then
(
res
=>
{
})
.
then
(
res
=>
{
this
.
baseData
.
merchantIdList
=
res
||
[]
this
.
baseData
.
merchantIdList
=
res
||
[]
//总店
//总店
let
_headOffice
=
this
.
baseData
.
yqMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
let
_headOffice
=
this
.
baseData
.
yqMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
...
...
src/views/earlyWarning/index.vue
View file @
a81e1ca
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<h2>
预警列表
</h2>
<h2>
预警列表
</h2>
<div>
<div>
<el-button
type=
"primary"
<el-button
type=
"primary"
plain
size=
"small"
@
click=
"gotoReplenishment"
>
去补货
</el-button>
size=
"small"
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
@
click=
"gotoReplenishment"
>
去补货
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"earlyWarningRef"
<GLTable
ref=
"earlyWarningRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
</div>
</div>
...
@@ -94,13 +77,12 @@ export default {
...
@@ -94,13 +77,12 @@ export default {
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'yqMerchantList'
,
optionsName
:
'yqMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
changeAttr
:
(
value
,
targetItem
)
=>
{
value
value
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
this
.
searchForm
.
merchantId
=
''
this
.
searchForm
.
merchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
}
}
},
{
},
{
label
:
'所属门店'
,
label
:
'所属门店'
,
name
:
'merchantId'
,
name
:
'merchantId'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -196,9 +178,11 @@ export default {
...
@@ -196,9 +178,11 @@ export default {
},
},
// 获取仓库门店
// 获取仓库门店
getServicemerchantrefList
(
merchantId
)
{
getServicemerchantrefList
(
merchantId
)
{
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
yqMerchantId
:
merchantId
yqMerchantId
:
merchantId
}).
then
(
res
=>
{
})
.
then
(
res
=>
{
this
.
baseData
.
merchantIdList
=
res
||
[]
this
.
baseData
.
merchantIdList
=
res
||
[]
//总店
//总店
let
_headOffice
=
this
.
baseData
.
yqMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
let
_headOffice
=
this
.
baseData
.
yqMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
...
@@ -290,7 +274,6 @@ export default {
...
@@ -290,7 +274,6 @@ export default {
goodsType
:
''
,
goodsType
:
''
,
goodsSeries
:
''
,
goodsSeries
:
''
,
productCode
:
''
productCode
:
''
}
}
this
.
showFormData
[
this
.
findFormIdx
(
'merchantId'
)].
optionList
=
[]
this
.
showFormData
[
this
.
findFormIdx
(
'merchantId'
)].
optionList
=
[]
this
.
handleSearch
()
this
.
handleSearch
()
...
...
src/views/outbound/index.vue
View file @
a81e1ca
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<h2>
出库列表
</h2>
<h2>
出库列表
</h2>
<el-button
type=
"primary"
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"outboundRef"
<GLTable
ref=
"outboundRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
</div>
</div>
...
@@ -94,13 +79,12 @@ export default {
...
@@ -94,13 +79,12 @@ export default {
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'yqMerchantList'
,
optionsName
:
'yqMerchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
changeAttr
:
(
value
,
targetItem
)
=>
{
value
value
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
?
this
.
getServicemerchantrefList
(
value
)
:
(
this
.
baseData
.
merchantIdList
=
[])
this
.
searchForm
.
merchantId
=
''
this
.
searchForm
.
merchantId
=
''
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
}
}
},
{
},
{
label
:
'出库门店'
,
label
:
'出库门店'
,
name
:
'merchantId'
,
name
:
'merchantId'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -279,9 +263,11 @@ export default {
...
@@ -279,9 +263,11 @@ export default {
},
},
// 获取仓库门店
// 获取仓库门店
getServicemerchantrefList
(
merchantId
)
{
getServicemerchantrefList
(
merchantId
)
{
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
yqMerchantId
:
merchantId
yqMerchantId
:
merchantId
}).
then
(
res
=>
{
})
.
then
(
res
=>
{
this
.
baseData
.
merchantIdList
=
res
||
[]
this
.
baseData
.
merchantIdList
=
res
||
[]
//总店
//总店
let
_headOffice
=
this
.
baseData
.
yqMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
let
_headOffice
=
this
.
baseData
.
yqMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
...
...
src/views/stock/index.vue
View file @
a81e1ca
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<h2>
库存列表
</h2>
<h2>
库存列表
</h2>
<el-button
type=
"primary"
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"stockRef"
<GLTable
ref=
"stockRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
:getListApi=
"getListApi"
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
:noDataImg=
"url"
<el-button
type=
"text"
@
click=
"handleInventoryDetails(scope.scope)"
>
库存明细
</el-button>
:searchForm=
"tableSearchForm"
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
统计
</el-button>
: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>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<!-- 查看 -->
<!-- 查看 -->
<stock-month-dialog
:stock-month-visible=
"stockMonthVisible"
<stock-month-dialog
:stock-month-visible=
"stockMonthVisible"
:stockInfo=
"stockInfo"
v-if=
"stockMonthVisible"
@
dialogClose=
"dialogClose"
/>
:stockInfo=
"stockInfo"
<stockDetailDialog
:visible
.
sync=
"stockDetailDialogVisible"
:recordInfo=
"stockInfo"
v-if=
"stockDetailDialogVisible"
/>
v-if=
"stockMonthVisible"
@
dialogClose=
"dialogClose"
/>
<stockDetailDialog
:visible
.
sync=
"stockDetailDialogVisible"
:recordInfo=
"stockInfo"
v-if=
"stockDetailDialogVisible"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -166,7 +142,8 @@ export default {
...
@@ -166,7 +142,8 @@ export default {
label
:
'所属仓库'
,
label
:
'所属仓库'
,
prop
:
'yqMerchantName'
,
prop
:
'yqMerchantName'
,
width
:
200
width
:
200
},
{
},
{
label
:
'所属商户'
,
label
:
'所属商户'
,
prop
:
'partnerMerchantName'
,
prop
:
'partnerMerchantName'
,
width
:
'200px'
width
:
'200px'
...
@@ -205,7 +182,7 @@ export default {
...
@@ -205,7 +182,7 @@ export default {
},
},
handleInventoryDetails
(
row
)
{
handleInventoryDetails
(
row
)
{
this
.
stockInfo
=
row
this
.
stockInfo
=
row
console
.
log
(
this
.
stockInfo
)
;
console
.
log
(
this
.
stockInfo
)
this
.
stockDetailDialogVisible
=
true
this
.
stockDetailDialogVisible
=
true
},
},
// 查看详情
// 查看详情
...
...
src/views/warehousing/index.vue
View file @
a81e1ca
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
@
handleRest=
"handleReset"
></GLCombiForm>
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<h2>
入库列表
</h2>
<h2>
入库列表
</h2>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</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