bug: 🐛 根据类型选择物料
Some checks failed
Release / lint (push) Successful in 55s
Release / Release (push) Failing after 59s

This commit is contained in:
my_ong 2025-03-08 20:26:58 +08:00
parent 7ca2ebcf5d
commit c4c2a8bd67
3 changed files with 4 additions and 4 deletions

View File

@ -3940,7 +3940,7 @@
{
"description": "查询所有物料列表",
"name": "all",
"method": "get",
"method": "post",
"path": "/material/list",
"response": {
"typeArgs": [

View File

@ -14,7 +14,7 @@ export default async function (
fail: (error: { code: string; error?: string }) => void = defaultError,
): Promise<void> {
return http({
method: 'get',
method: 'post',
url: `/material/list`,
params,

View File

@ -48,7 +48,7 @@
<a-button
v-if="record.reviewResult === 'WAIT_SCAN' || record.reviewResult === 'REJECT'"
type="link"
@click="showModal(record.id)"
@click="showModal(record.id, record.auditType)"
>
<template #icon>
<icon-font type="icon-edit" />
@ -167,7 +167,7 @@
applyForm,
() => {
if (applyForm.value && applyForm.value.types && applyForm.value.types.length > 0) {
api.materialApi.material.all({ type: applyForm.value.types[0] }, (data) => {
api.materialApi.material.all({ type: applyForm.value.types.join(',') }, (data) => {
materialList.value = data.map((item) => {
return {
value: item?.id + '',