This commit is contained in:
2021-06-04 00:27:07 +00:00
parent ea0e1736ea
commit 76c20bd3ca
4 changed files with 68 additions and 38 deletions

View File

@@ -110,6 +110,20 @@
].quantity`)
"
></gz-decimal>
<template
v-if="
value.items[activeWoItemIndex].parts[activeItemIndex]
.requestAmountViz != null
"
>
<v-btn text @click="doRequest()">
<v-icon left>
$ayiParachuteBox
</v-icon>
{{ requestMore }}
</v-btn>
</template>
</v-col>
<v-col
@@ -466,6 +480,15 @@ export default {
//---
},
computed: {
requestMore: function() {
return this.$ay
.t("WorkOrderItemPartRequestMore")
.replace(
"{n}",
this.value.items[this.activeWoItemIndex].parts[this.activeItemIndex]
.requestAmountViz
);
},
isDeleted: function() {
if (
this.value.items[this.activeWoItemIndex].parts[this.activeItemIndex] ==