fix(wms): 修正收货报表和详情页的文本及按钮状态
- 将发货报表相关文本修正为收货报表 - 在收货详情页添加删除按钮和加载状态 - 为签收、拒签和删除操作添加加载状态防止重复提交
This commit is contained in:
@@ -86,9 +86,11 @@
|
||||
<el-table-column label="操作">
|
||||
<template slot-scope="scope">
|
||||
<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="handleReject(scope.row)">拒签</el-button>
|
||||
@click="openReceiptModal(scope.row)" v-loading="buttonLoading">签收</el-button>
|
||||
<el-button v-if="scope.row.actionStatus == 0 || scope.row.actionStatus == 1" type="danger"
|
||||
@click="handleReject(scope.row)" v-loading="buttonLoading">拒签</el-button>
|
||||
<el-button v-if="scope.row.actionStatus == 3" type="warning" v-loading="buttonLoading"
|
||||
@click="handleDelete(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -269,12 +271,15 @@ export default {
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.buttonLoading = true;
|
||||
updatePendingAction({
|
||||
...row,
|
||||
actionStatus: 3, // 3表示拒签
|
||||
}).then(response => {
|
||||
this.$modal.msgSuccess("拒签成功");
|
||||
this.getList();
|
||||
}).finally(() => {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -340,9 +345,12 @@ export default {
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.buttonLoading = true;
|
||||
delPendingAction(row.actionId).then(response => {
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
this.getList();
|
||||
}).finally(() => {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user