Browse Source

测试代码

master_hella_20240701
yufei0306 5 months ago
parent
commit
da39913853
  1. 2
      src/components/DetailTable/src/DetailTable.vue
  2. 210
      src/views/wms/countManage/count/countPlanMain/index.vue

2
src/components/DetailTable/src/DetailTable.vue

@ -58,7 +58,7 @@ const countScopeType = ref(props.countScopeType)
const allList = ref(props.allList)
const forrmatter = (val) => {
if(val){
return countScopeType.value.find((cur) => cur.value == val).label
return countScopeType.value.find((cur) => cur.value == val)?.label || ''
}else{
return ''
}

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

@ -415,41 +415,41 @@ const detailOpenForm = (type, row) => {
row.type == 'LOCATION_CODE'
) {
formTypeDetail.value = 'Select'
switch (row.type) {
case 'OWNER':
getOwnerAllList(null,true)
break
case 'SUPPLIER':
getSupplierAllList(null,true)
break
case 'CUSTOMER':
getCustomerAllList(null,true)
break
case 'ABC':
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ABC_CLASS)
break
case 'ITEMS_TYPE':
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_TYPE)
break
case 'ITEMS_GROUP':
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_GROUP)
break
case 'ITEMS_CODE':
getItembasicAllList(null,true)
break
case 'WAREHOUSE_CODE':
getWarehouseAllList(null,true)
break
case 'AREABASIC_CODE':
getAreaAllList(null,true)
break
case 'LOCATIONGROUP_CODE':
getLocationgroupAllList(null,true)
break
case 'LOCATION_CODE':
getLocationAllList(null,true)
break
}
// switch (row.type) {
// case 'OWNER':
// getOwnerAllList(null,true)
// break
// case 'SUPPLIER':
// getSupplierAllList(null,true)
// break
// case 'CUSTOMER':
// getCustomerAllList(null,true)
// break
// case 'ABC':
// countPlanAllList.value = getStrDictOptions(DICT_TYPE.ABC_CLASS)
// break
// case 'ITEMS_TYPE':
// countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_TYPE)
// break
// case 'ITEMS_GROUP':
// countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_GROUP)
// break
// case 'ITEMS_CODE':
// getItembasicAllList(null,true)
// break
// case 'WAREHOUSE_CODE':
// getWarehouseAllList(null,true)
// break
// case 'AREABASIC_CODE':
// getAreaAllList(null,true)
// break
// case 'LOCATIONGROUP_CODE':
// getLocationgroupAllList(null,true)
// break
// case 'LOCATION_CODE':
// getLocationAllList(null,true)
// break
// }
} else if (val == 'PROJECT') {
formTypeDetail.value = 'InputString'
}
@ -604,41 +604,41 @@ const selectChangeDetail = (field, val) => {
val == 'LOCATION_CODE'
) {
formTypeDetail.value = 'Select'
switch (val) {
case 'OWNER':
getOwnerAllList(null,true)
break
case 'SUPPLIER':
getSupplierAllList(null,true)
break
case 'CUSTOMER':
getCustomerAllList(null,true)
break
case 'ABC':
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ABC_CLASS)
break
case 'ITEMS_TYPE':
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_TYPE)
break
case 'ITEMS_GROUP':
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_GROUP)
break
case 'ITEMS_CODE':
getItembasicAllList(null,true)
break
case 'WAREHOUSE_CODE':
getWarehouseAllList(null,true)
break
case 'AREABASIC_CODE':
getAreaAllList(null,true)
break
case 'LOCATIONGROUP_CODE':
getLocationgroupAllList(null,true)
break
case 'LOCATION_CODE':
getLocationAllList(null,true)
break
}
// switch (val) {
// case 'OWNER':
// getOwnerAllList(null,true)
// break
// case 'SUPPLIER':
// getSupplierAllList(null,true)
// break
// case 'CUSTOMER':
// getCustomerAllList(null,true)
// break
// case 'ABC':
// countPlanAllList.value = getStrDictOptions(DICT_TYPE.ABC_CLASS)
// break
// case 'ITEMS_TYPE':
// countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_TYPE)
// break
// case 'ITEMS_GROUP':
// countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_GROUP)
// break
// case 'ITEMS_CODE':
// getItembasicAllList(null,true)
// break
// case 'WAREHOUSE_CODE':
// getWarehouseAllList(null,true)
// break
// case 'AREABASIC_CODE':
// getAreaAllList(null,true)
// break
// case 'LOCATIONGROUP_CODE':
// getLocationgroupAllList(null,true)
// break
// case 'LOCATION_CODE':
// getLocationAllList(null,true)
// break
// }
} else if (val == 'PROJECT') {
formTypeDetail.value = 'InputString'
}
@ -662,41 +662,41 @@ const tableFormChange = async (field, val, row) => {
row.type == 'LOCATION_CODE'
) {
row.formType = 'Select'
switch (row.type) {
case 'OWNER':
getOwnerAllList(row)
break
case 'SUPPLIER':
getSupplierAllList(row)
break
case 'CUSTOMER':
getCustomerAllList(row)
break
case 'ABC':
row.initOptions = getStrDictOptions(DICT_TYPE.ABC_CLASS)
break
case 'ITEMS_TYPE':
row.initOptions = getStrDictOptions(DICT_TYPE.ITEM_TYPE)
break
case 'ITEMS_GROUP':
row.initOptions = getStrDictOptions(DICT_TYPE.ITEM_GROUP)
break
case 'ITEMS_CODE':
getItembasicAllList(row)
break
case 'WAREHOUSE_CODE':
getWarehouseAllList(row)
break
case 'AREABASIC_CODE':
getAreaAllList(row)
break
case 'LOCATIONGROUP_CODE':
getLocationgroupAllList(row)
break
case 'LOCATION_CODE':
getLocationAllList(row)
break
}
// switch (row.type) {
// case 'OWNER':
// getOwnerAllList(row)
// break
// case 'SUPPLIER':
// getSupplierAllList(row)
// break
// case 'CUSTOMER':
// getCustomerAllList(row)
// break
// case 'ABC':
// row.initOptions = getStrDictOptions(DICT_TYPE.ABC_CLASS)
// break
// case 'ITEMS_TYPE':
// row.initOptions = getStrDictOptions(DICT_TYPE.ITEM_TYPE)
// break
// case 'ITEMS_GROUP':
// row.initOptions = getStrDictOptions(DICT_TYPE.ITEM_GROUP)
// break
// case 'ITEMS_CODE':
// getItembasicAllList(row)
// break
// case 'WAREHOUSE_CODE':
// getWarehouseAllList(row)
// break
// case 'AREABASIC_CODE':
// getAreaAllList(row)
// break
// case 'LOCATIONGROUP_CODE':
// getLocationgroupAllList(row)
// break
// case 'LOCATION_CODE':
// getLocationAllList(row)
// break
// }
} else if (row.type == 'PROJECT') {
row.formType = 'InputString'
}

Loading…
Cancel
Save