增加相关功能

This commit is contained in:
2026-09-03 17:54:49 +08:00
parent 44a03186da
commit d8936d9730
30 changed files with 4503 additions and 2412 deletions
+10 -1
View File
@@ -7,6 +7,7 @@
</div>
<div class="header-actions">
<el-button type="primary" :icon="Plus" @click="openCreate">新增供应商</el-button>
<el-button type="success" :icon="Cpu" @click="smartAddVisible = true">智能添加</el-button>
</div>
</div>
@@ -192,21 +193,29 @@
:company-id="currentCompany?.id"
:company-name="currentCompany?.supplier_name"
/>
<SmartAddCompany
v-model:visible="smartAddVisible"
type="supplier"
@success="fetchList"
/>
</div>
</template>
<script setup>
import { ref, reactive, onMounted } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Plus, Search, Refresh } from '@element-plus/icons-vue'
import { Plus, Search, Refresh, Cpu } from '@element-plus/icons-vue'
import { getSupplierList, deleteSupplier, toggleSupplierStatus } from '@/api/supplier'
import SupplierEdit from './components/edit.vue'
import ContactBook from '../components/contactBook.vue'
import SmartAddCompany from '../components/smartAddCompany.vue'
const loading = ref(false)
const tableData = ref([])
const editVisible = ref(false)
const currentEditData = ref(null)
const smartAddVisible = ref(false)
const detailVisible = ref(false)
const detailData = ref(null)
const contactBookVisible = ref(false)