|
|
@@ -83,24 +83,24 @@
|
|
|
|
|
|
const editRef = ref(null);
|
|
|
|
|
|
- function handleOpen(orderIds) {
|
|
|
+ async function handleOpen(orderIds) {
|
|
|
formData.value.orderIds = orderIds;
|
|
|
- editRef.value?.handleOpen(formData.value);
|
|
|
|
|
|
- getGodownList().then((res) => {
|
|
|
+ await getGodownList().then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
godownList.value = res.data.data.filter((v) => v.useStatus == 1);
|
|
|
formData.value.godownId =
|
|
|
godownList.value.length > 0 ? godownList.value[0].id : '';
|
|
|
}
|
|
|
});
|
|
|
- getExpressList().then((res) => {
|
|
|
+ await getExpressList().then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
expressList.value = res.data.data;
|
|
|
formData.value.finalExpress =
|
|
|
expressList.value.length > 0 ? expressList.value[0].dictValue : '';
|
|
|
}
|
|
|
});
|
|
|
+ editRef.value?.handleOpen(formData.value);
|
|
|
}
|
|
|
|
|
|
defineExpose({ handleOpen });
|