Commit 7553a06c authored by renjintao's avatar renjintao

uerId

parent 334f552d
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
components: {}, components: {},
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
processTitle: '审批流程', processTitle: '审批流程',
dataImmut: [], dataImmut: [],
dataMut: [], dataMut: [],
...@@ -60,6 +60,7 @@ export default { ...@@ -60,6 +60,7 @@ export default {
} }
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.load(this.schemaIdVal) this.load(this.schemaIdVal)
}, },
methods: { methods: {
......
...@@ -95,7 +95,6 @@ ...@@ -95,7 +95,6 @@
import Api from '../user/api' import Api from '../user/api'
import avatar from '@/assets/images/avatar.png' import avatar from '@/assets/images/avatar.png'
import inputFiles from '@/components/page/inputFile.vue' import inputFiles from '@/components/page/inputFile.vue'
var userId = JSON.parse(sessionStorage.getItem('userInfo')).userId
export default { export default {
components: { components: {
inputFiles inputFiles
...@@ -104,6 +103,7 @@ export default { ...@@ -104,6 +103,7 @@ export default {
return { return {
parms: 'app=user&eid=23&name=avatarUrl', parms: 'app=user&eid=23&name=avatarUrl',
cardWidth: '600px', cardWidth: '600px',
userId:0,
pwdModel: { pwdModel: {
id: null, id: null,
oldPwd: '', oldPwd: '',
...@@ -142,6 +142,7 @@ export default { ...@@ -142,6 +142,7 @@ export default {
} }
}, },
created() { created() {
this.userId=this.$store.state.userInfo.userId
this.cardWidth = window.innerWidth - 620 + 'px' this.cardWidth = window.innerWidth - 620 + 'px'
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
......
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -196,6 +196,7 @@ export default { ...@@ -196,6 +196,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -134,6 +134,7 @@ export default { ...@@ -134,6 +134,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -134,6 +134,7 @@ export default { ...@@ -134,6 +134,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -134,6 +134,7 @@ export default { ...@@ -134,6 +134,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -146,6 +146,7 @@ export default { ...@@ -146,6 +146,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -145,6 +145,7 @@ export default { ...@@ -145,6 +145,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId:0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -116,6 +116,7 @@ export default { ...@@ -116,6 +116,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -181,6 +181,7 @@ export default { ...@@ -181,6 +181,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
console.log(this.detailId) console.log(this.detailId)
......
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId:0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -205,6 +205,7 @@ export default { ...@@ -205,6 +205,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -214,6 +214,7 @@ export default { ...@@ -214,6 +214,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
console.log(this.footerStatu) console.log(this.footerStatu)
......
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -133,6 +133,7 @@ export default { ...@@ -133,6 +133,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -132,6 +132,7 @@ export default { ...@@ -132,6 +132,7 @@ export default {
}, },
created() { created() {
this.getDetailInfos(this.idVal) this.getDetailInfos(this.idVal)
this.currentUserId=this.$store.state.userInfo.userId
}, },
methods: { methods: {
nextCheckOk() { nextCheckOk() {
......
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
components: {}, components: {},
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
processTitle: '审批流程', processTitle: '审批流程',
currentNodeId: null, currentNodeId: null,
dataImmut: [], dataImmut: [],
...@@ -129,6 +129,7 @@ export default { ...@@ -129,6 +129,7 @@ export default {
} }
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.dataImmut = [] this.dataImmut = []
this.dataMut = [] this.dataMut = []
......
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator:"",
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId:0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
rules: { rules: {
storeTitle: [{ required: true, message: '请选择库位', trigger: 'blur' }] storeTitle: [{ required: true, message: '请选择库位', trigger: 'blur' }]
...@@ -174,6 +172,10 @@ export default { ...@@ -174,6 +172,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator:"",
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId: 0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
conditions: { conditions: {
storeId: { op: 'Equal', value: null }, storeId: { op: 'Equal', value: null },
...@@ -166,6 +164,10 @@ export default { ...@@ -166,6 +164,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator: '',
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId: 0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
conditions: { conditions: {
storeId: { op: 'Equal', value: null }, storeId: { op: 'Equal', value: null },
...@@ -167,6 +165,10 @@ export default { ...@@ -167,6 +165,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
...@@ -974,7 +974,7 @@ export default { ...@@ -974,7 +974,7 @@ export default {
} }
this.$refs.routingchangeorder.flag = 0 this.$refs.routingchangeorder.flag = 0
this.$refs.routingchangeorder.routing_header_Id = this.headerSelected.id this.$refs.routingchangeorder.routing_header_Id = this.headerSelected.id
var userId = JSON.parse(sessionStorage.getItem('userInfo')).userId var userId = this.$store.state.userInfo.userId
let parma = { let parma = {
Id: userId Id: userId
} }
......
...@@ -935,7 +935,7 @@ export default { ...@@ -935,7 +935,7 @@ export default {
} }
this.$refs.routingchangeorder.flag = 0 this.$refs.routingchangeorder.flag = 0
this.$refs.routingchangeorder.routing_header_Id = this.headerSelected.id this.$refs.routingchangeorder.routing_header_Id = this.headerSelected.id
var userId = JSON.parse(sessionStorage.getItem('userInfo')).userId var userId =this.$store.state.userInfo.userId
let parma = { let parma = {
Id: userId Id: userId
} }
......
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator: '',
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId: 0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
rules: { rules: {
storeTitle: [{ required: true, message: '请选择库位', trigger: 'blur' }] storeTitle: [{ required: true, message: '请选择库位', trigger: 'blur' }]
...@@ -174,6 +172,10 @@ export default { ...@@ -174,6 +172,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator:'',
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId: 0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
conditions: { conditions: {
storeId: { op: 'Equal', value: null }, storeId: { op: 'Equal', value: null },
...@@ -166,6 +164,10 @@ export default { ...@@ -166,6 +164,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator: '',
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId:0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
conditions: { conditions: {
storeId: { op: 'Equal', value: null }, storeId: { op: 'Equal', value: null },
...@@ -167,6 +165,10 @@ export default { ...@@ -167,6 +165,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment