|
|
|
@ -675,6 +675,32 @@ export default {
|
|
|
|
|
// 打开对话框
|
|
|
|
|
this.dialogVisible = true;
|
|
|
|
|
},
|
|
|
|
|
// handleUpdateSAP102(row) {
|
|
|
|
|
// // 确保 ids 是数组
|
|
|
|
|
// const ids = row.id || this.ids;
|
|
|
|
|
//
|
|
|
|
|
// // 检查是否有可过账的记录
|
|
|
|
|
// if (!this.ids || this.ids.length === 0) {
|
|
|
|
|
// this.$message.error("没有可过账的记录");
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// // 打开对话框
|
|
|
|
|
// this.dialogVisible = true;
|
|
|
|
|
// },
|
|
|
|
|
handleUpdateSAP102(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
//qualityStatus
|
|
|
|
|
const id = this.ids[0]
|
|
|
|
|
let postData = this.ids.map(id => ({ id: id }));
|
|
|
|
|
|
|
|
|
|
this.$modal.confirm('是否进行过账').then(function() {
|
|
|
|
|
return handleUpdateSAP102(JSON.stringify(postData));
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("过账完成");
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
confirmSelection() {
|
|
|
|
|
if (!this.selectedType) {
|
|
|
|
|
this.$message.error("请选择库存类型");
|
|
|
|
|