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'){ //已读 - } }