操作人:
{{ item.arriveUserName || item.startUserName || '暂无数据' }}
@@ -605,12 +613,15 @@ const onLoad = async (params = {}) => {
const res = await postloadCarsPageList(details.page, { ...details.query, ...params });
const { code, data } = res.data;
if (code !== 200) return;
- details.data = data.records.map(val => {
- val.loadStatusName = carStateDictionaries.find(
- item => Number(val.loadStatus) === item.code
+ details.data = data;
+
+ for (let item of details.data) {
+ item.loadStatusName = item.loadStatusName = carStateDictionaries.find(
+ val => Number(item.loadStatus) === val.code
).label;
- return val;
- });
+ item.NumberOfPiecesInTheCar = item.realLoadingNumber - item.unloadNumber;
+ }
+
details.page.total = data.total;
} catch (error) {
console.log('error :>> ', error);
diff --git a/src/views/distribution/inventory/BookingNote.vue b/src/views/distribution/inventory/BookingNote.vue
index 5578ff3d..f5ed3cde 100644
--- a/src/views/distribution/inventory/BookingNote.vue
+++ b/src/views/distribution/inventory/BookingNote.vue
@@ -950,7 +950,7 @@
审 核
-
修 改
+
修 改
打 印
@@ -1733,6 +1733,34 @@ const back = () => {
$store.commit('DEL_TAG_CURRENT');
$router.back();
};
+
+const handleEdit = () => {
+ if (Number($route.query.waybillType) === 1) {
+ // 暂存单转运单的数据
+
+ $router.push({
+ path: '/distribution/inventory/CreateOrder',
+ query: {
+ name: '改单',
+ id: $route.query.id,
+ type: 'edit',
+ backPath: '/waybill/WaybillOrderList',
+ },
+ });
+ } else if (Number($route.query.waybillType) === 2) {
+ // 零担开单的数据
+
+ $router.push({
+ path: '/waybill/CreateZeroOrder',
+ query: {
+ name: '改单',
+ id: $route.query.id,
+ type: 'edit',
+ backPath: '/waybill/WaybillOrderList',
+ },
+ });
+ }
+};
diff --git a/src/views/waybill/WaybillOrderList.vue b/src/views/waybill/WaybillOrderList.vue
index 00049354..62c9bcea 100644
--- a/src/views/waybill/WaybillOrderList.vue
+++ b/src/views/waybill/WaybillOrderList.vue
@@ -117,15 +117,11 @@
-
- 上传回单
-
-
- 查看订单
-
-
+ -->
@@ -564,7 +560,12 @@ const handleGoWaybillDetails = ({ row }) => {
console.log('row :>> ', row);
$router.push({
path: '/distribution/inventory/BookingNote',
- query: { name: `查看 -- 【${row.waybillNo}】`, waybillNo: row.waybillNo, id: row.id },
+ query: {
+ name: `查看 -- 【${row.waybillNo}】`,
+ waybillNo: row.waybillNo,
+ id: row.id,
+ waybillType: row.waybillType,
+ },
});
};
diff --git a/src/views/waybill/orderPackageListDetails.vue b/src/views/waybill/orderPackageListDetails.vue
index 73db8bbf..05ea0722 100644
--- a/src/views/waybill/orderPackageListDetails.vue
+++ b/src/views/waybill/orderPackageListDetails.vue
@@ -108,9 +108,10 @@
批量打印
- 批量入库
+
+ 批量入库
+
+ 批量删除
@@ -136,20 +137,15 @@
>
-
- 包内产品
-
-
- 流转节点
-
- 包内产品
+ 流转节点
+
直接入库
-
- 查看二维码
+
+ 查看二维码
@@ -339,6 +335,7 @@ import {
getopenOrderFindAdvanceDetailList,
getopenOrderIncomingPackage,
getShowAdvancePackgeCode,
+ postDeleteAdvanceDetail,
} from '@/api/waybill/orderPackageListDetails';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
import { downloadXls, setNodeHeight, getHtmls } from '@/utils/util';
@@ -782,6 +779,29 @@ const handleShowFlowNode = ({ row }) => {
console.log('_node :>> ', _node);
});
};
+
+/** 批量删除 */
+const handleBatchDelete = () => {
+ if (details.selectionList.length === 0) return ElMessage.error('请选择要删除的数据');
+
+ ElMessageBox.confirm('确认删除吗?', '警告', {
+ confirmButtonText: '确认',
+ cancelButtonText: '取消',
+ type: 'warning',
+ }).then(async () => {
+ const submitData = { advanceDetailIds: details.selectionList.map(item => item.id) };
+
+ const res = await postDeleteAdvanceDetail(submitData);
+ const { code } = res.data;
+
+ if (code !== 200) return;
+ initPage();
+ ElMessage({
+ type: 'success',
+ message: '删除成功',
+ });
+ });
+};