diff --git a/src/views/quality/qcIncome/index.vue b/src/views/quality/qcIncome/index.vue
index 404c375..dec26a0 100644
--- a/src/views/quality/qcIncome/index.vue
+++ b/src/views/quality/qcIncome/index.vue
@@ -29,7 +29,7 @@
@@ -180,7 +180,7 @@
-
+
@@ -214,7 +214,7 @@
-
+
@@ -229,7 +229,7 @@
@@ -238,7 +238,7 @@
-
+
diff --git a/src/views/quality/qcIncome/selectMaterial.vue b/src/views/quality/qcIncome/selectMaterial.vue
index caf2e8a..7961a0e 100644
--- a/src/views/quality/qcIncome/selectMaterial.vue
+++ b/src/views/quality/qcIncome/selectMaterial.vue
@@ -69,15 +69,13 @@ export default {
// 非单个禁用
single: true,
// 非多个禁用
- multiple: true,
+ multiple: false,
// 显示搜索条件
showSearch: true,
// 总条数
total: 0,
// BOM产品表格数据
itemList: null,
- // 树选项
- itemTypeOptions: undefined,
//树名称
bomCode: undefined,
defaultProps: {
@@ -122,13 +120,6 @@ export default {
);
},
- // 筛选节点
- filterNode(value, data) {
- console.log(value, data);
- if (!value) return true;
- return data.label.indexOf(value) !== -1;
- },
-
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
@@ -144,11 +135,13 @@ export default {
// 多选框选中数据
handleBomSelectionChange(selection) {
- this.ids = selection.map(item => item.component);
- this.idsName = selection.map(item => item.componentName);
- this.single = selection.length!==1;
- this.multiple = !selection.length;
- console.log("多选框",this.ids);
+ if(selection.length>1){
+ this.$modal.msgSuccess("只能选一个");
+ }
+
+ this.ids = selection[0].component;
+ this.idsName = selection[0].componentName;
+
},
diff --git a/src/views/quality/qcIncome/selectSupplier.vue b/src/views/quality/qcIncome/selectSupplier.vue
index bf96fcb..4903f44 100644
--- a/src/views/quality/qcIncome/selectSupplier.vue
+++ b/src/views/quality/qcIncome/selectSupplier.vue
@@ -128,11 +128,15 @@ export default {
// 多选框选中数据
handleBomSelectionChange(selection) {
- this.ids = selection.map(item => item.supplierCode);
- this.idsName = selection.map(item => item.supplierName);
- this.single = selection.length!==1;
- this.multiple = !selection.length;
- console.log("多选框",this.ids);
+
+ if(selection.length>1){
+ this.$modal.msgSuccess("只能选一个");
+ }
+
+ //this.ids = selection.map(item => item.supplierCode);
+ //this.idsName = selection.map(item => item.supplierName);
+ this.ids = selection[0].supplierCode;
+ this.idsName = selection[0].supplierName;
},
diff --git a/src/views/quality/qcIncome/selectUser.vue b/src/views/quality/qcIncome/selectUser.vue
index 1167c39..eaa568b 100644
--- a/src/views/quality/qcIncome/selectUser.vue
+++ b/src/views/quality/qcIncome/selectUser.vue
@@ -126,11 +126,13 @@ export default {
// 多选框选中数据
handleBomSelectionChange(selection) {
- this.ids = selection.map(item => item.userCode);
- this.idsName = selection.map(item => item.userName);
- this.single = selection.length!==1;
- this.multiple = !selection.length;
- console.log("多选框",this.ids);
+
+ if(selection.length>1){
+ this.$modal.msgSuccess("只能选一个");
+ }
+
+ this.ids = selection[0].userCode;
+ this.idsName = selection[0].userName;
},