|
|
@@ -276,7 +276,11 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
rowKey(row) {
|
|
|
- return this.fromType == 'pantone' ? row['id'] : row['onlyId'];
|
|
|
+ if (this.fromType == 'noVisit' || this.fromType == 'createStore') {
|
|
|
+ return row['onlyId'];
|
|
|
+ } else if (this.fromType == 'pantone') {
|
|
|
+ return row['warehouseCode'];
|
|
|
+ }
|
|
|
},
|
|
|
setTabsItem() {
|
|
|
this.tabsItem = [
|
|
|
@@ -321,7 +325,7 @@ export default {
|
|
|
} else if (this.fromType == 'pantone') {
|
|
|
// 色卡
|
|
|
this.firstProp = 'warehouseName';
|
|
|
- let deptId = tree ? tree.onlyId : null;
|
|
|
+ let deptId = tree ? tree.deptId : null;
|
|
|
this.getPantoneData(resolve, deptId);
|
|
|
}
|
|
|
},
|