Browse Source

计划外出入库,备件领用

master_hella_20240701
wangyufei 5 months ago
parent
commit
d639581f29
  1. 26
      src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue
  2. 26
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  3. 39
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

26
src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue

@ -331,6 +331,32 @@ const handleReAdd = async (id: number) => {
/** 添加/修改操作 */
const formRef = ref()
const openForm =async (type: string, row?: number) => {
UnplannedissueRequestMain.allSchemas.formSchema.forEach((item) => {
if(type == "update"){
if (item.field == 'costCenterCode') {
//
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
if (item.field == 'reasonCodeRequisition') {
//
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
}else{
if (item.field == 'costCenterCode') {
//
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'reasonCodeRequisition') {
//
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
}
})
tableData.value = [] //
formRef.value.open(type, row)
}

26
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

@ -349,6 +349,32 @@ const handleReAdd = async (id: number) => {
/** 添加/修改操作 */
const formRef = ref()
const openForm =async (type: string, row?: number) => {
UnplannedissueRequestMain.allSchemas.formSchema.forEach((item) => {
if(type == "update"){
if (item.field == 'costCenterCode') {
//
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
if (item.field == 'reasonCodeRequisition') {
//
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
}else{
if (item.field == 'costCenterCode') {
//
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'reasonCodeRequisition') {
//
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
}
})
tableData.value = [] //
formRef.value.open(type, row)
}

39
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -566,6 +566,45 @@ const handleHandle = async (id: number) => {
/** 添加/修改操作 */
const formRef = ref()
const openForm =async (type: string, row?: number) => {
UnplannedreceiptRequestMain.allSchemas.formSchema.forEach((item) => {
if(type == "update"){
if (item.field == 'costCenterCode') {
//
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
if (item.field == 'reasonCodeRequisition') {
//
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
if (item.field == 'toWarehouseCode') {
//
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
}else{
if (item.field == 'costCenterCode') {
//
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'reasonCodeRequisition') {
//
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'toWarehouseCode') {
//
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
}
})
tableData.value = [] //
formRef.value.open(type, row)
}

Loading…
Cancel
Save