Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pda-scan
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-pda-scan
Commits
a25136a2
Commit
a25136a2
authored
Jan 14, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时提交
parent
e8db92e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
32 deletions
+37
-32
http.api.js
common/http.api.js
+32
-32
login.vue
pages/sys/login/login.vue
+5
-0
No files found.
common/http.api.js
View file @
a25136a2
...
@@ -7,67 +7,67 @@ const install = (Vue, vm) => {
...
@@ -7,67 +7,67 @@ const install = (Vue, vm) => {
// 参数配置对象
// 参数配置对象
const
config
=
vm
.
vuex_config
;
const
config
=
vm
.
vuex_config
;
console
.
log
(
config
);
console
.
log
(
config
);
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
vm
.
$u
.
api
=
{
vm
.
$u
.
api
=
{
// 基础服务:登录登出、身份信息、菜单授权、切换系统、字典数据等
// 基础服务:登录登出、身份信息、菜单授权、切换系统、字典数据等
login
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/login'
,
params
),
login
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/login'
,
params
),
getExAccountInfoApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/common/getExAccountInfo'
,
params
),
getExAccountInfoApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/common/getExAccountInfo'
,
params
),
// 上海环境
// 上海环境
// getInfo: (params = {}) => vm.$u.get('http://192.168.1.128:8088' + '/getInfo'),
// getInfo: (params = {}) => vm.$u.get('http://192.168.1.128:8088' + '/getInfo'),
// 外网环境
// 外网环境
getInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
'http://182.140.132.45:9011'
+
'/getInfo'
),
//
getInfo: (params = {}) => vm.$u.get('http://182.140.132.45:9011' + '/getInfo'),
changepassword
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/cmsmv/changepassword'
,
params
),
changepassword
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/cmsmv/changepassword'
,
params
),
// 到货条码打印查询
// 到货条码打印查询
getforprint
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/purcc/getforprint'
,
params
),
getforprint
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/purcc/getforprint'
,
params
),
// 到货条码打印
// 到货条码打印
purccprint
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/purcc/print'
,
params
),
purccprint
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/purcc/print'
,
params
),
// 到货检验查询
// 到货检验查询
getforcheck
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/purcc/getforcheck'
,
params
),
getforcheck
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/purcc/getforcheck'
,
params
),
// 到货检验确认
// 到货检验确认
purcccheck
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/purcc/check'
,
params
),
purcccheck
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/purcc/check'
,
params
),
// 查询进货单创建列表
// 查询进货单创建列表
getforcreate
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/purtg/getforcreate'
,
params
),
getforcreate
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/purtg/getforcreate'
,
params
),
// 创建进货单
// 创建进货单
purtgcreate
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/purtg/create'
,
params
),
purtgcreate
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/purtg/create'
,
params
),
// 委外进货打印查询
// 委外进货打印查询
mocthgetforprint
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mocth/getforprint'
,
params
),
mocthgetforprint
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/mocth/getforprint'
,
params
),
// 委外进货打印
// 委外进货打印
mocthprint
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mocth/print'
,
params
),
mocthprint
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/mocth/print'
,
params
),
// 委外检验查询
// 委外检验查询
mocthgetforcheck
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mocth/getforcheck'
,
params
),
mocthgetforcheck
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/mocth/getforcheck'
,
params
),
// 委外检验确认
// 委外检验确认
mocthcheck
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mocth/check'
,
params
),
mocthcheck
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/mocth/check'
,
params
),
// 委外扫码上架
// 委外扫码上架
mocthgetforputon
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mocth/getforputon'
,
params
),
mocthgetforputon
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/mocth/getforputon'
,
params
),
// 委外扫码上架
// 委外扫码上架
mocthputon
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mocth/puton'
,
params
),
mocthputon
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/mocth/puton'
,
params
),
// 领料单查询
// 领料单查询
moctcgetforcreate
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/moctc/getforcreate'
,
params
),
moctcgetforcreate
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/moctc/getforcreate'
,
params
),
// 领料单创建
// 领料单创建
moctccreate
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/moctc/create'
,
params
),
moctccreate
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/moctc/create'
,
params
),
// 品号信息
// 品号信息
getforinvmbinfo
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/invmb/getforinvmbinfo'
,
params
),
getforinvmbinfo
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/invmb/getforinvmbinfo'
,
params
),
// 入库单创建
// 入库单创建
createforstorage
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/sfctb/createforstorage'
,
params
),
createforstorage
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/sfctb/createforstorage'
,
params
),
stockSaleOutList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/stockSaleOut/list'
,
params
),
stockSaleOutList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/stockSaleOut/list'
,
params
),
stockList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/stockSaleOut/stockList'
,
params
),
stockList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/stockSaleOut/stockList'
,
params
),
confirmStock
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/stockSaleOut/confirm'
,
params
),
confirmStock
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/stockSaleOut/confirm'
,
params
),
getforinvmlinfo
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/invml/getforinvmlinfo'
,
params
),
getforinvmlinfo
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/invml/getforinvmlinfo'
,
params
),
validateArrival
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/stockArrival/validate'
,
params
),
validateArrival
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/stockArrival/validate'
,
params
),
confirmArrival
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/stockArrival/confirm'
,
params
),
confirmArrival
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/stockArrival/confirm'
,
params
),
warehouseList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/warehouseArrive/list'
,
params
),
warehouseList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/warehouseArrive/list'
,
params
),
// 查询产品库存
// 查询产品库存
getforinvmlinfoApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/invml/getforinvmlinfo'
,
params
),
getforinvmlinfoApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/invml/getforinvmlinfo'
,
params
),
// 新增库存交易单
// 新增库存交易单
stockConfirmApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/stockTaking/confirm'
,
params
),
stockConfirmApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/stockTaking/confirm'
,
params
),
// 调拨确认
// 调拨确认
transferConfirmApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/stockAllocate/confirm'
,
params
),
transferConfirmApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/stockAllocate/confirm'
,
params
),
// 仓库查询
// 仓库查询
getWarehouseListApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/cmsmc/getCmsmcList'
,
params
),
getWarehouseListApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/cmsmc/getCmsmcList'
,
params
),
// 库位查询
// 库位查询
getStorageListApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/cmsni/getCmsniList'
,
params
),
getStorageListApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
uni
.
getStorageSync
(
'apiUrl'
)
+
'/cmsni/getCmsniList'
,
params
),
};
};
}
}
...
...
pages/sys/login/login.vue
View file @
a25136a2
...
@@ -85,10 +85,15 @@ import {setLocal} from '@/lang'
...
@@ -85,10 +85,15 @@ import {setLocal} from '@/lang'
value
:
item
.
id
value
:
item
.
id
}
}
});
});
this
.
loginForm
.
company
=
this
.
factoryData
[
0
].
value
uni
.
setStorageSync
(
'mesUrl'
,
this
.
factoryData
[
0
].
mesUrl
)
uni
.
setStorageSync
(
'apiUrl'
,
this
.
factoryData
[
0
].
apiUrl
)
})
})
},
},
handleChange
(
val
)
{
handleChange
(
val
)
{
config
.
baseUrl
=
val
.
mesUrl
;
config
.
baseUrl
=
val
.
mesUrl
;
uni
.
setStorageSync
(
'mesUrl'
,
val
.
mesUrl
)
uni
.
setStorageSync
(
'apiUrl'
,
val
.
apiUrl
)
},
},
submit
(){
submit
(){
this
.
$refs
.
loginForm
.
validate
().
then
(
valid
=>
{
this
.
$refs
.
loginForm
.
validate
().
then
(
valid
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment