diff --git a/src/api/asrs/warehousePklb.js b/src/api/asrs/warehousePklb.js new file mode 100644 index 0000000..e5c9ec0 --- /dev/null +++ b/src/api/asrs/warehousePklb.js @@ -0,0 +1,59 @@ +/* + * @Author: zwq + * @Date: 2023-08-22 14:50:15 + * @LastEditors: zwq + * @LastEditTime: 2024-06-07 10:49:13 + * @Description: + */ +import request from '@/utils/request' + +// 获得盘库分页 +export function getWarehousePklbPage(query) { + return request({ + url: '/asrs/warehouse-pklb/page', + method: 'get', + params: query + }) +} + +// 盘货明细表 +export function getWarehousePklbDetailPage(query) { + return request({ + url: '/asrs/warehouse-pklb-detail/page', + method: 'get', + params: query + }) +} +// 检查盘货明细表 +export function getWarehousePklbDetailCheck(data) { + return request({ + url: '/asrs/warehouse-pklb-detail/check', + method: 'post', + data: data + }) +} +// 盘货入库 +export function makeWarehouseIn(data) { + return request({ + url: '/asrs/warehouse-storehouse/makewarehousein', + method: 'post', + data: data + }) +} +// 同步mes出库 +export function checkout(data) { + return request({ + url: '/asrs/warehouse-pklb-detail/checkout', + method: 'post', + data: data + }) +} +// 导出盘库 Excel +export function exportWarehouseExcel(query) { + return request({ + url: '/asrs/warehouse-pklb/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/asrs/warehouseStorehouse.js b/src/api/asrs/warehouseStorehouse.js index bf4e64e..50ba553 100644 --- a/src/api/asrs/warehouseStorehouse.js +++ b/src/api/asrs/warehouseStorehouse.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-22 15:31:37 * @LastEditors: zwq - * @LastEditTime: 2024-03-13 15:04:28 + * @LastEditTime: 2024-06-04 16:14:21 * @Description: */ import request from '@/utils/request' @@ -40,6 +40,14 @@ export function outWarehouseStorehouse(data) { data: data }) } +// 盘库 +export function makeWarehouseStorehouse(data) { + return request({ + url: '/asrs/warehouse-storehouse/makewarehouseout', + method: 'post', + data: data + }) +} // 删除立库库位 export function deleteWarehouseStorehouse(id) { return request({ @@ -109,6 +117,21 @@ export function getLineList(query) { params: query }) } +// 获得线边库 +export function getLine(id) { + return request({ + url: '/asrs/line-edge-library/get?id=' + id, + method: 'get' + }) +} +// 更新线边库 +export function updateLine(data) { + return request({ + url: '/asrs/line-edge-library/update', + method: 'put', + data: data + }) +} // 码头移库 export function moveLine(query) { return request({ diff --git a/src/api/oth/delivery.js b/src/api/oth/delivery.js index 05c2f46..b9c70ef 100644 --- a/src/api/oth/delivery.js +++ b/src/api/oth/delivery.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2024-04-16 15:08:37 * @LastEditors: zwq - * @LastEditTime: 2024-05-24 09:57:14 + * @LastEditTime: 2024-05-28 14:30:33 * @Description: */ import request from '@/utils/request' @@ -119,9 +119,18 @@ export function getCode() { // 导出历史 Excel export function exportDeliveryHisExcel(query) { return request({ - url: '/asrs/delivery-history/export-excel', + url: '/asrs/delivery-history-product/export-excel', method: 'get', params: query, responseType: 'blob' }) } + +// 出库后同步mes信息 +export function mesoutsync(data) { + return request({ + url: '/asrs/delivery-history/mesoutsync', + method: 'post', + data: data + }) +} diff --git a/src/views/asrs/delivery/add-or-updata.vue b/src/views/asrs/delivery/add-or-updata.vue index 1c156bc..94ed887 100644 --- a/src/views/asrs/delivery/add-or-updata.vue +++ b/src/views/asrs/delivery/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: zwq - * @LastEditTime: 2024-05-22 10:09:16 + * @LastEditTime: 2024-06-03 16:50:47 * @Description: --> + + + import product from './product-mini'; import basicPage from '../mixins/basic-page'; -import { getDeliveryHisPage,exportDeliveryHisExcel } from '@/api/oth/delivery'; +import { + getDeliveryHisPage, + exportDeliveryHisExcel, + mesoutsync, +} from '@/api/oth/delivery'; import { getLineList } from '@/api/asrs/warehouseStorehouse'; import { getGoodSpecificationPage } from '@/api/asrs/goodSpecification'; @@ -128,7 +141,7 @@ export default { status, deliveryType, trayType, - region, + region, tableData: [], formConfig: [ { @@ -167,8 +180,20 @@ export default { }, { type: 'input', - label: '工单', - placeholder: '工单', + label: '复判等级', + placeholder: '复判等级', + param: 'epddj', + }, + { + type: 'input', + label: '出库单号', + placeholder: '出库单号', + param: 'deliveryCode', + }, + { + type: 'input', + label: '产出工单', + placeholder: '产出工单', param: 'workOrder', }, { @@ -196,7 +221,7 @@ export default { color: 'primary', }, { - type: 'button', + type: this.$auth.hasPermi('asrs:deliveryHis:export') ? 'button' : '', btnName: '导出', name: 'export', color: 'primary', @@ -236,26 +261,50 @@ export default { this.listQuery.workOrder = val.workOrder || null; this.listQuery.process = val.process || null; this.listQuery.rollCode = val.rollCode || null; + this.listQuery.epddj = val.epddj || null; this.listQuery.trayCode = val.trayCode || null; + this.listQuery.deliveryCode = val.deliveryCode || null; this.getDataList(); break; case 'export': - this.listQuery.pageNo = undefined; - this.listQuery.pageSize = undefined; - this.listQuery.productName = val.productName; - this.listQuery.lineEdgeLibraryCode = val.lineEdgeLibraryCode || null; - this.listQuery.region = val.region || null; - this.listQuery.productQuality = val.quality || null; - this.listQuery.workOrder = val.workOrder || null; - this.listQuery.process = val.process || null; - this.listQuery.rollCode = val.rollCode || null; - this.listQuery.trayCode = val.trayCode || null; - this.handleExport(this.listQuery, '历史出库单导出'); + const params = { + inventory: val.rollCode || null, + trayCode: val.trayCode || null, + deliveryCode: val.deliveryCode || null, + }; + this.handleExport(params, '历史出库单导出'); break; default: console.log(val); } }, + otherMethods(val) { + mesoutsync({deliveryCode:val.data.deliveryCode}).then(({ data }) => { + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => { + this.getDataList(); + }, + }); + }); + }, + /** 导出按钮操作 */ + handleExport(params, name) { + // 处理查询参数 + this.$modal + .confirm('是否确认 仅根据(膜卷号、出库单号和托盘编码) 条件导出!!!') + .then(() => { + this.exportLoading = true; + return this.urlOptions.exportURL(params); + }) + .then((response) => { + this.$download.excel(response, name + '.xls'); + this.exportLoading = false; + }) + .catch(() => {}); + }, }, }; diff --git a/src/views/asrs/deliveryHis/product-mini.vue b/src/views/asrs/deliveryHis/product-mini.vue index 6fa95c2..06b2327 100644 --- a/src/views/asrs/deliveryHis/product-mini.vue +++ b/src/views/asrs/deliveryHis/product-mini.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-24 14:47:58 * @LastEditors: zwq - * @LastEditTime: 2024-05-22 16:42:40 + * @LastEditTime: 2024-05-31 14:07:27 * @Description: --> @@ -52,6 +54,10 @@ const tableProps = [ prop: 'grade', label: '品质', }, + { + prop: 'epddj', + label: '复判等级', + }, { prop: 'planQty', label: '数量', diff --git a/src/views/asrs/mixins/code-filter.js b/src/views/asrs/mixins/code-filter.js index c01d5a9..c7b5775 100644 --- a/src/views/asrs/mixins/code-filter.js +++ b/src/views/asrs/mixins/code-filter.js @@ -2,7 +2,7 @@ /* * @Date: 2020-12-29 16:49:28 * @LastEditors: zwq - * @LastEditTime: 2024-05-21 14:44:43 + * @LastEditTime: 2024-06-05 11:00:34 * @FilePath: \basic-admin\src\filters\basicData\index.js * @Description: */ @@ -25,6 +25,11 @@ const table = { 1: 'B', 0: 'A', }, + statepk: { + 2: '有误', + 1: '无误', + 0: '未盘库', + }, mainTaskType: { 1: '入库', 2: '出库', diff --git a/src/views/asrs/warehouseLineMonitoring/index.vue b/src/views/asrs/warehouseLineMonitoring/index.vue index 60a2533..a485213 100644 --- a/src/views/asrs/warehouseLineMonitoring/index.vue +++ b/src/views/asrs/warehouseLineMonitoring/index.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2024-01-17 09:58:41 * @LastEditors: zwq - * @LastEditTime: 2024-05-24 11:27:27 + * @LastEditTime: 2024-06-04 15:58:23 * @Description: --> diff --git a/src/views/asrs/warehousePklb/SmallTitle.vue b/src/views/asrs/warehousePklb/SmallTitle.vue new file mode 100644 index 0000000..93b4a18 --- /dev/null +++ b/src/views/asrs/warehousePklb/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/asrs/warehousePklb/add-or-updata.vue b/src/views/asrs/warehousePklb/add-or-updata.vue new file mode 100644 index 0000000..f1c58a3 --- /dev/null +++ b/src/views/asrs/warehousePklb/add-or-updata.vue @@ -0,0 +1,319 @@ + + + + + + diff --git a/src/views/asrs/warehousePklb/index.vue b/src/views/asrs/warehousePklb/index.vue new file mode 100644 index 0000000..52edccd --- /dev/null +++ b/src/views/asrs/warehousePklb/index.vue @@ -0,0 +1,330 @@ + + + diff --git a/src/views/asrs/warehouseStorehouseStorage/index.vue b/src/views/asrs/warehouseStorehouseStorage/index.vue index 2961325..62f004b 100644 --- a/src/views/asrs/warehouseStorehouseStorage/index.vue +++ b/src/views/asrs/warehouseStorehouseStorage/index.vue @@ -51,7 +51,7 @@ - +