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