diff --git a/src/api/wms/inStockBill/index.ts b/src/api/wms/inStockBill/index.ts index acaf69a..2577a4a 100644 --- a/src/api/wms/inStockBill/index.ts +++ b/src/api/wms/inStockBill/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { InStockBillVO, InStockBillForm, InStockBillQuery } from '@/api/wms/inStockBill/types'; +import { InStockBillForm, InStockBillQuery, InStockBillVO } from '@/api/wms/inStockBill/types'; /** * 查询物料入库列表 @@ -67,10 +67,10 @@ export const delInStockBill = (inStockBillId: string | number | Array => { + return request({ + url: '/wms/inStockDetails/list', + method: 'get', + params: query + }); +}; + +/** + * 查询入库单明细详细 + * @param inStockDetailsId + */ +export const getInStockDetails = (inStockDetailsId: string | number): AxiosPromise => { + return request({ + url: '/wms/inStockDetails/' + inStockDetailsId, + method: 'get' + }); +}; + +/** + * 新增入库单明细 + * @param data + */ +export const addInStockDetails = (data: InStockDetailsForm) => { + return request({ + url: '/wms/inStockDetails', + method: 'post', + data: data + }); +}; + +/** + * 修改入库单明细 + * @param data + */ +export const updateInStockDetails = (data: InStockDetailsForm) => { + return request({ + url: '/wms/inStockDetails', + method: 'put', + data: data + }); +}; + +/** + * 删除入库单明细 + * @param inStockDetailsId + */ +export const delInStockDetails = (inStockDetailsId: string | number | Array) => { + return request({ + url: '/wms/inStockDetails/' + inStockDetailsId, + method: 'delete' + }); +}; + +/** + * 下拉框查询入库单明细列表 + * @param query + * @returns {*} + */ +export function getWmsInStockDetailsList (query) { + return request({ + url: '/wms/inStockDetails/getWmsInStockDetailsList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/inStockDetails/types.ts b/src/api/wms/inStockDetails/types.ts new file mode 100644 index 0000000..e4d64be --- /dev/null +++ b/src/api/wms/inStockDetails/types.ts @@ -0,0 +1,136 @@ +export interface InStockDetailsVO { + /** + * 入库单明细ID + */ + inStockDetailsId: string | number; + + /** + * 入库单ID + */ + inStockBillId: string | number; + + /** + * 仓库ID + */ + warehouseId: string | number; + + /** + * 物料ID + */ + materielId: string | number; + + /** + * 批次号 + */ + batchNumber: string; + + /** + * 单价 + */ + unitPrice: number; + + /** + * 入库数量 + */ + inStockAmount: number; + + /** + * 物料单位 + */ + unitName: string; + + /** + * 总价 + */ + totalPrice: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新时间 + */ + updateTime: string; + +} + +export interface InStockDetailsForm extends BaseEntity { + /** + * 入库单明细ID + */ + inStockDetailsId?: string | number; + + /** + * 入库单ID + */ + inStockBillId?: string | number; + + /** + * 仓库ID + */ + warehouseId?: string | number; + + /** + * 物料ID + */ + materielId?: string | number; + + /** + * 批次号 + */ + batchNumber?: string; + + /** + * 单价 + */ + unitPrice?: number; + + /** + * 入库数量 + */ + inStockAmount?: number; + + /** + * 物料单位 + */ + unitName?: string; + + /** + * 总价 + */ + totalPrice?: number; + +} + +export interface InStockDetailsQuery extends PageQuery { + + /** + * 入库单ID + */ + inStockBillId?: string | number; + + /** + * 仓库ID + */ + warehouseId?: string | number; + + /** + * 物料ID + */ + materielId?: string | number; + + /** + * 批次号 + */ + batchNumber?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/wms/inStockBill/add.vue b/src/views/wms/inStockBill/add.vue new file mode 100644 index 0000000..09b03b1 --- /dev/null +++ b/src/views/wms/inStockBill/add.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/src/views/wms/inStockBill/index.vue b/src/views/wms/inStockBill/index.vue index 8d82db5..5d536c3 100644 --- a/src/views/wms/inStockBill/index.vue +++ b/src/views/wms/inStockBill/index.vue @@ -64,28 +64,7 @@ -
- - - 选择物料 - -
-

已选择的物料:

- - - - - - - -
-
- - -
@@ -135,8 +114,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + +
+ + + + 选择物料 + +
+

已选择的物料:

+ + + + + + + +
+
+ + +
+ + +
+ @@ -187,7 +246,8 @@