From 6ad833af149b7923c8e4e7222fd3c50638c5e9f2 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 23 Sep 2024 11:14:18 +0800 Subject: [PATCH] =?UTF-8?q?M=E7=B1=BB=E5=9E=8B=E9=87=87=E8=B4=AD=E9=80=80?= =?UTF-8?q?=E8=B4=A7=E7=BC=96=E8=BE=91=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index.vue | 16 ++-------------- .../purchaseDiscreteOrderMain/index.vue | 10 ++++++---- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue index 75e4501d2..0c568f460 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue @@ -56,6 +56,7 @@ @success="getList" :isOpenSearchTable="true" fieldTableColumn="poNumber" + :updateTypeEdiltSubList="true" :rules="PurchasereceiptRequestMainRules" :formAllSchemas="PurchasereceiptRequestMain.allSchemas" :tableAllSchemas="PurchasereceiptRequestDetail.allSchemas" @@ -412,19 +413,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => } }) } -const getSupplierOptions = async (itemCode)=>{ - let res = await PurchasereturnRequestDetailApi.getPurchasereturnSupplierByCode({ - itemCode - }) - console.log('物料供应商',res) - if(res&&res.length>0){ - PurchasereturnRequestMainNew.allSchemas.formSchema.forEach(item=>{ - if(item.field == 'supplierCode'){ - item.componentProps.options = res - } - }) - } -} + // 查询页面返回——详情 const searchTableSuccessDetail = (formField, searchField, val, formRef) => { nextTick(() => { @@ -680,7 +669,6 @@ const openForm = async (type: string, row?: Object) => { updateData['hahaha'] = updateData['receiptNumber'] } console.log('updateData',updateData) - getSupplierOptions(updateData['itemCode']) PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { if (item.field == 'supplierCode') { item.componentProps.disabled = true diff --git a/src/views/wms/supplierManage/purchaseDiscreteOrder/purchaseDiscreteOrderMain/index.vue b/src/views/wms/supplierManage/purchaseDiscreteOrder/purchaseDiscreteOrderMain/index.vue index e91902d60..aaecd6b16 100644 --- a/src/views/wms/supplierManage/purchaseDiscreteOrder/purchaseDiscreteOrderMain/index.vue +++ b/src/views/wms/supplierManage/purchaseDiscreteOrder/purchaseDiscreteOrderMain/index.vue @@ -172,7 +172,8 @@ import { formatDate } from '@/utils/formatTime' import { usePageLoading } from '@/hooks/web/usePageLoading' import dayjs from 'dayjs' - + import * as SupplierinvoiceRequestMainApi from '@/api/wms/supplierinvoiceRequestMain' + const { loadStart, loadDone } = usePageLoading() // 采购离散订单查看 defineOptions({ name: 'purchaseDiscreteOrderMain' }) @@ -262,6 +263,7 @@ icon: '', color: '', hasPermi: '', + hide: row.isRead==1, link: true, // 文本展现按钮 }, { @@ -271,6 +273,7 @@ icon: '', color: '', hasPermi: '', + hide: row.isRead!=1, link: true, // 文本展现按钮 }, { @@ -292,11 +295,10 @@ openDetail(row, '单据号', row.number) }else if(val == 'unread'){ //未读走接口 - - + await SupplierinvoiceRequestMainApi.getDiscreteIsRead({id:row.id}) + getList() }else if(val == 'read'){ //已读 - } }