From f0d048fa2cba4f52066e14d1d31e4f7a2c7a9530 Mon Sep 17 00:00:00 2001 From: hdy <1105738590@qq.com> Date: 星期三, 12 三月 2025 09:05:57 +0800 Subject: [PATCH] 新增导入功能 --- billion-ui/src/views/main/bs/routeInfo/index.vue | 23 +++-------------------- 1 files changed, 3 insertions(+), 20 deletions(-) diff --git a/billion-ui/src/views/main/bs/routeInfo/index.vue b/billion-ui/src/views/main/bs/routeInfo/index.vue index 99a64f4..d8610f1 100644 --- a/billion-ui/src/views/main/bs/routeInfo/index.vue +++ b/billion-ui/src/views/main/bs/routeInfo/index.vue @@ -193,7 +193,6 @@ <!-- 浜у搧閫夋嫨鍣ㄧ粍浠� --> <ProductSelector :visible="dialogTableVisible" - :gridData="gridData" @select-product="handleSelectProduct" @update:visible="dialogTableVisible = $event" /> @@ -212,23 +211,6 @@ data() { return { multipleSelection: [], - gridData: [{ - date: '2016-05-02', - name: '鐜嬩竴铏�', - address: '涓婃捣甯傛櫘闄�鍖洪噾娌欐睙璺� 1518 寮�' - }, { - date: '2016-05-04', - name: '鐜嬩簩铏�', - address: '涓婃捣甯傛櫘闄�鍖洪噾娌欐睙璺� 1518 寮�' - }, { - date: '2016-05-01', - name: '鐜嬩笁铏�', - address: '涓婃捣甯傛櫘闄�鍖洪噾娌欐睙璺� 1518 寮�' - }, { - date: '2016-05-03', - name: '鐜嬪洓铏�', - address: '涓婃捣甯傛櫘闄�鍖洪噾娌欐睙璺� 1518 寮�' - }], dialogTableVisible: false, advancedSearchVisible: false, // 閬僵灞� @@ -281,8 +263,9 @@ }, methods: { handleSelectProduct(selectedProduct) { - this.form.productCode = selectedProduct.date; // 鍋囪浣犻渶瑕佺殑鏄棩鏈熷瓧娈� - this.form.productName = selectedProduct.name; // 鍋囪浣犻渶瑕佺殑鏄鍚嶅瓧娈� + console.log(selectedProduct) + this.form.productCode = selectedProduct.materialCode; // 鍋囪浣犻渶瑕佺殑鏄棩鏈熷瓧娈� + this.form.productName = selectedProduct.materialName; // 鍋囪浣犻渶瑕佺殑鏄鍚嶅瓧娈� }, toggleAdvancedSearch() { this.advancedSearchVisible = !this.advancedSearchVisible; -- Gitblit v1.9.3