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