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 80526295
authored
Nov 23, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
单位格式兼容
1 parent
9b929e5b
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
112 additions
and
99 deletions
src/setup/qiankun.js
src/views/allocation/add.vue
src/views/allocation/allocationDetailDialog.vue
src/views/check/add.vue
src/views/check/index.vue
src/views/check/inventoryDetailDialog.vue
src/views/earlyWarning/index.vue
src/views/outbound/index.vue
src/views/stock/index.vue
src/views/stock/statementOfAccountDialog.vue
src/views/stock/stockDetailDialog.vue
src/views/stock/stockMonthDialog.vue
src/views/warehousing/index.vue
src/setup/qiankun.js
View file @
8052629
...
@@ -11,17 +11,18 @@ let router = null
...
@@ -11,17 +11,18 @@ let router = null
let
instance
=
null
let
instance
=
null
Vue
.
use
(
ElementUI
)
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLTable
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
purchaseType
}
=
await
fetchConfig
(
common
)
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
membraneTypeList
}
=
await
fetchConfig
(
common
)
// console.log(purchaseType, 'purchaseType')
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$
purchaseType
=
purchaseType
Vue
.
prototype
.
$
membraneTypeList
=
membraneTypeList
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
"md5"
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
routes
=
getRoutes
(
routesData
)
...
...
src/views/allocation/add.vue
View file @
8052629
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<
script
>
<
script
>
import
allocationNumDialog
from
'./allocationNumDialog'
import
allocationNumDialog
from
'./allocationNumDialog'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
export
default
{
export
default
{
name
:
'allocationList'
,
name
:
'allocationList'
,
components
:
{
components
:
{
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
callInYqMerchantList
:
[],
callInYqMerchantList
:
[],
callOutMerchantList
:
[],
callOutMerchantList
:
[],
callInMerchantList
:
[],
callInMerchantList
:
[],
membraneTypeList
:
membraneTypeList
,
//
membraneTypeList: membraneTypeList,
searchForm
:
{
searchForm
:
{
upgradeGoodsNameOrSeries
:
''
,
upgradeGoodsNameOrSeries
:
''
,
stockFlag
:
true
stockFlag
:
true
...
@@ -128,7 +128,7 @@ export default {
...
@@ -128,7 +128,7 @@ export default {
label
:
'库存'
,
label
:
'库存'
,
prop
:
'stock'
,
prop
:
'stock'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
...
@@ -171,14 +171,14 @@ export default {
...
@@ -171,14 +171,14 @@ export default {
label
:
'库存'
,
label
:
'库存'
,
prop
:
'stock'
,
prop
:
'stock'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
label
:
'调拨库存'
,
label
:
'调拨库存'
,
prop
:
'allocateNumber '
,
prop
:
'allocateNumber '
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
allocateNumber
||
cellValue
.
allocateNumber
==
0
?
parseFloat
(
cellValue
.
allocateNumber
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
allocateNumber
||
cellValue
.
allocateNumber
==
0
?
parseFloat
(
cellValue
.
allocateNumber
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
...
...
src/views/allocation/allocationDetailDialog.vue
View file @
8052629
...
@@ -15,12 +15,12 @@
...
@@ -15,12 +15,12 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
export
default
{
export
default
{
name
:
'allocationDetailDialog'
,
name
:
'allocationDetailDialog'
,
data
()
{
data
()
{
return
{
return
{
membraneTypeList
:
membraneTypeList
,
//
membraneTypeList: membraneTypeList,
searchForm
:
{
searchForm
:
{
id
:
''
id
:
''
},
},
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
label
:
'调拨数量'
,
label
:
'调拨数量'
,
prop
:
'allocateNumber'
,
prop
:
'allocateNumber'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
allocateNumber
||
cellValue
.
allocateNumber
==
0
?
parseFloat
(
cellValue
.
allocateNumber
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
allocateNumber
||
cellValue
.
allocateNumber
==
0
?
parseFloat
(
cellValue
.
allocateNumber
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
...
...
src/views/check/add.vue
View file @
8052629
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<
script
>
<
script
>
import
inventoryNumDialog
from
'./inventoryNumDialog'
import
inventoryNumDialog
from
'./inventoryNumDialog'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
export
default
{
export
default
{
name
:
'InventoryList'
,
name
:
'InventoryList'
,
components
:
{
components
:
{
...
@@ -81,7 +81,7 @@ export default {
...
@@ -81,7 +81,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
membraneTypeList
:
membraneTypeList
,
membraneTypeList
:
this
.
$
membraneTypeList
,
searchForm
:
{
searchForm
:
{
upgradeGoodsNameOrSeries
:
''
upgradeGoodsNameOrSeries
:
''
},
},
...
@@ -117,7 +117,7 @@ export default {
...
@@ -117,7 +117,7 @@ export default {
label
:
'库存'
,
label
:
'库存'
,
prop
:
'stock'
,
prop
:
'stock'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
...
@@ -160,14 +160,14 @@ export default {
...
@@ -160,14 +160,14 @@ export default {
label
:
'系统库存'
,
label
:
'系统库存'
,
prop
:
'stock'
,
prop
:
'stock'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
label
:
'盘点库存'
,
label
:
'盘点库存'
,
prop
:
'checkStock'
,
prop
:
'checkStock'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
checkStock
||
cellValue
.
checkStock
==
0
?
parseFloat
(
cellValue
.
checkStock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
checkStock
||
cellValue
.
checkStock
==
0
?
parseFloat
(
cellValue
.
checkStock
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
...
...
src/views/check/index.vue
View file @
8052629
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<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
class=
"table-header"
>
<h2>
盘点列表
</h2>
<h2>
盘点列表
</h2>
<div>
<div>
...
@@ -11,7 +12,9 @@
...
@@ -11,7 +12,9 @@
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"checkRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<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"
>
<div
slot=
"img"
slot-scope=
"scope"
v-if=
"scope.scope.voucherPic"
>
<img
class=
"img-36"
:src=
"scope.scope.voucherPic"
@
click=
"handleEnlargeImg(scope.scope.voucherPic)"
/>
<img
class=
"img-36"
:src=
"scope.scope.voucherPic"
@
click=
"handleEnlargeImg(scope.scope.voucherPic)"
/>
</div>
</div>
...
@@ -26,14 +29,15 @@
...
@@ -26,14 +29,15 @@
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
/>
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
/>
</el-dialog>
</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>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
import
inventoryDetailDialog
from
'./inventoryDetailDialog'
import
inventoryDetailDialog
from
'./inventoryDetailDialog'
export
default
{
export
default
{
name
:
'warehousing'
,
name
:
'warehousing'
,
...
@@ -42,7 +46,7 @@ export default {
...
@@ -42,7 +46,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
membraneTypeList
:
membraneTypeList
,
//
membraneTypeList: membraneTypeList,
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
searchForm
:
{
searchForm
:
{
...
@@ -271,15 +275,16 @@ export default {
...
@@ -271,15 +275,16 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
@import
'@/assets/css/mixin.scss'
;
@import
'@/assets/css/mixin.scss'
;
.purchase
{
.purchase
{
.table-header
{
.table-header
{
@include
space-between_center;
@include
space-between_center;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
h2
{
h2
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#333
;
color
:
#333
;
}
}
}
}
}
}
</
style
>
</
style
>
src/views/check/inventoryDetailDialog.vue
View file @
8052629
...
@@ -33,12 +33,12 @@
...
@@ -33,12 +33,12 @@
</template>
</template>
<
script
>
<
script
>
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
export
default
{
export
default
{
name
:
'InventoryDetailDialog'
,
name
:
'InventoryDetailDialog'
,
data
()
{
data
()
{
return
{
return
{
membraneTypeList
:
membraneTypeList
,
membraneTypeList
:
this
.
$
membraneTypeList
,
countObj
:
{},
countObj
:
{},
searchForm
:
{
searchForm
:
{
id
:
''
id
:
''
...
@@ -75,14 +75,14 @@ export default {
...
@@ -75,14 +75,14 @@ export default {
label
:
'系统库存'
,
label
:
'系统库存'
,
prop
:
'stock'
,
prop
:
'stock'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
label
:
'盘点库存'
,
label
:
'盘点库存'
,
prop
:
'checkStock'
,
prop
:
'checkStock'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
checkStock
||
cellValue
.
checkStock
==
0
?
parseFloat
(
cellValue
.
checkStock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
checkStock
||
cellValue
.
checkStock
==
0
?
parseFloat
(
cellValue
.
checkStock
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
...
...
src/views/earlyWarning/index.vue
View file @
8052629
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<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
class=
"table-header"
>
<h2>
预警列表
</h2>
<h2>
预警列表
</h2>
<div>
<div>
...
@@ -11,7 +12,9 @@
...
@@ -11,7 +12,9 @@
</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 -->
<!-- 表格区域 end -->
</div>
</div>
</div>
</div>
...
@@ -19,12 +22,12 @@
...
@@ -19,12 +22,12 @@
<
script
>
<
script
>
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
export
default
{
export
default
{
name
:
'earlyWarning'
,
name
:
'earlyWarning'
,
data
()
{
data
()
{
return
{
return
{
membraneTypeList
:
membraneTypeList
,
//
membraneTypeList: membraneTypeList,
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
searchForm
:
{
searchForm
:
{
...
@@ -119,21 +122,21 @@ export default {
...
@@ -119,21 +122,21 @@ export default {
label
:
'库存'
,
label
:
'库存'
,
prop
:
'stock'
,
prop
:
'stock'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
label
:
'最低库存'
,
label
:
'最低库存'
,
prop
:
'warningValue'
,
prop
:
'warningValue'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
warningValue
||
cellValue
.
warningValue
==
0
?
parseFloat
(
cellValue
.
warningValue
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
warningValue
||
cellValue
.
warningValue
==
0
?
parseFloat
(
cellValue
.
warningValue
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
label
:
'最高库存'
,
label
:
'最高库存'
,
prop
:
'warningValueMax'
,
prop
:
'warningValueMax'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
warningValueMax
||
cellValue
.
warningValueMax
==
0
?
parseFloat
(
cellValue
.
warningValueMax
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
warningValueMax
||
cellValue
.
warningValueMax
==
0
?
parseFloat
(
cellValue
.
warningValueMax
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
...
@@ -288,15 +291,16 @@ export default {
...
@@ -288,15 +291,16 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
@import
'@/assets/css/mixin.scss'
;
@import
'@/assets/css/mixin.scss'
;
.purchase
{
.purchase
{
.table-header
{
.table-header
{
@include
space-between_center;
@include
space-between_center;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
h2
{
h2
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#333
;
color
:
#333
;
}
}
}
}
}
}
</
style
>
</
style
>
src/views/outbound/index.vue
View file @
8052629
...
@@ -25,12 +25,12 @@
...
@@ -25,12 +25,12 @@
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
export
default
{
export
default
{
name
:
'warehousing'
,
name
:
'warehousing'
,
data
()
{
data
()
{
return
{
return
{
membraneTypeList
:
membraneTypeList
,
//
membraneTypeList: membraneTypeList,
size
:
'small'
,
size
:
'small'
,
totalObj
:
{},
totalObj
:
{},
url
:
url
,
url
:
url
,
...
...
src/views/stock/index.vue
View file @
8052629
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<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
class=
"table-header"
>
<div>
<div>
合计:当前库存
合计:当前库存
...
@@ -14,7 +15,9 @@
...
@@ -14,7 +15,9 @@
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"stockRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<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"
>
<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=
"handleInventoryDetails(scope.scope)"
>
库存明细
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
统计
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
统计
</el-button>
...
@@ -23,21 +26,20 @@
...
@@ -23,21 +26,20 @@
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<!-- 查看 -->
<!-- 查看 -->
<stock-month-dialog
:stock-month-visible=
"stockMonthVisible"
:stockInfo=
"stockInfo"
v-if=
"stockMonthVisible"
@
dialogClose=
"dialogClose"
/>
<stock-month-dialog
:stock-month-visible=
"stockMonthVisible"
:stockInfo=
"stockInfo"
v-if=
"stockMonthVisible"
@
dialogClose=
"dialogClose"
/>
<stockDetailDialog
:visible
.
sync=
"stockDetailDialogVisible"
:recordInfo=
"stockInfo"
v-if=
"stockDetailDialogVisible"
/>
<stockDetailDialog
:visible
.
sync=
"stockDetailDialogVisible"
:recordInfo=
"stockInfo"
v-if=
"stockDetailDialogVisible"
/>
<!-- 库存对账单 -->
<!-- 库存对账单 -->
<statementOfAccountDialog
<statementOfAccountDialog
:visible
.
sync=
"statementOfAccountDialogVisible"
v-if=
"statementOfAccountDialogVisible"
:visible
.
sync=
"statementOfAccountDialogVisible"
:yqMerchantList=
"baseData.yqMerchantList"
@
handleRelateProConfirm=
"handleRelateProConfirm"
>
v-if=
"statementOfAccountDialogVisible"
</statementOfAccountDialog>
:yqMerchantList=
"baseData.yqMerchantList"
@
handleRelateProConfirm=
"handleRelateProConfirm"
></statementOfAccountDialog>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
import
stockMonthDialog
from
'./stockMonthDialog'
import
stockMonthDialog
from
'./stockMonthDialog'
import
stockDetailDialog
from
'./stockDetailDialog'
import
stockDetailDialog
from
'./stockDetailDialog'
import
statementOfAccountDialog
from
'./statementOfAccountDialog'
import
statementOfAccountDialog
from
'./statementOfAccountDialog'
...
@@ -50,7 +52,7 @@ export default {
...
@@ -50,7 +52,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
membraneTypeList
:
membraneTypeList
,
//
membraneTypeList: membraneTypeList,
size
:
'small'
,
size
:
'small'
,
totalInventory
:
''
,
totalInventory
:
''
,
url
:
url
,
url
:
url
,
...
@@ -299,8 +301,8 @@ export default {
...
@@ -299,8 +301,8 @@ export default {
color
:
#333
;
color
:
#333
;
}
}
}
}
.txt-blue
{
.txt-blue
{
color
:
#5850ff
;
color
:
#5850ff
;
}
}
}
}
</
style
>
</
style
>
src/views/stock/statementOfAccountDialog.vue
View file @
8052629
<!-- 库存对账单弹窗 -->
<!-- 库存对账单弹窗 -->
<
template
>
<
template
>
<GLDialog
title=
"库存对账单"
:visible
.
sync=
"dialogVisible"
class=
"statementOfAccountDialog"
:destroy-on-close=
"true"
:close-on-click-modal=
"false"
:before-close=
"handleClose"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
>
<GLDialog
title=
"库存对账单"
:visible
.
sync=
"dialogVisible"
class=
"statementOfAccountDialog"
:destroy-on-close=
"true"
:close-on-click-modal=
"false"
:before-close=
"handleClose"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
>
<el-form
ref=
"statementOfAccountForm"
:model=
"dataForm"
:rules=
"formRules"
label-width=
"154px"
size=
"small"
>
<el-form
ref=
"statementOfAccountForm"
:model=
"dataForm"
:rules=
"formRules"
label-width=
"154px"
size=
"small"
>
<el-form-item
label=
"时间:"
prop=
"dataMonthStr"
>
<el-form-item
label=
"时间:"
prop=
"dataMonthStr"
>
<el-date-picker
<el-date-picker
v-model=
"dataForm.dataMonthStr"
type=
"month"
:clearable=
"false"
value-format=
"yyyy-MM"
v-model=
"dataForm.dataMonthStr"
:append-to-body=
"false"
format=
"yyyy-MM"
class=
"form-node"
placeholder=
"选择时间"
type=
"month"
popper-class=
"statement-of-account-month-picker"
:picker-options=
"beforeRangePickerOptions"
></el-date-picker>
:clearable=
"false"
value-format=
"yyyy-MM"
:append-to-body=
"false"
format=
"yyyy-MM"
class=
"form-node"
placeholder=
"选择时间"
popper-class=
"statement-of-account-month-picker"
:picker-options=
"beforeRangePickerOptions"
>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"仓库:"
prop=
"yqMerchantId"
>
<el-form-item
label=
"仓库:"
prop=
"yqMerchantId"
>
<el-select
v-model=
"dataForm.yqMerchantId"
class=
"form-node"
filterable
@
change=
"yqMerchantIdChange"
placeholder=
"请选择仓库"
>
<el-select
v-model=
"dataForm.yqMerchantId"
class=
"form-node"
filterable
@
change=
"yqMerchantIdChange"
<el-option
v-for=
"(subItem, subIndex) in stockList"
:key=
"subIndex"
:value=
"subItem.merchantNo"
:label=
"subItem.merchantName"
></el-option>
placeholder=
"请选择仓库"
>
<el-option
v-for=
"(subItem, subIndex) in stockList"
:key=
"subIndex"
:value=
"subItem.merchantNo"
:label=
"subItem.merchantName"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"门店:"
prop=
"merchantId"
>
<el-form-item
label=
"门店:"
prop=
"merchantId"
>
<el-select
v-model=
"dataForm.merchantId"
class=
"form-node"
filterable
placeholder=
"请选择门店"
>
<el-select
v-model=
"dataForm.merchantId"
class=
"form-node"
filterable
placeholder=
"请选择门店"
>
<el-option
v-for=
"(subItem, subIndex) in merchantList"
:key=
"subIndex"
:value=
"subItem.merchantId"
:label=
"subItem.merchantName"
></el-option>
<el-option
v-for=
"(subItem, subIndex) in merchantList"
:key=
"subIndex"
:value=
"subItem.merchantId"
:label=
"subItem.merchantName"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -32,7 +27,7 @@
...
@@ -32,7 +27,7 @@
<
script
>
<
script
>
import
{
beforeRangePickerOptions
}
from
'@/components/glsx-combi-form/common'
import
{
beforeRangePickerOptions
}
from
'@/components/glsx-combi-form/common'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
export
default
{
export
default
{
name
:
'statementOfAccountDialog'
,
name
:
'statementOfAccountDialog'
,
...
@@ -54,7 +49,7 @@ export default {
...
@@ -54,7 +49,7 @@ export default {
yqMerchantId
:
''
,
yqMerchantId
:
''
,
merchantId
:
''
merchantId
:
''
},
},
membraneTypeList
:
membraneTypeList
,
//
membraneTypeList: membraneTypeList,
formRules
:
{
formRules
:
{
dataMonthStr
:
[{
required
:
true
,
message
:
'请选择时间'
,
trigger
:
'change'
}],
dataMonthStr
:
[{
required
:
true
,
message
:
'请选择时间'
,
trigger
:
'change'
}],
yqMerchantId
:
[{
required
:
true
,
message
:
'请选择仓库'
,
trigger
:
'change'
}],
yqMerchantId
:
[{
required
:
true
,
message
:
'请选择仓库'
,
trigger
:
'change'
}],
...
@@ -105,12 +100,14 @@ export default {
...
@@ -105,12 +100,14 @@ export default {
_headOffice
=
this
.
stockList
.
find
(
item
=>
item
.
merchantNo
===
e
)
_headOffice
=
this
.
stockList
.
find
(
item
=>
item
.
merchantNo
===
e
)
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
// 获取仓库下的门店列表
// 获取仓库下的门店列表
this
.
$apis
.
stockManage
.
getServicemerchantrefList
({
this
.
$apis
.
stockManage
yqMerchantId
:
e
.
getServicemerchantrefList
({
}).
then
(
res
=>
{
yqMerchantId
:
e
this
.
merchantList
=
res
||
[]
})
this
.
merchantList
.
push
(
_headOffice
)
// 园区店可选择自己
.
then
(
res
=>
{
})
this
.
merchantList
=
res
||
[]
this
.
merchantList
.
push
(
_headOffice
)
// 园区店可选择自己
})
},
},
handleClose
()
{
handleClose
()
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
...
@@ -126,9 +123,8 @@ export default {
...
@@ -126,9 +123,8 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.statementOfAccountDialog
{
.statementOfAccountDialog
{
.form-node
{
.form-node{
width
:
432px
;
width
:
432px
;
}
}
}
}
...
@@ -140,8 +136,8 @@ export default {
...
@@ -140,8 +136,8 @@ export default {
background
:
#5850ff
;
background
:
#5850ff
;
border-radius
:
18px
;
border-radius
:
18px
;
}
}
.el-month-table
td
.today
.cell
{
.el-month-table
td
.today
.cell
{
color
:
#5850ff
;
color
:
#5850ff
;
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
}
</
style
>
src/views/stock/stockDetailDialog.vue
View file @
8052629
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<
script
>
<
script
>
// import { mapActions, mapState } from 'vuex'
// import { mapActions, mapState } from 'vuex'
// import { merchantShopGoodsStockPage } from '@api/stockManage'
// import { merchantShopGoodsStockPage } from '@api/stockManage'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
export
default
{
export
default
{
name
:
'StockDetailDialog'
,
name
:
'StockDetailDialog'
,
...
@@ -39,7 +39,7 @@ export default {
...
@@ -39,7 +39,7 @@ export default {
return
{
return
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
// userInfo: this.$store.state.d2admin.user.info,
// userInfo: this.$store.state.d2admin.user.info,
membraneTypeList
:
membraneTypeList
,
//
membraneTypeList: membraneTypeList,
searchForm
:
{
searchForm
:
{
upgradeGoodsId
:
''
,
upgradeGoodsId
:
''
,
yqMerchantId
:
''
yqMerchantId
:
''
...
@@ -61,7 +61,7 @@ export default {
...
@@ -61,7 +61,7 @@ export default {
prop
:
'stock'
,
prop
:
'stock'
,
width
:
'150px'
,
width
:
'150px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
...
...
src/views/stock/stockMonthDialog.vue
View file @
8052629
<
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"
:hasFooter=
"false"
>
<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"
:hasFooter=
"false"
>
<div
class=
"detail-content"
v-if=
"stockMonthVisible"
>
<div
class=
"detail-content"
v-if=
"stockMonthVisible"
>
<el-form
:inline=
"true"
:model=
"searchForm"
size=
"small"
>
<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"
/>
...
@@ -21,7 +25,7 @@
...
@@ -21,7 +25,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
export
default
{
export
default
{
name
:
'StockMonthDialog'
,
name
:
'StockMonthDialog'
,
props
:
{
props
:
{
...
@@ -31,13 +35,13 @@ export default {
...
@@ -31,13 +35,13 @@ export default {
},
},
stockInfo
:
{
stockInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
}
}
},
},
data
()
{
data
()
{
return
{
return
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
membraneTypeList
:
membraneTypeList
,
//
membraneTypeList: membraneTypeList,
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
listName
:
'list'
,
...
@@ -61,7 +65,7 @@ export default {
...
@@ -61,7 +65,7 @@ export default {
label
:
'本月采购数量'
,
label
:
'本月采购数量'
,
prop
:
'purchaseNum'
,
prop
:
'purchaseNum'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
purchaseNum
||
cellValue
.
purchaseNum
==
0
?
parseFloat
(
cellValue
.
purchaseNum
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
purchaseNum
||
cellValue
.
purchaseNum
==
0
?
parseFloat
(
cellValue
.
purchaseNum
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
...
@@ -83,7 +87,7 @@ export default {
...
@@ -83,7 +87,7 @@ export default {
label
:
'出库数量'
,
label
:
'出库数量'
,
prop
:
'reduceStockNum'
,
prop
:
'reduceStockNum'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
reduceStockNum
||
cellValue
.
reduceStockNum
==
0
?
parseFloat
(
cellValue
.
reduceStockNum
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
reduceStockNum
||
cellValue
.
reduceStockNum
==
0
?
parseFloat
(
cellValue
.
reduceStockNum
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
},
},
{
{
...
@@ -98,7 +102,7 @@ export default {
...
@@ -98,7 +102,7 @@ export default {
label
:
'结存库存数量'
,
label
:
'结存库存数量'
,
prop
:
'stock'
,
prop
:
'stock'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
stock
||
cellValue
.
stock
==
0
?
parseFloat
(
cellValue
.
stock
).
toFixed
(
2
)
+
(
this
.
$
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
}
}
}
}
]
]
...
@@ -164,6 +168,7 @@ export default {
...
@@ -164,6 +168,7 @@ export default {
max-height
:
616px
;
max-height
:
616px
;
}
}
}
}
.btn-tips
{
.btn-tips
{
display
:
inline-block
;
display
:
inline-block
;
font-size
:
12px
;
font-size
:
12px
;
...
@@ -173,11 +178,11 @@ export default {
...
@@ -173,11 +178,11 @@ export default {
color
:
#999
;
color
:
#999
;
margin-right
:
24px
;
margin-right
:
24px
;
padding
:
6.5px
10px
;
padding
:
6.5px
10px
;
img
{
img
{
width
:
18px
;
width
:
18px
;
height
:
15px
;
height
:
15px
;
margin-right
:
9px
;
margin-right
:
9px
;
vertical-align
:
bottom
;
vertical-align
:
bottom
;
}
}
}
}
</
style
>
</
style
>
src/views/warehousing/index.vue
View file @
8052629
...
@@ -27,12 +27,12 @@
...
@@ -27,12 +27,12 @@
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
membraneTypeList
}
from
'@/utils/constants.js'
//
import { membraneTypeList } from '@/utils/constants.js'
export
default
{
export
default
{
name
:
'warehousing'
,
name
:
'warehousing'
,
data
()
{
data
()
{
return
{
return
{
membraneTypeList
:
membraneTypeList
,
//
membraneTypeList: membraneTypeList,
size
:
'small'
,
size
:
'small'
,
totalObj
:
{},
totalObj
:
{},
url
:
url
,
url
:
url
,
...
@@ -196,7 +196,7 @@ export default {
...
@@ -196,7 +196,7 @@ export default {
label
:
'入库数量'
,
label
:
'入库数量'
,
prop
:
'increaseStockNum'
,
prop
:
'increaseStockNum'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
increaseStockNum
||
cellValue
.
increaseStockNum
==
0
?
parseFloat
(
cellValue
.
increaseStockNum
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
&&
cellValue
.
goodsType
!=
this
.
$purchaseType
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
increaseStockNum
||
cellValue
.
increaseStockNum
==
0
?
parseFloat
(
cellValue
.
increaseStockNum
).
toFixed
(
2
)
+
(
this
.
$membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
'米'
:
'件'
)
:
'-'
},
},
width
:
120
width
:
120
},
},
...
...
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