diff --git a/smart-admin-web-typescript/src/api/business/receive/asn/asn-api.ts b/smart-admin-web-typescript/src/api/business/receive/asn/asn-api.ts new file mode 100644 index 0000000..503af94 --- /dev/null +++ b/smart-admin-web-typescript/src/api/business/receive/asn/asn-api.ts @@ -0,0 +1,48 @@ +/** + * 入库单 api 封装 + * + * @Author: 霍锦 + * @Date: 2025-03-26 15:10:02 + * @Copyright 友仓 + */ +import { postRequest, getRequest } from '/@/lib/axios'; + +export const asnApi = { + + /** + * 分页查询 @author 霍锦 + */ + queryPage : (param:object) => { + return postRequest('/asn/queryPage', param); + }, + + /** + * 增加 @author 霍锦 + */ + add: (param:object) => { + return postRequest('/asn/add', param); + }, + + /** + * 修改 @author 霍锦 + */ + update: (param:object) => { + return postRequest('/asn/update', param); + }, + + + /** + * 删除 @author 霍锦 + */ + delete: (asnId:number) => { + return getRequest('/asn/delete',{asnId}); + }, + + /** + * 批量删除 @author 霍锦 + */ + batchDelete: (idList:number[]) => { + return postRequest('/asn/batchDelete', idList); + }, + +}; diff --git a/smart-admin-web-typescript/src/api/business/receive/asn/asn-const.ts b/smart-admin-web-typescript/src/api/business/receive/asn/asn-const.ts new file mode 100644 index 0000000..5243ca9 --- /dev/null +++ b/smart-admin-web-typescript/src/api/business/receive/asn/asn-const.ts @@ -0,0 +1,24 @@ +/* + * 入库单单据类型 + * + */ + +import {SmartEnum} from '/@/types/smart-enum'; + +export const ASN_ORDER_TYPE_ENUM: SmartEnum = { + PURCHASE: { + value: 'PURCHASE', + desc: '采购入库', + }, + RETURN: { + value: 'RETURN', + desc: '退货入库', + }, + OTHER: { + value: 'OTHER', + desc: '其他入库', + }, +}; +export default { + ASN_ORDER_TYPE_ENUM, +}; diff --git a/smart-admin-web-typescript/src/constants/index.ts b/smart-admin-web-typescript/src/constants/index.ts index 3ef19be..72bd069 100644 --- a/smart-admin-web-typescript/src/constants/index.ts +++ b/smart-admin-web-typescript/src/constants/index.ts @@ -10,9 +10,9 @@ import menu from './system/menu-const'; import goods from './business/erp/goods-const'; import category from './business/erp/category-const'; -import { LOGIN_DEVICE_ENUM } from './system/login-device-const'; -import { FLAG_NUMBER_ENUM, GENDER_ENUM, USER_TYPE_ENUM } from './common-const'; -import { LAYOUT_ENUM } from './layout-const'; +import {LOGIN_DEVICE_ENUM} from './system/login-device-const'; +import {FLAG_NUMBER_ENUM, GENDER_ENUM, USER_TYPE_ENUM} from './common-const'; +import {LAYOUT_ENUM} from './layout-const'; import file from './support/file-const'; import notice from './business/oa/notice-const'; import loginLog from './support/login-log-const'; @@ -21,24 +21,26 @@ import message from './business/message/message-const'; import codeGeneratorConst from './support/code-generator-const'; import changeLogConst from './support/change-log-const'; import jobConst from './support/job-const'; -import USAGE_STATUS_ENUM from './business/base/usagestatus-const' +import USAGE_STATUS_ENUM from './business/base/usagestatus-const' +import ASN_ORDER_TYPE_ENUM from '/@/api/business/receive/asn/asn-const' export default { - FLAG_NUMBER_ENUM, - LOGIN_DEVICE_ENUM, - GENDER_ENUM, - USER_TYPE_ENUM, - LAYOUT_ENUM, - ...loginLog, - ...menu, - ...goods, - ...category, - ...file, - ...notice, - ...enterprise, - ...message, - ...codeGeneratorConst, - ...changeLogConst, - ...jobConst, - ...USAGE_STATUS_ENUM + FLAG_NUMBER_ENUM, + LOGIN_DEVICE_ENUM, + GENDER_ENUM, + USER_TYPE_ENUM, + LAYOUT_ENUM, + ...loginLog, + ...menu, + ...goods, + ...category, + ...file, + ...notice, + ...enterprise, + ...message, + ...codeGeneratorConst, + ...changeLogConst, + ...jobConst, + ...USAGE_STATUS_ENUM, + ...ASN_ORDER_TYPE_ENUM }; diff --git a/smart-admin-web-typescript/src/constants/support/table-id-const.ts b/smart-admin-web-typescript/src/constants/support/table-id-const.ts index 6440ae9..ade4c88 100644 --- a/smart-admin-web-typescript/src/constants/support/table-id-const.ts +++ b/smart-admin-web-typescript/src/constants/support/table-id-const.ts @@ -19,6 +19,8 @@ let businessERPInitTableId = 40000; let businessBASEInitTableId = 50000; +let businessRECEIVEInitTableId = 60000; + export const TABLE_ID_CONST = { /** * 业务 @@ -41,6 +43,9 @@ export const TABLE_ID_CONST = { STOCK:businessBASEInitTableId+4,//容器 ADDRESS:businessBASEInitTableId+5,//地址 CUSTOMER:businessBASEInitTableId+6,//客户 + }, + RECEIVE:{ + ASN:businessRECEIVEInitTableId+1,//入库单 } }, diff --git a/smart-admin-web-typescript/src/views/business/base/address/address-form.vue b/smart-admin-web-typescript/src/views/business/base/address/address-form.vue index 4229c8b..b40af3c 100644 --- a/smart-admin-web-typescript/src/views/business/base/address/address-form.vue +++ b/smart-admin-web-typescript/src/views/business/base/address/address-form.vue @@ -26,7 +26,7 @@ - + diff --git a/smart-admin-web-typescript/src/views/business/receive/asn/asn-form.vue b/smart-admin-web-typescript/src/views/business/receive/asn/asn-form.vue new file mode 100644 index 0000000..7bbcb83 --- /dev/null +++ b/smart-admin-web-typescript/src/views/business/receive/asn/asn-form.vue @@ -0,0 +1,201 @@ + + + + + + diff --git a/smart-admin-web-typescript/src/views/business/receive/asn/asn-list.vue b/smart-admin-web-typescript/src/views/business/receive/asn/asn-list.vue new file mode 100644 index 0000000..8927a86 --- /dev/null +++ b/smart-admin-web-typescript/src/views/business/receive/asn/asn-list.vue @@ -0,0 +1,307 @@ + + +