feat: 家具初版

This commit is contained in:
砂糖
2025-09-03 11:55:00 +08:00
parent 623fa846a4
commit 82faee4f7c
44 changed files with 1824 additions and 943 deletions

View File

@@ -1,11 +1,11 @@
<template>
<el-select filterable v-model="_customerId" remote :remote-method="remoteSearchCustomer" :loading="customerLoading" placeholder="请选择客户">
<el-option v-for="item in customerList" :key="item.supplierId" :label="item.name" :value="item.supplierId" />
<el-option v-for="item in customerList" :key="item.customerId" :label="item.name" :value="item.customerId" />
</el-select>
</template>
<script>
import { listSupplier } from '@/api/oa/supplier';
import { listCustomer } from '@/api/wms/customer';
export default {
name: 'CustomerSelect',
@@ -37,7 +37,7 @@
methods: {
remoteSearchCustomer(query) {
this.customerLoading = true;
listSupplier({ name: query, pageNum: 1, pageSize: 10 }).then(response => {
listCustomer({ name: query, pageNum: 1, pageSize: 10 }).then(response => {
this.customerList = response.rows;
}).finally(() => {
this.customerLoading = false;