mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 05:41:07 +03:30
commit multi image
This commit is contained in:
@@ -47,14 +47,14 @@
|
|||||||
<v-text-field
|
<v-text-field
|
||||||
name="autoclave"
|
name="autoclave"
|
||||||
v-model="formData.device_id"
|
v-model="formData.device_id"
|
||||||
:label="form.device_label"
|
:label="formData.device_label"
|
||||||
color="black"
|
color="black"
|
||||||
class="pa-2"
|
class="pa-2"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
<v-flex xs12 sm4 md4>
|
<v-flex xs12 sm4 md4>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="formData.cycle_number "
|
v-model="formData.cycle_number"
|
||||||
label="Cycle Number"
|
label="Cycle Number"
|
||||||
color="black"
|
color="black"
|
||||||
class="pa-2"
|
class="pa-2"
|
||||||
@@ -343,6 +343,15 @@ export default {
|
|||||||
);
|
);
|
||||||
if (result && result.status == 200) {
|
if (result && result.status == 200) {
|
||||||
this.formData = result.data.data;
|
this.formData = result.data.data;
|
||||||
|
for (const key in result.data.data.imagesPath) {
|
||||||
|
if (result.data.data.imagesPath.hasOwnProperty(key)) {
|
||||||
|
result.data.data.imagesPath[key] = '/' + result.data.data.imagesPath[key];
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.formData.images = result.data.data.imagesPath;
|
||||||
|
this.images = result.data.data.imagesPath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -399,6 +408,13 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.formData.result = "Reject";
|
this.formData.result = "Reject";
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
formData(value) {
|
||||||
|
if (value.result == "Accept") {
|
||||||
|
this.result = true;
|
||||||
|
} else {
|
||||||
|
this.result = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<v-flex xs12 md3 sm3>
|
<v-flex xs12 md3 sm3>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
class="pa-2"
|
class="pa-2"
|
||||||
v-model="filter.auto_clave_id"
|
v-model="filter.device_id"
|
||||||
label="autoClaveId"
|
label="autoClaveId"
|
||||||
color="black"
|
color="black"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template slot="items" slot-scope="{ item }">
|
<template slot="items" slot-scope="{ item }">
|
||||||
<td class="headline font-weight-light">{{ item.autoclave_id }}</td>
|
<td class="headline font-weight-light">{{ item.device_id }}</td>
|
||||||
<td
|
<td
|
||||||
class="title font-weight-light"
|
class="title font-weight-light"
|
||||||
>{{ item.test_type ? item.test_type.name : 'Archived Test' }}</td>
|
>{{ item.test_type ? item.test_type.name : 'Archived Test' }}</td>
|
||||||
@@ -181,7 +181,7 @@ export default {
|
|||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
sortable: false,
|
sortable: false,
|
||||||
text: "AutoClaveId",
|
text: "AutoClave Or Washer Id",
|
||||||
value: "name"
|
value: "name"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -102,7 +102,7 @@
|
|||||||
<span>Edit</span>
|
<span>Edit</span>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</router-link>
|
</router-link>
|
||||||
<v-btn color="orange darken-1" @click="generateBarcode(item.id)">
|
<v-btn color="orange darken-1" @click="generateBarcode(item.unique_code)">
|
||||||
<v-icon class="white--text mr-1 caption">fas fa-barcode</v-icon>
|
<v-icon class="white--text mr-1 caption">fas fa-barcode</v-icon>
|
||||||
<span>Generate Barcode</span>
|
<span>Generate Barcode</span>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
@@ -211,8 +211,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async generateBarcode(id) {
|
async generateBarcode(code) {
|
||||||
const result = await ApiService.post(urls.TestTypeBarcode(id));
|
const result = await ApiService.post(urls.Barcode(code));
|
||||||
if (result && result.status == 200) {
|
if (result && result.status == 200) {
|
||||||
this.changeCurrentModal({
|
this.changeCurrentModal({
|
||||||
modal: "modal-barcode-barcode",
|
modal: "modal-barcode-barcode",
|
||||||
|
|||||||
Reference in New Issue
Block a user