Browse Source

Merge branch 'dev' into pre-production

pre-production
pref_mail@163.com 2 months ago
parent
commit
70d29b23b9
  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 = {}) { onLoad(page, params = {}) {
console.log(this.query,';this.query'); console.log(this.query,';this.query');
this.loading = false; this.loading = true;
const { name, type } = this.query; const { name, type } = this.query;
let values = { let values = {
name_like: name, 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.totalNum = item.totalNum || 20;
item.planNum = item.stockNum; item.planNum = item.stockNum;
item.loadingNum = 0; 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); _orderMap.push(item.orderCode + ',' + item.waybillNo);
_node.lineCarsOrderList.push(item); _node.lineCarsOrderList.push(item);
} }

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

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

Loading…
Cancel
Save