feat(发货单): 添加复制新增发货单功能

在发货单列表操作列新增"复制新增"按钮,点击后复制选中发货单信息到新增表单,方便快速创建相似发货单
This commit is contained in:
砂糖
2026-01-29 10:30:41 +08:00
parent 4c6a9e14f0
commit 2c4e1248ed

View File

@@ -52,6 +52,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-view" <el-button size="mini" type="text" icon="el-icon-view"
@click.stop="handlePrint(scope.row)">打印发货单</el-button> @click.stop="handlePrint(scope.row)">打印发货单</el-button>
<el-button size="mini" type="text" icon="el-icon-copy"
@click.stop="handleCopy(scope.row)">复制新增</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" :disabled="scope.row.status === 1" <el-button size="mini" type="text" icon="el-icon-edit" :disabled="scope.row.status === 1"
title="已发货的发货单不能修改" @click.stop="handleUpdate(scope.row)">修改</el-button> title="已发货的发货单不能修改" @click.stop="handleUpdate(scope.row)">修改</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" :disabled="scope.row.status === 1" <el-button size="mini" type="text" icon="el-icon-delete" :disabled="scope.row.status === 1"
@@ -358,6 +360,23 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
handleCopy(row) {
this.form = {
waybillNo: new Date().getTime(),
waybillName: row.waybillName,
planId: row.planId,
consigneeUnit: row.consigneeUnit,
senderUnit: row.senderUnit,
deliveryTime: row.deliveryTime,
weighbridge: row.weighbridge,
salesPerson: row.salesPerson,
principal: row.principal,
principalPhone: row.principalPhone,
remark: row.remark
};
this.open = true;
this.title = "复制新增发货单";
},
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('wms/deliveryWaybill/export', { this.download('wms/deliveryWaybill/export', {