Browse Source

update

master
cyril.tsui 2 months ago
parent
commit
dd10c0e13d
3 changed files with 8 additions and 2 deletions
  1. +1
    -0
      src/app/api/jo/actions.ts
  2. +1
    -0
      src/app/api/jo/index.ts
  3. +6
    -2
      src/components/JoSearch/JoSearch.tsx

+ 1
- 0
src/app/api/jo/actions.ts View File

@@ -32,6 +32,7 @@ export interface SearchJoResultResponse {
export interface SearchJoResult { export interface SearchJoResult {
id: number; id: number;
code: string; code: string;
itemCode: string;
name: string; name: string;
reqQty: number; reqQty: number;
uom: string; uom: string;


+ 1
- 0
src/app/api/jo/index.ts View File

@@ -23,6 +23,7 @@ export interface Machine {
export interface JoDetail { export interface JoDetail {
id: number; id: number;
code: string; code: string;
itemCode: string;
name: string; name: string;
reqQty: number; reqQty: number;
uom: string; uom: string;


+ 6
- 2
src/components/JoSearch/JoSearch.tsx View File

@@ -38,7 +38,7 @@ const JoSearch: React.FC<Props> = ({ defaultInputs, bomCombo }) => {


const searchCriteria: Criterion<SearchParamNames>[] = useMemo(() => [ const searchCriteria: Criterion<SearchParamNames>[] = useMemo(() => [
{ label: t("Code"), paramName: "code", type: "text" }, { label: t("Code"), paramName: "code", type: "text" },
{ label: t("Name"), paramName: "name", type: "text" },
{ label: t("Item Name"), paramName: "name", type: "text" },
], [t]) ], [t])


const columns = useMemo<Column<SearchJoResult>[]>( const columns = useMemo<Column<SearchJoResult>[]>(
@@ -53,9 +53,13 @@ const JoSearch: React.FC<Props> = ({ defaultInputs, bomCombo }) => {
name: "code", name: "code",
label: t("Code") label: t("Code")
}, },
{
name: "itemCode",
label: t("Item Code")
},
{ {
name: "name", name: "name",
label: t("Name"),
label: t("Item Name"),
}, },
{ {
name: "reqQty", name: "reqQty",


Loading…
Cancel
Save