|
|
|
@ -571,23 +571,7 @@ export default {
|
|
|
|
|
type: 3, |
|
|
|
|
values: '', |
|
|
|
|
width: '150', |
|
|
|
|
checkarr: [ |
|
|
|
|
{ |
|
|
|
|
value: '0', |
|
|
|
|
label: '未上架', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value: '1', |
|
|
|
|
label: '部分上架', |
|
|
|
|
}, { |
|
|
|
|
value: '2', |
|
|
|
|
label: '已上架', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value: '3', |
|
|
|
|
label: '已下架', |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
checkarr: [], |
|
|
|
|
fixed: false, |
|
|
|
|
sortable: true, |
|
|
|
|
},{ |
|
|
|
@ -639,25 +623,12 @@ export default {
|
|
|
|
|
sortable: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
prop: 'stateName', |
|
|
|
|
prop: 'orderStateName', |
|
|
|
|
label: '状态', |
|
|
|
|
type: 3, |
|
|
|
|
values: '', |
|
|
|
|
width: '150', |
|
|
|
|
checkarr: [ |
|
|
|
|
{ |
|
|
|
|
value: '1', |
|
|
|
|
label: '待预约 ', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value: '2', |
|
|
|
|
label: '已预约', |
|
|
|
|
}, { |
|
|
|
|
value: '7 ', |
|
|
|
|
label: '已完成', |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
checkarr: [], |
|
|
|
|
fixed: false, |
|
|
|
|
sortable: true, |
|
|
|
|
}, |
|
|
|
@ -847,6 +818,7 @@ export default {
|
|
|
|
|
data: [], |
|
|
|
|
dataHistorical: [], |
|
|
|
|
distributionType: [], |
|
|
|
|
deliveryOrderStatus: [], |
|
|
|
|
dialogTableVisible: false, |
|
|
|
|
dialogFormVisible: false, |
|
|
|
|
dialogFormCustomer: false, //多选客户弹窗 |
|
|
|
@ -1009,6 +981,8 @@ export default {
|
|
|
|
|
this.query['freezeStatus'] = index; |
|
|
|
|
}else if(row.prop ==='completeSetName'){ |
|
|
|
|
this.query['completeSet'] = index; |
|
|
|
|
}else if(row.prop ==='orderStateName'){ |
|
|
|
|
this.query['state'] = index; |
|
|
|
|
}else if(row.prop ==='typeName'){ |
|
|
|
|
this.query['typeService'] = index; |
|
|
|
|
}else{ |
|
|
|
@ -1169,11 +1143,24 @@ export default {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let st = false; |
|
|
|
|
let consigneePerson = ''; |
|
|
|
|
let consigneeMobile = ''; |
|
|
|
|
this.selectionList.some( i =>{ |
|
|
|
|
if(i.stateName === "已预约"){ |
|
|
|
|
st = true; |
|
|
|
|
this.$message.warning(i.orderSelfNumbering+"已预约,请勿重复预约!!!"); |
|
|
|
|
} |
|
|
|
|
// console.log("IIIIII",i); |
|
|
|
|
|
|
|
|
|
if(!consigneePerson && !consigneeMobile){ |
|
|
|
|
consigneeMobile = i.consigneeMobile; |
|
|
|
|
consigneePerson = i.consigneePerson; |
|
|
|
|
}else{ |
|
|
|
|
if(consigneeMobile != i.consigneeMobile && consigneePerson != i.consigneePerson ){ |
|
|
|
|
st = true; |
|
|
|
|
this.$message.warning("收货人不相同,请选择相同的收货人!!!"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
if(st){ |
|
|
|
|
return |
|
|
|
@ -1261,6 +1248,20 @@ export default {
|
|
|
|
|
// return item |
|
|
|
|
// }); |
|
|
|
|
}); |
|
|
|
|
getDictionaryBiz('basic_order_state').then(res => { |
|
|
|
|
this.columnList[24].checkarr =res.data.data.map(item=>{ |
|
|
|
|
item.value=item.dictKey |
|
|
|
|
item.label=item.dictValue |
|
|
|
|
return item |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
getDictionaryBiz('basic_grounding').then(res => { |
|
|
|
|
this.columnList[19].checkarr =res.data.data.map(item=>{ |
|
|
|
|
item.value=item.dictKey |
|
|
|
|
item.label=item.dictValue |
|
|
|
|
return item |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
searchHide () { |
|
|
|
@ -1481,12 +1482,12 @@ export default {
|
|
|
|
|
'2': "未通知", |
|
|
|
|
default: "无" |
|
|
|
|
}; |
|
|
|
|
const stateMap = { |
|
|
|
|
'1': "待预约", |
|
|
|
|
'2': "已预约", |
|
|
|
|
'7': " 已完成", |
|
|
|
|
default: "无" |
|
|
|
|
}; |
|
|
|
|
// const stateMap = { |
|
|
|
|
// '1': "待预约", |
|
|
|
|
// '2': "已预约", |
|
|
|
|
// '7': " 已完成", |
|
|
|
|
// default: "无" |
|
|
|
|
// }; |
|
|
|
|
const freezeStatusMap = { |
|
|
|
|
0: "未冻结", |
|
|
|
|
1: "已冻结", |
|
|
|
@ -1495,17 +1496,17 @@ export default {
|
|
|
|
|
const nuMap = { |
|
|
|
|
'-1': "0" |
|
|
|
|
}; |
|
|
|
|
const groundingStatusMap = { |
|
|
|
|
0: "未上架", |
|
|
|
|
1: "部分上架", |
|
|
|
|
2: "已上架", |
|
|
|
|
3: "已下架", |
|
|
|
|
default: "无" |
|
|
|
|
}; |
|
|
|
|
i.stateName = stateMap[i.state] || stateMap.default; |
|
|
|
|
// const groundingStatusMap = { |
|
|
|
|
// 0: "未上架", |
|
|
|
|
// 1: "部分上架", |
|
|
|
|
// 2: "已上架", |
|
|
|
|
// 3: "已下架", |
|
|
|
|
// default: "无" |
|
|
|
|
// }; |
|
|
|
|
// i.stateName = stateMap[i.state] || stateMap.default; |
|
|
|
|
i.notification = notificationMap[i.notification] || notificationMap.default; |
|
|
|
|
i.freezeStatusName = freezeStatusMap[i.freezeStatus] || freezeStatusMap.default; |
|
|
|
|
i.groundingStatusName = groundingStatusMap[i.groundingStatus] || groundingStatusMap.default; |
|
|
|
|
// i.groundingStatusName = groundingStatusMap[i.groundingStatus] || groundingStatusMap.default; |
|
|
|
|
i.handQuantity = nuMap[i.handQuantity] || i.handQuantity; |
|
|
|
|
i.sortingQuantity = nuMap[i.sortingQuantity] || i.sortingQuantity; |
|
|
|
|
i.deliveryQuantity = nuMap[i.deliveryQuantity] || i.deliveryQuantity; |
|
|
|
|