@@ -524,12 +524,26 @@
{{ productRemarkSet.remarkTitle7 }}:
-
+ filterable
+ remote
+ clearable="true"
+ reserve-keyword
+ placeholder="请选择物资类别"
+ :remote-method="findThrTypeMethod"
+ style="width: 65%"
+ >
+
+ {{ item.name }}
+ {{ item.code }}
+
+
@@ -538,12 +552,27 @@
{{ productRemarkSet.remarkTitle8 }}:
-
+ filterable
+ remote
+ style="width: 65%"
+ clearable="true"
+ reserve-keyword
+ placeholder="请选择物价类别"
+ :remote-method="findHsflMethod"
+ >
+
+ {{ item.hsmc }}
+ {{ item.hsbm }}
+
+
+
@@ -560,6 +589,7 @@ import {filterByUuid} from "../../../api/basic/udiInfo";
import {insertCompanyProductRelevance, insertFilter} from "../../../api/basic/companyProductRelevance";
import store from "../../../store";
import {isBlank} from "@/utils/strUtil";
+import {getHslbs, getThrProductType} from "@/api/thrsys/thrHsfl";
export default {
name: "UdIInfoSelect",
@@ -599,7 +629,7 @@ export default {
supplementRequest: null,
},
loading: false,
- editQuery: null,
+ editQuery: {},
repEditQuery: {
sptm: null,
ybbm: null,
@@ -652,6 +682,8 @@ export default {
selectLocalVisible: false,
productRemarkSet: {},
supplementRequest: null,
+ hsflOptions: [],
+ thrTypeOptions: [],
};
},
@@ -750,6 +782,7 @@ export default {
},
allExport() {
+ debugger
this.postQuery.customerId = store.getters.customerId;
this.postQuery.supplementRequest = this.repEditQuery;
insertFilter(this.postQuery).then(response => {
@@ -943,6 +976,39 @@ export default {
}
});
},
+ findHsflMethod(query) {
+ this.hsflOptions = [];
+ let cQuery = {
+ key: query,
+ page: 1,
+ limit: 20
+ };
+ getHslbs(cQuery)
+ .then((response) => {
+ this.loading = false;
+ this.hsflOptions = response.data.list || [];
+ })
+ .catch(() => {
+ this.loading = false;
+ });
+ }
+ ,
+ findThrTypeMethod(query) {
+ this.thrTypeOptions = [];
+ let cQuery = {
+ key: query,
+ page: 1,
+ limit: 20
+ };
+ getThrProductType(cQuery)
+ .then((response) => {
+ this.loading = false;
+ this.thrTypeOptions = response.data.list || [];
+ })
+ .catch(() => {
+ this.loading = false;
+ });
+ },
},
mounted() {
},
diff --git a/src/views/supplier/company/basicCompanyproductEdit.vue b/src/views/supplier/company/basicCompanyproductEdit.vue
index 1135c5c..2d1d350 100644
--- a/src/views/supplier/company/basicCompanyproductEdit.vue
+++ b/src/views/supplier/company/basicCompanyproductEdit.vue
@@ -152,12 +152,26 @@