fix:【erp】receipt 将 supplierList 修复为 customerList

This commit is contained in:
YunaiV
2025-11-22 09:01:13 +08:00
parent ad433c4093
commit 224ea2977b

View File

@@ -33,16 +33,16 @@
class="!w-240px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="供应商" prop="supplierId"> <el-form-item label="客户" prop="customerId">
<el-select <el-select
v-model="queryParams.supplierId" v-model="queryParams.customerId"
clearable clearable
filterable filterable
placeholder="请选择供供应商" placeholder="请选择供客户"
class="!w-240px" class="!w-240px"
> >
<el-option <el-option
v-for="item in supplierList" v-for="item in customerList"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id" :value="item.id"
@@ -272,8 +272,8 @@ import FinanceReceiptForm from './FinanceReceiptForm.vue'
import { UserVO } from '@/api/system/user' import { UserVO } from '@/api/system/user'
import * as UserApi from '@/api/system/user' import * as UserApi from '@/api/system/user'
import { erpPriceTableColumnFormatter } from '@/utils' import { erpPriceTableColumnFormatter } from '@/utils'
import { SupplierApi, SupplierVO } from '@/api/erp/purchase/supplier'
import { AccountApi, AccountVO } from '@/api/erp/finance/account' import { AccountApi, AccountVO } from '@/api/erp/finance/account'
import { CustomerApi, CustomerVO } from '@/api/erp/sale/customer'
/** ERP 收款单列表 */ /** ERP 收款单列表 */
defineOptions({ name: 'ErpPurchaseOrder' }) defineOptions({ name: 'ErpPurchaseOrder' })
@@ -289,7 +289,7 @@ const queryParams = reactive({
pageSize: 10, pageSize: 10,
no: undefined, no: undefined,
receiptTime: [], receiptTime: [],
supplierId: undefined, customerId: undefined,
creator: undefined, creator: undefined,
financeUserId: undefined, financeUserId: undefined,
accountId: undefined, accountId: undefined,
@@ -299,7 +299,7 @@ const queryParams = reactive({
}) })
const queryFormRef = ref() // 搜索的表单 const queryFormRef = ref() // 搜索的表单
const exportLoading = ref(false) // 导出的加载中 const exportLoading = ref(false) // 导出的加载中
const supplierList = ref<SupplierVO[]>([]) // 供应商列表 const customerList = ref<CustomerVO[]>([]) // 客户列表
const userList = ref<UserVO[]>([]) // 用户列表 const userList = ref<UserVO[]>([]) // 用户列表
const accountList = ref<AccountVO[]>([]) // 账户列表 const accountList = ref<AccountVO[]>([]) // 账户列表
@@ -384,8 +384,8 @@ const handleSelectionChange = (rows: FinanceReceiptVO[]) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
await getList() await getList()
// 加载供应商、用户、账户 // 加载客户、用户、账户
supplierList.value = await SupplierApi.getSupplierSimpleList() customerList.value = await CustomerApi.getCustomerSimpleList()
userList.value = await UserApi.getSimpleUserList() userList.value = await UserApi.getSimpleUserList()
accountList.value = await AccountApi.getAccountSimpleList() accountList.value = await AccountApi.getAccountSimpleList()
}) })