update cssd

This commit is contained in:
Fayyazi
2019-10-09 13:33:18 +03:30
parent 65666d7919
commit d8dd6f7bcf
17 changed files with 116 additions and 14 deletions
+1 -1
View File
@@ -68,7 +68,7 @@
item-text="name"
item-value="id"
v-model="formData.packs"
label="Select Packs For Cycle"
label="Select Labels For Cycle"
></v-autocomplete>
</v-flex>
<v-spacer></v-spacer>
+13
View File
@@ -109,6 +109,10 @@
<v-icon class="white--text mr-2 caption">fas fa-times</v-icon>
<span>Remove</span>
</v-btn>
<v-btn color="orange darken-1" @click="generateBarcode(item.unique_id)">
<v-icon class="white--text mr-1 caption">fas fa-barcode</v-icon>
<span>Generate Barcode</span>
</v-btn>
</td>
</template>
</v-data-table>
@@ -204,6 +208,15 @@ export default {
});
}
},
async generateBarcode(code) {
const result = await ApiService.post(urls.Barcode(code));
if (result && result.status == 200) {
this.changeCurrentModal({
modal: "modal-barcode-barcode",
properties: { result }
});
}
},
async remove(testResultId) {
const result = await ApiService.delete(
urls.removeCycle(testResultId)