Browse Source

修改多部门切换的bug

dev
long 2 years ago
parent
commit
513ab9d1ab
  1. 4
      src/store/modules/user.js
  2. 4
      src/views/activiti/form/ProcessMaterialWarehousingForm.vue

4
src/store/modules/user.js

@ -140,10 +140,10 @@ const user = {
//Vue.ls.set(USER_AUTH,authData);
sessionStorage.setItem(USER_AUTH,JSON.stringify(authData));
sessionStorage.setItem(SYS_BUTTON_AUTH,JSON.stringify(allAuthData));
if (!sessionStorage.getItem(PARENT_ID)){
if (response.result.parentId){
sessionStorage.setItem(PARENT_ID,parentId);
}
if (!sessionStorage.getItem(PUWWC_Id)){
if (response.result.puwwcId){
sessionStorage.setItem(PUWWC_Id,puwwcId);
}
if (Vue.ls.get(USER_INFO)){

4
src/views/activiti/form/ProcessMaterialWarehousingForm.vue

@ -709,17 +709,15 @@ import JSelectItem from '@/components/jeecgbiz/JSelectItem'
getAction(this.url.puwwlist, params).then((rest) => {
if (rest.success) {
invisibleCode = rest.result.unit
}
let param = {}
param.createBy = res.username
param.company = company
param.targetLibrary =rest.result.unit
param.departId = res.departIds
param.createTime = getCurrentTime()
this.data = param
console.log('获取我的数据', this.data)
let fieldval = pick(this.data, 'createBy', 'company', 'departId', 'createTime', 'targetLibrary')
let fieldval = pick(this.data, 'createBy', 'company', 'departId', 'createTime')
this.$nextTick(() => {
this.form.setFieldsValue(fieldval)
})

Loading…
Cancel
Save