Browse Source

采购退货---编辑,采购收货记录单号可以换成别的问题修复

master
zhaoxuebing 10 months ago
parent
commit
2eec6817ab
  1. 29
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

29
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -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)
}

Loading…
Cancel
Save