|
|
@ -87,6 +87,7 @@ |
|
|
|
fromeWhere="countPlan" |
|
|
|
:formTypeDetail="formTypeDetail" |
|
|
|
:countPlanAllList="countPlanAllList" |
|
|
|
@detailOpenForm="detailOpenForm" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
@ -329,6 +330,63 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
getLocationAllList() |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue) |
|
|
|
} |
|
|
|
// 详情打开的编辑的时候设置盘点范围值列表 |
|
|
|
const detailOpenForm = (row) => { |
|
|
|
console.log(row) |
|
|
|
|
|
|
|
if ( |
|
|
|
row.type == 'OWNER' || |
|
|
|
row.type == 'SUPPLIER' || |
|
|
|
row.type == 'CUSTOMER' || |
|
|
|
row.type == 'ABC' || |
|
|
|
row.type == 'ITEMS_TYPE' || |
|
|
|
row.type == 'ITEMS_GROUP' || |
|
|
|
row.type == 'ITEMS_CODE' || |
|
|
|
row.type == 'WAREHOUSE_CODE' || |
|
|
|
row.type == 'AREABASIC_CODE' || |
|
|
|
row.type == 'LOCATIONGROUP_CODE' || |
|
|
|
row.type == 'LOCATION_CODE' |
|
|
|
) { |
|
|
|
formTypeDetail.value = 'Select' |
|
|
|
switch (row.type) { |
|
|
|
case 'OWNER': |
|
|
|
countPlanAllList.value = allList.value.ownerAllList |
|
|
|
break |
|
|
|
case 'SUPPLIER': |
|
|
|
countPlanAllList.value = allList.value.supplierAllList |
|
|
|
break |
|
|
|
case 'CUSTOMER': |
|
|
|
countPlanAllList.value = allList.value.customerAllList |
|
|
|
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': |
|
|
|
countPlanAllList.value = allList.value.itembasicAllList |
|
|
|
break |
|
|
|
case 'WAREHOUSE_CODE': |
|
|
|
countPlanAllList.value = allList.value.warehouseAllList |
|
|
|
break |
|
|
|
case 'AREABASIC_CODE': |
|
|
|
countPlanAllList.value = allList.value.areaAllList |
|
|
|
break |
|
|
|
case 'LOCATIONGROUP_CODE': |
|
|
|
countPlanAllList.value = allList.value.locationgroupAllList |
|
|
|
break |
|
|
|
case 'LOCATION_CODE': |
|
|
|
countPlanAllList.value = allList.value.locationAllList |
|
|
|
break |
|
|
|
} |
|
|
|
} else if (val == 'PROJECT') { |
|
|
|
formTypeDetail.value = 'InputString' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
|
const handleDelete = async (id: number) => { |
|
|
@ -454,11 +512,10 @@ const selectChange = (field, val) => { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
const formTypeDetail = ref('InputString')//盘点详情子表新增的时候判断盘点范围值显示输入框还是下拉框 |
|
|
|
const countPlanAllList = ref([])//盘点详情子表新增的时候判断盘点范围值的下拉列表 |
|
|
|
const formTypeDetail = ref('InputString') //盘点详情子表新增的时候判断盘点范围值显示输入框还是下拉框 |
|
|
|
const countPlanAllList = ref([]) //盘点详情子表新增的时候判断盘点范围值的下拉列表 |
|
|
|
// 详情新增的时候选择盘点范围类型的时候针对限值的操作 |
|
|
|
const selectChangeDetail= (field, val) => { |
|
|
|
console.log('888',CountPlanDetail.allSchemas.formSchema) |
|
|
|
const selectChangeDetail = (field, val) => { |
|
|
|
if (field == 'type') { |
|
|
|
// CountPlanDetail.allSchemas.formSchema[1].value = '' |
|
|
|
if ( |
|
|
@ -472,42 +529,42 @@ const selectChangeDetail= (field, val) => { |
|
|
|
val == 'WAREHOUSE_CODE' || |
|
|
|
val == 'AREABASIC_CODE' || |
|
|
|
val == 'LOCATIONGROUP_CODE' || |
|
|
|
val== 'LOCATION_CODE' |
|
|
|
val == 'LOCATION_CODE' |
|
|
|
) { |
|
|
|
formTypeDetail.value = 'Select' |
|
|
|
switch (val) { |
|
|
|
case 'OWNER': |
|
|
|
countPlanAllList.value = allList.value.ownerAllList |
|
|
|
countPlanAllList.value = allList.value.ownerAllList |
|
|
|
break |
|
|
|
case 'SUPPLIER': |
|
|
|
countPlanAllList.value= allList.value.supplierAllList |
|
|
|
countPlanAllList.value = allList.value.supplierAllList |
|
|
|
break |
|
|
|
case 'CUSTOMER': |
|
|
|
countPlanAllList.value = allList.value.customerAllList |
|
|
|
countPlanAllList.value = allList.value.customerAllList |
|
|
|
break |
|
|
|
case 'ABC': |
|
|
|
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ABC_CLASS) |
|
|
|
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ABC_CLASS) |
|
|
|
break |
|
|
|
case 'ITEMS_TYPE': |
|
|
|
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_TYPE) |
|
|
|
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_TYPE) |
|
|
|
break |
|
|
|
case 'ITEMS_GROUP': |
|
|
|
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_GROUP) |
|
|
|
countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_GROUP) |
|
|
|
break |
|
|
|
case 'ITEMS_CODE': |
|
|
|
countPlanAllList.value = allList.value.itembasicAllList |
|
|
|
countPlanAllList.value = allList.value.itembasicAllList |
|
|
|
break |
|
|
|
case 'WAREHOUSE_CODE': |
|
|
|
countPlanAllList.value = allList.value.warehouseAllList |
|
|
|
countPlanAllList.value = allList.value.warehouseAllList |
|
|
|
break |
|
|
|
case 'AREABASIC_CODE': |
|
|
|
countPlanAllList.value = allList.value.areaAllList |
|
|
|
countPlanAllList.value = allList.value.areaAllList |
|
|
|
break |
|
|
|
case 'LOCATIONGROUP_CODE': |
|
|
|
countPlanAllList.value = allList.value.locationgroupAllList |
|
|
|
countPlanAllList.value = allList.value.locationgroupAllList |
|
|
|
break |
|
|
|
case 'LOCATION_CODE': |
|
|
|
countPlanAllList.value= allList.value.locationAllList |
|
|
|
countPlanAllList.value = allList.value.locationAllList |
|
|
|
break |
|
|
|
} |
|
|
|
} else if (val == 'PROJECT') { |
|
|
@ -634,7 +691,7 @@ const getItembasicAllList = async () => { |
|
|
|
// 获取仓库列表 |
|
|
|
const getWarehouseAllList = async () => { |
|
|
|
await WarehouseApi.getWarehouseList({ available: 'TRUE' }).then((res) => { |
|
|
|
allList.value.warehouseAllList = res.map((element) => { |
|
|
|
allList.value.warehouseAllList = res.map((element) => { |
|
|
|
return { |
|
|
|
value: element.code, |
|
|
|
label: element.name |
|
|
|