|
|
|
@ -213,14 +213,19 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
async getUserPower() {
|
|
|
|
async getUserPower() {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
if (this.dataInfoObj.FCanEdit != 2) {
|
|
|
|
if (this.dataInfoObj.FCanEdit != 2) {
|
|
|
|
this.userPower[0] = (await getBasicRoleList({
|
|
|
|
this.userPower[0] = (await getBasicRoleList({
|
|
|
|
FRoleType: 84,
|
|
|
|
FRoleType: 84,
|
|
|
|
FViewType: this.dataInfoObj.FViewType
|
|
|
|
FViewType: this.dataInfoObj.FViewType,
|
|
|
|
|
|
|
|
TeamId:this.dataInfoObj.FTeamID,
|
|
|
|
|
|
|
|
Type:0
|
|
|
|
}) || []).map(it => parseInt(it.F2))
|
|
|
|
}) || []).map(it => parseInt(it.F2))
|
|
|
|
this.userPower[1] = (await getBasicRoleList({
|
|
|
|
this.userPower[1] = (await getBasicRoleList({
|
|
|
|
FRoleType: 44,
|
|
|
|
FRoleType: 44,
|
|
|
|
FViewType: this.dataInfoObj.FViewType
|
|
|
|
FViewType: this.dataInfoObj.FViewType,
|
|
|
|
|
|
|
|
TeamId:this.dataInfoObj.FTeamID,
|
|
|
|
|
|
|
|
Type:0
|
|
|
|
}) || []).map(it => parseInt(it.F2))
|
|
|
|
}) || []).map(it => parseInt(it.F2))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.initPage(layer.load(2));
|
|
|
|
this.initPage(layer.load(2));
|
|
|
|
@ -479,14 +484,13 @@ export default {
|
|
|
|
this.dataList.forEach((row, index) => {
|
|
|
|
this.dataList.forEach((row, index) => {
|
|
|
|
let cache = cacheDataList[index];
|
|
|
|
let cache = cacheDataList[index];
|
|
|
|
let dataObj = {};
|
|
|
|
let dataObj = {};
|
|
|
|
|
|
|
|
debugger
|
|
|
|
if (!row["FTypeID1"] || !row["FTypeID2"]) {
|
|
|
|
if (row["FTypeID1"]==-1 || row["FTypeID2"]==-1||row["FTypeID1"]==''||row["FTypeID2"]=='') {
|
|
|
|
layer.msg("请先为所有物料选择分类", { icon : 2, time: 1000});
|
|
|
|
layer.msg("请先为所有物料选择分类", { icon : 2, time: 1000});
|
|
|
|
layer.close(idx);
|
|
|
|
layer.close(idx);
|
|
|
|
allTypeSelected = false
|
|
|
|
allTypeSelected = false;
|
|
|
|
return
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for (let col of this.editColumn) {
|
|
|
|
for (let col of this.editColumn) {
|
|
|
|
let valTemp = row[col.key];
|
|
|
|
let valTemp = row[col.key];
|
|
|
|
if (this.dataInfoObj.FViewType == 10) {
|
|
|
|
if (this.dataInfoObj.FViewType == 10) {
|
|
|
|
|