From b9f4282546f0a1f9ec124ebfcdf690f0caee4fcc Mon Sep 17 00:00:00 2001
From: wangwei <1610949092@qq.com>
Date: Sun, 12 May 2024 10:44:02 +0800
Subject: [PATCH] =?UTF-8?q?=205-12=20=E9=80=89=E6=8B=A9=E7=94=9F=E4=BA=A7?=
=?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=92=8C=E7=94=9F=E4=BA=A7=E4=BC=81=E4=B8=9A?=
=?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/thrsys/thrHsfl.js | 9 ++++
src/views/basic/product/productEdit.vue | 61 +++++++++++++++++++++----
src/views/sync/SysUdimsConfig.vue | 17 +++++--
3 files changed, 73 insertions(+), 14 deletions(-)
diff --git a/src/api/thrsys/thrHsfl.js b/src/api/thrsys/thrHsfl.js
index 55b0acf3..3be48e3f 100644
--- a/src/api/thrsys/thrHsfl.js
+++ b/src/api/thrsys/thrHsfl.js
@@ -7,3 +7,12 @@ export function getHslbs(query) {
params: query
});
}
+
+
+export function getTBasicProducts(query) {
+ return axios({
+ url: "/udiwms/thrsys/getBasicProducts",
+ method: "get",
+ params: query
+ });
+}
diff --git a/src/views/basic/product/productEdit.vue b/src/views/basic/product/productEdit.vue
index 0a0d906d..2828224b 100644
--- a/src/views/basic/product/productEdit.vue
+++ b/src/views/basic/product/productEdit.vue
@@ -67,14 +67,38 @@
>
-
-
- -->
+
+
+
+
+
+
+
+
+
+
+
+
+ filterable
+ remote
+ clearable="true"
+ reserve-keyword
+ placeholder="请选择生产企业"
+ :remote-method="findProducts"
+ style="width: 80%"
+ >
+
+ {{ item.name }}
+ {{ item.unitId }}
+
+
@@ -704,7 +728,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import Treeselect from "@riophae/vue-treeselect";
import {getListMenu, getOneName} from '@/api/basic/basicHospType'
import {getSupComapnys} from "@/api/purchase/supCompany";
-import {getHslbs} from "@/api/thrsys/thrHsfl";
+import {getHslbs,getTBasicProducts} from "@/api/thrsys/thrHsfl";
export default {
@@ -766,6 +790,7 @@ export default {
measname: null,
nameCode: null
},
+ probucts:[],
}
},
components: {
@@ -784,11 +809,10 @@ export default {
id: this.relevanceEdit.id
}
this.getDetailList(ttquery);
-
-
if (this.editQuery.basicPrductRemak8 != null) {
this.findHsflMethod(this.editQuery.basicPrductRemak8);
}
+ this.findProducts()
},
methods: {
getYbHcData(){
@@ -1029,6 +1053,23 @@ export default {
});
})
},
+ findProducts(query) {
+ this.probucts = [];
+ let cQuery = {
+ key: query,
+ page: 1,
+ limit: 20
+ };
+ getTBasicProducts(cQuery)
+ .then((response) => {
+ console.log("heiheiehi",response)
+ this.loading = false;
+ this.probucts = response.data.list || [];
+ })
+ .catch(() => {
+ this.loading = false;
+ });
+ },
setZdcfsycs() {
if (this.editQuery.useMuti == false) {
this.editQuery.useNum = 0;
diff --git a/src/views/sync/SysUdimsConfig.vue b/src/views/sync/SysUdimsConfig.vue
index 13590931..21c4f02d 100644
--- a/src/views/sync/SysUdimsConfig.vue
+++ b/src/views/sync/SysUdimsConfig.vue
@@ -339,10 +339,18 @@
-
+
+
+ 生产企业数据
+
+
+
+
+
+
+
+
+
@@ -918,6 +926,7 @@ export default {
deviceInfo:null,
deviceCheck:null,
deviceRepairApply:null,
+ produceBusiness:null,
},
checkedBusTypes: [],
checkedToInBusTypes: [],