bug: 🐛 根据类型选择物料
This commit is contained in:
parent
7ca2ebcf5d
commit
c4c2a8bd67
@ -3940,7 +3940,7 @@
|
||||
{
|
||||
"description": "查询所有物料列表",
|
||||
"name": "all",
|
||||
"method": "get",
|
||||
"method": "post",
|
||||
"path": "/material/list",
|
||||
"response": {
|
||||
"typeArgs": [
|
||||
|
@ -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,
|
||||
|
@ -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 + '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user