From 0b5354d3aeca00a0a203012b5d4b9b46b8cdcbaa Mon Sep 17 00:00:00 2001
From: zhaoxuebing <1291173720@qq.com>
Date: Thu, 14 Dec 2023 14:52:21 +0800
Subject: [PATCH 1/7] =?UTF-8?q?=E5=88=B6=E5=93=81=E8=BF=94=E4=BF=AE?=
=?UTF-8?q?=E5=BC=80=E5=8F=91=E5=AE=8C=E6=88=90=E4=BB=A3=E7=A0=81=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/wms/bomDismantle/index.ts | 7 +-
src/api/wms/productrepairRequestMain/index.ts | 32 ++-
.../productrepairRecordMain/index.vue | 111 +++++++-
.../productrepairRecordMain.data.ts | 245 +++++++++++++++++-
.../productrepairRequestMain/index.vue | 102 +++++++-
.../productrepairRequestMain.data.ts | 215 ++++++++++++---
6 files changed, 677 insertions(+), 35 deletions(-)
diff --git a/src/api/wms/bomDismantle/index.ts b/src/api/wms/bomDismantle/index.ts
index 0e98ed159..d014b113f 100644
--- a/src/api/wms/bomDismantle/index.ts
+++ b/src/api/wms/bomDismantle/index.ts
@@ -3,4 +3,9 @@ import request from '@/config/axios'
// 查询制品返修申请子列表
export const getBomDismantlePage = async (params) => {
return await request.get({ url: `/wms/productrepair-request-main/bomPage`, params })
-}
\ No newline at end of file
+}
+
+// 查询制品返修记录子列表
+export const getBomDismantleRecordPage = async (params) => {
+ return await request.get({ url: `/wms/productrepair-record-main/bomPage`, params })
+}
diff --git a/src/api/wms/productrepairRequestMain/index.ts b/src/api/wms/productrepairRequestMain/index.ts
index 869860143..032fe2afa 100644
--- a/src/api/wms/productrepairRequestMain/index.ts
+++ b/src/api/wms/productrepairRequestMain/index.ts
@@ -63,4 +63,34 @@ export const exportProductrepairRequestMain = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/productrepair-request-main/get-import-template' })
-}
\ No newline at end of file
+}
+
+// 关闭-制品返修申请
+export const closeProductrepairRequestMain = async (id) => {
+ return await request.put({ url: `/wms/productrepair-request-main/close?id=` + id })
+}
+
+// 重新添加-制品返修申请
+export const reAddProductrepairRequestMain = async (id) => {
+ return await request.put({ url: `/wms/productrepair-request-main/reAdd?id=` + id })
+}
+
+// 提交审批-制品返修申请
+export const submitProductrepairRequestMain = async (id) => {
+ return await request.put({ url: `/wms/productrepair-request-main/submit?id=` + id })
+}
+
+// 审批驳回-制品返修申请
+export const refusedProductrepairRequestMain = async (id) => {
+ return await request.put({ url: `/wms/productrepair-request-main/refused?id=` + id })
+}
+
+// 审批通过-制品返修申请
+export const agreeProductrepairRequestMain = async (id) => {
+ return await request.put({ url: `/wms/productrepair-request-main/agree?id=` + id })
+}
+
+// 处理-制品返修申请
+export const handleProductrepairRequestMain = async (id) => {
+ return await request.put({ url: `/wms/productrepair-request-main/handle?id=` + id })
+}
diff --git a/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue
index 931ca768a..01f01d1d5 100644
--- a/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue
+++ b/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue
@@ -47,6 +47,7 @@
:tableAllSchemas="ProductrepairRecordDetail.allSchemas"
:tableFormRules="ProductrepairRecordDetailRules"
:isBusiness="true"
+ @buttonOperationClick="buttonOperationClick"
/>
@@ -57,15 +58,42 @@
:detailAllSchemas="ProductrepairRecordDetail.allSchemas"
:detailAllSchemasRules="ProductrepairRecordDetailRules"
:apiPage="ProductrepairRecordDetailApi.getProductrepairRecordDetailPage"
+ :buttondataTable="buttondataTable"
+ @tableFormButton="tableFormButton"
/>
+
+
+
+
+
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 4d2d7e2d4..632aa0442 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -195,7 +195,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await UserApi.exportUser(queryParams)
- download.excel(data, '用户数据.xls')
+ download.excel(data, '用户数据.xlsx')
} catch {
} finally {
exportLoading.value = false
diff --git a/src/views/wms/basicDataManage/labelManage/barbasic/index.vue b/src/views/wms/basicDataManage/labelManage/barbasic/index.vue
index c75936594..bf430e928 100644
--- a/src/views/wms/basicDataManage/labelManage/barbasic/index.vue
+++ b/src/views/wms/basicDataManage/labelManage/barbasic/index.vue
@@ -191,7 +191,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await BarbasicApi.exportBarbasic(setSearchParams)
- download.excel(data, '条码实体基类.xls')
+ download.excel(data, '条码实体基类.xlsx')
} catch {
} finally {
exportLoading.value = false
@@ -206,7 +206,7 @@ const handleImport = () => {
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '条码实体基类导入模版.xls'
+ templateTitle: '条码实体基类导入模版.xlsx'
})
// 导入成功之后
const importSuccess = () => {
diff --git a/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
index b2a5b9731..cd36991e3 100644
--- a/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
@@ -365,7 +365,7 @@ const handleImport = () => {
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '上架申请主导入模版.xls'
+ templateTitle: '上架申请主导入模版.xlsx'
})
// 导入成功之后
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
index 6b8f42654..1e32e2031 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
@@ -245,7 +245,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await DemandforecastingMainApi.exportDemandforecastingMain(setSearchParams)
- download.excel(data, '要货预测主.xls')
+ download.excel(data, '要货预测主.xlsx')
} catch {
} finally {
exportLoading.value = false
@@ -298,7 +298,7 @@ const handleImport = () => {
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '要货预测主导入模版.xls'
+ templateTitle: '要货预测主导入模版.xlsx'
})
// 导入成功之后
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
index aa6d75e96..3828f181e 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
@@ -273,7 +273,7 @@
// 发起导出
exportLoading.value = true
const data = await PurchaseMainApi.exportPurchaseMain(setSearchParams)
- download.excel(data, '采购订单主.xls')
+ download.excel(data, '采购订单主.xlsx')
} catch {
} finally {
exportLoading.value = false
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
index f710dbf28..2bd8b58e6 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
@@ -323,7 +323,7 @@
// 发起导出
exportLoading.value = true
const data = await PurchasePlanMainApi.exportPurchasePlanMain(setSearchParams)
- download.excel(data, '要货计划主.xls')
+ download.excel(data, '要货计划主.xlsx')
} catch {
} finally {
exportLoading.value = false
@@ -409,7 +409,7 @@
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '要货计划主导入模版.xls'
+ templateTitle: '要货计划主导入模版.xlsx'
})
// 导入成功之后
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
index 2c86695d9..6e2a6aa2a 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
@@ -144,7 +144,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await SupplierdeliverRecordMainApi.exportSupplierdeliverRecordMain(setSearchParams)
- download.excel(data, '供应商发货记录主.xls')
+ download.excel(data, '供应商发货记录主.xlsx')
} catch {
} finally {
exportLoading.value = false
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
index cb4ea2e11..4b1114023 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
@@ -341,7 +341,7 @@
// 发起导出
exportLoading.value = true
const data = await SupplierdeliverRequestMainApi.exportSupplierdeliverRequestMain(setSearchParams)
- download.excel(data, '供应商发货申请主.xls')
+ download.excel(data, '供应商发货申请主.xlsx')
} catch {
} finally {
exportLoading.value = false
@@ -520,7 +520,7 @@
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '供应商发货申请主导入模版.xls'
+ templateTitle: '供应商发货申请主导入模版.xlsx'
})
// 导入成功之后
From 219b5c17950211d5802dd2c839bbba2b066ac124 Mon Sep 17 00:00:00 2001
From: yejiaxing <591141169@qq.com>
Date: Thu, 14 Dec 2023 15:18:50 +0800
Subject: [PATCH 4/7] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplierdeliverRecordMain.data.ts | 191 +++---
.../purchaseclaimRequestMain/index.vue | 565 +++++++++---------
2 files changed, 380 insertions(+), 376 deletions(-)
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts
index f2d892e51..91f14629f 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts
@@ -391,57 +391,136 @@ export const SupplierdeliverRecordMainRules = reactive({
* @returns {Array} 供应商发货记录子表
*/
export const SupplierdeliverRecordDetail = useCrudSchemas(reactive([
+ // {
+ // label: '从包装号',
+ // field: 'fromPackingNumber',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ // {
+ // label: '到包装号',
+ // field: 'toPackingNumber',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ // {
+ // label: '从批次',
+ // field: 'fromBatch',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ // {
+ // label: '到批次',
+ // field: 'toBatch',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ // {
+ // label: '替代批次',
+ // field: 'altBatch',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ // {
+ // label: '从器具号',
+ // field: 'fromContainerNumber',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ // {
+ // label: '到器具号',
+ // field: 'toContainerNumber',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ {
+ label: '订单号',
+ field: 'poNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
{
- label: '从包装号',
- field: 'fromPackingNumber',
+ label: '订单行',
+ field: 'poLine',
sort: 'custom',
table: {
width: 150
},
},
{
- label: '到包装号',
- field: 'toPackingNumber',
+ label: '物品代码',
+ field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
},
{
- label: '从批次',
- field: 'fromBatch',
+ label: '数量',
+ field: 'qty',
sort: 'custom',
table: {
width: 150
},
+ form: {
+ component: 'InputNumber',
+ }
},
{
- label: '到批次',
- field: 'toBatch',
+ label: '标包数量',
+ field: 'stdPackQty',
sort: 'custom',
table: {
width: 150
},
+ form: {
+ component: 'InputNumber',
+ }
},
{
- label: '替代批次',
- field: 'altBatch',
+ label: '标包单位',
+ field: 'stdPackUnit',
+ dictType: DICT_TYPE.PACK_UNIT,
+ dictClass: 'string',
+ isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
- label: '从器具号',
- field: 'fromContainerNumber',
+ label: '供应商计量数量',
+ field: 'supplierQty',
sort: 'custom',
table: {
width: 150
},
+ form: {
+ component: 'InputNumber',
+ }
},
{
- label: '到器具号',
- field: 'toContainerNumber',
+ label: '供应商计量单位',
+ field: 'supplierUom',
+ dictType: DICT_TYPE.UOM,
+ dictClass: 'string',
+ isTable: true,
sort: 'custom',
table: {
width: 150
@@ -507,66 +586,7 @@ export const SupplierdeliverRecordDetail = useCrudSchemas(reactive
}
},
},
- {
- label: '订单号',
- field: 'poNumber',
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: '订单行',
- field: 'poLine',
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: '标包数量',
- field: 'stdPackQty',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- component: 'InputNumber',
- }
- },
- {
- label: '标包单位',
- field: 'stdPackUnit',
- dictType: DICT_TYPE.PACK_UNIT,
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: '供应商计量数量',
- field: 'supplierQty',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- component: 'InputNumber',
- }
- },
- {
- label: '供应商计量单位',
- field: 'supplierUom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- },
+
{
label: '从库位代码',
field: 'fromLocationCode',
@@ -631,14 +651,7 @@ export const SupplierdeliverRecordDetail = useCrudSchemas(reactive
width: 150
},
},
- {
- label: '物品代码',
- field: 'itemCode',
- sort: 'custom',
- table: {
- width: 150
- },
- },
+
{
label: '物品名称',
field: 'itemName',
@@ -671,17 +684,7 @@ export const SupplierdeliverRecordDetail = useCrudSchemas(reactive
width: 150
},
},
- {
- label: '数量',
- field: 'qty',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- component: 'InputNumber',
- }
- },
+
{
label: '计量单位',
field: 'uom',
@@ -803,4 +806,4 @@ export const SupplierdeliverRecordDetailRules = reactive({
creator: [
{ required: true, message: '请输入创建者', trigger: 'blur' }
],
-})
\ No newline at end of file
+})
diff --git a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
index f33c2960d..aafbe5238 100644
--- a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
+++ b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
@@ -7,19 +7,13 @@
-
+
-
-
-
+
+
-
+ @searchTableSuccessDetail="searchTableSuccessDetail" />
-
+
From 4fb4c5abdc8dabda78eb75988a870cd9278755bd Mon Sep 17 00:00:00 2001
From: yejiaxing <591141169@qq.com>
Date: Thu, 14 Dec 2023 15:19:13 +0800
Subject: [PATCH 5/7] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplierdeliverRequestMain/index.vue | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
index 4b1114023..0c850f78d 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
@@ -109,9 +109,14 @@
if(formField=='ppNumber'){
// 获取子表数据 getBomDisassemble
- PurchasePlanDetailApi.getPurchasePlanDetailList({
number: val[0]['number']}).then(res => {
if (res) tableData.value = res;
tableData.value.forEach(item=>{
item.batch = item.toBatch
- item.qty = 1
- })
}).catch(err => {
console.log(err)
})
+ PurchasePlanDetailApi.getPurchasePlanDetailList({
+ number: val[0]['number']}).then(res => {
+ if (res) tableData.value = res;
+ tableData.value.forEach(item=>{
+ item.batch = item.toBatch
+ item.qty = 1
+ })
+ }).catch(err => {
console.log(err)
})
}
formRef.setValues(setV)
}
From a3ae242f7f009d4e2165f0a8104cb26463faa69c Mon Sep 17 00:00:00 2001
From: zhaoxuebing <1291173720@qq.com>
Date: Thu, 14 Dec 2023 15:43:15 +0800
Subject: [PATCH 6/7] =?UTF-8?q?=E5=88=B6=E5=93=81=E8=BF=94=E4=BF=AE?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productrepair/productrepairRequestMain/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
index 1d317af87..49efc0e6c 100644
--- a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
+++ b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
@@ -245,7 +245,7 @@ const { getList, setSearchParams } = tableMethods
// 列表头部按钮
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:productrepair-request-main:create'}), // 新增——需要手动修改下权限
- defaultButtons.defaultImportBtn({hasPermi:'wms:productrepair-request-main:import'}), // 导入
+ // defaultButtons.defaultImportBtn({hasPermi:'wms:productrepair-request-main:import'}), // 导入 暂时不做主子子表结构
defaultButtons.defaultExportBtn({hasPermi:'wms:productrepair-request-main:export'}), // 导出
defaultButtons.defaultFreshBtn(null), // 刷新
defaultButtons.defaultFilterBtn(null), // 筛选
From 793dee5c6d882e6d2661a096ca0bddc6ff9f9a5d Mon Sep 17 00:00:00 2001
From: zhaoxuebing <1291173720@qq.com>
Date: Thu, 14 Dec 2023 18:39:19 +0800
Subject: [PATCH 7/7] =?UTF-8?q?=E5=88=B6=E5=93=81=E8=BF=94=E4=BF=AE?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productrepairRecordMain.data.ts | 49 +++++++++++++++++++
.../productrepairRequestMain/index.vue | 1 +
.../productrepairRequestMain.data.ts | 47 ++++++++++++++++++
3 files changed, 97 insertions(+)
diff --git a/src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts b/src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts
index d50f8a3d0..ffe9b6d18 100644
--- a/src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts
+++ b/src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts
@@ -1,5 +1,7 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
+import {Bom} from "@/views/wms/basicDataManage/itemManage/bom/bom.data";
+import * as BomApi from "@/api/wms/bom";
/**
* @returns {Array} 制品返修记录主表
@@ -581,6 +583,53 @@ export const ProductrepairRecordDetail = useCrudSchemas(reactive([
width: 150
},
},
+ {
+ label: 'Bom版本',
+ field: 'bomVersion',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true,
+ isInpuFocusShow: true,
+ searchListPlaceholder: '请选择Bom版本', // 输入框占位文本
+ searchField: 'version', // 查询弹窗赋值字段
+ searchTitle: '物料清单信息', // 查询弹窗标题
+ searchAllSchemas: Bom.allSchemas, // 查询弹窗所需类
+ searchPage: BomApi.getBomPage, // 查询弹窗所需分页方法
+ searchCondition: [{
+ key:'productItemCode',
+ value:'itemCode',
+ isMainValue: true
+ },{
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }]
+ },
+ form: {
+ // labelMessage: '信息提示说明!!!',
+ componentProps: {
+ disabled: true,
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '请选择Bom版本', // 输入框占位文本
+ searchField: 'version', // 查询弹窗赋值字段
+ searchTitle: '物料清单信息', // 查询弹窗标题
+ searchAllSchemas: Bom.allSchemas, // 查询弹窗所需类
+ searchPage: BomApi.getBomPage, // 查询弹窗所需分页方法
+ searchCondition: [{
+ key:'productItemCode',
+ value:'itemCode',
+ isMainValue: true
+ },{
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }]
+ }
+ },
+ },
{
label: '操作',
field: 'action',
diff --git a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
index 49efc0e6c..d4ebf28aa 100644
--- a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
+++ b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
@@ -498,6 +498,7 @@ const tableFormButton = async (val , row) => {
DialogTitle.value = '物品代码【' + row.itemCode + '】——Bom信息'
detatableDataBom.params = {
itemCode: row.itemCode,
+ bomVersion: row.bomVersion,
masterId: row.id
}
await getDetailListBom()
diff --git a/src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts b/src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts
index 213b2f9a2..b24f260ed 100644
--- a/src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts
+++ b/src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts
@@ -36,6 +36,8 @@ const queryParams = {
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
+import {Bom} from "@/views/wms/basicDataManage/itemManage/bom/bom.data";
+import * as BomApi from "@/api/wms/bom";
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
@@ -830,6 +832,51 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive
isTableForm: false,
isForm: false
},
+ {
+ label: 'Bom版本',
+ field: 'bomVersion',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ isInpuFocusShow: true,
+ searchListPlaceholder: '请选择Bom版本', // 输入框占位文本
+ searchField: 'version', // 查询弹窗赋值字段
+ searchTitle: '物料清单信息', // 查询弹窗标题
+ searchAllSchemas: Bom.allSchemas, // 查询弹窗所需类
+ searchPage: BomApi.getBomPage, // 查询弹窗所需分页方法
+ searchCondition: [{
+ key:'productItemCode',
+ value:'itemCode',
+ isMainValue: true
+ },{
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }]
+ },
+ form: {
+ // labelMessage: '信息提示说明!!!',
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '请选择Bom版本', // 输入框占位文本
+ searchField: 'version', // 查询弹窗赋值字段
+ searchTitle: '物料清单信息', // 查询弹窗标题
+ searchAllSchemas: Bom.allSchemas, // 查询弹窗所需类
+ searchPage: BomApi.getBomPage, // 查询弹窗所需分页方法
+ searchCondition: [{
+ key:'productItemCode',
+ value:'itemCode',
+ isMainValue: true
+ },{
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }]
+ }
+ },
+ },
{
label: '操作',
field: 'action',