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 9b929e5b
authored
Nov 17, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
膜券号适配
1 parent
e83bb7d7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
82 additions
and
36 deletions
src/views/allocation/add.vue
src/views/allocation/allocationDetailDialog.vue
src/views/check/add.vue
src/views/check/inventoryDetailDialog.vue
src/views/outbound/index.vue
src/views/stock/stockDetailDialog.vue
src/views/warehousing/index.vue
src/views/allocation/add.vue
View file @
9b929e5
This diff is collapsed.
Click to expand it.
src/views/allocation/allocationDetailDialog.vue
View file @
9b929e5
...
...
@@ -5,8 +5,7 @@
<div>
<div
class=
"d2-container-content"
>
<GLTable
ref=
"recordTable"
:getListApi=
"getListApi"
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
>
</GLTable>
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
</div>
</div>
<!--
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -40,7 +39,7 @@ export default {
},
{
label
:
'商品编码'
,
prop
:
'productCode'
,
prop
:
'productCode'
// width: 250
},
{
...
...
@@ -57,6 +56,10 @@ export default {
formatter
:
cellValue
=>
{
return
cellValue
.
allocateNumber
||
cellValue
.
allocateNumber
==
0
?
parseFloat
(
cellValue
.
allocateNumber
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
},
{
label
:
'膜卷号'
,
prop
:
'filmRollNo'
}
]
},
...
...
src/views/check/add.vue
View file @
9b929e5
This diff is collapsed.
Click to expand it.
src/views/check/inventoryDetailDialog.vue
View file @
9b929e5
...
...
@@ -60,7 +60,7 @@ export default {
},
{
label
:
'商品编码'
,
prop
:
'productCode'
,
prop
:
'productCode'
// width: 250
},
{
...
...
@@ -92,6 +92,10 @@ export default {
// formatter: (cellValue) => {
// return cellValue.checkTime ? Util.dateFormate(cellValue.checkTime, 'YYYY-MM-DD HH:mm:ss') : ''
// }
},
{
label
:
'膜卷号'
,
prop
:
'filmRollNo'
}
]
},
...
...
@@ -138,5 +142,4 @@ export default {
.inventoryDetailDailog
.el-dialog
{
margin-top
:
20vh
!important
;
min-width
:
700px
;
}
</
style
>
}
</
style
>
src/views/outbound/index.vue
View file @
9b929e5
<
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"
>
<div>
合计:出库数量
...
...
@@ -13,7 +14,9 @@
</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>
...
...
@@ -139,6 +142,13 @@ export default {
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'upgradeFlagList'
},
{
label
:
'膜卷号'
,
name
:
'filmRollNo'
,
type
:
'input'
,
maxlength
:
'50'
,
isClear
:
true
}
],
// 表格
...
...
@@ -207,6 +217,11 @@ export default {
width
:
200
},
{
label
:
'膜卷号'
,
prop
:
'filmRollNo'
,
minWidth
:
150
},
{
label
:
'订单类型'
,
prop
:
''
,
formatter
:
cellValue
=>
{
...
...
@@ -400,8 +415,8 @@ export default {
color
:
#333
;
}
}
.txt-blue
{
color
:
#5850ff
;
}
}
</
style
>
}
</
style
>
src/views/stock/stockDetailDialog.vue
View file @
9b929e5
<!-- 库存明细弹窗 -->
<
template
>
<GLDialog
bigTitle=
"库存明细"
:visible
.
sync=
"dialogVisible"
class=
"stockMonthDailog"
width=
"50%"
mode=
"big"
:destroy-on-close=
"true"
:close-on-click-modal=
"false"
okText=
"关闭"
:before-close=
"handleClose"
:hasFooter=
"false"
@
onOk=
"handleClose"
@
onCancel=
"handleClose"
>
<GLDialog
bigTitle=
"库存明细"
:visible
.
sync=
"dialogVisible"
class=
"stockMonthDailog"
width=
"700px"
mode=
"big"
:destroy-on-close=
"true"
:close-on-click-modal=
"false"
okText=
"关闭"
:before-close=
"handleClose"
:hasFooter=
"false"
@
onOk=
"handleClose"
@
onCancel=
"handleClose"
>
<div>
<div
class=
"d2-container-content"
>
<GLTable
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchForm"
:table-params=
"tableParams"
:pageConf=
"pageConf"
></GLTable>
<GLTable
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchForm"
:table-params=
"tableParams"
:pageConf=
"pageConf"
></GLTable>
</div>
</div>
<!--
<span
slot=
"footer"
...
...
@@ -29,7 +32,7 @@ export default {
},
recordInfo
:
{
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
}
},
data
()
{
...
...
@@ -56,10 +59,15 @@ export default {
{
label
:
'当前库存'
,
prop
:
'stock'
,
// width: ''
width
:
'150px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
},
{
label
:
'膜卷号'
,
prop
:
'filmRollNo'
// width: '200px'
}
]
}
...
...
@@ -124,5 +132,4 @@ export default {
.show-search
{
margin-left
:
-65px
;
}
</
style
>
}
</
style
>
src/views/warehousing/index.vue
View file @
9b929e5
<
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"
>
<div>
<div>
...
...
@@ -15,7 +16,9 @@
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"warehousingRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<GLTable
ref=
"warehousingRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<!-- 表格区域 end -->
</div>
</div>
...
...
@@ -109,7 +112,8 @@ export default {
type
:
'input'
,
maxlength
:
'20'
,
isClear
:
true
},
{
},
{
label
:
'入库仓库'
,
name
:
'yqMerchantId'
,
type
:
'select'
,
...
...
@@ -118,13 +122,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'
,
...
...
@@ -142,6 +145,13 @@ export default {
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'upgradeFlagList'
},
{
label
:
'膜卷号'
,
name
:
'filmRollNo'
,
type
:
'input'
,
maxlength
:
'50'
,
isClear
:
true
}
],
// 表格
...
...
@@ -218,8 +228,14 @@ export default {
minWidth
:
150
},
{
label
:
'膜卷号'
,
prop
:
'filmRollNo'
,
minWidth
:
150
},
{
label
:
'订单类型'
,
prop
:
''
,
minWidth
:
150
,
formatter
:
cellValue
=>
{
return
cellValue
.
increaseStockType
==
'4'
?
this
.
baseData
.
upgradeFlagList
.
find
(
item
=>
item
.
confId
===
cellValue
.
upgradeFlag
)?.
confLabel
:
'-'
}
...
...
@@ -313,17 +329,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'
)
})
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
...
...
@@ -443,8 +461,8 @@ export default {
color
:
#333
;
}
}
.txt-blue
{
color
:
#5850ff
;
}
}
</
style
>
}
</
style
>
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