From 849ac8b15deb31ff27183c6e55cee02723b059be Mon Sep 17 00:00:00 2001
From: yufei_wang <2267742828@qq.com>
Date: Wed, 25 Sep 2024 09:36:06 +0800
Subject: [PATCH] =?UTF-8?q?HL-6139=E5=88=B6=E5=93=81=E5=AD=90=E4=BB=B6?=
=?UTF-8?q?=E6=8A=A5=E5=BA=9F=E7=94=B3=E8=AF=B7=E4=B8=AD=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E7=89=A9=E6=96=99=E5=90=8E=E5=86=8Dbom=E9=87=8C=E9=9D=A2?=
=?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E6=90=9C=E7=B4=A2=E7=89=A9=E6=96=99?=
=?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/BasicForm/src/BasicForm.vue | 1 +
.../productscrapRequestMain/index.vue | 33 +++++++++++++++++--
2 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue
index 7daea779c..7421c79e0 100644
--- a/src/components/BasicForm/src/BasicForm.vue
+++ b/src/components/BasicForm/src/BasicForm.vue
@@ -85,6 +85,7 @@
label: '汇总',
prop: 'CollectionTable'
}]" v-model="tabSheet" @change="tabChange"/>
+
+ >
+
+
+
+
+
+
+
+ {{ t('common.query') }}
+
+
+
+
+
{
detailBomRef.value.dialogVisible = false
}
}
+const bomTableList = ref([])
+const bomSearchData = ref('')
+const bomSearchClick = ()=>{
+ if(!bomSearchData.value){
+ bomTableList.value = detatableDataBom.tableList
+ }else{
+ let itemCodes = bomSearchData.value.split(',')
+ console.log('itemCodes',itemCodes)
+ bomTableList.value = detatableDataBom.tableList.filter(item=>itemCodes.indexOf(item['itemCode'])>-1)
+ }
+}
+
const banchBomPage = async (fromLocationCode,item) => {
const params = {
location_code:fromLocationCode,
@@ -272,6 +296,7 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> {
detatableDataBom.params.fromLocationCode = row.fromLocationCode
await getDetailListBom()
+ bomTableList.value = detatableDataBom.tableList
console.log(row.fromLocationCode);
detatableDataBom.tableList.forEach(async (item) => {
console.log(333,item)
@@ -330,6 +355,7 @@ const handleDeleteTableBom = (item, index) => {
if (itemIndex > -1) {
detatableDataBom.tableList.splice(itemIndex, 1)
}
+ bomSearchClick()
}
const tableSelectionDeleteBom = (selection) => {
@@ -369,6 +395,7 @@ const tableFormButton = async (val , row) => {
detailQty.value = row.qty
detatableDataBom.params.isRecord = true
await getDetailListBom()
+ bomTableList.value = detatableDataBom.tableList
//详情
isShowFooterButtton.value = false
isShowReduceButtonSelection.value = false