🐛 完善出入库申请提交界面。之前代码提交失败
This commit is contained in:
parent
3d7d0a0aee
commit
83ad52c793
@ -3360,13 +3360,13 @@
|
|||||||
"name": "apply",
|
"name": "apply",
|
||||||
"interfaces": [
|
"interfaces": [
|
||||||
{
|
{
|
||||||
"description": "分页查询申请单列表",
|
"description": "分页查询申请列表",
|
||||||
"name": "applies",
|
"name": "searchPage",
|
||||||
"method": "get",
|
"method": "get",
|
||||||
"path": "/apply",
|
"path": "/applies",
|
||||||
"response": {
|
"response": {
|
||||||
"typeArgs": [],
|
"typeArgs": [],
|
||||||
"typeName": "IPageApplyForm",
|
"typeName": "IPageApplyDTO",
|
||||||
"isDefsType": true,
|
"isDefsType": true,
|
||||||
"templateIndex": -1,
|
"templateIndex": -1,
|
||||||
"compileTemplateKeyword": "#/definitions/",
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
@ -3405,10 +3405,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "类型",
|
"description": "申请类型(1入库 3出库 4盘点)",
|
||||||
"required": true,
|
"required": true,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"name": "type",
|
"name": "applyType",
|
||||||
"dataType": {
|
"dataType": {
|
||||||
"typeArgs": [],
|
"typeArgs": [],
|
||||||
"typeName": "number",
|
"typeName": "number",
|
||||||
@ -3420,10 +3420,40 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "搜索关键词",
|
"description": "物料类型",
|
||||||
"required": false,
|
"required": false,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"name": "key",
|
"name": "type",
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "物料编码",
|
||||||
|
"required": false,
|
||||||
|
"in": "query",
|
||||||
|
"name": "code",
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "物料名称",
|
||||||
|
"required": false,
|
||||||
|
"in": "query",
|
||||||
|
"name": "name",
|
||||||
"dataType": {
|
"dataType": {
|
||||||
"typeArgs": [],
|
"typeArgs": [],
|
||||||
"typeName": "string",
|
"typeName": "string",
|
||||||
@ -3437,7 +3467,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "提交申请单",
|
"description": "提交出入库申请单",
|
||||||
"name": "saveApply",
|
"name": "saveApply",
|
||||||
"method": "put",
|
"method": "put",
|
||||||
"path": "/apply",
|
"path": "/apply",
|
||||||
@ -3498,6 +3528,121 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "分页查询盘点列表",
|
||||||
|
"name": "searchAuditPage",
|
||||||
|
"method": "get",
|
||||||
|
"path": "/audit-applies",
|
||||||
|
"response": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "IPageApplyForm",
|
||||||
|
"isDefsType": true,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"description": "页码",
|
||||||
|
"required": false,
|
||||||
|
"in": "query",
|
||||||
|
"name": "page",
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "number",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "页面大小",
|
||||||
|
"required": false,
|
||||||
|
"in": "query",
|
||||||
|
"name": "size",
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "number",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "盘点类型",
|
||||||
|
"required": false,
|
||||||
|
"in": "query",
|
||||||
|
"name": "auditType",
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [
|
||||||
|
"'ALL'",
|
||||||
|
"'PARTIAL'"
|
||||||
|
],
|
||||||
|
"typeProperties": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "盘点人",
|
||||||
|
"required": false,
|
||||||
|
"in": "query",
|
||||||
|
"name": "taker",
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "创建日期",
|
||||||
|
"required": false,
|
||||||
|
"in": "query",
|
||||||
|
"name": "createDate",
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "审核状态",
|
||||||
|
"required": false,
|
||||||
|
"in": "query",
|
||||||
|
"name": "reviewResult",
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [
|
||||||
|
"'PASS'",
|
||||||
|
"'UN_PASS'",
|
||||||
|
"'WAIT'",
|
||||||
|
"'REJECT'"
|
||||||
|
],
|
||||||
|
"typeProperties": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -3708,6 +3853,157 @@
|
|||||||
],
|
],
|
||||||
"name": "material",
|
"name": "material",
|
||||||
"baseClasses": [
|
"baseClasses": [
|
||||||
|
{
|
||||||
|
"name": "ApplyDTO",
|
||||||
|
"templateArgs": [],
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "applicant",
|
||||||
|
"description": "申请人",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "applyDate",
|
||||||
|
"description": "申请日期",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "applyNum",
|
||||||
|
"description": "申请数量",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [
|
||||||
|
"'PURCHASE_RECEIPT'",
|
||||||
|
"'RETURN_RECEIPT'",
|
||||||
|
"'LOAN_OUT'",
|
||||||
|
"'AUDIT'"
|
||||||
|
],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "applyType",
|
||||||
|
"description": "申请类型",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "code",
|
||||||
|
"description": "物料编码",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "confirmNum",
|
||||||
|
"description": "确认数量",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "name",
|
||||||
|
"description": "物料名称",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "remark",
|
||||||
|
"description": "备注",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "spec",
|
||||||
|
"description": "物料规格",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "type",
|
||||||
|
"description": "物料类型",
|
||||||
|
"required": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "申请单明细",
|
"description": "申请单明细",
|
||||||
"name": "ApplyDetail",
|
"name": "ApplyDetail",
|
||||||
@ -3727,6 +4023,22 @@
|
|||||||
"description": "申请单ID",
|
"description": "申请单ID",
|
||||||
"required": false
|
"required": false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [
|
||||||
|
"'LOW_VALUE'",
|
||||||
|
"'HIGH_VALUE'"
|
||||||
|
],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "assignRule",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"dataType": {
|
"dataType": {
|
||||||
"typeArgs": [],
|
"typeArgs": [],
|
||||||
@ -3874,19 +4186,6 @@
|
|||||||
"description": "盘点类型(1: 全盘 2: 部分盘点)",
|
"description": "盘点类型(1: 全盘 2: 部分盘点)",
|
||||||
"required": false
|
"required": false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"dataType": {
|
|
||||||
"typeArgs": [],
|
|
||||||
"typeName": "Codebook",
|
|
||||||
"isDefsType": true,
|
|
||||||
"templateIndex": -1,
|
|
||||||
"compileTemplateKeyword": "#/definitions/",
|
|
||||||
"enum": [],
|
|
||||||
"typeProperties": []
|
|
||||||
},
|
|
||||||
"name": "auditTypeInfo",
|
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"dataType": {
|
"dataType": {
|
||||||
"typeArgs": [],
|
"typeArgs": [],
|
||||||
@ -3930,20 +4229,7 @@
|
|||||||
"typeProperties": []
|
"typeProperties": []
|
||||||
},
|
},
|
||||||
"name": "handle",
|
"name": "handle",
|
||||||
"description": "处理方式(0-无需处理 1-忽略并修改库存 2-补充库存 3-其他)",
|
"description": "处理方式(1-无需处理 2-忽略并修改库存 3-补充库存 4-其他)",
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dataType": {
|
|
||||||
"typeArgs": [],
|
|
||||||
"typeName": "Codebook",
|
|
||||||
"isDefsType": true,
|
|
||||||
"templateIndex": -1,
|
|
||||||
"compileTemplateKeyword": "#/definitions/",
|
|
||||||
"enum": [],
|
|
||||||
"typeProperties": []
|
|
||||||
},
|
|
||||||
"name": "handleInfo",
|
|
||||||
"required": false
|
"required": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -3987,6 +4273,53 @@
|
|||||||
"description": "结果(系统自动生成)",
|
"description": "结果(系统自动生成)",
|
||||||
"required": false
|
"required": false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [
|
||||||
|
"'PASS'",
|
||||||
|
"'UN_PASS'",
|
||||||
|
"'WAIT'",
|
||||||
|
"'REJECT'"
|
||||||
|
],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "reviewResult",
|
||||||
|
"description": "审核结果(1-通过 2-不通过 3-待审核 4-退回重新盘点)",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "reviewer",
|
||||||
|
"description": "盘点审核人",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "string",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "taker",
|
||||||
|
"description": "盘点人",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"dataType": {
|
"dataType": {
|
||||||
"typeArgs": [],
|
"typeArgs": [],
|
||||||
@ -4006,19 +4339,6 @@
|
|||||||
"description": "类型(1: 采购入库申请 2: 归还入库申请 3: 出库外借申请 4: 盘点申请)",
|
"description": "类型(1: 采购入库申请 2: 归还入库申请 3: 出库外借申请 4: 盘点申请)",
|
||||||
"required": false
|
"required": false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"dataType": {
|
|
||||||
"typeArgs": [],
|
|
||||||
"typeName": "Codebook",
|
|
||||||
"isDefsType": true,
|
|
||||||
"templateIndex": -1,
|
|
||||||
"compileTemplateKeyword": "#/definitions/",
|
|
||||||
"enum": [],
|
|
||||||
"typeProperties": []
|
|
||||||
},
|
|
||||||
"name": "typeInfo",
|
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"dataType": {
|
"dataType": {
|
||||||
"typeArgs": [],
|
"typeArgs": [],
|
||||||
@ -4102,55 +4422,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"description": "枚举码本",
|
|
||||||
"name": "Codebook",
|
|
||||||
"templateArgs": [],
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"dataType": {
|
|
||||||
"typeArgs": [],
|
|
||||||
"typeName": "string",
|
|
||||||
"isDefsType": false,
|
|
||||||
"templateIndex": -1,
|
|
||||||
"compileTemplateKeyword": "#/definitions/",
|
|
||||||
"enum": [],
|
|
||||||
"typeProperties": []
|
|
||||||
},
|
|
||||||
"name": "code",
|
|
||||||
"description": "码本编码",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dataType": {
|
|
||||||
"typeArgs": [],
|
|
||||||
"typeName": "string",
|
|
||||||
"isDefsType": false,
|
|
||||||
"templateIndex": -1,
|
|
||||||
"compileTemplateKeyword": "#/definitions/",
|
|
||||||
"enum": [],
|
|
||||||
"typeProperties": []
|
|
||||||
},
|
|
||||||
"name": "description",
|
|
||||||
"description": "码本名称",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dataType": {
|
|
||||||
"typeArgs": [],
|
|
||||||
"typeName": "string",
|
|
||||||
"isDefsType": false,
|
|
||||||
"templateIndex": -1,
|
|
||||||
"compileTemplateKeyword": "#/definitions/",
|
|
||||||
"enum": [],
|
|
||||||
"typeProperties": []
|
|
||||||
},
|
|
||||||
"name": "name",
|
|
||||||
"description": "码本值",
|
|
||||||
"required": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"description": "全局错误",
|
"description": "全局错误",
|
||||||
"name": "GlobalError",
|
"name": "GlobalError",
|
||||||
@ -4186,6 +4457,87 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "IPageApplyDTO",
|
||||||
|
"templateArgs": [],
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "number",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "current",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "number",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "pages",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [
|
||||||
|
{
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "ApplyDTO",
|
||||||
|
"isDefsType": true,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"typeName": "Array",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "records",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "number",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "size",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dataType": {
|
||||||
|
"typeArgs": [],
|
||||||
|
"typeName": "number",
|
||||||
|
"isDefsType": false,
|
||||||
|
"templateIndex": -1,
|
||||||
|
"compileTemplateKeyword": "#/definitions/",
|
||||||
|
"enum": [],
|
||||||
|
"typeProperties": []
|
||||||
|
},
|
||||||
|
"name": "total",
|
||||||
|
"required": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "IPageApplyForm",
|
"name": "IPageApplyForm",
|
||||||
"templateArgs": [],
|
"templateArgs": [],
|
||||||
@ -4367,20 +4719,7 @@
|
|||||||
"typeProperties": []
|
"typeProperties": []
|
||||||
},
|
},
|
||||||
"name": "assignRule",
|
"name": "assignRule",
|
||||||
"description": "赋码规则(0-低值易耗品(不参与赋码) 1-高价值工具类(参与唯一赋码)",
|
"description": "赋码规则(2-低值易耗品(不参与赋码) 1-高价值工具类(参与唯一赋码)",
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dataType": {
|
|
||||||
"typeArgs": [],
|
|
||||||
"typeName": "Codebook",
|
|
||||||
"isDefsType": true,
|
|
||||||
"templateIndex": -1,
|
|
||||||
"compileTemplateKeyword": "#/definitions/",
|
|
||||||
"enum": [],
|
|
||||||
"typeProperties": []
|
|
||||||
},
|
|
||||||
"name": "assignRuleInfo",
|
|
||||||
"required": false
|
"required": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -4599,19 +4938,6 @@
|
|||||||
"description": "状态",
|
"description": "状态",
|
||||||
"required": false
|
"required": false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"dataType": {
|
|
||||||
"typeArgs": [],
|
|
||||||
"typeName": "Codebook",
|
|
||||||
"isDefsType": true,
|
|
||||||
"templateIndex": -1,
|
|
||||||
"compileTemplateKeyword": "#/definitions/",
|
|
||||||
"enum": [],
|
|
||||||
"typeProperties": []
|
|
||||||
},
|
|
||||||
"name": "statusInfo",
|
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"dataType": {
|
"dataType": {
|
||||||
"typeArgs": [],
|
"typeArgs": [],
|
||||||
|
66
src/api/material/api.d.ts
vendored
66
src/api/material/api.d.ts
vendored
@ -1,4 +1,39 @@
|
|||||||
declare namespace material {
|
declare namespace material {
|
||||||
|
/**
|
||||||
|
* ApplyDTO
|
||||||
|
*/
|
||||||
|
export interface ApplyDTO {
|
||||||
|
/** 申请人 */
|
||||||
|
applicant?: string;
|
||||||
|
|
||||||
|
/** 申请日期 */
|
||||||
|
applyDate?: string;
|
||||||
|
|
||||||
|
/** 申请数量 */
|
||||||
|
applyNum?: string;
|
||||||
|
|
||||||
|
/** 申请类型 */
|
||||||
|
applyType?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT';
|
||||||
|
|
||||||
|
/** 物料编码 */
|
||||||
|
code?: string;
|
||||||
|
|
||||||
|
/** 确认数量 */
|
||||||
|
confirmNum?: string;
|
||||||
|
|
||||||
|
/** 物料名称 */
|
||||||
|
name?: string;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
remark?: string;
|
||||||
|
|
||||||
|
/** 物料规格 */
|
||||||
|
spec?: string;
|
||||||
|
|
||||||
|
/** 物料类型 */
|
||||||
|
type?: string;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 申请单明细
|
* 申请单明细
|
||||||
*/
|
*/
|
||||||
@ -6,6 +41,9 @@ declare namespace material {
|
|||||||
/** 申请单ID */
|
/** 申请单ID */
|
||||||
applyId?: number;
|
applyId?: number;
|
||||||
|
|
||||||
|
/** assignRule */
|
||||||
|
assignRule?: 'LOW_VALUE' | 'HIGH_VALUE';
|
||||||
|
|
||||||
/** 确认数量 */
|
/** 确认数量 */
|
||||||
confirmQuantity?: number;
|
confirmQuantity?: number;
|
||||||
|
|
||||||
@ -41,21 +79,15 @@ declare namespace material {
|
|||||||
/** 盘点类型(1: 全盘 2: 部分盘点) */
|
/** 盘点类型(1: 全盘 2: 部分盘点) */
|
||||||
auditType?: 'ALL' | 'PARTIAL';
|
auditType?: 'ALL' | 'PARTIAL';
|
||||||
|
|
||||||
/** auditTypeInfo */
|
|
||||||
auditTypeInfo?: material.Codebook;
|
|
||||||
|
|
||||||
/** createdTime */
|
/** createdTime */
|
||||||
createdTime?: string;
|
createdTime?: string;
|
||||||
|
|
||||||
/** 异常原因 */
|
/** 异常原因 */
|
||||||
exception?: string;
|
exception?: string;
|
||||||
|
|
||||||
/** 处理方式(0-无需处理 1-忽略并修改库存 2-补充库存 3-其他) */
|
/** 处理方式(1-无需处理 2-忽略并修改库存 3-补充库存 4-其他) */
|
||||||
handle?: 'NO_ACTION' | 'IGNORE_AND_SAVE' | 'REPLENISH' | 'OTHER';
|
handle?: 'NO_ACTION' | 'IGNORE_AND_SAVE' | 'REPLENISH' | 'OTHER';
|
||||||
|
|
||||||
/** handleInfo */
|
|
||||||
handleInfo?: material.Codebook;
|
|
||||||
|
|
||||||
/** id */
|
/** id */
|
||||||
id?: number;
|
id?: number;
|
||||||
|
|
||||||
@ -65,12 +97,18 @@ declare namespace material {
|
|||||||
/** 结果(系统自动生成) */
|
/** 结果(系统自动生成) */
|
||||||
result?: string;
|
result?: string;
|
||||||
|
|
||||||
|
/** 审核结果(1-通过 2-不通过 3-待审核 4-退回重新盘点) */
|
||||||
|
reviewResult?: 'PASS' | 'UN_PASS' | 'WAIT' | 'REJECT';
|
||||||
|
|
||||||
|
/** 盘点审核人 */
|
||||||
|
reviewer?: string;
|
||||||
|
|
||||||
|
/** 盘点人 */
|
||||||
|
taker?: string;
|
||||||
|
|
||||||
/** 类型(1: 采购入库申请 2: 归还入库申请 3: 出库外借申请 4: 盘点申请) */
|
/** 类型(1: 采购入库申请 2: 归还入库申请 3: 出库外借申请 4: 盘点申请) */
|
||||||
type?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT';
|
type?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT';
|
||||||
|
|
||||||
/** typeInfo */
|
|
||||||
typeInfo?: material.Codebook;
|
|
||||||
|
|
||||||
/** updatedTime */
|
/** updatedTime */
|
||||||
updatedTime?: string;
|
updatedTime?: string;
|
||||||
}
|
}
|
||||||
@ -93,12 +131,9 @@ declare namespace material {
|
|||||||
* 物料信息
|
* 物料信息
|
||||||
*/
|
*/
|
||||||
export interface Material {
|
export interface Material {
|
||||||
/** 赋码规则(0-低值易耗品(不参与赋码) 1-高价值工具类(参与唯一赋码) */
|
/** 赋码规则(2-低值易耗品(不参与赋码) 1-高价值工具类(参与唯一赋码) */
|
||||||
assignRule?: 'LOW_VALUE' | 'HIGH_VALUE';
|
assignRule?: 'LOW_VALUE' | 'HIGH_VALUE';
|
||||||
|
|
||||||
/** assignRuleInfo */
|
|
||||||
assignRuleInfo?: material.Codebook;
|
|
||||||
|
|
||||||
/** 编码 */
|
/** 编码 */
|
||||||
code?: string;
|
code?: string;
|
||||||
|
|
||||||
@ -149,9 +184,6 @@ declare namespace material {
|
|||||||
/** 状态 */
|
/** 状态 */
|
||||||
status?: 'IN' | 'OUT' | 'OFF';
|
status?: 'IN' | 'OUT' | 'OFF';
|
||||||
|
|
||||||
/** statusInfo */
|
|
||||||
statusInfo?: material.Codebook;
|
|
||||||
|
|
||||||
/** updatedTime */
|
/** updatedTime */
|
||||||
updatedTime?: string;
|
updatedTime?: string;
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,14 @@
|
|||||||
* @description 入库/出库 申请单管理
|
* @description 入库/出库 申请单管理
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
import applies from './applies';
|
import searchPage from './searchPage';
|
||||||
import saveApply from './saveApply';
|
import saveApply from './saveApply';
|
||||||
import detail from './detail';
|
import detail from './detail';
|
||||||
|
import searchAuditPage from './searchAuditPage';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
applies,
|
searchPage,
|
||||||
saveApply,
|
saveApply,
|
||||||
detail,
|
detail,
|
||||||
|
searchAuditPage,
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @desc 提交申请单
|
* @desc 提交出入库申请单
|
||||||
*/
|
*/
|
||||||
import { defaultSuccess, defaultError, http } from '@/plugins/axios';
|
import { defaultSuccess, defaultError, http } from '@/plugins/axios';
|
||||||
import type { AxiosResponse } from 'axios';
|
import type { AxiosResponse } from 'axios';
|
||||||
|
37
src/api/material/mods/apply/searchAuditPage.ts
Normal file
37
src/api/material/mods/apply/searchAuditPage.ts
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/**
|
||||||
|
* @desc 分页查询盘点列表
|
||||||
|
*/
|
||||||
|
import { defaultSuccess, defaultError, http } from '@/plugins/axios';
|
||||||
|
import type { AxiosResponse } from 'axios';
|
||||||
|
import type { IPage } from '@/api/api';
|
||||||
|
export interface Params {
|
||||||
|
/** 页码 */
|
||||||
|
page?: number;
|
||||||
|
/** 页面大小 */
|
||||||
|
size?: number;
|
||||||
|
/** 盘点类型 */
|
||||||
|
auditType?: 'ALL' | 'PARTIAL';
|
||||||
|
/** 盘点人 */
|
||||||
|
taker?: string;
|
||||||
|
/** 创建日期 */
|
||||||
|
createDate?: string;
|
||||||
|
/** 审核状态 */
|
||||||
|
reviewResult?: 'PASS' | 'UN_PASS' | 'WAIT' | 'REJECT';
|
||||||
|
}
|
||||||
|
|
||||||
|
export default async function (
|
||||||
|
params: Params,
|
||||||
|
success: (data: IPage<material.ApplyForm>) => void = defaultSuccess,
|
||||||
|
fail: (error: { code: string; error?: string }) => void = defaultError,
|
||||||
|
): Promise<void> {
|
||||||
|
return http({
|
||||||
|
method: 'get',
|
||||||
|
url: `/audit-applies`,
|
||||||
|
|
||||||
|
params,
|
||||||
|
})
|
||||||
|
.then((data: AxiosResponse<IPage<material.ApplyForm>, unknown>) => {
|
||||||
|
success(data.data);
|
||||||
|
})
|
||||||
|
.catch((error: { code: string; error?: string }) => fail(error));
|
||||||
|
}
|
37
src/api/material/mods/apply/searchPage.ts
Normal file
37
src/api/material/mods/apply/searchPage.ts
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/**
|
||||||
|
* @desc 分页查询申请列表
|
||||||
|
*/
|
||||||
|
import { defaultSuccess, defaultError, http } from '@/plugins/axios';
|
||||||
|
import type { AxiosResponse } from 'axios';
|
||||||
|
import type { IPage } from '@/api/api';
|
||||||
|
export interface Params {
|
||||||
|
/** 申请类型(1入库 3出库 4盘点) */
|
||||||
|
applyType: number;
|
||||||
|
/** 页码 */
|
||||||
|
page?: number;
|
||||||
|
/** 页面大小 */
|
||||||
|
size?: number;
|
||||||
|
/** 物料类型 */
|
||||||
|
type?: string;
|
||||||
|
/** 物料编码 */
|
||||||
|
code?: string;
|
||||||
|
/** 物料名称 */
|
||||||
|
name?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default async function (
|
||||||
|
params: Params,
|
||||||
|
success: (data: IPage<material.ApplyDTO>) => void = defaultSuccess,
|
||||||
|
fail: (error: { code: string; error?: string }) => void = defaultError,
|
||||||
|
): Promise<void> {
|
||||||
|
return http({
|
||||||
|
method: 'get',
|
||||||
|
url: `/applies`,
|
||||||
|
|
||||||
|
params,
|
||||||
|
})
|
||||||
|
.then((data: AxiosResponse<IPage<material.ApplyDTO>, unknown>) => {
|
||||||
|
success(data.data);
|
||||||
|
})
|
||||||
|
.catch((error: { code: string; error?: string }) => fail(error));
|
||||||
|
}
|
@ -57,6 +57,7 @@
|
|||||||
return $table.getTableData().fullData.map((row) => {
|
return $table.getTableData().fullData.map((row) => {
|
||||||
return {
|
return {
|
||||||
materialId: row.id,
|
materialId: row.id,
|
||||||
|
assignRule: row.assignRule,
|
||||||
quantity: row.applyNum,
|
quantity: row.applyNum,
|
||||||
confirmQuantity: row.scanNum,
|
confirmQuantity: row.scanNum,
|
||||||
exceptionRemark: row.remark,
|
exceptionRemark: row.remark,
|
||||||
|
@ -25,27 +25,25 @@
|
|||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import { IPage } from '@/api/api'
|
import { IPage } from '@/api/api'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const searchKey = ref('')
|
const searchKey = ref('')
|
||||||
const pagedata = ref<IPage<material.ApplyForm>>()
|
const pagedata = ref<IPage<material.ApplyDTO>>()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 加载数据的方法
|
// 加载数据的方法
|
||||||
const loadData = async (page = 1, size = 10) => {
|
const loadData = async (page = 1, size = 10) => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
api.materialApi.apply.applies(
|
api.materialApi.apply.searchPage(
|
||||||
//1: 采购入库 2: 归还入库 3: 出库外借
|
{
|
||||||
{ type: 1, page: page || pagedata.value?.current, size: size || pagedata.value?.size, key: searchKey.value },
|
page: page,
|
||||||
(data) => {
|
size: size,
|
||||||
loading.value = false
|
applyType: 1,
|
||||||
pagedata.value = data
|
type:searchKey.value,
|
||||||
},
|
code: searchKey.value,
|
||||||
)
|
name: searchKey.value
|
||||||
|
},(data)=>{
|
||||||
|
pagedata.value = data
|
||||||
|
loading.value = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
//初始加载
|
//初始加载
|
||||||
loadData()
|
loadData()
|
||||||
@ -53,8 +51,12 @@ loadData()
|
|||||||
//表格列
|
//表格列
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: '类型',
|
title: '物料名称',
|
||||||
dataIndex: 'type',
|
dataIndex: 'name',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '物料编码',
|
||||||
|
dataIndex: 'code',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '申请人',
|
title: '申请人',
|
||||||
@ -65,16 +67,16 @@ const columns = [
|
|||||||
dataIndex: 'applyDate',
|
dataIndex: 'applyDate',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '是否确认',
|
title: '申请数量',
|
||||||
dataIndex: 'isConfirm',
|
dataIndex: 'applyNum',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建人',
|
title: '确认数量',
|
||||||
dataIndex: 'createdBy',
|
dataIndex: 'confirmNum',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '备注',
|
||||||
dataIndex: 'createdTime',
|
dataIndex: 'remark',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -26,20 +26,24 @@ import api from '@/api'
|
|||||||
import { IPage } from '@/api/api'
|
import { IPage } from '@/api/api'
|
||||||
|
|
||||||
const searchKey = ref('')
|
const searchKey = ref('')
|
||||||
const pagedata = ref<IPage<material.ApplyForm>>()
|
const pagedata = ref<IPage<material.ApplyDTO>>()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
|
||||||
// 加载数据的方法
|
// 加载数据的方法
|
||||||
const loadData = async (page = 1, size = 10) => {
|
const loadData = async (page = 1, size = 10) => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
api.materialApi.apply.applies(
|
api.materialApi.apply.searchPage(
|
||||||
//1: 采购入库 2: 归还入库 3: 出库外借
|
{
|
||||||
{ type: 3, page: page || pagedata.value?.current, size: size || pagedata.value?.size, key: searchKey.value },
|
page: page,
|
||||||
(data) => {
|
size: size,
|
||||||
loading.value = false
|
applyType: 3,
|
||||||
pagedata.value = data
|
type:searchKey.value,
|
||||||
},
|
code: searchKey.value,
|
||||||
)
|
name: searchKey.value
|
||||||
|
},(data)=>{
|
||||||
|
pagedata.value = data
|
||||||
|
loading.value = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
//初始加载
|
//初始加载
|
||||||
loadData()
|
loadData()
|
||||||
@ -47,8 +51,12 @@ loadData()
|
|||||||
//表格列
|
//表格列
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: '类型',
|
title: '物料名称',
|
||||||
dataIndex: 'type',
|
dataIndex: 'name',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '物料编码',
|
||||||
|
dataIndex: 'code',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '申请人',
|
title: '申请人',
|
||||||
@ -59,16 +67,16 @@ const columns = [
|
|||||||
dataIndex: 'applyDate',
|
dataIndex: 'applyDate',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '是否确认',
|
title: '申请数量',
|
||||||
dataIndex: 'isConfirm',
|
dataIndex: 'applyNum',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建人',
|
title: '确认数量',
|
||||||
dataIndex: 'createdBy',
|
dataIndex: 'confirmNum',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '备注',
|
||||||
dataIndex: 'createdTime',
|
dataIndex: 'remark',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<page-container>
|
<page-container>
|
||||||
<!-- 页面操作栏 -->
|
<!-- 页面操作栏 -->
|
||||||
<template #ops>
|
<template #ops>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="18">
|
<a-col :span="18">
|
||||||
<a-input-search v-model:value="searchKey" :placeholder="`请输入`" allow-clear enter-button
|
<a-input-search v-model:value="searchKey" :placeholder="`请输入`" allow-clear enter-button
|
||||||
@search="loadData()"></a-input-search>
|
@search="loadData()"></a-input-search>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!-- 页面表格内容 -->
|
<!-- 页面表格内容 -->
|
||||||
<div style="min-height: calc(100vh - 305px)">
|
<div style="min-height: calc(100vh - 305px)">
|
||||||
<!-- 表格行 -->
|
<!-- 表格行 -->
|
||||||
<a-table :columns="columns" :data-source="stocktakingPage?.records" bordered :pagination="pagination"
|
<a-table :columns="columns" :data-source="auditPage?.records" bordered :pagination="pagination"
|
||||||
:loading="loading" row-key="key">
|
:loading="loading" row-key="key">
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
</page-container>
|
</page-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@ -24,70 +24,58 @@ import api from '@/api';
|
|||||||
import { IPage } from '@/api/api'
|
import { IPage } from '@/api/api'
|
||||||
const searchKey = ref('')
|
const searchKey = ref('')
|
||||||
|
|
||||||
const stocktakingPage = ref<IPage<material.Stocktaking>>()
|
const auditPage = ref<IPage<material.ApplyForm>>()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
|
||||||
// 加载数据的方法
|
// 加载数据的方法
|
||||||
const loadData = async (page = 1, size = 10) => {
|
const loadData = async (page = 1, size = 10) => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
api.materialApi.stocktaking.stocktakingList({ page, size, key: searchKey.value }, (data) => {
|
api.materialApi.apply.searchAuditPage(
|
||||||
stocktakingPage.value = data
|
{
|
||||||
loading.value = false
|
page: page,
|
||||||
})
|
size: size
|
||||||
|
}, (data) => {
|
||||||
|
auditPage.value = data
|
||||||
|
loading.value = false
|
||||||
|
});
|
||||||
}
|
}
|
||||||
//初始加载
|
//初始加载
|
||||||
loadData()
|
loadData()
|
||||||
|
|
||||||
//表格列
|
//表格列
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: '盘点类型',
|
title: '盘点类型',
|
||||||
dataIndex: 'type',
|
dataIndex: 'auditType',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '盘点日期',
|
title: '盘点人',
|
||||||
dataIndex: 'date',
|
dataIndex: 'applicant',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '盘点人',
|
title: '盘点审核人',
|
||||||
dataIndex: 'operator',
|
dataIndex: 'reviewer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '盘点结果',
|
title: '盘点人',
|
||||||
dataIndex: 'result',
|
dataIndex: 'taker',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '任务状态',
|
title: '创建时间',
|
||||||
dataIndex: 'status',
|
dataIndex: 'createdTime',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '审核人',
|
|
||||||
dataIndex: 'reviewer',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '审核结果',
|
|
||||||
dataIndex: 'reviewResult',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '异常处理方式',
|
|
||||||
dataIndex: 'exceptionHandle',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '异常原因',
|
|
||||||
dataIndex: 'exception',
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
|
|
||||||
//分页信息
|
//分页信息
|
||||||
const pagination = computed(() => {
|
const pagination = computed(() => {
|
||||||
return {
|
return {
|
||||||
current: stocktakingPage.value?.current,
|
current: auditPage.value?.current,
|
||||||
pageSize: stocktakingPage.value?.size,
|
pageSize: auditPage.value?.size,
|
||||||
total: stocktakingPage.value?.total,
|
total: auditPage.value?.total,
|
||||||
onChange: (page: number, pageSize: number) => {
|
onChange: (page: number, pageSize: number) => {
|
||||||
loadData(page, pageSize)
|
loadData(page, pageSize)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,30 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<page-container>
|
<page-container>
|
||||||
<!-- 页面操作栏 -->
|
<!-- 页面操作栏 -->
|
||||||
<template #ops>
|
<template #ops>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="18">
|
<a-col :span="18">
|
||||||
<a-input-search v-model:value="searchKey" :placeholder="`请输入`" allow-clear enter-button
|
<a-input-search v-model:value="searchKey" :placeholder="`请输入`" allow-clear enter-button
|
||||||
@search="loadData()"></a-input-search>
|
@search="loadData()"></a-input-search>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6">
|
<a-col :span="6">
|
||||||
<a-button type="primary" style="margin-left: 10px">
|
<a-button type="primary" style="margin-left: 10px">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<icon-font type="icon-plus" />
|
<icon-font type="icon-plus" />
|
||||||
</template>
|
</template>
|
||||||
盘点申请
|
盘点申请
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!-- 页面表格内容 -->
|
<!-- 页面表格内容 -->
|
||||||
<div style="min-height: calc(100vh - 305px)">
|
<div style="min-height: calc(100vh - 305px)">
|
||||||
<!-- 表格行 -->
|
<!-- 表格行 -->
|
||||||
<a-table :columns="columns" :data-source="stocktakingPage?.records" bordered :pagination="pagination"
|
<a-table :columns="columns" :data-source="auditPage?.records" bordered :pagination="pagination"
|
||||||
:loading="loading" row-key="key">
|
:loading="loading" row-key="key">
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
</page-container>
|
</page-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@ -32,70 +32,58 @@ import api from '@/api';
|
|||||||
import { IPage } from '@/api/api'
|
import { IPage } from '@/api/api'
|
||||||
const searchKey = ref('')
|
const searchKey = ref('')
|
||||||
|
|
||||||
const stocktakingPage = ref<IPage<material.Stocktaking>>()
|
const auditPage = ref<IPage<material.ApplyForm>>()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
|
||||||
// 加载数据的方法
|
// 加载数据的方法
|
||||||
const loadData = async (page = 1, size = 10) => {
|
const loadData = async (page = 1, size = 10) => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
api.materialApi.stocktaking.stocktakingList({ page, size, key: searchKey.value }, (data) => {
|
api.materialApi.apply.searchAuditPage(
|
||||||
stocktakingPage.value = data
|
{
|
||||||
loading.value = false
|
page: page,
|
||||||
})
|
size: size
|
||||||
}
|
}, (data) => {
|
||||||
//初始加载
|
auditPage.value = data
|
||||||
loadData()
|
loading.value = false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//初始加载
|
||||||
|
loadData()
|
||||||
|
|
||||||
//表格列
|
//表格列
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: '盘点类型',
|
title: '盘点类型',
|
||||||
dataIndex: 'type',
|
dataIndex: 'auditType',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '盘点日期',
|
title: '盘点人',
|
||||||
dataIndex: 'date',
|
dataIndex: 'applicant',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '盘点人',
|
title: '盘点审核人',
|
||||||
dataIndex: 'operator',
|
dataIndex: 'reviewer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '盘点结果',
|
title: '盘点人',
|
||||||
dataIndex: 'result',
|
dataIndex: 'taker',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '任务状态',
|
title: '创建时间',
|
||||||
dataIndex: 'status',
|
dataIndex: 'createdTime',
|
||||||
},
|
},
|
||||||
{
|
]
|
||||||
title: '审核人',
|
|
||||||
dataIndex: 'reviewer',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '审核结果',
|
|
||||||
dataIndex: 'reviewResult',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '异常处理方式',
|
|
||||||
dataIndex: 'exceptionHandle',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '异常原因',
|
|
||||||
dataIndex: 'exception',
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
//分页信息
|
//分页信息
|
||||||
const pagination = computed(() => {
|
const pagination = computed(() => {
|
||||||
return {
|
return {
|
||||||
current: stocktakingPage.value?.current,
|
current: auditPage.value?.current,
|
||||||
pageSize: stocktakingPage.value?.size,
|
pageSize: auditPage.value?.size,
|
||||||
total: stocktakingPage.value?.total,
|
total: auditPage.value?.total,
|
||||||
onChange: (page: number, pageSize: number) => {
|
onChange: (page: number, pageSize: number) => {
|
||||||
loadData(page, pageSize)
|
loadData(page, pageSize)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user