feat(wms): 添加拒签功能并显示绑定订单信息

- 在收货详情页添加拒签操作和状态显示
- 在发货计划页添加订单绑定显示和输入框
This commit is contained in:
砂糖
2025-12-15 13:10:56 +08:00
parent d809fc489d
commit ca79e0c23d
2 changed files with 33 additions and 3 deletions

View File

@@ -79,6 +79,7 @@
<el-table-column label="操作状态" align="center" prop="actionStatus" width="120">
<template slot-scope="scope">
<el-tag v-if="scope.row.actionStatus === 2" type="success">已收货</el-tag>
<el-tag v-else-if="scope.row.actionStatus === 3" type="danger">已取消</el-tag>
<el-tag v-else type="primary">未收货</el-tag>
</template>
</el-table-column>
@@ -87,7 +88,7 @@
<el-button v-if="scope.row.actionStatus == 0 || scope.row.actionStatus == 1" type="primary"
@click="openReceiptModal(scope.row)">签收</el-button>
<el-button v-if="scope.row.actionStatus == 0 || scope.row.actionStatus == 1" type="danger"
@click="handleDelete(scope.row)">删除</el-button>
@click="handleReject(scope.row)">拒签</el-button>
</template>
</el-table-column>
</el-table>
@@ -262,6 +263,21 @@ export default {
this.open = false;
this.reset();
},
handleReject(row) {
this.$modal.confirm("确认拒签吗?", "拒签确认", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
updatePendingAction({
...row,
actionStatus: 3, // 3表示拒签
}).then(response => {
this.$modal.msgSuccess("拒签成功");
this.getList();
});
});
},
// 表单重置
reset() {
this.form = {