Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陈婉清
/
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 2c4057ca
authored
Apr 11, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
ebb7c92a
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
22 deletions
src/api/modules/stockManage.js
src/setup/qiankun.js
src/views/allocation/add.vue
src/views/allocation/index.vue
src/views/check/add.vue
src/views/check/index.vue
src/views/earlyWarning/index.vue
src/views/stock/index.vue
src/views/warehousing/index.vue
src/api/modules/stockManage.js
View file @
2c4057c
...
@@ -204,7 +204,7 @@ const exportaAllocateExcel = (params) => {
...
@@ -204,7 +204,7 @@ const exportaAllocateExcel = (params) => {
}
}
const
exportaInventExcel
=
(
params
)
=>
{
const
exportaInventExcel
=
(
params
)
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`dj.api.
smartcarlife.MerchantGoodsStockMonthReport.export
`
params
.
routerMethod
=
`dj.api.
life.InventoryWarningInfo.exportExcel
`
return
http
({
return
http
({
url
:
'rop-scrm-boutiquecoupon/router'
,
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
...
src/setup/qiankun.js
View file @
2c4057c
...
@@ -11,7 +11,7 @@ let router = null
...
@@ -11,7 +11,7 @@ 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
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
()
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
()
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
...
@@ -22,10 +22,10 @@ export async function bootstrap({ history, common, messenger, globalState }) {
...
@@ -22,10 +22,10 @@ export async function bootstrap({ history, common, messenger, globalState }) {
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
Vue
.
use
(
GLButton
,
{
permissions
:
globalState
.
permissions
||
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
]
})
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
routes
=
getRoutes
(
routesData
)
subscribe
({
messenger
})
subscribe
({
messenger
})
Vue
.
use
(
GLButton
,
{
routes
,
routerBase
})
}
}
export
async
function
mount
(
props
)
{
export
async
function
mount
(
props
)
{
const
insts
=
render
(
props
.
routerBase
,
routes
)
const
insts
=
render
(
props
.
routerBase
,
routes
)
...
...
src/views/allocation/add.vue
View file @
2c4057c
<
template
>
<
template
>
<div
class=
"addWrap"
>
<div
class=
"addWrap"
>
<div
class=
"d2-container-content"
style=
"padding: 10px 20px"
>
<div
class=
"d2-container-content
gl-form-min
"
style=
"padding: 10px 20px"
>
<el-form
:inline=
"true"
size=
"small"
:model=
"editAllocationForm"
ref=
"editAllocationFormRef"
:rules=
"formRules"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
size=
"small"
:model=
"editAllocationForm"
ref=
"editAllocationFormRef"
:rules=
"formRules"
class=
"demo-form-inline"
>
<el-form-item
label=
"调出门店:"
prop=
"callOutYqMerchantId"
>
<el-form-item
label=
"调出门店:"
prop=
"callOutYqMerchantId"
>
<el-select
v-model=
"editAllocationForm.callOutYqMerchantId"
style=
"width: 300px"
>
<el-select
v-model=
"editAllocationForm.callOutYqMerchantId"
style=
"width: 300px"
>
...
@@ -17,9 +17,13 @@
...
@@ -17,9 +17,13 @@
</div>
</div>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<div
style=
"padding: 15px 0"
>
<div
style=
"padding: 15px 0"
>
<div>
<div
class=
"gl-form-page gl-form-min"
>
<el-form
:inline=
"true"
size=
"small"
:model=
"editAllocationForm"
>
<el-form-item
label=
""
>
<el-input
v-model=
"searchForm.searchName"
style=
"width: 200px"
placeholder=
"请输入商品名称/系列"
maxlength=
"20"
clearable
/>
<el-input
v-model=
"searchForm.searchName"
style=
"width: 200px"
placeholder=
"请输入商品名称/系列"
maxlength=
"20"
clearable
/>
</el-form-item>
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
style=
"marginleft: 15px"
>
查询
</el-button>
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
style=
"marginleft: 15px"
>
查询
</el-button>
</el-form>
</div>
</div>
</div>
</div>
<GLTable
ref=
"allocationTable"
:getListApi=
"getListApi"
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"allocationTable"
:getListApi=
"getListApi"
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
>
...
@@ -187,14 +191,11 @@ export default {
...
@@ -187,14 +191,11 @@ export default {
},
},
created
()
{
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
this
.
callOutYqMerchantList
=
[
this
.
callOutYqMerchantList
=
[{
merchantNo
:
this
.
$globalState
.
session
.
merchantId
+
''
,
merchantName
:
this
.
$globalState
.
session
.
merchantName
}]
{
merchantNo
:
this
.
$globalState
.
session
.
merchantId
+
''
,
merchantName
:
this
.
$globalState
.
session
.
merchantName
}]
}
}
},
},
mounted
()
{
mounted
()
{
this
.
editAllocationForm
.
callOutYqMerchantId
=
this
.
editAllocationForm
.
callOutYqMerchantId
=
this
.
callOutYqMerchantList
[
0
].
merchantNo
this
.
callOutYqMerchantList
[
0
].
merchantNo
//调入门店
//调入门店
this
.
$apis
.
stockManage
.
yqRelatedList
({
includeSelf
:
false
}).
then
(
res
=>
{
this
.
$apis
.
stockManage
.
yqRelatedList
({
includeSelf
:
false
}).
then
(
res
=>
{
this
.
callInYqMerchantList
=
res
this
.
callInYqMerchantList
=
res
...
...
src/views/allocation/index.vue
View file @
2c4057c
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
<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"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建调拨
</el-button>
<GLButton
type=
"primary"
size=
"small"
@
click=
"handleAdd"
fn=
"创建调拨"
>
创建调拨
</GLButton>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建调拨
</el-button>
-->
<!--
<h2>
调拨列表
</h2>
-->
<!--
<h2>
调拨列表
</h2>
-->
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
...
...
src/views/check/add.vue
View file @
2c4057c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"addWrap"
>
<div
class=
"addWrap"
>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<div
style=
"padding: 15px 0"
>
<div
style=
"padding: 15px 0"
>
<div
class=
"gl-form-page"
>
<div
class=
"gl-form-page
gl-form-min
"
>
<el-form
ref=
"ruleForm"
:model=
"searchForm"
size=
"small"
inline=
"true"
>
<el-form
ref=
"ruleForm"
:model=
"searchForm"
size=
"small"
inline=
"true"
>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<el-input
v-model=
"searchForm.searchName"
style=
"width: 200px"
placeholder=
"请输入商品名称/系列"
maxlength=
"20"
clearable
/>
<el-input
v-model=
"searchForm.searchName"
style=
"width: 200px"
placeholder=
"请输入商品名称/系列"
maxlength=
"20"
clearable
/>
...
...
src/views/check/index.vue
View file @
2c4057c
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
<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"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建盘点
</el-button>
<GLButton
type=
"primary"
size=
"small"
@
click=
"handleAdd"
fn=
"创建盘点"
>
创建盘点
</GLButton>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建盘点
</el-button>
-->
<!--
<h2>
盘点列表
</h2>
-->
<!--
<h2>
盘点列表
</h2>
-->
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
...
...
src/views/earlyWarning/index.vue
View file @
2c4057c
...
@@ -12,15 +12,13 @@
...
@@ -12,15 +12,13 @@
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"earlyWarningRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"earlyWarningRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
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
{
...
@@ -181,15 +179,14 @@ export default {
...
@@ -181,15 +179,14 @@ export default {
this
.
$refs
.
earlyWarningRef
.
data
.
length
?
(
this
.
$refs
.
earlyWarningRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
earlyWarningRef
.
setTableHeightFun
()
this
.
$refs
.
earlyWarningRef
.
data
.
length
?
(
this
.
$refs
.
earlyWarningRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
earlyWarningRef
.
setTableHeightFun
()
},
},
exportExcel
()
{
exportExcel
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
searchForm
this
.
$apis
.
stockManage
.
exportaInventExcel
(
params
).
then
(
res
=>
{
this
.
$apis
.
stockManage
.
exportaInventExcel
(
params
).
then
(
res
=>
{
window
.
location
.
href
=
res
window
.
location
.
href
=
res
})
})
},
},
//去补货
//去补货
gotoReplenishment
()
{
gotoReplenishment
()
{
// this.close({ tagName: '/orderList' })
this
.
$history
.
push
(
`/purchase/purchaseOrder/add`
)
this
.
$router
.
push
({
name
:
'purchasingMall'
})
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
earlyWarningRef
.
refreshTable
()
this
.
$refs
.
earlyWarningRef
.
refreshTable
()
...
...
src/views/stock/index.vue
View file @
2c4057c
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
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'
...
@@ -193,10 +192,10 @@ export default {
...
@@ -193,10 +192,10 @@ export default {
},
},
exportExcel
()
{
exportExcel
()
{
this
.
exportLoading
=
true
this
.
exportLoading
=
true
var
params
=
this
.
getParams
()
var
params
=
this
.
searchForm
this
.
$apis
.
stockManage
.
exportMerchantExcel
(
params
).
then
(
res
=>
{
this
.
$apis
.
stockManage
.
exportMerchantExcel
(
params
).
then
(
res
=>
{
//
window.location.href = res
window
.
location
.
href
=
res
})
})
},
},
...
...
src/views/warehousing/index.vue
View file @
2c4057c
...
@@ -282,6 +282,7 @@ export default {
...
@@ -282,6 +282,7 @@ export default {
this
.
$router
.
push
(
'/purchaseOrder/add'
)
this
.
$router
.
push
(
'/purchaseOrder/add'
)
},
},
exportExcel
()
{
exportExcel
()
{
// this.$messenger.send('ssssssssssssssss')
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
stockManage
.
exportExcel
(
params
).
then
(
res
=>
{
this
.
$apis
.
stockManage
.
exportExcel
(
params
).
then
(
res
=>
{
...
...
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