Browse Source

库内转移功能明细新增/修改bug

master
chenfang 10 months ago
parent
commit
094ce1b6d0
  1. 29
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  2. 3
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

29
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -67,8 +67,8 @@
:apiUpdate="InventorymoveRequestDetailApi.updateInventorymoveRequestDetail"
:apiPage="InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage"
:apiDelete="InventorymoveRequestDetailApi.deleteInventorymoveRequestDetail"
:Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail"
@detailOpenForm="detailOpenForm"
/>
<!-- 导入 -->
@ -271,7 +271,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
})
}
// console.log(InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromPackingNumber')).tableForm.searchCondition.find(item => (item.key == 'warehouseCode')));
}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
@ -310,10 +309,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
})
}
//
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = []
//
const { getList, setSearchParams } = tableMethods
@ -440,9 +435,31 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row)
}
/**
* 详情 新增/编辑事件
*/
const detailOpenForm = (type, row) => {
if(InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){
InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.push({
key: 'warehouseCode',
value: fromWarehouseCodeMain.value,
isMainValue: false
})
} else {
InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => {
if (item.key == 'warehouseCode') {
item.value = fromWarehouseCodeMain.value
}
})
}
}
const fromWarehouseCodeMain = ref()
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
fromWarehouseCodeMain.value = row.fromWarehouseCode
detailRef.value.openDetail(row, titleName, titleValue)
}

3
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -409,6 +409,9 @@ export const InventorymoveRequestMainRules = reactive({
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'blur' }
],
status: [
{ required: true, message: '请选择状态', trigger: 'change' }
],

Loading…
Cancel
Save