diff --git a/src/views/wms/inStockBill/index.vue b/src/views/wms/inStockBill/index.vue
index 152bbee..74db667 100644
--- a/src/views/wms/inStockBill/index.vue
+++ b/src/views/wms/inStockBill/index.vue
@@ -219,7 +219,7 @@
添加入库物料
- 选择物料
+ 选择物料
已选择的物料:
@@ -353,11 +353,14 @@ const getProjectName = (projectId) => {
const project = projectInfoList.value.find((item) => item.projectId === projectId);
return project ? project.projectCode : projectId;
};
+// 添加物料选择loading状态
+const productSelectLoading = ref(false);
// 处理物料选择回调
const handleProductSelect = async (products) => {
// 重置所有的物料
// selectedProducts.value = products;
// 为每个物料添加批次号
+ productSelectLoading.value = true;
const timestamp = parseTime(new Date(), '{y}{m}{d}');
for (const material of products) {
// 生成批次号:供应商代码 + 时间戳
@@ -372,6 +375,7 @@ const handleProductSelect = async (products) => {
const res = await getWmsInventoryDetailbyProductId(material.productId);
material.inventoryAmount = res.data?.inventoryAmount || 0;
}
+ productSelectLoading.value = false;
selectedProducts.value.push(...products);
};
@@ -396,8 +400,6 @@ const inStockBillFormRef = ref
();
const addFormRef = ref();
-
-
// 计算总价
const calculateTotalPrice = (material) => {
if (material.unitPrice && material.inStockAmount) {
diff --git a/src/views/wms/wmsBaseProduct/index.vue b/src/views/wms/wmsBaseProduct/index.vue
index 196ee49..1726f3b 100644
--- a/src/views/wms/wmsBaseProduct/index.vue
+++ b/src/views/wms/wmsBaseProduct/index.vue
@@ -68,7 +68,7 @@
-
+
@@ -98,9 +98,16 @@
+
+
+
+
+
+
+
@@ -108,8 +115,8 @@
-
-
+
+
@@ -145,6 +152,7 @@
import { addWmsBaseProduct, delWmsBaseProduct, getWmsBaseProduct, listWmsBaseProduct, updateWmsBaseProduct } from '@/api/wms/wmsBaseProduct';
import { WmsBaseProductForm, WmsBaseProductQuery, WmsBaseProductVO } from '@/api/wms/wmsBaseProduct/types';
import { getBaseUnitInfoList } from '@/api/oa/base/unitInfo';
+import { allListDept } from '@/api/system/dept';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { active_flag } = toRefs(proxy?.useDict('active_flag'));
@@ -178,7 +186,7 @@ const columns = ref([
{ key: 7, label: `统一报价(参考)`, visible: false },
{ key: 8, label: `备货期`, visible: true },
{ key: 9, label: `激活标识`, visible: true },
- { key: 10, label: `创建部门`, visible: false },
+ { key: 10, label: `创建部门`, visible: true },
{ key: 11, label: `创建人`, visible: true },
{ key: 12, label: `创建时间`, visible: true },
{ key: 13, label: `更新人`, visible: true },
@@ -228,7 +236,13 @@ const getList = async () => {
total.value = res.total;
loading.value = false;
};
-
+/** 查询部门信息下拉框结构 */
+const deptInfoList = ref([]);
+const getDeptInfoListSelect = async () => {
+ const params = { deptCategory: '03' } as any;
+ const res = await allListDept(params);
+ deptInfoList.value = res.data;
+};
/** 取消按钮 */
const cancel = () => {
reset();
@@ -317,5 +331,6 @@ const handleExport = () => {
onMounted(() => {
getList();
getUnitInfoListSelect();
+ getDeptInfoListSelect();
});