Browse Source

详情组件修改 盘点打开详情编辑修改

master
陈薪名 10 months ago
parent
commit
4e8ea77a72
  1. 105
      src/views/wms/countManage/count/countPlanMain/index.vue

105
src/views/wms/countManage/count/countPlanMain/index.vue

@ -366,60 +366,61 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue)
} }
// //
const detailOpenForm = (row) => { const detailOpenForm = (type, row) => {
console.log(row) console.log(row)
if (type == 'update' ) {
if ( if (
row.type == 'OWNER' || row.type == 'OWNER' ||
row.type == 'SUPPLIER' || row.type == 'SUPPLIER' ||
row.type == 'CUSTOMER' || row.type == 'CUSTOMER' ||
row.type == 'ABC' || row.type == 'ABC' ||
row.type == 'ITEMS_TYPE' || row.type == 'ITEMS_TYPE' ||
row.type == 'ITEMS_GROUP' || row.type == 'ITEMS_GROUP' ||
row.type == 'ITEMS_CODE' || row.type == 'ITEMS_CODE' ||
row.type == 'WAREHOUSE_CODE' || row.type == 'WAREHOUSE_CODE' ||
row.type == 'AREABASIC_CODE' || row.type == 'AREABASIC_CODE' ||
row.type == 'LOCATIONGROUP_CODE' || row.type == 'LOCATIONGROUP_CODE' ||
row.type == 'LOCATION_CODE' row.type == 'LOCATION_CODE'
) { ) {
formTypeDetail.value = 'Select' formTypeDetail.value = 'Select'
switch (row.type) { switch (row.type) {
case 'OWNER': case 'OWNER':
countPlanAllList.value = allList.value.ownerAllList countPlanAllList.value = allList.value.ownerAllList
break break
case 'SUPPLIER': case 'SUPPLIER':
countPlanAllList.value = allList.value.supplierAllList countPlanAllList.value = allList.value.supplierAllList
break break
case 'CUSTOMER': case 'CUSTOMER':
countPlanAllList.value = allList.value.customerAllList countPlanAllList.value = allList.value.customerAllList
break break
case 'ABC': case 'ABC':
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ABC_CLASS) countPlanAllList.value = getStrDictOptions(DICT_TYPE.ABC_CLASS)
break break
case 'ITEMS_TYPE': case 'ITEMS_TYPE':
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_TYPE) countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_TYPE)
break break
case 'ITEMS_GROUP': case 'ITEMS_GROUP':
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_GROUP) countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_GROUP)
break break
case 'ITEMS_CODE': case 'ITEMS_CODE':
countPlanAllList.value = allList.value.itembasicAllList countPlanAllList.value = allList.value.itembasicAllList
break break
case 'WAREHOUSE_CODE': case 'WAREHOUSE_CODE':
countPlanAllList.value = allList.value.warehouseAllList countPlanAllList.value = allList.value.warehouseAllList
break break
case 'AREABASIC_CODE': case 'AREABASIC_CODE':
countPlanAllList.value = allList.value.areaAllList countPlanAllList.value = allList.value.areaAllList
break break
case 'LOCATIONGROUP_CODE': case 'LOCATIONGROUP_CODE':
countPlanAllList.value = allList.value.locationgroupAllList countPlanAllList.value = allList.value.locationgroupAllList
break break
case 'LOCATION_CODE': case 'LOCATION_CODE':
countPlanAllList.value = allList.value.locationAllList countPlanAllList.value = allList.value.locationAllList
break break
}
} else if (val == 'PROJECT') {
formTypeDetail.value = 'InputString'
} }
} else if (val == 'PROJECT') {
formTypeDetail.value = 'InputString'
} }
} }

Loading…
Cancel
Save