diff --git a/src/views/firstOrder/components/outDialog.vue b/src/views/firstOrder/components/outDialog.vue
index 1086c52..f1d8d80 100644
--- a/src/views/firstOrder/components/outDialog.vue
+++ b/src/views/firstOrder/components/outDialog.vue
@@ -308,9 +308,15 @@
class="dialog-footer"
v-if="outDialogType != 'details'"
>
- 取 消
- 暂存
- 提交
+ 取 消
+ 暂存
+ 提交
@@ -496,7 +502,8 @@ export default {
},
quarterYearMap: {},
quarterQuarterMap: {},
- materials:[],//需求单的物料
+ materials: [], //需求单的物料
+ saveLoading: false,
};
},
computed: {
@@ -712,7 +719,6 @@ export default {
});
if (res.data && res.data.result) {
this.departmentList = res.data.result;
- console.log(this.departmentList, "departmentList");
} else {
this.departmentList = [];
}
@@ -799,7 +805,6 @@ export default {
this.inBatchForm.optionType === "YH" ? "易耗品" : "耐用品"
}数据失败:${error.message}`
);
- console.error("批量提交接口调用失败:", error);
}
},
//获取单条选择的部门名称列表
@@ -916,6 +921,7 @@ export default {
this.sizeForm.optionType = this.inBatchForm.optionType;
}
try {
+ this.saveLoading = true;
const res = await submitData(this.sizeForm);
if (res.data.success) {
this.$message({
@@ -923,11 +929,14 @@ export default {
message: "提交成功",
});
this.$emit("submitSuccess");
+ this.saveLoading = false;
this.handleCloseDetail();
} else {
+ this.saveLoading = false;
this.$message.error(res.data.message || "提交失败");
}
} catch (error) {
+ this.saveLoading = false;
this.$message.error(error.message || "服务器错误");
}
},
@@ -936,7 +945,6 @@ export default {
async inInit() {
if (this.outDialogType == "details" || this.outDialogType == "edit") {
editList(this.id).then((res) => {
- console.log(res.data.result, "详情数据");
const { ldOneOutStorage, ldOneOutStorageDetails } =
res.data.result || {};
// this.sizeForm = res.data.result.ldOneOutStorage
@@ -950,7 +958,6 @@ export default {
this.batchSelectionVisible = false;
if (this.sizeForm.options == 2 && this.sizeForm.optionType == "YH") {
-
this.getMaterialList();
}
this.$set(this.sizeForm, "inTableData", ldOneOutStorageDetails);