diff --git a/src/views/bid_bidding_decision/edit.vue b/src/views/bid_bidding_decision/edit.vue index 8b22d07..495bff0 100644 --- a/src/views/bid_bidding_decision/edit.vue +++ b/src/views/bid_bidding_decision/edit.vue @@ -2,16 +2,6 @@
-
- - - - - - - -
- - - - - - + @@ -170,8 +155,6 @@ const mode = ref('add') const showDialog = ref(false) 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"; @@ -210,39 +193,10 @@ const customEvent = (e: any) => { 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: '', @@ -285,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_bidding_decision/index.vue b/src/views/bid_bidding_decision/index.vue index 6ac359c..47d35bd 100644 --- a/src/views/bid_bidding_decision/index.vue +++ b/src/views/bid_bidding_decision/index.vue @@ -2,8 +2,8 @@
- - + + @@ -11,7 +11,7 @@ - + - - - + - - + + 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; diff --git a/src/views/bid_document_examination/edit.vue b/src/views/bid_document_examination/edit.vue index 3408c34..1828f39 100644 --- a/src/views/bid_document_examination/edit.vue +++ b/src/views/bid_document_examination/edit.vue @@ -10,15 +10,6 @@ -
- - - - - - - -
{ // 表单数据 const formData = reactive({ id: '', - dept_id: '', - org_id: '', approve_id: 0, buy_bidding_document_id: '', @@ -505,35 +492,6 @@ const customEvent1 = (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 setFormData = async (data: Record) => { diff --git a/src/views/bid_result/detail.vue b/src/views/bid_result/detail.vue index aab38ce..1988abe 100644 --- a/src/views/bid_result/detail.vue +++ b/src/views/bid_result/detail.vue @@ -5,8 +5,6 @@
- {{ formData.org_name }} - {{ formData.dept_name }} {{ formData.bid_document_examination_code }} {{ formData.custom_name }} {{ formData.project_name }} diff --git a/src/views/bid_result/edit.vue b/src/views/bid_result/edit.vue index 9eba514..e7079f2 100644 --- a/src/views/bid_result/edit.vue +++ b/src/views/bid_result/edit.vue @@ -4,15 +4,6 @@ -
- - - - - - - -
@@ -105,8 +96,6 @@ const formDataannex = reactive([]) const showDialog = ref(false) const list1 = reactive([]) const list2 = reactive([]) -import { deptAll } from '@/api/org/department' -import { getAll } from '@/api/org/organization' // 上传文件 const handleAvatarSuccess_four = ( response, @@ -135,8 +124,6 @@ const popupTitle = computed(() => { // 表单数据 const formData = reactive({ id: '', - org_id: '', - dept_id: '', bid_document_examination_id: '', project_id: '', is_successful: '', @@ -146,34 +133,6 @@ const formData = reactive({ annex: [], }) -//获取所有组织 -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 formRules = reactive({