Browse Source

M类型采购退货编辑接口

hella_online_20240924
yufei_wang 2 months ago
parent
commit
6ad833af14
  1. 16
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue
  2. 10
      src/views/wms/supplierManage/purchaseDiscreteOrder/purchaseDiscreteOrderMain/index.vue

16
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

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

Loading…
Cancel
Save