Browse Source

Merge branch 'pre-production'

master
pref_mail@163.com 1 month ago
parent
commit
cfaf6a91b3
  1. 2
      src/views/basicdata/brand/basicdataCategory.vue
  2. 13
      src/views/distribution/artery/AddVehicleStowage.vue
  3. 41
      src/views/distribution/artery/addTripartiteTransfer.vue

2
src/views/basicdata/brand/basicdataCategory.vue

@ -333,7 +333,7 @@ export default {
onLoad(page, params = {}) {
console.log(this.query,';this.query');
this.loading = false;
this.loading = true;
const { name, type } = this.query;
let values = {
name_like: name,

13
src/views/distribution/artery/AddVehicleStowage.vue

@ -1902,6 +1902,19 @@ const handleAddWaybill = async (index: number) => {
item.totalNum = item.totalNum || 20;
item.planNum = item.stockNum;
item.loadingNum = 0;
let isContinue = false;
for (let i = 0; i < details.orderCodeList.length; i++) {
const val = details.orderCodeList[i];
if (item.orderCode + ',' + item.waybillNo !== val) continue;
isContinue = true;
break;
}
if (isContinue) continue;
_orderMap.push(item.orderCode + ',' + item.waybillNo);
_node.lineCarsOrderList.push(item);
}

41
src/views/distribution/artery/addTripartiteTransfer.vue

@ -1080,17 +1080,36 @@ const currentChange = pageNum => {
/** 加入调度池 */
const handleAddWaybill = () => {
details.selectionList.forEach(val => {
val.planNum = val.stockNum;
val.loadingNum = 0;
details.newData.push(val);
});
details.orderCodeList = [
...new Set([
...details.orderCodeList,
...details.selectionList.map(val => val.orderCode + ',' + val.waybillNo),
]),
];
const _orderMap = [];
for (let i = 0; i < details.selectionList.length; i++) {
const item = details.selectionList[i];
item.planNum = item.stockNum;
item.loadingNum = 0;
let isContinue = false;
for (let i = 0; i < details.orderCodeList.length; i++) {
const val = details.orderCodeList[i];
if (item.orderCode + ',' + item.waybillNo !== val) continue;
isContinue = true;
break;
}
if (isContinue) continue;
_orderMap.push(item.orderCode + ',' + item.waybillNo);
details.newData.push(item);
}
// details.selectionList.forEach(val => {
// val.planNum = val.stockNum;
// val.loadingNum = 0;
// details.newData.push(val);
// });
details.orderCodeList = [...new Set([...details.orderCodeList, ..._orderMap])];
console.log('details.orderCodeList :>> ', details.orderCodeList);
const orderCodes = details.selectionList.map(val => val.orderCode);

Loading…
Cancel
Save