diff --git a/src/views/wms/inStockBill/index.vue b/src/views/wms/inStockBill/index.vue
index 74db667..6a55c2b 100644
--- a/src/views/wms/inStockBill/index.vue
+++ b/src/views/wms/inStockBill/index.vue
@@ -187,7 +187,10 @@
-
+
+
+
+
@@ -318,6 +321,7 @@ import { getErpProjectInfoList } from '@/api/oa/erp/projectInfo'; // 添加展
import ProductSelect from '@/components/WmsProductSelect/index.vue';
import { parseTime } from '@/utils/ruoyi';
import { getWmsInventoryDetailbyProductId } from '@/api/wms/inventoryDetails';
+import { getCrmSupplierInfoList } from '@/api/oa/crm/crmSupplierInfo';
// 添加展开行处理函数
const handleExpandChange = async (row, expandedRows) => {
@@ -347,7 +351,23 @@ const getProjectInfoList = async () => {
const openProductSelect = () => {
productSelectRef.value.open();
};
-
+//供应商下拉数据
+const supplierList = ref([]);
+const getSupplierInfoList = async () => {
+ const res = await getCrmSupplierInfoList({});
+ supplierList.value = res.data || [];
+};
+// 供应商下拉选择改变事件
+const onSupplierChanged = (supplierId: any) => {
+ const supplier = supplierList.value.find((x: any) => x.supplierId === supplierId);
+ console.log(supplier);
+ if (supplier) {
+ // 从供应商信息中带出联系人、电话、邮箱(可编辑)
+ form.value.contactUser = supplier.contactPerson || '';
+ form.value.contactNumber = supplier.contactPhone || supplier.contactMobile || '';
+ // form.supplierContactEmail = supplier.contactEmail || '';
+ }
+};
/** 根据项目ID获取项目名称 */
const getProjectName = (projectId) => {
const project = projectInfoList.value.find((item) => item.projectId === projectId);
@@ -707,5 +727,6 @@ onMounted(() => {
getList();
getWarehouseList();
getProjectInfoList(); // 获取项目 列表
+ getSupplierInfoList();
});
diff --git a/src/views/wms/outStockBill/index.vue b/src/views/wms/outStockBill/index.vue
index 58ceb20..7e96380 100644
--- a/src/views/wms/outStockBill/index.vue
+++ b/src/views/wms/outStockBill/index.vue
@@ -154,16 +154,16 @@
{{ parseTime(scope.row.updateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+