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 f7054f36
authored
May 09, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复线上bug
1 parent
4bff5e19
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
src/setup/qiankun.js
src/views/warehousing/index.vue
src/setup/qiankun.js
View file @
f7054f3
...
@@ -12,13 +12,14 @@ let instance = null
...
@@ -12,13 +12,14 @@ 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
}
=
await
fetchConfig
(
common
)
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
purchaseType
}
=
await
fetchConfig
(
common
)
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
.
$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
...
...
src/views/warehousing/index.vue
View file @
f7054f3
...
@@ -22,6 +22,7 @@ export default {
...
@@ -22,6 +22,7 @@ export default {
name
:
'warehousing'
,
name
:
'warehousing'
,
data
()
{
data
()
{
return
{
return
{
purchaseType
:
''
,
membraneTypeList
:
membraneTypeList
,
membraneTypeList
:
membraneTypeList
,
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
...
@@ -144,7 +145,7 @@ export default {
...
@@ -144,7 +145,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
Name
!=
'自建商品'
?
'米'
:
'件'
)
:
'-'
return
cellValue
.
increaseStockNum
||
cellValue
.
increaseStockNum
==
0
?
parseFloat
(
cellValue
.
increaseStockNum
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
&&
cellValue
.
goodsType
!=
purchaseType
?
'米'
:
'件'
)
:
'-'
},
},
width
:
120
width
:
120
},
},
...
@@ -200,6 +201,7 @@ export default {
...
@@ -200,6 +201,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
purchaseType
=
this
.
$purchaseType
this
.
$apis
.
product
.
getProductTypeBySceneId
({
sceneType
:
''
}).
then
(
res
=>
{
this
.
$apis
.
product
.
getProductTypeBySceneId
({
sceneType
:
''
}).
then
(
res
=>
{
this
.
baseData
.
productTypeList
=
res
this
.
baseData
.
productTypeList
=
res
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
...
...
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