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)
+2 -2
View File
@@ -136,7 +136,7 @@
</v-btn>
</v-flex>
<v-flex xs12 md2 sm2 class="text-md-center text-sm-center text-xs-center">
<router-link :to="{name: 'AllPack'}">
<router-link :to="{name: 'AllLabels'}">
<v-btn class="WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black">
<v-icon class="black--text">keyboard_arrow_left</v-icon>
<span class="black--text">Back</span>
@@ -209,7 +209,7 @@ export default {
}
if (result && result.status == 200) {
this.$router.push({ name: "AllPack" });
this.$router.push({ name: "AllLabels" });
}
}
}
+1 -1
View File
@@ -188,7 +188,7 @@ export default {
}
},
async generateBarcode(code) {
const result = await ApiService.post(urls.Barcode(code));
const result = await ApiService.post(urls.packageBarcode(code));
if (result && result.status == 200) {
this.changeCurrentModal({
modal: "modal-barcode-barcode",