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": "查询所有物料列表", "description": "查询所有物料列表",
"name": "all", "name": "all",
"method": "get", "method": "post",
"path": "/material/list", "path": "/material/list",
"response": { "response": {
"typeArgs": [ "typeArgs": [

View File

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

View File

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