From 7ca2ebcf5d2be08ad725f7cd4d1dd8fd18ee0220 Mon Sep 17 00:00:00 2001 From: my_ong <429426262@qq.com> Date: Sat, 8 Mar 2025 15:36:52 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20:bug:=20=E9=A1=B5=E9=9D=A2=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=BF=AE=E5=A4=8D=E5=B9=B6=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api-lock.json | 53 ++++++++++++++++--- src/api/material/api.d.ts | 23 ++++---- .../material/mods/apply/searchAuditPage.ts | 2 +- src/views/stock/component/apply-form.vue | 7 +-- src/views/stock/component/scan-form.vue | 4 +- src/views/stock/material/form.ts | 2 +- src/views/stock/material/material-page.vue | 7 ++- src/views/stock/report/inboundReport-page.vue | 5 ++ .../stock/report/outboundReport-page.vue | 5 ++ .../stock/stocktaking/stocktaking-page.vue | 44 +++++++++------ vite.config.ts | 4 +- 11 files changed, 110 insertions(+), 46 deletions(-) diff --git a/src/api/api-lock.json b/src/api/api-lock.json index 14e23b5..0736f08 100644 --- a/src/api/api-lock.json +++ b/src/api/api-lock.json @@ -3591,7 +3591,7 @@ "isDefsType": false, "templateIndex": -1, "compileTemplateKeyword": "#/definitions/", - "enum": ["'ALL'", "'PARTIAL'"], + "enum": ["'SCAN'", "'MANUAL'"], "typeProperties": [] } }, @@ -4398,7 +4398,7 @@ "isDefsType": false, "templateIndex": -1, "compileTemplateKeyword": "#/definitions/", - "enum": ["'PURCHASE_RECEIPT'", "'RETURN_RECEIPT'", "'LOAN_OUT'", "'AUDIT'"], + "enum": ["'PURCHASE_RECEIPT'", "'RETURN_RECEIPT'", "'LOAN_OUT'", "'AUDIT'", "'SCRAP_OUT'"], "typeProperties": [] }, "name": "applyType", @@ -4660,11 +4660,11 @@ "isDefsType": false, "templateIndex": -1, "compileTemplateKeyword": "#/definitions/", - "enum": ["'ALL'", "'PARTIAL'"], + "enum": ["'SCAN'", "'MANUAL'"], "typeProperties": [] }, "name": "auditType", - "description": "盘点类型(1: 全盘 2: 部分盘点)", + "description": "盘点类型(1: 扫码 2: 人工)", "required": false }, { @@ -4770,7 +4770,7 @@ "isDefsType": false, "templateIndex": -1, "compileTemplateKeyword": "#/definitions/", - "enum": ["'PURCHASE_RECEIPT'", "'RETURN_RECEIPT'", "'LOAN_OUT'", "'AUDIT'"], + "enum": ["'PURCHASE_RECEIPT'", "'RETURN_RECEIPT'", "'LOAN_OUT'", "'AUDIT'", "'SCRAP_OUT'"], "typeProperties": [] }, "name": "type", @@ -4900,11 +4900,11 @@ "isDefsType": false, "templateIndex": -1, "compileTemplateKeyword": "#/definitions/", - "enum": ["'ALL'", "'PARTIAL'"], + "enum": ["'SCAN'", "'MANUAL'"], "typeProperties": [] }, "name": "auditType", - "description": "盘点类型(1: 全盘 2: 部分盘点)", + "description": "盘点类型(1: 扫码 2: 人工)", "required": false }, { @@ -5034,13 +5034,37 @@ "isDefsType": false, "templateIndex": -1, "compileTemplateKeyword": "#/definitions/", - "enum": ["'PURCHASE_RECEIPT'", "'RETURN_RECEIPT'", "'LOAN_OUT'", "'AUDIT'"], + "enum": ["'PURCHASE_RECEIPT'", "'RETURN_RECEIPT'", "'LOAN_OUT'", "'AUDIT'", "'SCRAP_OUT'"], "typeProperties": [] }, "name": "type", "description": "类型(1: 采购入库申请 2: 归还入库申请 3: 出库外借申请 4: 盘点申请)", "required": false }, + { + "dataType": { + "typeArgs": [ + { + "typeArgs": [], + "typeName": "string", + "isDefsType": false, + "templateIndex": -1, + "compileTemplateKeyword": "#/definitions/", + "enum": [], + "typeProperties": [] + } + ], + "typeName": "Array", + "isDefsType": false, + "templateIndex": -1, + "compileTemplateKeyword": "#/definitions/", + "enum": [], + "typeProperties": [] + }, + "name": "types", + "description": "物料类型", + "required": false + }, { "dataType": { "typeArgs": [], @@ -5580,6 +5604,19 @@ "description": "类型", "required": false }, + { + "dataType": { + "typeArgs": [], + "typeName": "string", + "isDefsType": false, + "templateIndex": -1, + "compileTemplateKeyword": "#/definitions/", + "enum": [], + "typeProperties": [] + }, + "name": "typeName", + "required": false + }, { "dataType": { "typeArgs": [], diff --git a/src/api/material/api.d.ts b/src/api/material/api.d.ts index 8872bd5..40f6d56 100644 --- a/src/api/material/api.d.ts +++ b/src/api/material/api.d.ts @@ -13,7 +13,7 @@ declare namespace material { applyNum?: string /** 申请类型 */ - applyType?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT' + applyType?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT' | 'SCRAP_OUT' /** 物料编码 */ code?: string @@ -76,8 +76,8 @@ declare namespace material { /** 申请日期 */ applyDate?: string - /** 盘点类型(1: 全盘 2: 部分盘点) */ - auditType?: 'ALL' | 'PARTIAL' + /** 盘点类型(1: 扫码 2: 人工) */ + auditType?: 'SCAN' | 'MANUAL' /** 是否确认(0: 未确认 1: 已确认) */ confirm?: boolean @@ -101,7 +101,7 @@ declare namespace material { taker?: string /** 类型(1: 采购入库申请 2: 归还入库申请 3: 出库外借申请 4: 盘点申请) */ - type?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT' + type?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT' | 'SCRAP_OUT' /** updatedTime */ updatedTime?: string @@ -131,8 +131,8 @@ declare namespace material { /** 申请日期 */ applyDate?: string - /** 盘点类型(1: 全盘 2: 部分盘点) */ - auditType?: 'ALL' | 'PARTIAL' + /** 盘点类型(1: 扫码 2: 人工) */ + auditType?: 'SCAN' | 'MANUAL' /** 是否确认(0: 未确认 1: 已确认) */ confirm?: boolean @@ -146,9 +146,6 @@ declare namespace material { /** 物料ids */ ids?: Array - /** 物料类型 */ - types?: Array - /** 审核意见 */ reviewRemark?: string @@ -162,7 +159,10 @@ declare namespace material { taker?: string /** 类型(1: 采购入库申请 2: 归还入库申请 3: 出库外借申请 4: 盘点申请) */ - type?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT' + type?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT' | 'SCRAP_OUT' + + /** 物料类型 */ + types?: Array /** updatedTime */ updatedTime?: string @@ -213,6 +213,9 @@ declare namespace material { /** 类型 */ type?: string + /** typeName */ + typeName?: string + /** updatedTime */ updatedTime?: string } diff --git a/src/api/material/mods/apply/searchAuditPage.ts b/src/api/material/mods/apply/searchAuditPage.ts index b4fe789..ec9b0eb 100644 --- a/src/api/material/mods/apply/searchAuditPage.ts +++ b/src/api/material/mods/apply/searchAuditPage.ts @@ -10,7 +10,7 @@ export interface Params { /** 页面大小 */ size?: number /** 盘点类型 */ - auditType?: 'ALL' | 'PARTIAL' + auditType?: 'SCAN' | 'MANUAL' /** 盘点人 */ taker?: string /** 创建日期 */ diff --git a/src/views/stock/component/apply-form.vue b/src/views/stock/component/apply-form.vue index aec0f7c..fc34012 100644 --- a/src/views/stock/component/apply-form.vue +++ b/src/views/stock/component/apply-form.vue @@ -3,7 +3,7 @@
- + @@ -29,7 +29,6 @@ :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="请选择物料类型" allow-clear - tree-default-expand-all :tree-data="types" tree-node-filter-prop="label" /> @@ -68,7 +67,7 @@ - +