This commit is contained in:
@@ -221,6 +221,13 @@ export default {
|
||||
});
|
||||
break;
|
||||
|
||||
case socktype.Vendor:
|
||||
vm.$router.push({
|
||||
name: "vendor-edit",
|
||||
params: { recordid: tid.id }
|
||||
});
|
||||
break;
|
||||
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
|
||||
@@ -50,7 +50,7 @@ export default {
|
||||
errorMessages: { type: Array, default: null },
|
||||
readonly: { type: Boolean, default: false },
|
||||
disabled: { type: Boolean, default: false },
|
||||
sockType: {
|
||||
ayaType: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
@@ -94,7 +94,7 @@ export default {
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
sockType(val, oldVal) {
|
||||
ayaType(val, oldVal) {
|
||||
if (val != oldVal && oldVal != null) {
|
||||
//change of type so clear out the list
|
||||
this.searchResults = [];
|
||||
@@ -166,7 +166,7 @@ export default {
|
||||
idToOpen = this.lastSelection.id;
|
||||
}
|
||||
window.$gz.eventBus.$emit("openobject", {
|
||||
type: this.sockType,
|
||||
type: this.ayaType,
|
||||
id: idToOpen
|
||||
});
|
||||
},
|
||||
@@ -201,7 +201,7 @@ export default {
|
||||
window.$gz.form.addNoSelectionItem(this.searchResults, true);
|
||||
} else {
|
||||
const pickListParams = {
|
||||
sockType: this.sockType,
|
||||
sockType: this.ayaType,
|
||||
preselectedIds: [this.value]
|
||||
};
|
||||
if (this.variant != null) {
|
||||
@@ -265,7 +265,7 @@ export default {
|
||||
//default params for when called on init
|
||||
if (!pickListParams) {
|
||||
pickListParams = {
|
||||
sockType: this.sockType
|
||||
ayaType: this.ayaType
|
||||
};
|
||||
if (this.value != null) {
|
||||
pickListParams["preselectedIds"] = [this.value];
|
||||
@@ -370,7 +370,7 @@ export default {
|
||||
}
|
||||
|
||||
//build parameter
|
||||
const pickListParams = { sockType: vm.sockType };
|
||||
const pickListParams = { ayaType: vm.ayaType };
|
||||
if (!emptyQuery) {
|
||||
let query = queryTerms[0];
|
||||
if (queryTerms[1] != "[?]") {
|
||||
|
||||
Reference in New Issue
Block a user