diff --git a/src/views/Need/components/EditView.vue b/src/views/Need/components/EditView.vue index 2a87f48..1a70233 100644 --- a/src/views/Need/components/EditView.vue +++ b/src/views/Need/components/EditView.vue @@ -213,14 +213,19 @@ export default { }, methods: { async getUserPower() { + debugger if (this.dataInfoObj.FCanEdit != 2) { this.userPower[0] = (await getBasicRoleList({ FRoleType: 84, - FViewType: this.dataInfoObj.FViewType + FViewType: this.dataInfoObj.FViewType, + TeamId:this.dataInfoObj.FTeamID, + Type:0 }) || []).map(it => parseInt(it.F2)) this.userPower[1] = (await getBasicRoleList({ FRoleType: 44, - FViewType: this.dataInfoObj.FViewType + FViewType: this.dataInfoObj.FViewType, + TeamId:this.dataInfoObj.FTeamID, + Type:0 }) || []).map(it => parseInt(it.F2)) } this.initPage(layer.load(2)); @@ -479,14 +484,13 @@ export default { this.dataList.forEach((row, index) => { let cache = cacheDataList[index]; let dataObj = {}; - - if (!row["FTypeID1"] || !row["FTypeID2"]) { + debugger + if (row["FTypeID1"]==-1 || row["FTypeID2"]==-1||row["FTypeID1"]==''||row["FTypeID2"]=='') { layer.msg("请先为所有物料选择分类", { icon : 2, time: 1000}); layer.close(idx); - allTypeSelected = false - return + allTypeSelected = false; + return false; } - for (let col of this.editColumn) { let valTemp = row[col.key]; if (this.dataInfoObj.FViewType == 10) { diff --git a/src/views/System/components/EditUser.vue b/src/views/System/components/EditUser.vue index 7aed09b..6ecb6c0 100644 --- a/src/views/System/components/EditUser.vue +++ b/src/views/System/components/EditUser.vue @@ -80,6 +80,7 @@ mounted() { this.factoryLists = JSON.parse(JSON.stringify(this.factoryList)); this.stateLists = JSON.parse(JSON.stringify(this.stateList)); + debugger let userInfo = JSON.parse(JSON.stringify(this.userInfoObj)); userInfo.FUser = userInfo.FUser || " "; userInfo.FPassword = userInfo.FPassword || "123456"; diff --git a/src/views/System/components/EditUser2.vue b/src/views/System/components/EditUser2.vue index 40e6877..12db69b 100644 --- a/src/views/System/components/EditUser2.vue +++ b/src/views/System/components/EditUser2.vue @@ -141,6 +141,7 @@ export default { mounted() { //this.factoryLists = JSON.parse(JSON.stringify(this.factoryList)); this.stateLists = JSON.parse(JSON.stringify(this.stateList)); + debugger let userInfo = JSON.parse(JSON.stringify(this.userInfoObj)); userInfo.FUser = userInfo.FUser || " "; userInfo.FPassword = userInfo.FPassword || "123456"; @@ -198,7 +199,7 @@ export default { this.userInfo.FUser = this.userInfo.FUser.trim(); this.userInfo.FPassword = this.userInfo.FPassword.trim(); this.userInfo.FName = this.userInfo.FName.trim(); - + debugger //this.userInfo.FFactoryID = this.userInfo.FFactoryID.trim(); //this.userInfo.FRoleID = this.userInfo.FRoleID || -1; //this.userInfo.FRoleName = role == null ? "" : role.FName; diff --git a/src/views/System/components/PowerRole.vue b/src/views/System/components/PowerRole.vue index 4048136..ff2e026 100644 --- a/src/views/System/components/PowerRole.vue +++ b/src/views/System/components/PowerRole.vue @@ -283,7 +283,6 @@ if (type == 4) { childList = item.FChild.filter(s => s.FType == 40) } - if (childList && childList.length > 0) { has = childList == 0; childList.forEach((child) => { @@ -303,7 +302,7 @@ return ids; } - + debugger let result = await saveRolePower({ FRoleId: this.roleInfo.FID, FMenuId: this.tabIndex == 1 ? getIds(this.menuList).join(',') : null, diff --git a/src/views/half/components/EditView.vue b/src/views/half/components/EditView.vue index 2b904f9..fdfd8fd 100644 --- a/src/views/half/components/EditView.vue +++ b/src/views/half/components/EditView.vue @@ -224,11 +224,15 @@ export default { if (this.dataInfoObj.FCanEdit != 2) { this.userPower[0] = (await getBasicRoleList({ FRoleType: 84, - FViewType: this.dataInfoObj.FViewType + FViewType: this.dataInfoObj.FViewType, + TeamId:this.dataInfoObj.FTeamID, + Type:2 }) || []).map(it => parseInt(it.F2)) this.userPower[1] = (await getBasicRoleList({ FRoleType: 44, - FViewType: this.dataInfoObj.FViewType + FViewType: this.dataInfoObj.FViewType, + TeamId:this.dataInfoObj.FTeamID, + Type:2 }) || []).map(it => parseInt(it.F2)) } this.initPage(layer.load(2)); @@ -476,7 +480,7 @@ export default { let cache = cacheDataList[index]; let dataObj = {}; debugger - if (row["FTypeID1"]==-1 || row["FTypeID2"]==-1) { + if (row["FTypeID1"]==-1 || row["FTypeID2"]==-1||row["FTypeID1"]==''||row["FTypeID2"]==''){ layer.msg("请先为所有物料选择分类", { icon : 2, time: 1000}); layer.close(idx); allTypeSelected = false; diff --git a/src/views/half/components/EditViewOFF.vue b/src/views/half/components/EditViewOFF.vue index b5692b7..bc631a2 100644 --- a/src/views/half/components/EditViewOFF.vue +++ b/src/views/half/components/EditViewOFF.vue @@ -216,11 +216,15 @@ export default { if (this.dataInfoObj.FCanEdit != 2) { this.userPower[0] = (await getBasicRoleList({ FRoleType: 84, - FViewType: this.dataInfoObj.FViewType + FViewType: this.dataInfoObj.FViewType, + TeamId:this.dataInfoObj.FTeamID, + Type:2 }) || []).map(it => parseInt(it.F2)) this.userPower[1] = (await getBasicRoleList({ FRoleType: 44, - FViewType: this.dataInfoObj.FViewType + FViewType: this.dataInfoObj.FViewType, + TeamId:this.dataInfoObj.FTeamID, + Type:2 }) || []).map(it => parseInt(it.F2)) } this.initPage(layer.load(2)); @@ -465,7 +469,7 @@ export default { this.dataList.forEach((row, index) => { let cache = cacheDataList[index]; let dataObj = {}; - if (!row["FTypeID1"] || !row["FTypeID2"]) { + if (row["FTypeID1"]==-1 || row["FTypeID2"]==-1||row["FTypeID1"]==''||row["FTypeID2"]==''){ layer.msg("请先为所有物料选择分类", { icon : 2, time: 1000}); layer.close(idx); allTypeSelected = false; diff --git a/src/views/half/half.vue b/src/views/half/half.vue index 93f396d..2973f45 100644 --- a/src/views/half/half.vue +++ b/src/views/half/half.vue @@ -6,23 +6,23 @@ - - + + - + + - - + + diff --git a/src/views/half/route.vue b/src/views/half/route.vue index a254653..ce9cb84 100644 --- a/src/views/half/route.vue +++ b/src/views/half/route.vue @@ -5,8 +5,8 @@ - - + + @@ -14,7 +14,7 @@ :label="tIdv.FName"> - + @@ -237,7 +237,7 @@ export default { } }, async _getTypeList() { - this.typeList = await getBasicList(33) || []; + this.typeList = await getBasicList(45) || []; }, //分页列表 async _getPageList(isFirst, showOk) { diff --git a/src/views/materia/components/EditView.vue b/src/views/materia/components/EditView.vue index 7aaf26a..9521fbf 100644 --- a/src/views/materia/components/EditView.vue +++ b/src/views/materia/components/EditView.vue @@ -220,12 +220,16 @@ export default { async getUserPower() { if (this.dataInfoObj.FCanEdit != 2) { this.userPower[0] = (await getBasicRoleList({ - FRoleType: 40, - FViewType: this.dataInfoObj.FViewType + FRoleType: 84, + FViewType: this.dataInfoObj.FViewType, + TeamId:this.dataInfoObj.FTeamID, + Type:1 }) || []).map(it => parseInt(it.F2)) this.userPower[1] = (await getBasicRoleList({ FRoleType: 44, - FViewType: this.dataInfoObj.FViewType + FViewType: this.dataInfoObj.FViewType, + TeamId:this.dataInfoObj.FTeamID, + Type:1 }) || []).map(it => parseInt(it.F2)) } this.initPage(layer.load(2)); @@ -495,7 +499,7 @@ export default { let cache = cacheDataList[index]; let dataObj = {}; debugger - if (row["FTypeID1"]==-1 || row["FTypeID2"]==-1) { + if (row["FTypeID1"]==-1 || row["FTypeID2"]==-1||row["FTypeID1"]==''||row["FTypeID2"]=='') { layer.close(idx); layer.msg("请先为所有物料选择分类", { icon : 2, time: 1000}); allTypeSelected = false