fix: BUG修改
This commit is contained in:
parent
343cb6adfd
commit
64ed531839
@ -72,7 +72,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<DialogForm
|
<DialogForm
|
||||||
title="新增"
|
:title="newTitle"
|
||||||
:formConfig="formConfig"
|
:formConfig="formConfig"
|
||||||
:formData="formData"
|
:formData="formData"
|
||||||
v-model:visible="addVisible"
|
v-model:visible="addVisible"
|
||||||
@ -104,6 +104,7 @@ import {
|
|||||||
import transformInfo2 from "./transformInfo2.vue";
|
import transformInfo2 from "./transformInfo2.vue";
|
||||||
import Pagination from "@/components/ProTable/components/Pagination.vue";
|
import Pagination from "@/components/ProTable/components/Pagination.vue";
|
||||||
import DialogForm from "@/components/DialogForm/index.vue";
|
import DialogForm from "@/components/DialogForm/index.vue";
|
||||||
|
const newTitle = ref("新增");
|
||||||
const addVisible = ref(false);
|
const addVisible = ref(false);
|
||||||
// 弹窗中的配置
|
// 弹窗中的配置
|
||||||
const formConfig = {
|
const formConfig = {
|
||||||
@ -241,6 +242,9 @@ const getApplyTimeData = async () => {
|
|||||||
} else {
|
} else {
|
||||||
requestData.engineeringSn = props.snValue;
|
requestData.engineeringSn = props.snValue;
|
||||||
}
|
}
|
||||||
|
if (newTitle.value == "编辑") {
|
||||||
|
requestData.applyIds = formData.value.applyIdList;
|
||||||
|
}
|
||||||
const res = await govermentApplyTimeList(requestData);
|
const res = await govermentApplyTimeList(requestData);
|
||||||
console.log(res, "------------未支付申报时段");
|
console.log(res, "------------未支付申报时段");
|
||||||
if (res && res.result.length > 0) {
|
if (res && res.result.length > 0) {
|
||||||
@ -274,7 +278,7 @@ const saveItem = async (form: any) => {
|
|||||||
getSubItemList();
|
getSubItemList();
|
||||||
addVisible.value = false;
|
addVisible.value = false;
|
||||||
};
|
};
|
||||||
const openAdd = () => {
|
const openAdd = async () => {
|
||||||
formData.value = reactive({
|
formData.value = reactive({
|
||||||
totalAmount: "",
|
totalAmount: "",
|
||||||
payAmount: "",
|
payAmount: "",
|
||||||
@ -285,6 +289,8 @@ const openAdd = () => {
|
|||||||
meetStandards: 1,
|
meetStandards: 1,
|
||||||
suggest: ""
|
suggest: ""
|
||||||
});
|
});
|
||||||
|
newTitle.value = "新增";
|
||||||
|
await getApplyTimeData();
|
||||||
addVisible.value = true;
|
addVisible.value = true;
|
||||||
};
|
};
|
||||||
// 页面的分页
|
// 页面的分页
|
||||||
@ -316,6 +322,8 @@ const arraySpanMethod = ({ row, column, rowIndex, columnIndex }) => {
|
|||||||
const handleEditItem = async (row: any) => {
|
const handleEditItem = async (row: any) => {
|
||||||
formData.value = reactive({ ...row });
|
formData.value = reactive({ ...row });
|
||||||
console.log(formData.value);
|
console.log(formData.value);
|
||||||
|
newTitle.value = "编辑";
|
||||||
|
await getApplyTimeData();
|
||||||
addVisible.value = true;
|
addVisible.value = true;
|
||||||
};
|
};
|
||||||
// 查看数据按钮
|
// 查看数据按钮
|
||||||
@ -340,7 +348,6 @@ watch(
|
|||||||
visible1.value = n;
|
visible1.value = n;
|
||||||
if (n) {
|
if (n) {
|
||||||
formConfig.formItemConfig[5].data = [];
|
formConfig.formItemConfig[5].data = [];
|
||||||
getApplyTimeData();
|
|
||||||
getSubItemList();
|
getSubItemList();
|
||||||
} else {
|
} else {
|
||||||
emits("confirm");
|
emits("confirm");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user