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