This commit is contained in:
parent
8be30fe4a8
commit
47b27f5746
|
|
@ -131,6 +131,7 @@ const user = {
|
||||||
|
|
||||||
// 存取用户的userId
|
// 存取用户的userId
|
||||||
sessionStorage.setItem('userId', res.user.userId)
|
sessionStorage.setItem('userId', res.user.userId)
|
||||||
|
sessionStorage.setItem('userName', res.user.userName)
|
||||||
return res
|
return res
|
||||||
})
|
})
|
||||||
.catch(error => Promise.reject(error))
|
.catch(error => Promise.reject(error))
|
||||||
|
|
|
||||||
|
|
@ -416,7 +416,6 @@ import { getToken } from '@/utils/auth'
|
||||||
import { getBmTeamApi } from '@/api/equipment'
|
import { getBmTeamApi } from '@/api/equipment'
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
import Cookies from 'js-cookie'
|
|
||||||
export default {
|
export default {
|
||||||
components: { Treeselect },
|
components: { Treeselect },
|
||||||
name: 'ReturnApplyAdd',
|
name: 'ReturnApplyAdd',
|
||||||
|
|
@ -922,7 +921,7 @@ export default {
|
||||||
agreementId: this.queryParams.agreementId,
|
agreementId: this.queryParams.agreementId,
|
||||||
isBack,
|
isBack,
|
||||||
taskId: this.queryParams.taskId,
|
taskId: this.queryParams.taskId,
|
||||||
createBy: Cookies.get('username')
|
createBy: sessionStorage.getItem('userName')
|
||||||
// backTime: this.queryParams.backTime,
|
// backTime: this.queryParams.backTime,
|
||||||
// createBy: this.queryParams.createBy,
|
// createBy: this.queryParams.createBy,
|
||||||
// companyId: this.queryParams.companyId,
|
// companyId: this.queryParams.companyId,
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,6 @@ import { submitOut } from '@/api/lease/out'
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
import OutCodeDlg from './OutCodeDlg.vue'
|
import OutCodeDlg from './OutCodeDlg.vue'
|
||||||
import Cookies from 'js-cookie'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
dicts: ['purchase_task_status'],
|
dicts: ['purchase_task_status'],
|
||||||
|
|
@ -715,7 +714,7 @@ export default {
|
||||||
.then(function () {})
|
.then(function () {})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.maForm.isOut = isOut
|
this.maForm.isOut = isOut
|
||||||
this.maForm.createBy = Cookies.get('username')
|
this.maForm.createBy = sessionStorage.getItem('userName')
|
||||||
if (this.isEdit) {
|
if (this.isEdit) {
|
||||||
this.maForm.leaseProjectId = this.maForm.projectId
|
this.maForm.leaseProjectId = this.maForm.projectId
|
||||||
console.log('编辑')
|
console.log('编辑')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue