|
|
|
|
@ -543,6 +543,8 @@ const productQueryParams = reactive({
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
categoryType: 1,
|
|
|
|
|
stockNotZero: true,
|
|
|
|
|
warehouseId: undefined,
|
|
|
|
|
areaId: undefined,
|
|
|
|
|
barCode: undefined,
|
|
|
|
|
name: undefined
|
|
|
|
|
})
|
|
|
|
|
@ -946,6 +948,8 @@ const openProductSelectDialog = async (row: any) => {
|
|
|
|
|
selectedProductId.value = row.productId
|
|
|
|
|
productQueryParams.pageNo = 1
|
|
|
|
|
productQueryParams.categoryType = activeCategoryType.value
|
|
|
|
|
productQueryParams.warehouseId = isPurchaseUnitStockOut.value ? row.warehouseId : undefined
|
|
|
|
|
productQueryParams.areaId = isPurchaseUnitStockOut.value ? row.areaId : undefined
|
|
|
|
|
productQueryParams.barCode = undefined
|
|
|
|
|
productQueryParams.name = undefined
|
|
|
|
|
productDialogVisible.value = true
|
|
|
|
|
@ -956,6 +960,8 @@ const getProductDialogList = async () => {
|
|
|
|
|
productDialogLoading.value = true
|
|
|
|
|
try {
|
|
|
|
|
productQueryParams.categoryType = activeCategoryType.value || 1
|
|
|
|
|
productQueryParams.warehouseId = isPurchaseUnitStockOut.value ? currentSelectRow.value?.warehouseId : undefined
|
|
|
|
|
productQueryParams.areaId = isPurchaseUnitStockOut.value ? currentSelectRow.value?.areaId : undefined
|
|
|
|
|
const data = await ProductApi.getProductPage(productQueryParams)
|
|
|
|
|
productDialogList.value = data?.list || []
|
|
|
|
|
productDialogTotal.value = data?.total || 0
|
|
|
|
|
|