Commit e1ad6fb6 by T

优化统一加密处理

parent 4e664332
...@@ -32,7 +32,7 @@ module.exports = { ...@@ -32,7 +32,7 @@ module.exports = {
}, },
// Various Dev Server settings // Various Dev Server settings
host: '192.168.2.44', // can be overwritten by process.env.HOST host: '192.168.2.104', // 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 port: 9998, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true, autoOpenBrowser: true,
errorOverlay: true, errorOverlay: true,
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
<!-- 全局配置 --> <!-- 全局配置 -->
<script> <script>
window._CONFIG = {}; window._CONFIG = {};
window._CONFIG['serviceURL'] = 'http://192.168.2.112:5000'; window._CONFIG['serviceURL'] = 'http://192.168.2.105:5000';
window._CONFIG['userURL'] = 'http://192.168.2.112:10004'; window._CONFIG['userURL'] = 'http://192.168.2.105:10004';
// window._CONFIG['serviceURL'] = 'http://41.190.20.132:5000'; // window._CONFIG['serviceURL'] = 'http://41.190.20.132:5000';
// window._CONFIG['userURL'] = 'http://41.190.20.132:10004'; // window._CONFIG['userURL'] = 'http://41.190.20.132:10004';
</script> </script>
......
...@@ -188,6 +188,7 @@ import ReceiveDetail from '@/views/warehouse/receive/apply/detailForm' ...@@ -188,6 +188,7 @@ import ReceiveDetail from '@/views/warehouse/receive/apply/detailForm'
import ReturnOtherDetail from '@/views/warehouse/returnOther/list/form' import ReturnOtherDetail from '@/views/warehouse/returnOther/list/form'
import RemoteDoor from './remoteDoor' import RemoteDoor from './remoteDoor'
import md5 from 'js-md5' import md5 from 'js-md5'
import { transform } from '@/utils/index'
export default { export default {
name: 'HouseBaseInfo', name: 'HouseBaseInfo',
components: { eForm, hForm, BorrowDetail, BorrowOtherDetail, TransferDetail, ReceiveDetail, ReturnOtherDetail, RemoteDoor }, components: { eForm, hForm, BorrowDetail, BorrowOtherDetail, TransferDetail, ReceiveDetail, ReturnOtherDetail, RemoteDoor },
...@@ -497,15 +498,15 @@ export default { ...@@ -497,15 +498,15 @@ export default {
if (row.orderType == '库存调拨') { params.type = '调拨' } if (row.orderType == '库存调拨') { params.type = '调拨' }
if (row.orderType == '跨库借用') { params.type = '跨库借用' } if (row.orderType == '跨库借用') { params.type = '跨库借用' }
if (row.orderType == '跨库归还') { params.type = '跨库归还' } if (row.orderType == '跨库归还') { params.type = '跨库归还' }
var data = { // var data = {
appKey: 'odykzzWm1GASj15K1AGxwQ==', // appKey: 'odykzzWm1GASj15K1AGxwQ==',
orgId: '', // orgId: '',
version: '1.0', // version: '1.0',
timestamp: parseInt(new Date().getTime()/1000), // timestamp: parseInt(new Date().getTime()/1000),
body: escape(JSON.stringify(params)), // body: escape(JSON.stringify(params)),
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+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 => { initPdata( window._CONFIG['serviceURL'] + this.processUrl[row.orderType] ,transform(params)).then(res => {
if(res.code == '10000') { if(res.code == '10000') {
_this.form = res.data _this.form = res.data
_this.getSteps(res.data.flowType, res.data.orgId) _this.getSteps(res.data.flowType, res.data.orgId)
......
...@@ -218,6 +218,7 @@ import ScrapApproval from "@/views/rms/scrap/scrapApproval/form"; ...@@ -218,6 +218,7 @@ import ScrapApproval from "@/views/rms/scrap/scrapApproval/form";
import PurseApproval from "@/views/purse/approval/form"; import PurseApproval from "@/views/purse/approval/form";
import ReturnOtherApproval from "@/views/warehouse/returnOther/approval/form"; import ReturnOtherApproval from "@/views/warehouse/returnOther/approval/form";
import InventoryReturnApproval from "@/views/warehouse/inventoryReturn/approval/form"; import InventoryReturnApproval from "@/views/warehouse/inventoryReturn/approval/form";
import { transform } from '@/utils/index'
export default { export default {
data() { data() {
...@@ -379,22 +380,22 @@ export default { ...@@ -379,22 +380,22 @@ export default {
} }
// if (data.flowType == 'borrowOther') { params.type = '跨库借用' } // if (data.flowType == 'borrowOther') { params.type = '跨库借用' }
// if (data.flowType == 'returnOther') { params.type = '跨库归还' } // if (data.flowType == 'returnOther') { params.type = '跨库归还' }
var fsdata = { // var fsdata = {
appKey: "odykzzWm1GASj15K1AGxwQ==", // appKey: "odykzzWm1GASj15K1AGxwQ==",
orgId: "", // orgId: "",
version: "1.0", // version: "1.0",
timestamp: parseInt(new Date().getTime() / 1000), // timestamp: parseInt(new Date().getTime() / 1000),
body: escape(JSON.stringify(params)), // body: escape(JSON.stringify(params)),
sign: md5( // sign: md5(
"a1dca4cf35a6d460128f5e4ad401b1c1" + // "a1dca4cf35a6d460128f5e4ad401b1c1" +
parseInt(new Date().getTime() / 1000) + // parseInt(new Date().getTime() / 1000) +
"1.0" + // "1.0" +
escape(JSON.stringify(params)) // escape(JSON.stringify(params))
), // ),
}; // };
initPdata( initPdata(
window._CONFIG["serviceURL"] + this.processUrl[data.flowType], window._CONFIG["serviceURL"] + this.processUrl[data.flowType],
fsdata transform(params)
).then((res) => { ).then((res) => {
if (res.code == "10000") { if (res.code == "10000") {
_this.form = res.data; _this.form = res.data;
...@@ -414,24 +415,24 @@ export default { ...@@ -414,24 +415,24 @@ export default {
) { ) {
params.type = "调拨"; params.type = "调拨";
} }
// if (data.flowType == 'borrowOther') { params.type = '跨库借用' } if (data.flowType == 'borrowOther') { params.type = '跨库借用' }
// if (data.flowType == 'returnOther') { params.type = '跨库归还' } if (data.flowType == 'returnOther') { params.type = '跨库归还' }
var fsdata = { // var fsdata = {
appKey: "odykzzWm1GASj15K1AGxwQ==", // appKey: "odykzzWm1GASj15K1AGxwQ==",
orgId: "", // orgId: "",
version: "1.0", // version: "1.0",
timestamp: parseInt(new Date().getTime() / 1000), // timestamp: parseInt(new Date().getTime() / 1000),
body: escape(JSON.stringify(params)), // body: escape(JSON.stringify(params)),
sign: md5( // sign: md5(
"a1dca4cf35a6d460128f5e4ad401b1c1" + // "a1dca4cf35a6d460128f5e4ad401b1c1" +
parseInt(new Date().getTime() / 1000) + // parseInt(new Date().getTime() / 1000) +
"1.0" + // "1.0" +
escape(JSON.stringify(params)) // escape(JSON.stringify(params))
), // ),
}; // };
initPdata( initPdata(
window._CONFIG["serviceURL"] + this.processUrl[data.flowType], window._CONFIG["serviceURL"] + this.processUrl[data.flowType],
fsdata transform(params)
).then((res) => { ).then((res) => {
if (res.code == "10000") { if (res.code == "10000") {
_this.eForm = res.data; _this.eForm = res.data;
......
...@@ -51,8 +51,9 @@ ...@@ -51,8 +51,9 @@
<script> <script>
import initData from '@/mixins/initData' import initData from '@/mixins/initData'
import { initPdata } from '@/api/data' import { initPdata } from '@/api/data'
import { transform } from '@/utils/index'
import { get as getDictDetail } from '@/api/dictDetail' 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 BorrowDetail from '@/views/warehouse/borrow/list/form'
import PurseDetail from '@/views/purse/list/form' import PurseDetail from '@/views/purse/list/form'
import RmDetail from '@/views/rms/rm/rmList/form' import RmDetail from '@/views/rms/rm/rmList/form'
...@@ -202,18 +203,18 @@ export default { ...@@ -202,18 +203,18 @@ export default {
} }
}) })
} }
// if (this.selectedTab === 'returnOther') { if (this.selectedTab === 'returnOther') {
// this.$router.push({ this.$router.push({
// path: '/order/returnOther', path: '/order/returnOther',
// query: { query: {
// orderId: data.messageInfo orderId: data.messageInfo
// } }
// }) })
// } }
// var params = {id: data.messageInfo} var params = {id: data.messageInfo}
// if (this.selectedTab == 'allocationUp' || this.selectedTab == 'allocationDown') { params.type = '调拨' } if (this.selectedTab == 'allocationUp' || this.selectedTab == 'allocationDown') { params.type = '调拨' }
// if (this.selectedTab == 'borrowOther') { params.type = '跨库借用' } if (this.selectedTab == 'borrowOther') { params.type = '跨库借用' }
// if (this.selectedTab == 'returnOther') { params.type = '跨库归还' } if (this.selectedTab == 'returnOther') { params.type = '跨库归还' }
// var jpdata = { // var jpdata = {
// appKey: 'odykzzWm1GASj15K1AGxwQ==', // appKey: 'odykzzWm1GASj15K1AGxwQ==',
// orgId: '', // orgId: '',
...@@ -222,15 +223,15 @@ export default { ...@@ -222,15 +223,15 @@ export default {
// body: escape(JSON.stringify(params)), // body: escape(JSON.stringify(params)),
// sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+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 => { initPdata( window._CONFIG['serviceURL'] + this.processUrl[this.selectedTab], transform(params)).then(res => {
// if(res.code == '10000') { if(res.code == '10000') {
// _this.form = res.data _this.form = res.data
// _this.getSteps(res.data.flowType,res.data.orgId) _this.getSteps(res.data.flowType,res.data.orgId)
// } else { } else {
// this.$message.error(res.msg) this.$message.error(res.msg)
// } }
// }) })
// _this.dialog = true _this.dialog = true
} }
} }
} }
......
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
<script> <script>
import initData from '@/mixins/initData' import initData from '@/mixins/initData'
import { initPdata } from '@/api/data' 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 { readMessage } from '@/api/process'
import BorrowDetail from '@/views/warehouse/borrow/list/form' import BorrowDetail from '@/views/warehouse/borrow/list/form'
import BorrowOtherDetail from '@/views/warehouse/borrowOther/list/form' import BorrowOtherDetail from '@/views/warehouse/borrowOther/list/form'
...@@ -91,15 +92,15 @@ export default { ...@@ -91,15 +92,15 @@ export default {
const _this = this.$refs[data.orderType] const _this = this.$refs[data.orderType]
var params = {id: data.messageInfo} var params = {id: data.messageInfo}
if (data.orderType == '跨仓库归还提醒') { params.type = '跨库借用' } if (data.orderType == '跨仓库归还提醒') { params.type = '跨库借用' }
var fsdata = { // var fsdata = {
appKey: 'odykzzWm1GASj15K1AGxwQ==', // appKey: 'odykzzWm1GASj15K1AGxwQ==',
orgId: '', // orgId: '',
version: '1.0', // version: '1.0',
timestamp: parseInt(new Date().getTime()/1000), // timestamp: parseInt(new Date().getTime()/1000),
body: escape(JSON.stringify(params)), // body: escape(JSON.stringify(params)),
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+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 => { initPdata( window._CONFIG['serviceURL'] + this.processUrl[data.orderType], transform(params)).then(res => {
if(res.code == '10000') { if(res.code == '10000') {
_this.form = res.data _this.form = res.data
_this.getSteps(res.data.flowType, res.data.orgId) _this.getSteps(res.data.flowType, res.data.orgId)
......
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
</template> </template>
<script> <script>
import { transform } from '@/utils/index'
import md5 from 'js-md5' import md5 from 'js-md5'
import initData from '@/mixins/initData' import initData from '@/mixins/initData'
import { initPdata } from '@/api/data' import { initPdata } from '@/api/data'
...@@ -69,7 +70,8 @@ export default { ...@@ -69,7 +70,8 @@ export default {
return { return {
orgId: this.$store.state.user.user.baseJpOrganization.id, orgId: this.$store.state.user.user.baseJpOrganization.id,
span: 24, span: 24,
delLoading: false delLoading: false,
params:this.params
} }
}, },
created() { created() {
...@@ -97,7 +99,7 @@ export default { ...@@ -97,7 +99,7 @@ export default {
body: escape(JSON.stringify(this.params)), body: escape(JSON.stringify(this.params)),
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+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') { if (res.code === '10000') {
this.data = res.data this.data = res.data
this.span = 24 / res.data.warehouseData.length this.span = 24 / res.data.warehouseData.length
...@@ -132,7 +134,7 @@ export default { ...@@ -132,7 +134,7 @@ export default {
}, },
subDelete(id) { subDelete(id) {
this.delLoading = true this.delLoading = true
const _this = this const _this = this.$refs.form
deleteThreshold({id:id}).then(res => { deleteThreshold({id:id}).then(res => {
if (res.code === '10000') { if (res.code === '10000') {
this.delLoading = false this.delLoading = false
......
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
import { getListOrg } from '@/api/org' import { getListOrg } from '@/api/org'
import initData from '@/mixins/initData' import initData from '@/mixins/initData'
import { initPdata } from '@/api/data' import { initPdata } from '@/api/data'
import md5 from 'js-md5' import { transform } from '@/utils/index'
// import md5 from 'js-md5'
export default { export default {
name: 'video', name: 'video',
mixins: [initData], mixins: [initData],
...@@ -87,7 +88,7 @@ export default { ...@@ -87,7 +88,7 @@ export default {
body: escape(JSON.stringify(this.params)), body: escape(JSON.stringify(this.params)),
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+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') { if (res.code === '10000') {
this.total = res.data.totalElements this.total = res.data.totalElements
this.data = res.data.content this.data = res.data.content
......
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
<script> <script>
import detailForm from '@/views/warehouse/stock/detail' import detailForm from '@/views/warehouse/stock/detail'
import { initData, initPdata, initGdata } from '@/api/data' import { initData, initPdata, initGdata } from '@/api/data'
import md5 from 'js-md5' import { transform } from '@/utils/index'
// import md5 from 'js-md5'
export default { export default {
components:{ components:{
detailForm detailForm
...@@ -51,15 +52,15 @@ export default { ...@@ -51,15 +52,15 @@ export default {
async initPost() { async initPost() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.loading = true this.loading = true
var jydata = { // var jydata = {
appKey: 'odykzzWm1GASj15K1AGxwQ==', // appKey: 'odykzzWm1GASj15K1AGxwQ==',
orgId: '', // orgId: '',
version: '1.0', // version: '1.0',
timestamp: parseInt(new Date().getTime()/1000), // timestamp: parseInt(new Date().getTime()/1000),
body: escape(JSON.stringify(this.params)), // body: escape(JSON.stringify(this.params)),
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+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') { if (res.code === '10000') {
this.data = res.data this.data = res.data
setTimeout(() => { setTimeout(() => {
......
...@@ -120,7 +120,8 @@ import { mapGetters } from 'vuex' ...@@ -120,7 +120,8 @@ import { mapGetters } from 'vuex'
import equInfoDetail from '@/views/warehouse/maintenance/form' import equInfoDetail from '@/views/warehouse/maintenance/form'
import { getInfoByID } from '@/api/inventory' import { getInfoByID } from '@/api/inventory'
import { initPdata } from '@/api/data' 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 BorrowDetail from '@/views/warehouse/borrow/list/form'
import PurseDetail from '@/views/purse/list/form' import PurseDetail from '@/views/purse/list/form'
import RmDetail from '@/views/rms/rm/rmList/form' import RmDetail from '@/views/rms/rm/rmList/form'
...@@ -257,15 +258,15 @@ export default { ...@@ -257,15 +258,15 @@ export default {
if (data.actionState == '4') { params.type = '调拨' } if (data.actionState == '4') { params.type = '调拨' }
if (data.actionState == '15' || data.actionState == '16') { params.type = '跨库借用' } if (data.actionState == '15' || data.actionState == '16') { params.type = '跨库借用' }
if (data.actionState == '17' || data.actionState == '18') { params.type = '跨库归还' } if (data.actionState == '17' || data.actionState == '18') { params.type = '跨库归还' }
var hqdata = { // var hqdata = {
appKey: 'odykzzWm1GASj15K1AGxwQ==', // appKey: 'odykzzWm1GASj15K1AGxwQ==',
orgId: '', // orgId: '',
version: '1.0', // version: '1.0',
timestamp: parseInt(new Date().getTime()/1000), // timestamp: parseInt(new Date().getTime()/1000),
body: escape(JSON.stringify(params)), // body: escape(JSON.stringify(params)),
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+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 => { initPdata( window._CONFIG['serviceURL'] + this.processUrl['p' + data.actionState],transform(params)).then(res => {
if(res.code == '10000') { if(res.code == '10000') {
_this.form = res.data _this.form = res.data
_this.getSteps(res.data.flowType, res.data.orgId) _this.getSteps(res.data.flowType, res.data.orgId)
......
...@@ -98,7 +98,8 @@ ...@@ -98,7 +98,8 @@
import initData from '@/mixins/initData' import initData from '@/mixins/initData'
import { initPdata } from '@/api/data' import { initPdata } from '@/api/data'
import { borrowTransfer } from '@/api/borrow' 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 BorrowDetail from '@/views/warehouse/borrow/list/form'
import PurseDetail from '@/views/purse/list/form' import PurseDetail from '@/views/purse/list/form'
import RmDetail from '@/views/rms/rm/rmList/form' import RmDetail from '@/views/rms/rm/rmList/form'
...@@ -185,15 +186,15 @@ export default { ...@@ -185,15 +186,15 @@ export default {
if (data.type == '0' || data.type == '4') { params.type = '调拨' } if (data.type == '0' || data.type == '4') { params.type = '调拨' }
if (data.type == '7' || data.type == '8') { params.type = '跨库借用' } if (data.type == '7' || data.type == '8') { params.type = '跨库借用' }
if (data.type == '9' || data.type == '10') { params.type = '跨库归还' } if (data.type == '9' || data.type == '10') { params.type = '跨库归还' }
var hqdata = { // var hqdata = {
appKey: 'odykzzWm1GASj15K1AGxwQ==', // appKey: 'odykzzWm1GASj15K1AGxwQ==',
orgId: '', // orgId: '',
version: '1.0', // version: '1.0',
timestamp: parseInt(new Date().getTime()/1000), // timestamp: parseInt(new Date().getTime()/1000),
body: escape(JSON.stringify(params)), // body: escape(JSON.stringify(params)),
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+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 => { initPdata( window._CONFIG['serviceURL'] + this.processUrl['p' + data.type], transform(params)).then(res => {
if(res.code == '10000') { if(res.code == '10000') {
_this.form = res.data _this.form = res.data
_this.getSteps(res.data.flowType,res.data.orgId) _this.getSteps(res.data.flowType,res.data.orgId)
......
...@@ -47,8 +47,9 @@ import initData from '@/mixins/initData' ...@@ -47,8 +47,9 @@ import initData from '@/mixins/initData'
import BorrowMy from '@/views/warehouse/borrow/list/form' import BorrowMy from '@/views/warehouse/borrow/list/form'
import BorrowOther from '@/views/warehouse/borrowOther/list/form' import BorrowOther from '@/views/warehouse/borrowOther/list/form'
import { initPdata } from '@/api/data' import { initPdata } from '@/api/data'
import { readMessage, getMessageCount } from '@/api/process' // import { readMessage, getMessageCount } from '@/api/process'
import md5 from 'js-md5' // import md5 from 'js-md5'
import { transform } from '@/utils/index'
export default { export default {
name: 'OverTime', name: 'OverTime',
components: { BorrowMy, BorrowOther }, components: { BorrowMy, BorrowOther },
...@@ -107,15 +108,15 @@ export default { ...@@ -107,15 +108,15 @@ export default {
// }) // })
const _this = this.$refs[data.borrowType] const _this = this.$refs[data.borrowType]
var params = {id: data.id} var params = {id: data.id}
var jpdata = { // var jpdata = {
appKey: 'odykzzWm1GASj15K1AGxwQ==', // appKey: 'odykzzWm1GASj15K1AGxwQ==',
orgId: '', // orgId: '',
version: '1.0', // version: '1.0',
timestamp: parseInt(new Date().getTime()/1000), // timestamp: parseInt(new Date().getTime()/1000),
body: escape(JSON.stringify(params)), // body: escape(JSON.stringify(params)),
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+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 => { initPdata( window._CONFIG['serviceURL'] + this.processUrl[data.borrowType] ,transform(params)).then(res => {
if(res.code == '10000') { if(res.code == '10000') {
_this.form = res.data _this.form = res.data
_this.getSteps(res.data.flowType,res.data.orgId) _this.getSteps(res.data.flowType,res.data.orgId)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论