From 4ebf5a5c74de6dcf86690df16e496c4f7034561d Mon Sep 17 00:00:00 2001 From: "0.0" <1092404103.qq.com> Date: Tue, 1 Nov 2022 17:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=B5=84=E5=85=A5=E5=BA=93=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8A=A0=E8=BD=BD=E7=9B=AE=E6=A0=87=E5=BA=93,?= =?UTF-8?q?=E6=97=A7=E5=BA=93=E6=88=BF=E7=AE=A1=E7=90=86=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 4 +- src/store/mutation-types.js | 1 + .../form/ProcessMaterialWarehousingForm.vue | 44 +++++++++++++------ src/views/system/modules/UserModal.vue | 2 +- .../ProcessUnitWasteWarehouseCodeList.vue | 2 +- .../ProcessUnitWasteWarehouseCodeForm.vue | 4 +- 6 files changed, 40 insertions(+), 17 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 677e967..72e311f 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -1,6 +1,6 @@ import Vue from 'vue' import { login, logout, phoneLogin, thirdLogin } from "@/api/login" -import { ACCESS_TOKEN, USER_NAME,USER_INFO,USER_AUTH,SYS_BUTTON_AUTH,UI_CACHE_DB_DICT_DATA,TENANT_ID,CACHE_INCLUDED_ROUTES,PARENT_ID,USER_INFORMATION } from "@/store/mutation-types" +import { ACCESS_TOKEN, USER_NAME,USER_INFO,USER_AUTH,SYS_BUTTON_AUTH,UI_CACHE_DB_DICT_DATA,TENANT_ID,CACHE_INCLUDED_ROUTES,PARENT_ID,USER_INFORMATION,PUWWC_Id } from "@/store/mutation-types" import { welcome } from "@/utils/util" import { queryPermissionsByUser } from '@/api/api' import { getAction } from '@/api/manage' @@ -122,12 +122,14 @@ const user = { const authData = response.result.auth; const allAuthData = response.result.allAuth; const parentId=response.result.parentId; + const puwwcId=response.result.puwwcId; const userInformation=response.result.userInfo; console.log('------>登录后的信息',response) //Vue.ls.set(USER_AUTH,authData); sessionStorage.setItem(USER_AUTH,JSON.stringify(authData)); sessionStorage.setItem(SYS_BUTTON_AUTH,JSON.stringify(allAuthData)); sessionStorage.setItem(PARENT_ID,parentId); + sessionStorage.setItem(PUWWC_Id,puwwcId); sessionStorage.setItem(USER_INFORMATION,JSON.stringify(userInformation)); if (menuData && menuData.length > 0) { //update--begin--autor:qinfeng-----date:20200109------for:JEECG-63 一级菜单的子菜单全部是隐藏路由,则一级菜单不显示------ diff --git a/src/store/mutation-types.js b/src/store/mutation-types.js index 8dbc1fa..59b21ee 100644 --- a/src/store/mutation-types.js +++ b/src/store/mutation-types.js @@ -13,6 +13,7 @@ export const USER_NAME = 'Login_Username' export const USER_INFO = 'Login_Userinfo' export const USER_AUTH = 'LOGIN_USER_BUTTON_AUTH' export const PARENT_ID='PARENT_ID' +export const PUWWC_Id='PUWWC_Id' export const USER_INFORMATION='USER_INFORMATION' export const SYS_BUTTON_AUTH = 'SYS_BUTTON_AUTH' export const ENCRYPTED_STRING = 'ENCRYPTED_STRING' diff --git a/src/views/activiti/form/ProcessMaterialWarehousingForm.vue b/src/views/activiti/form/ProcessMaterialWarehousingForm.vue index 7d07ebf..01a732a 100644 --- a/src/views/activiti/form/ProcessMaterialWarehousingForm.vue +++ b/src/views/activiti/form/ProcessMaterialWarehousingForm.vue @@ -50,7 +50,8 @@ - + + @@ -121,6 +122,9 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' }, data() { return { + libraryAssociationIdInvisible:'ZK', + invisibleCode:null, + puwwOptions: [], labelCol: { xs: { span: 24 }, sm: { span: 6 }, @@ -255,6 +259,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' edit: "/hy/processMaterialWarehousing/edit", queryById: "/hy/processMaterialWarehousing/queryById", list: "/hy/processUdgetPlan/queryProcessUdgetPlanMaterialByMainId", + puwwlist: "/unitwaste/processUnitWasteWarehouseCode/queryById", processMaterialWarehousingList: { list: '/hy/processMaterialWarehousing/queryProcessMaterialWarehousingListByMainId' }, @@ -324,10 +329,11 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' this.init(); } let company = sessionStorage.getItem("PARENT_ID"); + let puwwcid = sessionStorage.getItem("PUWWC_Id"); let userInfo=sessionStorage.getItem("USER_INFORMATION"); console.log(userInfo) // userInfo.company=company; - this.popupCallback(company,userInfo); + this.popupCallback(company,userInfo,puwwcid); }, methods: { /*回显数据*/ @@ -376,6 +382,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' formData.procDefId = this.processData.id; formData.procDeTitle = this.processData.name; formData.title=this.processData.description; + formData.targetLibrary = this.libraryAssociationIdInvisible if (!formData.tableName)formData.tableName = this.processData.businessTable; var url = this.url.add; let method='post'; @@ -464,18 +471,29 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' this.form.setFieldsValue(fieldval) }) }, - popupCallback(company,row) { + popupCallback(company,row,puwwcid) { let res=JSON.parse(row); - console.log('获取我的数据',res.id) - let param={} - param.createBy=res.username; - param.company=company; - param.sysOrgCode=res.departIds; - param.createTime= getCurrentTime(); - this.data=param; - let fieldval =pick(this.data, 'createBy','company','sysOrgCode','createTime') - this.$nextTick(() => { - this.form.setFieldsValue(fieldval) + let params={} + params.id=puwwcid; + let invisibleCode=null; + getAction(this.url.puwwlist,params).then((rest)=>{ + if(rest.success){ + invisibleCode =rest.result.invisibleCode + this.libraryAssociationIdInvisible = rest.result.unit + } + + let param={} + param.createBy=res.username; + param.company=company; + param.targetLibrary =invisibleCode==null?"ZK":invisibleCode; + param.sysOrgCode=res.departIds; + param.createTime= getCurrentTime(); + this.data=param; + console.log('获取我的数据',this.data) + let fieldval =pick(this.data, 'createBy','company','sysOrgCode','createTime','targetLibrary') + this.$nextTick(() => { + this.form.setFieldsValue(fieldval) + }) }) }, diff --git a/src/views/system/modules/UserModal.vue b/src/views/system/modules/UserModal.vue index 1a3fbc2..c4c9b73 100644 --- a/src/views/system/modules/UserModal.vue +++ b/src/views/system/modules/UserModal.vue @@ -353,7 +353,7 @@ this.uploadLoading = false; console.log(response); if(response.success){ - this.model.img= response.message; + this.model.img= response.result; this.picUrl = "Has no pic url yet"; }else{ this.$message.warning(response.message); diff --git a/src/views/unitwaste/ProcessUnitWasteWarehouseCodeList.vue b/src/views/unitwaste/ProcessUnitWasteWarehouseCodeList.vue index d5f1921..9e78e53 100644 --- a/src/views/unitwaste/ProcessUnitWasteWarehouseCodeList.vue +++ b/src/views/unitwaste/ProcessUnitWasteWarehouseCodeList.vue @@ -154,7 +154,7 @@ { title:'单位', align:"center", - dataIndex: 'unit' + dataIndex: 'unit_dictText' }, { title:'账外物资库编码', diff --git a/src/views/unitwaste/modules/ProcessUnitWasteWarehouseCodeForm.vue b/src/views/unitwaste/modules/ProcessUnitWasteWarehouseCodeForm.vue index 55b2b7a..3a67c4a 100644 --- a/src/views/unitwaste/modules/ProcessUnitWasteWarehouseCodeForm.vue +++ b/src/views/unitwaste/modules/ProcessUnitWasteWarehouseCodeForm.vue @@ -5,7 +5,7 @@ - + @@ -38,11 +38,13 @@ import pick from 'lodash.pick' import { validateDuplicateValue } from '@/utils/util' import JFormContainer from '@/components/jeecg/JFormContainer' + import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' export default { name: 'ProcessUnitWasteWarehouseCodeForm', components: { JFormContainer, + JSelectDepart }, props: { //流程表单data