Browse Source

修复选择转库存品选择包件

fix_bug_pro20231227
qb 1 year ago
parent
commit
4517e6b064
  1. 17
      src/views/distribution/inventory/delivery/distributionStockArticle.vue
  2. 15
      src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue

17
src/views/distribution/inventory/delivery/distributionStockArticle.vue

@ -1274,11 +1274,11 @@ export default {
this.$message.warning(item.orderCode + ' - 已预约,无法转为库存品!!!');
return false;
}
if (item.typeService == 3) {
/* if (item.typeService == 3) {
console.log('2 :>> ', 2);
this.$message.warning(item.orderCode + ' - 为自提单,无法转为库存品!!!');
return false;
}
} */
if (item.freezeStatus == '30') {
console.log('3 :>> ', 3);
this.$message.warning(item.orderCode + ' - 为冻结单,无法转为库存品!!!');
@ -1304,6 +1304,12 @@ export default {
if (!isReturn) return;
//
if (this.selectionList.length === 1) {
console.log('111>>>>>>>>>>>>>>', this.selectionList[0]);
return this.$router.push(
'/distribution/inventory/distributionStockArticleFrom?id=' + this.selectionList[0].id
);
}
const res = await getListOwn(this.page.currentPage, this.page.pageSize, {
stockArticleIds: ids.join(','),
parcelType: '2',
@ -1322,13 +1328,6 @@ export default {
);
}
if (this.selectionList.length === 1) {
console.log('111>>>>>>>>>>>>>>', this.selectionList[0]);
return this.$router.push(
'/distribution/inventory/distributionStockArticleFrom?id=' + this.selectionList[0].id
);
}
this.getSock();
},
getSock() {

15
src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue

@ -1419,10 +1419,18 @@ export default {
if (!isReturn) return;
//
if (this.selectionList.length === 1) {
console.log('111>>>>>>>>>>>>>>', this.selectionList[0]);
return this.$router.push(
'/distribution/inventory/distributionStockArticleFrom?id=' + this.selectionList[0].id
);
}
const res = await getListOwn(this.page.currentPage, this.page.pageSize, {
stockArticleIds: ids.join(','),
parcelType: '2',
});
// console.log("",res.data.data.records);
lost = res.data.data.records.every(val => {
if (!val.materialId) return false;
@ -1436,13 +1444,6 @@ export default {
);
}
if (this.selectionList.length === 1) {
console.log('111>>>>>>>>>>>>>>', this.selectionList[0]);
return this.$router.push(
'/distribution/inventory/distributionStockArticleFrom?id=' + this.selectionList[0].id
);
}
this.getSock();
},
getSock() {

Loading…
Cancel
Save