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