diff --git a/src/api/qms/qcUnqualifiedReview/index.ts b/src/api/qms/qcUnqualifiedReview/index.ts index 0966739..703648e 100644 --- a/src/api/qms/qcUnqualifiedReview/index.ts +++ b/src/api/qms/qcUnqualifiedReview/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { QcUnqualifiedReviewVO, QcUnqualifiedReviewForm, QcUnqualifiedReviewQuery } from '@/api/qms/qcUnqualifiedReview/types'; +import { QcUnqualifiedReviewVO, QcUnqualifiedReviewForm, QcUnqualifiedReviewQuery, CompleteTaskRequest } from '@/api/qms/qcUnqualifiedReview/types'; /** * 查询不合格品待评审列表 @@ -87,3 +87,17 @@ export const handleUnqualified = (dispositionType: string | number, reviewId: st method: 'get' }); }; + +/** + * 主管审批 + * @param data + */ +export const completeTask = (data: QcUnqualifiedReviewForm) => { + return request({ + url: '/qms/qcUnqualifiedReview/completeTask', + method: 'post', + data: data + }); +}; + + diff --git a/src/api/wms/instockRecord/types.ts b/src/api/wms/instockRecord/types.ts index be457f7..5658e69 100644 --- a/src/api/wms/instockRecord/types.ts +++ b/src/api/wms/instockRecord/types.ts @@ -72,6 +72,11 @@ export interface InstockRecordVO { */ updateTime: string; + /** + * 特殊标识(0调拨,1退库) + */ + specialType: string | number; + } export interface InstockRecordForm extends BaseEntity { @@ -142,6 +147,11 @@ export interface InstockRecordForm extends BaseEntity { */ erpSynchronousQty?: number; + /** + * 特殊标识(0调拨,1退库) + */ + specialType?: string | number; + } export interface InstockRecordQuery extends PageQuery { @@ -198,6 +208,11 @@ export interface InstockRecordQuery extends PageQuery { */ erpSynchronousQty?: number; + /** + * 特殊标识(0调拨,1退库) + */ + specialType?: string | number; + /** * 日期范围参数 */ diff --git a/src/api/wms/outstockDetail/index.ts b/src/api/wms/outstockDetail/index.ts index 968f429..f725054 100644 --- a/src/api/wms/outstockDetail/index.ts +++ b/src/api/wms/outstockDetail/index.ts @@ -2,12 +2,12 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; import { OutstockDetailVO, OutstockDetailForm, OutstockDetailQuery } from '@/api/wms/outstockDetail/types'; + /** * 查询出库单-物料列表 * @param query * @returns {*} */ - export const listOutstockDetail = (query?: OutstockDetailQuery): AxiosPromise => { return request({ url: '/wms/outstockDetail/list', @@ -61,3 +61,16 @@ export const delOutstockDetail = (outstockDetailId: string | number | Array => { + return request({ + url: '/wms/outstockDetail/getOutstockDetailList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/outstockDetail/types.ts b/src/api/wms/outstockDetail/types.ts index 54556e4..6d4a494 100644 --- a/src/api/wms/outstockDetail/types.ts +++ b/src/api/wms/outstockDetail/types.ts @@ -53,6 +53,11 @@ export interface OutstockDetailVO { */ agvStatus: string; + /** + * 是否高价值物料(0否,1是) + */ + isHighValue: string; + } export interface OutstockDetailForm extends BaseEntity { @@ -104,6 +109,11 @@ export interface OutstockDetailForm extends BaseEntity { */ agvStatus?: string; + /** + * 是否高价值物料(0否,1是) + */ + isHighValue?: string; + } export interface OutstockDetailQuery extends PageQuery { @@ -156,6 +166,11 @@ export interface OutstockDetailQuery extends PageQuery { */ agvStatus?: string; + /** + * 是否高价值物料(0否,1是) + */ + isHighValue?: string; + /** * 日期范围参数 diff --git a/src/api/wms/outstockOrder/index.ts b/src/api/wms/outstockOrder/index.ts index 95b5c33..4040cf3 100644 --- a/src/api/wms/outstockOrder/index.ts +++ b/src/api/wms/outstockOrder/index.ts @@ -2,6 +2,7 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; import { OutstockOrderVO, OutstockOrderForm, OutstockOrderQuery } from '@/api/wms/outstockOrder/types'; + /** * 查询出库单列表 * @param query @@ -72,4 +73,18 @@ export const approveOutstockOrder = (data: Partial) => { method: 'put', data: data }); -}; \ No newline at end of file +}; + +/** + * 查询出库单列表 + * @param query + * @returns {*} + */ + +export const getOutstockOrderList = (query?: OutstockOrderQuery): AxiosPromise => { + return request({ + url: '/wms/outstockOrder/getOutstockOrderList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/outstockOrder/types.ts b/src/api/wms/outstockOrder/types.ts index 68c27a6..0689a8d 100644 --- a/src/api/wms/outstockOrder/types.ts +++ b/src/api/wms/outstockOrder/types.ts @@ -57,6 +57,11 @@ export interface OutstockOrderVO { */ auditComments: string; + /** + * 客户id,order_type为1销售订单时 + */ + customerId: string | number; + } export interface OutstockOrderForm extends BaseEntity { @@ -117,6 +122,11 @@ export interface OutstockOrderForm extends BaseEntity { */ auditComments?: string; + /** + * 客户id,order_type为1销售订单时 + */ + customerId?: string | number; + } export interface OutstockOrderQuery extends PageQuery { @@ -178,6 +188,11 @@ export interface OutstockOrderQuery extends PageQuery { */ auditComments?: string; + /** + * 客户id,order_type为1销售订单时 + */ + customerId?: string | number; + /** * 日期范围参数 */ diff --git a/src/api/wms/outstockRecord/types.ts b/src/api/wms/outstockRecord/types.ts index 1807bb4..aa29c28 100644 --- a/src/api/wms/outstockRecord/types.ts +++ b/src/api/wms/outstockRecord/types.ts @@ -62,6 +62,12 @@ export interface OutstockRecordVO { */ erpSynchronousQty: number; + + /** + * 特殊标识(0调拨,1退库) + */ + specialType: string | number; + } export interface OutstockRecordForm extends BaseEntity { @@ -122,6 +128,12 @@ export interface OutstockRecordForm extends BaseEntity { */ erpSynchronousQty?: number; + + /** + * 特殊标识(0调拨,1退库) + */ + specialType?: string | number; + } export interface OutstockRecordQuery extends PageQuery { @@ -148,6 +160,11 @@ export interface OutstockRecordQuery extends PageQuery { */ erpSynchronousStatus?: string; + /** + * 特殊标识(0调拨,1退库) + */ + specialType?: string | number; + /** * 日期范围参数 */ diff --git a/src/api/wms/wmsBaseCustomer/index.ts b/src/api/wms/wmsBaseCustomer/index.ts new file mode 100644 index 0000000..67117cd --- /dev/null +++ b/src/api/wms/wmsBaseCustomer/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { WmsBaseCustomerVO, WmsBaseCustomerForm, WmsBaseCustomerQuery } from '@/api/wms/wmsBaseCustomer/types'; + +/** + * 查询客户基础信息列表 + * @param query + * @returns {*} + */ + +export const listWmsBaseCustomer = (query?: WmsBaseCustomerQuery): AxiosPromise => { + return request({ + url: '/wms/wmsBaseCustomer/list', + method: 'get', + params: query + }); +}; + +/** + * 查询客户基础信息详细 + * @param customerId + */ +export const getWmsBaseCustomer = (customerId: string | number): AxiosPromise => { + return request({ + url: '/wms/wmsBaseCustomer/' + customerId, + method: 'get' + }); +}; + +/** + * 新增客户基础信息 + * @param data + */ +export const addWmsBaseCustomer = (data: WmsBaseCustomerForm) => { + return request({ + url: '/wms/wmsBaseCustomer', + method: 'post', + data: data + }); +}; + +/** + * 修改客户基础信息 + * @param data + */ +export const updateWmsBaseCustomer = (data: WmsBaseCustomerForm) => { + return request({ + url: '/wms/wmsBaseCustomer', + method: 'put', + data: data + }); +}; + +/** + * 删除客户基础信息 + * @param customerId + */ +export const delWmsBaseCustomer = (customerId: string | number | Array) => { + return request({ + url: '/wms/wmsBaseCustomer/' + customerId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询客户基础信息列表 + * @param query + * @returns {*} + */ +export function getWmsBaseCustomerList (query) { + return request({ + url: '/wms/wmsBaseCustomer/getWmsBaseCustomerList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/wmsBaseCustomer/types.ts b/src/api/wms/wmsBaseCustomer/types.ts new file mode 100644 index 0000000..83a4bfa --- /dev/null +++ b/src/api/wms/wmsBaseCustomer/types.ts @@ -0,0 +1,161 @@ +export interface WmsBaseCustomerVO { + /** + * 客户ID + */ + customerId: string | number; + + /** + * 客户编码 + */ + customerCode: string; + + /** + * 客户名称 + */ + customerName: string; + + /** + * 联系人 + */ + contactPerson: string; + + /** + * 联系电话 + */ + contactPhone: string; + + /** + * 地址 + */ + address: string; + + /** + * 传真 + */ + fax: string; + + /** + * 邮箱 + */ + email: string; + + /** + * 状态(0启用 1停用) + */ + status: string; + + /** + * 备注信息 + */ + remark: string; + +} + +export interface WmsBaseCustomerForm extends BaseEntity { + /** + * 客户ID + */ + customerId?: string | number; + + /** + * 客户编码 + */ + customerCode?: string; + + /** + * 客户名称 + */ + customerName?: string; + + /** + * 联系人 + */ + contactPerson?: string; + + /** + * 联系电话 + */ + contactPhone?: string; + + /** + * 地址 + */ + address?: string; + + /** + * 传真 + */ + fax?: string; + + /** + * 邮箱 + */ + email?: string; + + /** + * 状态(0启用 1停用) + */ + status?: string; + + /** + * 备注信息 + */ + remark?: string; + +} + +export interface WmsBaseCustomerQuery extends PageQuery { + + /** + * 客户ID + */ + customerId?: string | number; + + /** + * 客户编码 + */ + customerCode?: string; + + /** + * 客户名称 + */ + customerName?: string; + + /** + * 联系人 + */ + contactPerson?: string; + + /** + * 联系电话 + */ + contactPhone?: string; + + /** + * 地址 + */ + address?: string; + + /** + * 传真 + */ + fax?: string; + + /** + * 邮箱 + */ + email?: string; + + /** + * 状态(0启用 1停用) + */ + status?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/wms/wmsCheckTask/index.ts b/src/api/wms/wmsCheckTask/index.ts new file mode 100644 index 0000000..1b9e9bb --- /dev/null +++ b/src/api/wms/wmsCheckTask/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { WmsCheckTaskVO, WmsCheckTaskForm, WmsCheckTaskQuery } from '@/api/wms/wmsCheckTask/types'; + +/** + * 查询仓储盘点任务列表 + * @param query + * @returns {*} + */ + +export const listWmsCheckTask = (query?: WmsCheckTaskQuery): AxiosPromise => { + return request({ + url: '/wms/wmsCheckTask/list', + method: 'get', + params: query + }); +}; + +/** + * 查询仓储盘点任务详细 + * @param taskId + */ +export const getWmsCheckTask = (taskId: string | number): AxiosPromise => { + return request({ + url: '/wms/wmsCheckTask/' + taskId, + method: 'get' + }); +}; + +/** + * 新增仓储盘点任务 + * @param data + */ +export const addWmsCheckTask = (data: WmsCheckTaskForm) => { + return request({ + url: '/wms/wmsCheckTask', + method: 'post', + data: data + }); +}; + +/** + * 修改仓储盘点任务 + * @param data + */ +export const updateWmsCheckTask = (data: WmsCheckTaskForm) => { + return request({ + url: '/wms/wmsCheckTask', + method: 'put', + data: data + }); +}; + +/** + * 删除仓储盘点任务 + * @param taskId + */ +export const delWmsCheckTask = (taskId: string | number | Array) => { + return request({ + url: '/wms/wmsCheckTask/' + taskId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询仓储盘点任务列表 + * @param query + * @returns {*} + */ +export function getWmsCheckTaskList (query) { + return request({ + url: '/wms/wmsCheckTask/getWmsCheckTaskList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/wmsCheckTask/types.ts b/src/api/wms/wmsCheckTask/types.ts new file mode 100644 index 0000000..ca1fce6 --- /dev/null +++ b/src/api/wms/wmsCheckTask/types.ts @@ -0,0 +1,202 @@ +export interface WmsCheckTaskVO { + /** + * 任务主键 + */ + taskId: string | number; + + /** + * 任务编码 + */ + taskCode: string; + + /** + * 任务名称 + */ + taskName: string; + + /** + * 任务类型(0抽检,1暂停其他) + */ + wmsCheckTaskType: string; + + /** + * 物料类型 + */ + materialTypeId: string | number; + + /** + * 抽检率(百分比) + */ + checkRate: number; + + /** + * 定时任务 + */ + cron: string; + + /** + * 仓库主键 + */ + warehouseId: string | number; + + /** + * 定时任务频率选项(0月度计划,1年度计划,2其它) + */ + wmsCheckTaskFrequency: string; + + /** + * 执行日期 (1-31 or 'L') + */ + executeDay?: string; + + /** + * 间隔月数 + */ + intervalMonths?: number; + + /** + * 执行月份 (1-12) + */ + executeMonth?: number; + + /** + * 物料类型名称 + */ + matrialTypeName: string; + + /** + * 仓库名称 + */ + warehouseName: string; + +} + +export interface WmsCheckTaskForm extends BaseEntity { + /** + * 任务主键 + */ + taskId?: string | number; + + /** + * 任务编码 + */ + taskCode?: string; + + /** + * 任务名称 + */ + taskName?: string; + + /** + * 任务类型(0抽检,1暂停其他) + */ + wmsCheckTaskType?: string; + + /** + * 物料类型 + */ + materialTypeId?: string | number; + + /** + * 抽检率(百分比) + */ + checkRate?: number; + + /** + * 定时任务 + */ + cron?: string; + + /** + * 仓库主键 + */ + warehouseId?: string | number; + + /** + * 定时任务频率选项(0月度计划,1年度计划,2其它) + */ + wmsCheckTaskFrequency?: string; + + executeDay?: string; + + intervalMonths?: number; + + executeMonth?: number; + + /** + * 物料类型名称 + */ + matrialTypeName?: string; + + /** + * 仓库名称 + */ + warehouseName?: string; + +} + +export interface WmsCheckTaskQuery extends PageQuery { + + /** + * 任务主键 + */ + taskId?: string | number; + + /** + * 任务编码 + */ + taskCode?: string; + + /** + * 任务名称 + */ + taskName?: string; + + /** + * 任务类型(0抽检,1暂停其他) + */ + wmsCheckTaskType?: string; + + /** + * 物料类型 + */ + materialTypeId?: string | number; + + /** + * 抽检率(百分比) + */ + checkRate?: number; + + /** + * 定时任务 + */ + cron?: string; + + /** + * 仓库主键 + */ + warehouseId?: string | number; + + /** + * 定时任务频率选项(0月度计划,1年度计划,2其它) + */ + wmsCheckTaskFrequency?: string; + + /** + * 物料类型名称 + */ + matrialTypeName?: string; + + /** + * 仓库名称 + */ + warehouseName?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue index aa6589a..acffb29 100644 --- a/src/components/TopNav/index.vue +++ b/src/components/TopNav/index.vue @@ -52,9 +52,9 @@ import { countTaskWaitByCurrentUser } from '@/api/workflow/task'; const badge = ref(1); const getBadge = () => { - countTaskWaitByCurrentUser().then(e => { - badge.value = e.data; - }); + // countTaskWaitByCurrentUser().then(e => { + // badge.value = e.data; + // }); }; onMounted(() => { setInterval(() => { diff --git a/src/views/wms/allocateOrder/index copy.vue b/src/views/wms/allocateOrder/index copy.vue index 4cb6a51..a94c3f2 100644 --- a/src/views/wms/allocateOrder/index copy.vue +++ b/src/views/wms/allocateOrder/index copy.vue @@ -13,16 +13,16 @@ - - + + - - + + @@ -93,13 +93,13 @@ - + - + --> - +