This commit is contained in:
2022-12-24 20:24:52 +00:00
parent 84d55331ea
commit e59e2c142e
3 changed files with 23 additions and 16 deletions

View File

@@ -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",

View File

@@ -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] != "[?]") {