From 9fdf7833206f927eab8b492d211d6d8998fd1ce5 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Sun, 21 Jan 2024 15:14:28 +0800 Subject: [PATCH] update --- src/views/bid_bidding_decision/edit.vue | 44 --------------------- src/views/bid_buy_bidding_document/edit.vue | 41 ------------------- 2 files changed, 85 deletions(-) diff --git a/src/views/bid_bidding_decision/edit.vue b/src/views/bid_bidding_decision/edit.vue index abe5b63..495bff0 100644 --- a/src/views/bid_bidding_decision/edit.vue +++ b/src/views/bid_bidding_decision/edit.vue @@ -2,16 +2,6 @@
-
- - - - - - - -
- { const popupTitle = computed(() => { return mode.value == 'edit' ? '编辑投标决策' : '新增投标决策' }) -//获取所有组织 -const getlist = () => { - getAll().then((res) => { - Object.assign(list1, res) - if (res.length > 0 && !formData.org_id) { - formData.org_id = res[0].id - deptAll({ 'org_id': res[0].id }).then((res) => { - if (res.length > 0) { - Object.assign(list2, res) - formData.dept_id = res[0].id - } - }) - } - }) -} -//获取部门 -const deptrmt = (e: any) => { - formData.dept_id = '' - getlist1(e) - -} -//获取所有部门 -const getlist1 = (id: any) => { - deptAll({ 'org_id': id }).then((res) => { - Object.assign(list2, res) - }) -} // 表单数据 const formData = reactive({ id: '', - dept_id: '', - org_id: '', project_id: '', project_estimation: '', bidding_project_fund_source: '', @@ -280,9 +239,6 @@ const setFormData = async (data: Record) => { Object.assign(formDataannex, arry1) } - if (data.dept_id) { - getlist1(data.org_id) - } for (const key in formData) { if (data[key] != null && data[key] != undefined) { //@ts-ignore diff --git a/src/views/bid_buy_bidding_document/edit.vue b/src/views/bid_buy_bidding_document/edit.vue index a16d745..b435ee6 100644 --- a/src/views/bid_buy_bidding_document/edit.vue +++ b/src/views/bid_buy_bidding_document/edit.vue @@ -2,15 +2,6 @@
-
- - - - - - - -
>() const mode = ref('add') const list1 = reactive([]) const list2 = reactive([]) -import { deptAll } from '@/api/org/department' -import { getAll } from '@/api/org/organization' import configs from "@/config" const base_url = configs.baseUrl + configs.urlPrefix import useUserStore from "@/stores/modules/user"; @@ -178,8 +167,6 @@ const popupTitle = computed(() => { // 表单数据 const formData = reactive({ - "org_id": 0, - "dept_id": 0, "project_id": 0, "bid_decision_id": 0, bid_decision_code: "", @@ -208,34 +195,6 @@ const submituser = (e: any) => { const formRules = reactive({ }) -//获取所有组织 -const getlist = () => { - getAll().then((res) => { - Object.assign(list1, res) - if (res.length > 0 && !formData.org_id) { - formData.org_id = res[0].id - deptAll({ 'org_id': res[0].id }).then((res) => { - if (res.length > 0) { - Object.assign(list2, res) - formData.dept_id = res[0].id - } - - }) - } - }) -} -//获取部门 -const deptrmt = (e: any) => { - formData.dept_id = '' - getlist1(e) - -} -//获取所有部门 -const getlist1 = (id: any) => { - deptAll({ 'org_id': id }).then((res) => { - list2.splice(0, list2.length, ...res) - }) -} //获取值 const customEvent = (e: any) => { formData.project_id = e.project_id;