diff --git a/dist.zip b/dist.zip deleted file mode 100644 index 34120a9..0000000 Binary files a/dist.zip and /dev/null differ diff --git a/src/views/custom/edit.vue b/src/views/custom/edit.vue index 2a08e56..c0245ea 100644 --- a/src/views/custom/edit.vue +++ b/src/views/custom/edit.vue @@ -33,10 +33,12 @@ - + @@ -577,10 +579,10 @@ const handleClose = () => { //获取省份 -function province_change (value: string) { +function province_change(value: string) { getCityList(); } -function city_change (value: string) { +function city_change(value: string) { getAreaList(); } @@ -609,11 +611,13 @@ defineExpose({ getDetail }) - +} + diff --git a/src/views/custom/index.vue b/src/views/custom/index.vue index c4fe2f9..ace6269 100644 --- a/src/views/custom/index.vue +++ b/src/views/custom/index.vue @@ -20,7 +20,10 @@ - + + + @@ -99,7 +102,9 @@ import { timeFormat } from '@/utils/util' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' import DetailPopup from './detail.vue' - +import { + apiProvinceList, +} from "@/api/common"; import Statistics from '@/components/statistics/index.vue' const editRef = shallowRef>() const detailRef = shallowRef>() @@ -203,6 +208,12 @@ const handleDelete = async (id: number | any[]) => { getLists() } + +const ProvinceList = ref([]) +const getProvinceList = async () => { + ProvinceList.value = await apiProvinceList({}); +} +getProvinceList() getLists() diff --git a/src/views/custom_follow/edit.vue b/src/views/custom_follow/edit.vue index 72b7978..204b1ca 100644 --- a/src/views/custom_follow/edit.vue +++ b/src/views/custom_follow/edit.vue @@ -12,14 +12,14 @@ - + - @@ -30,14 +30,29 @@ - + + +
+
+ {{ item.name }} + x +
+
- + @@ -57,7 +72,10 @@ import { timeFormat } from '@/utils/util' import type { PropType } from 'vue' import { usePaging } from '@/hooks/usePaging' import { apiCustomLists } from '@/api/custom' - +import configs from "@/config" +import useUserStore from "@/stores/modules/user"; +const base_url = configs.baseUrl + configs.urlPrefix +const userStore = useUserStore(); defineProps({ dictData: { type: Object as PropType>, @@ -86,13 +104,21 @@ const formData = reactive({ types: '', admin_id: '', description: '', - annex: '', + annex: [], coordinate: '', next_follow_date: '', status: '', }) - +// 上传文件 +const handleAvatarSuccess_four = (response: any) => { + // @ts-ignore + response.code != 0 ? formData.annex.push({ uri: response.data.uri, name: response.data.name }) : ElMessage.error(response.msg); +}; +// 删除上传的文件 +const delFileFn = (index: number) => { + formData.annex.splice(index, 1) +} // 表单验证 const formRules = reactive({ diff --git a/src/views/project_travel_reimbursement/edit.vue b/src/views/project_travel_reimbursement/edit.vue index d5020a6..9de80bc 100644 --- a/src/views/project_travel_reimbursement/edit.vue +++ b/src/views/project_travel_reimbursement/edit.vue @@ -202,12 +202,10 @@ import type { FormInstance } from 'element-plus' import Popup from '@/components/popup/index.vue' import { apiProjectTravelReimbursementAdd, apiProjectTravelReimbursementEdit, apiProjectTravelReimbursementDetail } from '@/api/project_travel_reimbursement' import type { PropType } from 'vue' - import projectTripApply from "@/components/project_trip_apply/index.vue" import projectLoanApply from "@/components/project_loan_apply/index.vue" import bankaccount from "@/components/bankaccount/index.vue" import projectcostTemLists from '@/components/projectcostTemLists/index.vue' - import configs from "@/config" import useUserStore from "@/stores/modules/user"; const base_url = configs.baseUrl + configs.urlPrefix diff --git a/src/views/project_travel_reimbursement_invoice_detail/edit.vue b/src/views/project_travel_reimbursement_invoice_detail/edit.vue index 2174a13..37133b2 100644 --- a/src/views/project_travel_reimbursement_invoice_detail/edit.vue +++ b/src/views/project_travel_reimbursement_invoice_detail/edit.vue @@ -199,8 +199,6 @@ const handleClose = () => { emit('close') } - - defineExpose({ open, setFormData, diff --git a/src/views/project_travel_reimbursement_invoice_detail/index.vue b/src/views/project_travel_reimbursement_invoice_detail/index.vue index 39a8c97..39ea90c 100644 --- a/src/views/project_travel_reimbursement_invoice_detail/index.vue +++ b/src/views/project_travel_reimbursement_invoice_detail/index.vue @@ -59,7 +59,7 @@ -
+