Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
police-jyzb-vue-hz
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
Tian
police-jyzb-vue-hz
Commits
e1ad6fb6
Commit
e1ad6fb6
authored
Sep 20, 2022
by
T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化统一加密处理
parent
4e664332
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
131 行增加
和
120 行删除
+131
-120
index.js
config/index.js
+1
-1
index.html
index.html
+2
-2
index.vue
src/views/base/houseBaseInfo/index.vue
+10
-9
MyTask.vue
src/views/dashboard/MyTask.vue
+31
-30
common.vue
src/views/notice/main/common.vue
+23
-22
rebackTable.vue
src/views/notice/main/rebackTable.vue
+11
-10
index.vue
src/views/system/threshold/index.vue
+5
-3
index.vue
src/views/system/video/index.vue
+3
-2
form.vue
src/views/warehouse/equipmentall/form.vue
+11
-10
warehouseLog.vue
src/views/warehouse/inAndOut/warehouseLog.vue
+11
-10
common.vue
src/views/warehouse/inAndOutMang/common.vue
+11
-10
index.vue
src/views/warehouse/overtime/index.vue
+12
-11
没有找到文件。
config/index.js
View file @
e1ad6fb6
...
...
@@ -32,7 +32,7 @@ module.exports = {
},
// Various Dev Server settings
host
:
'192.168.2.
4
4'
,
// can be overwritten by process.env.HOST
host
:
'192.168.2.
10
4'
,
// can be overwritten by process.env.HOST
port
:
9998
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser
:
true
,
errorOverlay
:
true
,
...
...
index.html
View file @
e1ad6fb6
...
...
@@ -9,8 +9,8 @@
<!-- 全局配置 -->
<script>
window
.
_CONFIG
=
{};
window
.
_CONFIG
[
'serviceURL'
]
=
'http://192.168.2.1
12
:5000'
;
window
.
_CONFIG
[
'userURL'
]
=
'http://192.168.2.1
12
:10004'
;
window
.
_CONFIG
[
'serviceURL'
]
=
'http://192.168.2.1
05
:5000'
;
window
.
_CONFIG
[
'userURL'
]
=
'http://192.168.2.1
05
:10004'
;
// window._CONFIG['serviceURL'] = 'http://41.190.20.132:5000';
// window._CONFIG['userURL'] = 'http://41.190.20.132:10004';
</script>
...
...
src/views/base/houseBaseInfo/index.vue
View file @
e1ad6fb6
...
...
@@ -188,6 +188,7 @@ import ReceiveDetail from '@/views/warehouse/receive/apply/detailForm'
import
ReturnOtherDetail
from
'@/views/warehouse/returnOther/list/form'
import
RemoteDoor
from
'./remoteDoor'
import
md5
from
'js-md5'
import
{
transform
}
from
'@/utils/index'
export
default
{
name
:
'HouseBaseInfo'
,
components
:
{
eForm
,
hForm
,
BorrowDetail
,
BorrowOtherDetail
,
TransferDetail
,
ReceiveDetail
,
ReturnOtherDetail
,
RemoteDoor
},
...
...
@@ -497,15 +498,15 @@ export default {
if
(
row
.
orderType
==
'库存调拨'
)
{
params
.
type
=
'调拨'
}
if
(
row
.
orderType
==
'跨库借用'
)
{
params
.
type
=
'跨库借用'
}
if
(
row
.
orderType
==
'跨库归还'
)
{
params
.
type
=
'跨库归还'
}
var
data
=
{
appKey
:
'odykzzWm1GASj15K1AGxwQ=='
,
orgId
:
''
,
version
:
'1.0'
,
timestamp
:
parseInt
(
new
Date
().
getTime
()
/
1000
),
body
:
escape
(
JSON
.
stringify
(
params
)),
sign
:
md5
(
'a1dca4cf35a6d460128f5e4ad401b1c1'
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
'1.0'
+
escape
(
JSON
.
stringify
(
params
)))
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
row
.
orderType
]
,
data
).
then
(
res
=>
{
//
var data = {
//
appKey: 'odykzzWm1GASj15K1AGxwQ==',
//
orgId: '',
//
version: '1.0',
//
timestamp: parseInt(new Date().getTime()/1000),
//
body: escape(JSON.stringify(params)),
//
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+escape(JSON.stringify(params)))
//
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
row
.
orderType
]
,
transform
(
params
)
).
then
(
res
=>
{
if
(
res
.
code
==
'10000'
)
{
_this
.
form
=
res
.
data
_this
.
getSteps
(
res
.
data
.
flowType
,
res
.
data
.
orgId
)
...
...
src/views/dashboard/MyTask.vue
View file @
e1ad6fb6
...
...
@@ -218,6 +218,7 @@ import ScrapApproval from "@/views/rms/scrap/scrapApproval/form";
import
PurseApproval
from
"@/views/purse/approval/form"
;
import
ReturnOtherApproval
from
"@/views/warehouse/returnOther/approval/form"
;
import
InventoryReturnApproval
from
"@/views/warehouse/inventoryReturn/approval/form"
;
import
{
transform
}
from
'@/utils/index'
export
default
{
data
()
{
...
...
@@ -379,22 +380,22 @@ export default {
}
// if (data.flowType == 'borrowOther') { params.type = '跨库借用' }
// if (data.flowType == 'returnOther') { params.type = '跨库归还' }
var
fsdata
=
{
appKey
:
"odykzzWm1GASj15K1AGxwQ=="
,
orgId
:
""
,
version
:
"1.0"
,
timestamp
:
parseInt
(
new
Date
().
getTime
()
/
1000
),
body
:
escape
(
JSON
.
stringify
(
params
)),
sign
:
md5
(
"a1dca4cf35a6d460128f5e4ad401b1c1"
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
"1.0"
+
escape
(
JSON
.
stringify
(
params
))
),
};
//
var fsdata = {
//
appKey: "odykzzWm1GASj15K1AGxwQ==",
//
orgId: "",
//
version: "1.0",
//
timestamp: parseInt(new Date().getTime() / 1000),
//
body: escape(JSON.stringify(params)),
//
sign: md5(
//
"a1dca4cf35a6d460128f5e4ad401b1c1" +
//
parseInt(new Date().getTime() / 1000) +
//
"1.0" +
//
escape(JSON.stringify(params))
//
),
//
};
initPdata
(
window
.
_CONFIG
[
"serviceURL"
]
+
this
.
processUrl
[
data
.
flowType
],
fsdata
transform
(
params
)
).
then
((
res
)
=>
{
if
(
res
.
code
==
"10000"
)
{
_this
.
form
=
res
.
data
;
...
...
@@ -414,24 +415,24 @@ export default {
)
{
params
.
type
=
"调拨"
;
}
//
if (data.flowType == 'borrowOther') { params.type = '跨库借用' }
//
if (data.flowType == 'returnOther') { params.type = '跨库归还' }
var
fsdata
=
{
appKey
:
"odykzzWm1GASj15K1AGxwQ=="
,
orgId
:
""
,
version
:
"1.0"
,
timestamp
:
parseInt
(
new
Date
().
getTime
()
/
1000
),
body
:
escape
(
JSON
.
stringify
(
params
)),
sign
:
md5
(
"a1dca4cf35a6d460128f5e4ad401b1c1"
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
"1.0"
+
escape
(
JSON
.
stringify
(
params
))
),
};
if
(
data
.
flowType
==
'borrowOther'
)
{
params
.
type
=
'跨库借用'
}
if
(
data
.
flowType
==
'returnOther'
)
{
params
.
type
=
'跨库归还'
}
//
var fsdata = {
//
appKey: "odykzzWm1GASj15K1AGxwQ==",
//
orgId: "",
//
version: "1.0",
//
timestamp: parseInt(new Date().getTime() / 1000),
//
body: escape(JSON.stringify(params)),
//
sign: md5(
//
"a1dca4cf35a6d460128f5e4ad401b1c1" +
//
parseInt(new Date().getTime() / 1000) +
//
"1.0" +
//
escape(JSON.stringify(params))
//
),
//
};
initPdata
(
window
.
_CONFIG
[
"serviceURL"
]
+
this
.
processUrl
[
data
.
flowType
],
fsdata
transform
(
params
)
).
then
((
res
)
=>
{
if
(
res
.
code
==
"10000"
)
{
_this
.
eForm
=
res
.
data
;
...
...
src/views/notice/main/common.vue
View file @
e1ad6fb6
...
...
@@ -51,8 +51,9 @@
<
script
>
import
initData
from
'@/mixins/initData'
import
{
initPdata
}
from
'@/api/data'
import
{
transform
}
from
'@/utils/index'
import
{
get
as
getDictDetail
}
from
'@/api/dictDetail'
import
md5
from
'js-md5'
//
import md5 from 'js-md5'
import
BorrowDetail
from
'@/views/warehouse/borrow/list/form'
import
PurseDetail
from
'@/views/purse/list/form'
import
RmDetail
from
'@/views/rms/rm/rmList/form'
...
...
@@ -202,18 +203,18 @@ export default {
}
})
}
//
if (this.selectedTab === 'returnOther') {
//
this.$router.push({
//
path: '/order/returnOther',
//
query: {
//
orderId: data.messageInfo
//
}
//
})
//
}
//
var params = {id: data.messageInfo}
//
if (this.selectedTab == 'allocationUp' || this.selectedTab == 'allocationDown') { params.type = '调拨' }
//
if (this.selectedTab == 'borrowOther') { params.type = '跨库借用' }
//
if (this.selectedTab == 'returnOther') { params.type = '跨库归还' }
if
(
this
.
selectedTab
===
'returnOther'
)
{
this
.
$router
.
push
({
path
:
'/order/returnOther'
,
query
:
{
orderId
:
data
.
messageInfo
}
})
}
var
params
=
{
id
:
data
.
messageInfo
}
if
(
this
.
selectedTab
==
'allocationUp'
||
this
.
selectedTab
==
'allocationDown'
)
{
params
.
type
=
'调拨'
}
if
(
this
.
selectedTab
==
'borrowOther'
)
{
params
.
type
=
'跨库借用'
}
if
(
this
.
selectedTab
==
'returnOther'
)
{
params
.
type
=
'跨库归还'
}
// var jpdata = {
// appKey: 'odykzzWm1GASj15K1AGxwQ==',
// orgId: '',
...
...
@@ -222,15 +223,15 @@ export default {
// body: escape(JSON.stringify(params)),
// sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+escape(JSON.stringify(params)))
// }
// initPdata( window._CONFIG['serviceURL'] + this.processUrl[this.selectedTab], jpdata
).then(res => {
//
if(res.code == '10000') {
//
_this.form = res.data
//
_this.getSteps(res.data.flowType,res.data.orgId)
//
} else {
//
this.$message.error(res.msg)
//
}
//
})
//
_this.dialog = true
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
this
.
selectedTab
],
transform
(
params
)
).
then
(
res
=>
{
if
(
res
.
code
==
'10000'
)
{
_this
.
form
=
res
.
data
_this
.
getSteps
(
res
.
data
.
flowType
,
res
.
data
.
orgId
)
}
else
{
this
.
$message
.
error
(
res
.
msg
)
}
})
_this
.
dialog
=
true
}
}
}
...
...
src/views/notice/main/rebackTable.vue
View file @
e1ad6fb6
...
...
@@ -37,7 +37,8 @@
<
script
>
import
initData
from
'@/mixins/initData'
import
{
initPdata
}
from
'@/api/data'
import
md5
from
'js-md5'
import
{
transform
}
from
'@/utils/index'
// import md5 from 'js-md5'
import
{
readMessage
}
from
'@/api/process'
import
BorrowDetail
from
'@/views/warehouse/borrow/list/form'
import
BorrowOtherDetail
from
'@/views/warehouse/borrowOther/list/form'
...
...
@@ -91,15 +92,15 @@ export default {
const
_this
=
this
.
$refs
[
data
.
orderType
]
var
params
=
{
id
:
data
.
messageInfo
}
if
(
data
.
orderType
==
'跨仓库归还提醒'
)
{
params
.
type
=
'跨库借用'
}
var
fsdata
=
{
appKey
:
'odykzzWm1GASj15K1AGxwQ=='
,
orgId
:
''
,
version
:
'1.0'
,
timestamp
:
parseInt
(
new
Date
().
getTime
()
/
1000
),
body
:
escape
(
JSON
.
stringify
(
params
)),
sign
:
md5
(
'a1dca4cf35a6d460128f5e4ad401b1c1'
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
'1.0'
+
escape
(
JSON
.
stringify
(
params
)))
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
data
.
orderType
],
fsdata
).
then
(
res
=>
{
//
var fsdata = {
//
appKey: 'odykzzWm1GASj15K1AGxwQ==',
//
orgId: '',
//
version: '1.0',
//
timestamp: parseInt(new Date().getTime()/1000),
//
body: escape(JSON.stringify(params)),
//
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+escape(JSON.stringify(params)))
//
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
data
.
orderType
],
transform
(
params
)
).
then
(
res
=>
{
if
(
res
.
code
==
'10000'
)
{
_this
.
form
=
res
.
data
_this
.
getSteps
(
res
.
data
.
flowType
,
res
.
data
.
orgId
)
...
...
src/views/system/threshold/index.vue
View file @
e1ad6fb6
...
...
@@ -56,6 +56,7 @@
</template>
<
script
>
import
{
transform
}
from
'@/utils/index'
import
md5
from
'js-md5'
import
initData
from
'@/mixins/initData'
import
{
initPdata
}
from
'@/api/data'
...
...
@@ -69,7 +70,8 @@ export default {
return
{
orgId
:
this
.
$store
.
state
.
user
.
user
.
baseJpOrganization
.
id
,
span
:
24
,
delLoading
:
false
delLoading
:
false
,
params
:
this
.
params
}
},
created
()
{
...
...
@@ -97,7 +99,7 @@ export default {
body
:
escape
(
JSON
.
stringify
(
this
.
params
)),
sign
:
md5
(
'a1dca4cf35a6d460128f5e4ad401b1c1'
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
'1.0'
+
escape
(
JSON
.
stringify
(
this
.
params
)))
}
initPdata
(
this
.
url
,
jydata
).
then
(
res
=>
{
initPdata
(
this
.
url
,
jydata
).
then
(
res
=>
{
if
(
res
.
code
===
'10000'
)
{
this
.
data
=
res
.
data
this
.
span
=
24
/
res
.
data
.
warehouseData
.
length
...
...
@@ -132,7 +134,7 @@ export default {
},
subDelete
(
id
)
{
this
.
delLoading
=
true
const
_this
=
this
const
_this
=
this
.
$refs
.
form
deleteThreshold
({
id
:
id
}).
then
(
res
=>
{
if
(
res
.
code
===
'10000'
)
{
this
.
delLoading
=
false
...
...
src/views/system/video/index.vue
View file @
e1ad6fb6
...
...
@@ -39,7 +39,8 @@
import
{
getListOrg
}
from
'@/api/org'
import
initData
from
'@/mixins/initData'
import
{
initPdata
}
from
'@/api/data'
import
md5
from
'js-md5'
import
{
transform
}
from
'@/utils/index'
// import md5 from 'js-md5'
export
default
{
name
:
'video'
,
mixins
:
[
initData
],
...
...
@@ -87,7 +88,7 @@ export default {
body
:
escape
(
JSON
.
stringify
(
this
.
params
)),
sign
:
md5
(
'a1dca4cf35a6d460128f5e4ad401b1c1'
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
'1.0'
+
escape
(
JSON
.
stringify
(
this
.
params
)))
}
initPdata
(
this
.
url
,
jydata
).
then
(
res
=>
{
initPdata
(
this
.
url
,
transform
(
params
)
).
then
(
res
=>
{
if
(
res
.
code
===
'10000'
)
{
this
.
total
=
res
.
data
.
totalElements
this
.
data
=
res
.
data
.
content
...
...
src/views/warehouse/equipmentall/form.vue
View file @
e1ad6fb6
...
...
@@ -25,7 +25,8 @@
<
script
>
import
detailForm
from
'@/views/warehouse/stock/detail'
import
{
initData
,
initPdata
,
initGdata
}
from
'@/api/data'
import
md5
from
'js-md5'
import
{
transform
}
from
'@/utils/index'
// import md5 from 'js-md5'
export
default
{
components
:{
detailForm
...
...
@@ -51,15 +52,15 @@ export default {
async
initPost
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
loading
=
true
var
jydata
=
{
appKey
:
'odykzzWm1GASj15K1AGxwQ=='
,
orgId
:
''
,
version
:
'1.0'
,
timestamp
:
parseInt
(
new
Date
().
getTime
()
/
1000
),
body
:
escape
(
JSON
.
stringify
(
this
.
params
)),
sign
:
md5
(
'a1dca4cf35a6d460128f5e4ad401b1c1'
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
'1.0'
+
escape
(
JSON
.
stringify
(
this
.
params
)))
}
initPdata
(
this
.
url
,
jydata
).
then
(
res
=>
{
//
var jydata = {
//
appKey: 'odykzzWm1GASj15K1AGxwQ==',
//
orgId: '',
//
version: '1.0',
//
timestamp: parseInt(new Date().getTime()/1000),
//
body: escape(JSON.stringify(this.params)),
//
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+escape(JSON.stringify(this.params)))
//
}
initPdata
(
this
.
url
,
transform
(
params
)
).
then
(
res
=>
{
if
(
res
.
code
===
'10000'
)
{
this
.
data
=
res
.
data
setTimeout
(()
=>
{
...
...
src/views/warehouse/inAndOut/warehouseLog.vue
View file @
e1ad6fb6
...
...
@@ -120,7 +120,8 @@ import { mapGetters } from 'vuex'
import
equInfoDetail
from
'@/views/warehouse/maintenance/form'
import
{
getInfoByID
}
from
'@/api/inventory'
import
{
initPdata
}
from
'@/api/data'
import
md5
from
'js-md5'
import
{
transform
}
from
'@/utils/index'
// import md5 from 'js-md5'
import
BorrowDetail
from
'@/views/warehouse/borrow/list/form'
import
PurseDetail
from
'@/views/purse/list/form'
import
RmDetail
from
'@/views/rms/rm/rmList/form'
...
...
@@ -257,15 +258,15 @@ export default {
if
(
data
.
actionState
==
'4'
)
{
params
.
type
=
'调拨'
}
if
(
data
.
actionState
==
'15'
||
data
.
actionState
==
'16'
)
{
params
.
type
=
'跨库借用'
}
if
(
data
.
actionState
==
'17'
||
data
.
actionState
==
'18'
)
{
params
.
type
=
'跨库归还'
}
var
hqdata
=
{
appKey
:
'odykzzWm1GASj15K1AGxwQ=='
,
orgId
:
''
,
version
:
'1.0'
,
timestamp
:
parseInt
(
new
Date
().
getTime
()
/
1000
),
body
:
escape
(
JSON
.
stringify
(
params
)),
sign
:
md5
(
'a1dca4cf35a6d460128f5e4ad401b1c1'
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
'1.0'
+
escape
(
JSON
.
stringify
(
params
)))
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
'p'
+
data
.
actionState
],
hqdata
).
then
(
res
=>
{
//
var hqdata = {
//
appKey: 'odykzzWm1GASj15K1AGxwQ==',
//
orgId: '',
//
version: '1.0',
//
timestamp: parseInt(new Date().getTime()/1000),
//
body: escape(JSON.stringify(params)),
//
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+escape(JSON.stringify(params)))
//
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
'p'
+
data
.
actionState
],
transform
(
params
)
).
then
(
res
=>
{
if
(
res
.
code
==
'10000'
)
{
_this
.
form
=
res
.
data
_this
.
getSteps
(
res
.
data
.
flowType
,
res
.
data
.
orgId
)
...
...
src/views/warehouse/inAndOutMang/common.vue
View file @
e1ad6fb6
...
...
@@ -98,7 +98,8 @@
import
initData
from
'@/mixins/initData'
import
{
initPdata
}
from
'@/api/data'
import
{
borrowTransfer
}
from
'@/api/borrow'
import
md5
from
'js-md5'
import
{
transform
}
from
'@/utils/index'
// import md5 from 'js-md5'
import
BorrowDetail
from
'@/views/warehouse/borrow/list/form'
import
PurseDetail
from
'@/views/purse/list/form'
import
RmDetail
from
'@/views/rms/rm/rmList/form'
...
...
@@ -185,15 +186,15 @@ export default {
if
(
data
.
type
==
'0'
||
data
.
type
==
'4'
)
{
params
.
type
=
'调拨'
}
if
(
data
.
type
==
'7'
||
data
.
type
==
'8'
)
{
params
.
type
=
'跨库借用'
}
if
(
data
.
type
==
'9'
||
data
.
type
==
'10'
)
{
params
.
type
=
'跨库归还'
}
var
hqdata
=
{
appKey
:
'odykzzWm1GASj15K1AGxwQ=='
,
orgId
:
''
,
version
:
'1.0'
,
timestamp
:
parseInt
(
new
Date
().
getTime
()
/
1000
),
body
:
escape
(
JSON
.
stringify
(
params
)),
sign
:
md5
(
'a1dca4cf35a6d460128f5e4ad401b1c1'
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
'1.0'
+
escape
(
JSON
.
stringify
(
params
)))
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
'p'
+
data
.
type
],
hqdata
).
then
(
res
=>
{
//
var hqdata = {
//
appKey: 'odykzzWm1GASj15K1AGxwQ==',
//
orgId: '',
//
version: '1.0',
//
timestamp: parseInt(new Date().getTime()/1000),
//
body: escape(JSON.stringify(params)),
//
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+escape(JSON.stringify(params)))
//
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
'p'
+
data
.
type
],
transform
(
params
)
).
then
(
res
=>
{
if
(
res
.
code
==
'10000'
)
{
_this
.
form
=
res
.
data
_this
.
getSteps
(
res
.
data
.
flowType
,
res
.
data
.
orgId
)
...
...
src/views/warehouse/overtime/index.vue
View file @
e1ad6fb6
...
...
@@ -47,8 +47,9 @@ import initData from '@/mixins/initData'
import
BorrowMy
from
'@/views/warehouse/borrow/list/form'
import
BorrowOther
from
'@/views/warehouse/borrowOther/list/form'
import
{
initPdata
}
from
'@/api/data'
import
{
readMessage
,
getMessageCount
}
from
'@/api/process'
import
md5
from
'js-md5'
// import { readMessage, getMessageCount } from '@/api/process'
// import md5 from 'js-md5'
import
{
transform
}
from
'@/utils/index'
export
default
{
name
:
'OverTime'
,
components
:
{
BorrowMy
,
BorrowOther
},
...
...
@@ -107,15 +108,15 @@ export default {
// })
const
_this
=
this
.
$refs
[
data
.
borrowType
]
var
params
=
{
id
:
data
.
id
}
var
jpdata
=
{
appKey
:
'odykzzWm1GASj15K1AGxwQ=='
,
orgId
:
''
,
version
:
'1.0'
,
timestamp
:
parseInt
(
new
Date
().
getTime
()
/
1000
),
body
:
escape
(
JSON
.
stringify
(
params
)),
sign
:
md5
(
'a1dca4cf35a6d460128f5e4ad401b1c1'
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
'1.0'
+
escape
(
JSON
.
stringify
(
params
)))
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
data
.
borrowType
]
,
jpdata
).
then
(
res
=>
{
//
var jpdata = {
//
appKey: 'odykzzWm1GASj15K1AGxwQ==',
//
orgId: '',
//
version: '1.0',
//
timestamp: parseInt(new Date().getTime()/1000),
//
body: escape(JSON.stringify(params)),
//
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+escape(JSON.stringify(params)))
//
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
data
.
borrowType
]
,
transform
(
params
)
).
then
(
res
=>
{
if
(
res
.
code
==
'10000'
)
{
_this
.
form
=
res
.
data
_this
.
getSteps
(
res
.
data
.
flowType
,
res
.
data
.
orgId
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论