This commit is contained in:
@@ -373,7 +373,24 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getWarrantyInfo() {},
|
async getWarrantyInfo() {
|
||||||
|
this.warrantyInfo = null;
|
||||||
|
const id = this.value.items[this.activeWoItemIndex].units[
|
||||||
|
this.activeItemIndex
|
||||||
|
].unitId;
|
||||||
|
if (!id || id == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let res = await window.$gz.api.get(`unit/service-warranty-info/${id}`);
|
||||||
|
if (res.error) {
|
||||||
|
window.$gz.eventBus.$emit(
|
||||||
|
"notify-warning",
|
||||||
|
window.$gz.errorHandler.errorToString(res, this)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
this.warrantyInfo = JSON.stringify(res.data);
|
||||||
|
}
|
||||||
|
},
|
||||||
showBulkUnitsDialog() {
|
showBulkUnitsDialog() {
|
||||||
if (this.bulkUnitTableHeaders.length == 0) {
|
if (this.bulkUnitTableHeaders.length == 0) {
|
||||||
//init bulk table headers
|
//init bulk table headers
|
||||||
@@ -430,6 +447,7 @@ export default {
|
|||||||
this.value.items[this.activeWoItemIndex].units[
|
this.value.items[this.activeWoItemIndex].units[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].unitViz = newName;
|
].unitViz = newName;
|
||||||
|
this.warrantyInfo = null;
|
||||||
},
|
},
|
||||||
newItem() {
|
newItem() {
|
||||||
let newIndex = this.value.items[this.activeWoItemIndex].units.length;
|
let newIndex = this.value.items[this.activeWoItemIndex].units.length;
|
||||||
|
|||||||
Reference in New Issue
Block a user