From 810e1845c272c1b115d824e3cfdd08c78189b7b6 Mon Sep 17 00:00:00 2001 From: chenfang Date: Thu, 25 Jul 2024 11:05:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=8F=98=E6=9B=B4=E5=88=9B?= =?UTF-8?q?=E5=BB=BA/=E6=89=93=E5=8D=B0=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/productionlineitem/index.ts | 4 + src/api/wms/relegateRequestMain/index.ts | 5 + .../productionitemcodeSpareitemcode.data.ts | 9 + .../relegate/relegateRequest/index.vue | 143 +++++++-- .../relegateRequestMain.data.ts | 288 +++++++++++++++++- 5 files changed, 408 insertions(+), 41 deletions(-) diff --git a/src/api/wms/productionlineitem/index.ts b/src/api/wms/productionlineitem/index.ts index 430a0e9e5..31efb8954 100644 --- a/src/api/wms/productionlineitem/index.ts +++ b/src/api/wms/productionlineitem/index.ts @@ -72,3 +72,7 @@ export const importTemplate = () => { export const getProductionLineCodelistByCodes = async (params) => { return await request.get({ url: `/wms/productionlineitem/listByCodes`, params }) } + +export const selectItemCodeToProductionLineCode = async (itemCode: String) => { + return await request.get({ url: `/wms/productionlineitem/selectItemCodeToProductionLineCode?itemCode=` + itemCode }) +} \ No newline at end of file diff --git a/src/api/wms/relegateRequestMain/index.ts b/src/api/wms/relegateRequestMain/index.ts index 03e02454a..84a8a9f0d 100644 --- a/src/api/wms/relegateRequestMain/index.ts +++ b/src/api/wms/relegateRequestMain/index.ts @@ -95,4 +95,9 @@ export const agree = (id) => { // 处理 export const handle = (id) => { return request.put({ url: '/wms/relegate-request-main/handle?id=' + id }) +} + +// 创建标签 +export const relegateCreateLabel = async (data: RelegateRequestMainVO) => { + return await request.post({ url: `/wms/relegate-request-main/relegateCreateLabel`, data }) } \ No newline at end of file diff --git a/src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/productionitemcodeSpareitemcode.data.ts b/src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/productionitemcodeSpareitemcode.data.ts index cf6f44bf7..3d6f1be35 100644 --- a/src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/productionitemcodeSpareitemcode.data.ts +++ b/src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/productionitemcodeSpareitemcode.data.ts @@ -6,6 +6,7 @@ import { Itembasic } from '../itembasic/itembasic.data' // 表单校验 export const ProductionitemcodeSpareitemcodeRules = reactive({ productionItemCode: [required], + spareItemCode: [required], available: [required], }) @@ -33,6 +34,10 @@ export const ProductionitemcodeSpareitemcode = useCrudSchemas(reactive + +