Browse Source

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

master
zhaoxuebing 11 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 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
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { if(type == 'create'){
if (item.field == 'supplierCode') { PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => {
item.componentProps.disabled = false 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) formRef.value.open(type, row)
} }

Loading…
Cancel
Save