From a9ca0823ab8f33ca85abebcf6ec4a8da235adb49 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 30 一月 2024 14:36:49 +0800
Subject: [PATCH] 开发业务接口
---
company/src/views/business/taxes.vue | 32 +++++++++++++++++++++++---------
1 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/company/src/views/business/taxes.vue b/company/src/views/business/taxes.vue
index 79d6e85..be106cb 100644
--- a/company/src/views/business/taxes.vue
+++ b/company/src/views/business/taxes.vue
@@ -19,14 +19,14 @@
</el-date-picker>
</el-form-item>
<el-form-item label="鐢宠寮�绁ㄤ紒涓�" prop="companyId">
- <el-select v-model="searchForm.companyId" placeholder="璇烽�夋嫨" @keypress.enter.native="search">
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.label"
- :value="item.value">
- </el-option>
- </el-select>
+ <el-select v-model="searchForm.companyId" placeholder="璇烽�夋嫨" @change="search">
+ <el-option
+ v-for="item in companyList"
+ :key="item.id"
+ :label="item.name"
+ :value="item.id">
+ </el-option>
+ </el-select>
</el-form-item>
<section>
<el-button type="primary" @click="search">鎼滅储</el-button>
@@ -122,6 +122,8 @@
import TableLayout from '@/layouts/TableLayout'
import Pagination from '@/components/common/Pagination'
import OperaTaxesWindow from '@/components/business/OperaTaxesWindow'
+ import {all as solutionAll} from "@/api/business/solutions";
+ import {pageAll as companyAll} from "@/api/business/company";
export default {
name: 'Taxes',
extends: BaseTable,
@@ -129,6 +131,7 @@
data () {
return {
// 鎼滅储
+ companyList:[],
searchForm: {
status: '',
companyId: ''
@@ -144,11 +147,22 @@
'field.main': 'id'
})
this.search()
+ this.loadSelectList()
},
methods: {
handleRemove(file, fileList) {
console.log(file, fileList);
- }
+ },
+ loadSelectList() {
+ solutionAll({dataType:0}).then(res => {
+ this.solutionList = res
+ }).catch(err => {
+ })
+ companyAll({}).then(res => {
+ this.companyList = res
+ }).catch(err => {
+ })
+ }
}
}
</script>
--
Gitblit v1.9.3