包规不可重复修改

物料分类必须所有物料都选择才可提交
master
leo 3 years ago
parent 7ba1358d41
commit ebc6e626a2

@ -291,6 +291,7 @@
postData.FTaskID = this.dataInfoObj.FID;
let result = await updatePackageData(postData) || -1;
if (result > 0) this.$emit('cancelClick', true);
if (result == -2) layer.msg("包规已存在", { icon : 2, time: 1000})
layer.close(idx);
},
//

@ -198,6 +198,7 @@ export default {
this.initPage(layer.load(2));
},
async initPage(idx) {
console.log('this.dataInfoObj', this.dataInfoObj);
let _data = await getListByTeamId({
teamId: this.dataInfoObj.FTeamID,
viewType: this.dataInfoObj.FViewType
@ -437,6 +438,13 @@ export default {
this.dataList.forEach((row, index) => {
let cache = cacheDataList[index];
let dataObj = {};
if (!row["FTypeID1"] || !row["FTypeID2"]) {
layer.msg("请先为所有物料选择分类", { icon : 2, time: 1000});
layer.close(idx);
return
}
for (let col of this.editColumn) {
let valTemp = row[col.key];
if (this.dataInfoObj.FViewType == 10) {
@ -471,6 +479,7 @@ export default {
updateObj[key].push(dataObj[key]);
}
});
let updateLog = updateObj.LogList.join("、");
if (updateLog != "") {
delete updateObj.LogList

Loading…
Cancel
Save