Commit e1ad6fb6 by T

优化统一加密处理

parent 4e664332
......@@ -32,7 +32,7 @@ module.exports = {
},
// 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
autoOpenBrowser: true,
errorOverlay: true,
......
......@@ -9,8 +9,8 @@
<!-- 全局配置 -->
<script>
window._CONFIG = {};
window._CONFIG['serviceURL'] = 'http://192.168.2.112:5000';
window._CONFIG['userURL'] = 'http://192.168.2.112:10004';
window._CONFIG['serviceURL'] = 'http://192.168.2.105:5000';
window._CONFIG['userURL'] = 'http://192.168.2.105:10004';
// window._CONFIG['serviceURL'] = 'http://41.190.20.132:5000';
// window._CONFIG['userURL'] = 'http://41.190.20.132:10004';
</script>
......
......@@ -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)
......
......@@ -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;
......
......@@ -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
}
}
}
......
......@@ -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)
......
......@@ -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
......
......@@ -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
......
......@@ -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(() => {
......
......@@ -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)
......
......@@ -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)
......
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论