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 6eb95890
authored
May 29, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
走查样式修改
1 parent
9ecdc597
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
122 additions
and
178 deletions
src/views/Equity/index.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/Equity/index.vue
View file @
6eb9589
...
...
@@ -11,7 +11,7 @@
,已激活数量:
<span
class=
"txt-blue"
>
{{
stockData
.
activatedCount
}}
</span>
</div>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
<!-- 表格区域 开始 -->
...
...
src/views/allocation/index.vue
View file @
6eb9589
<
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"
plain
size=
"small"
@
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 +62,8 @@ export default {
type
:
'datePicker'
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
},
{
},
{
label
:
'调出仓库'
,
name
:
'callOutYqMerchantId'
,
type
:
'select'
,
...
...
@@ -93,13 +72,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 +86,8 @@ export default {
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionsName
:
'outMerchantList'
},
{
},
{
label
:
'调入仓库'
,
name
:
'callInYqMerchantId'
,
type
:
'select'
,
...
...
@@ -117,13 +96,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 +140,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 +178,8 @@ export default {
// 基本数据
baseData
:
{
yqRelatedMerchantList
:
[],
outMerchantList
:
[],
//调出门店
inMerchantList
:
[]
,
//调入门店
outMerchantList
:
[],
//调出门店
inMerchantList
:
[]
//调入门店
},
imgVisible
:
false
,
previewImgUrl
:
''
...
...
@@ -234,27 +217,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 @
6eb9589
<
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"
plain
size=
"small"
@
click=
"handleAdd"
fn=
"创建盘点"
>
创建盘点
</GLButton>
<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 +68,8 @@ export default {
type
:
'datePicker'
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
},
{
},
{
label
:
'盘点仓库'
,
name
:
'yqMerchantId'
,
type
:
'select'
,
...
...
@@ -107,13 +78,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 +102,7 @@ export default {
tableColumns
:
[
{
label
:
'盘点单号'
,
prop
:
'checkCode'
,
prop
:
'checkCode'
},
{
label
:
'盘点时间'
,
...
...
@@ -144,12 +114,14 @@ export default {
{
label
:
'盘点人'
,
prop
:
'operator'
},
{
},
{
label
:
'盘点仓库'
,
prop
:
'yqMerchantName'
,
},
{
prop
:
'yqMerchantName'
},
{
label
:
'盘点门店'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
},
{
label
:
'备注'
,
...
...
@@ -186,7 +158,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 +176,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 @
6eb9589
<
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'
,
...
...
@@ -147,7 +129,7 @@ export default {
return
cellValue
.
warningValue
||
cellValue
.
warningValue
==
0
?
parseFloat
(
cellValue
.
warningValue
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
},
{
{
label
:
'最高库存'
,
prop
:
'warningValueMax'
,
formatter
:
cellValue
=>
{
...
...
@@ -196,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
)
{
...
...
@@ -290,7 +274,6 @@ export default {
goodsType
:
''
,
goodsSeries
:
''
,
productCode
:
''
}
this
.
showFormData
[
this
.
findFormIdx
(
'merchantId'
)].
optionList
=
[]
this
.
handleSearch
()
...
...
src/views/outbound/index.vue
View file @
6eb9589
...
...
@@ -10,7 +10,7 @@
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<h2>
出库列表
</h2>
<el-button
type=
"primary"
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
...
...
src/views/stock/index.vue
View file @
6eb9589
...
...
@@ -10,7 +10,7 @@
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<h2>
库存列表
</h2>
<el-button
type=
"primary"
<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