|
|
@ -103,7 +103,7 @@ import * as PurchasereturnRequestMainApi from '@/api/wms/purchasereturnRequestMa |
|
|
|
import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail' |
|
|
|
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { log } from 'console' |
|
|
|
|
|
|
|
|
|
|
|
// 采购退货申请 |
|
|
|
defineOptions({ name: 'PurchasereturnRequestMain' }) |
|
|
@ -346,11 +346,28 @@ const formRef = ref() |
|
|
|
const openForm = async (type: string, row?: number) => { |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
isShowButton.value = true |
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'supplierCode') { |
|
|
|
item.componentProps.disabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
if(type == 'create'){ |
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'supplierCode') { |
|
|
|
item.componentProps.disabled = false |
|
|
|
} |
|
|
|
if(item.field == 'purchaseReceiptRecordNumber'){ |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
if(type == 'update'){ |
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'supplierCode') { |
|
|
|
item.componentProps.disabled = false |
|
|
|
} |
|
|
|
if(item.field == 'purchaseReceiptRecordNumber'){ |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
formRef.value.open(type, row) |
|
|
|
} |
|
|
|
|
|
|
|