Initial import
This commit is contained in:
@@ -0,0 +1,121 @@
|
||||
<template>
|
||||
<v-layout>
|
||||
|
||||
<v-checkbox
|
||||
v-model="init_value"
|
||||
@change="changeLahBrooo"
|
||||
|
||||
hide-details class="shrink mr-2"
|
||||
></v-checkbox>
|
||||
|
||||
|
||||
<v-text-field
|
||||
:label="__label"
|
||||
placeholder="Alasan"
|
||||
outline
|
||||
:disabled=x_disabled
|
||||
:error-messages="init_error ? x_error_messages : ''"
|
||||
:error_count="init_error ? x_error_count : 0 "
|
||||
:error=init_error
|
||||
:hide-details=!init_error
|
||||
v-model=init_note
|
||||
></v-text-field>
|
||||
|
||||
|
||||
|
||||
</v-layout>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
props : ['label', 'value', 'is_error', 'note'],
|
||||
mounted: function() {
|
||||
this.$nextTick( function() {
|
||||
this.init_note = this.note ? this.note : "";
|
||||
this.init_value = this.value;
|
||||
})
|
||||
},
|
||||
|
||||
data () {
|
||||
return {
|
||||
init_value : false,
|
||||
init_note : ""
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
methods : {
|
||||
changeLahBrooo (n, o) {
|
||||
if (n) {
|
||||
this.init_note = "";
|
||||
// this.init_error = false;
|
||||
} /* else {
|
||||
if (this.init_note.length < 1)
|
||||
this.init_error = true;
|
||||
else
|
||||
this.init_error = false;
|
||||
}*/
|
||||
|
||||
var prm = {checked: n, note: this.init_note, error: this.init_error};
|
||||
this.$emit('x_change',prm);
|
||||
console.log("emit x_change");
|
||||
|
||||
// this.x_note = "aaaaaaaaaaaaaaaaaaa"
|
||||
// alert(this.x_note)
|
||||
}
|
||||
},
|
||||
computed : {
|
||||
__label () {
|
||||
if (this.label)
|
||||
return this.label;
|
||||
|
||||
return "";
|
||||
},
|
||||
|
||||
x_disabled () {
|
||||
// return false;
|
||||
if (this.init_value === "true" || this.init_value === true)
|
||||
return true;
|
||||
return false;
|
||||
|
||||
},
|
||||
|
||||
init_error () {
|
||||
|
||||
if ((this.init_value === "false" || this.init_value === false) && this.init_note.length < 1)
|
||||
return true;
|
||||
|
||||
else {
|
||||
// this.x_note = "";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
x_error_count () {
|
||||
// return 0;
|
||||
if (this.init_error)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
},
|
||||
|
||||
x_error_messages () {
|
||||
if (this.init_error)
|
||||
return ["Kolom ini harus diisi !"];
|
||||
|
||||
return [];
|
||||
},
|
||||
|
||||
x_note () {
|
||||
|
||||
if (this.note)
|
||||
return this.note;
|
||||
|
||||
return "";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,178 @@
|
||||
<template>
|
||||
|
||||
|
||||
<v-card class="pa-1">
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12>
|
||||
<v-card flat>
|
||||
|
||||
<v-layout>
|
||||
<v-flex xs6 class="pa-2">
|
||||
<v-text-field
|
||||
label="Company"
|
||||
placeholder=""
|
||||
:value="c_company"
|
||||
readonly
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs6 class="pa-2">
|
||||
<v-text-field
|
||||
label="MOU"
|
||||
placeholder=""
|
||||
:value="c_mou"
|
||||
readonly
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12>
|
||||
<v-layout row wrap>
|
||||
<v-flex xs6 pa-2>
|
||||
<one-field-verification
|
||||
:is_error="true"
|
||||
label="Company sudah sesuai"
|
||||
@x_change="companyChange"
|
||||
value=false
|
||||
:note="n_company_false"
|
||||
></one-field-verification>
|
||||
<!-- <v-layout>
|
||||
<v-flex xs5>
|
||||
<v-checkbox
|
||||
v-model="$data._company"
|
||||
:label="`Company Sudah Sesuai`"
|
||||
></v-checkbox>
|
||||
</v-flex>
|
||||
<v-flex xs7 pt-2>
|
||||
<v-text-field
|
||||
label=""
|
||||
placeholder=""
|
||||
outline
|
||||
:disabled="__company"
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
</v-layout> -->
|
||||
|
||||
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs6 pa-2>
|
||||
<one-field-verification
|
||||
label="MOU sudah sesuai"
|
||||
value=false
|
||||
|
||||
></one-field-verification>
|
||||
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12 class="pt-2">
|
||||
<one-fo-verification-mou-px-curr-order></one-fo-verification-mou-px-curr-order>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12 class="pt-4">
|
||||
<v-layout align-end justify-end>
|
||||
<v-flex xs6>
|
||||
<h3>Tambahan Pemeriksaan</h3>
|
||||
</v-flex>
|
||||
<v-flex xs6 class="text-xs-right">
|
||||
<!-- <v-layout fill-height align-end justify-end> -->
|
||||
<v-btn
|
||||
color="green"
|
||||
dark
|
||||
class="mt-0 mb-0"
|
||||
>
|
||||
Tambah Pemeriksaan
|
||||
</v-btn>
|
||||
<!-- </v-layout> -->
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12 class="pt-2">
|
||||
<one-fo-verification-mou-px-add-order></one-fo-verification-mou-px-add-order>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12 class="pt-2">
|
||||
<v-textarea
|
||||
label="Catatan Verifikasi Pemeriksaan"
|
||||
rows="3"
|
||||
value=""
|
||||
outline
|
||||
></v-textarea>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
|
||||
</v-card>
|
||||
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* .v-text-field__details {
|
||||
display: none;
|
||||
} */
|
||||
|
||||
/* .v-text-field--box input, .v-text-field--full-width input, .v-text-field--outline input {
|
||||
margin-top: 0px;
|
||||
} */
|
||||
|
||||
.v-text-field--box>.v-input__control>.v-input__slot, .v-text-field--full-width>.v-input__control>.v-input__slot, .v-text-field--outline>.v-input__control>.v-input__slot {
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
/* .v-input__slot {
|
||||
margin-bottom: 0px !important;
|
||||
} */
|
||||
|
||||
/* .v-messages {
|
||||
display: none;
|
||||
} */
|
||||
</style>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
components : {
|
||||
'one-fo-verification-mou-px-curr-order' : httpVueLoader('./oneFoVerificationMouPxCurrOrder.vue'),
|
||||
'one-fo-verification-mou-px-add-order' : httpVueLoader('./oneFoVerificationMouPxAddOrder.vue'),
|
||||
'one-field-verification' : httpVueLoader('./oneFieldVerification.vue')
|
||||
// 'patient-right-side' : httpVueLoader('./patientRightSide.vue')
|
||||
},
|
||||
|
||||
data () {
|
||||
return {
|
||||
checkbox: true,
|
||||
|
||||
c_company: 'PT. Enseval Indonesia',
|
||||
c_mou: 'Enseval 01',
|
||||
|
||||
_company: true,
|
||||
_mou: true,
|
||||
|
||||
xx: true,
|
||||
|
||||
n_company_false: "bro nih yeee"
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
companyChange : function(val) {
|
||||
if (val == true)
|
||||
this.n_company_false = "";
|
||||
console.log(val)
|
||||
|
||||
}
|
||||
},
|
||||
computed : {
|
||||
__company () {
|
||||
return this.$data._company;
|
||||
},
|
||||
|
||||
__mou () {
|
||||
return this.$data._mou;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,88 @@
|
||||
|
||||
<template>
|
||||
<v-card flat>
|
||||
<v-data-table :headers="headers" :items="orders"
|
||||
:loading="isLoading"
|
||||
hide-actions class="elevation-1">
|
||||
<template slot="items" slot-scope="props">
|
||||
<td class="text-xs-left pa-2" >
|
||||
<v-btn color="red" dark class="pt-0 pb-0 pl-1 pr-1 mt-0 mb-0 mr-2 ml-0" small>
|
||||
<v-icon dark>delete</v-icon>
|
||||
</v-btn>
|
||||
{{ props.item.px }}</td>
|
||||
<td class="text-xs-right pa-2" >{{ props.item.bruto }}</td>
|
||||
<td class="text-xs-right pa-2">{{ props.item.disc }}</td>
|
||||
<td class="text-xs-right pa-2">{{ props.item.total }}</td>
|
||||
</template>
|
||||
|
||||
</v-data-table>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
table.v-table tbody td,table.v-table tbody th {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
table.v-table thead tr {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.v-btn {
|
||||
min-width: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
data () {
|
||||
return {
|
||||
headers: [
|
||||
{
|
||||
text: "PEMERIKSAAN",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "px",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "BRUTO",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "bruto",
|
||||
width: "25%",
|
||||
class: "text-xs-right pa-2 blue lighten-3 white--text",
|
||||
width: "15%"
|
||||
},
|
||||
{
|
||||
text: "DISKON",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "disc",
|
||||
class: "text-xs-right pa-2 blue lighten-3 white--text",
|
||||
width: "15%"
|
||||
},
|
||||
{
|
||||
text: "TOTAL",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "total",
|
||||
class: "text-xs-right pa-2 blue lighten-3 white--text",
|
||||
width: "15%"
|
||||
}
|
||||
],
|
||||
query : "",
|
||||
|
||||
isLoading: true,
|
||||
orders: [
|
||||
// {"px":"Hemoglobin", "bruto":"30,000", "disc":"10,000", "total":"20,000"},
|
||||
// {"px":"Trombosit", "bruto":"30,000", "disc":"10,000", "total":"20,000"},
|
||||
// {"px":"Eritrosit", "bruto":"30,000", "disc":"10,000", "total":"20,000"},
|
||||
{"px":"SGOT", "bruto":"30,000", "disc":"10,000", "total":"20,000"},
|
||||
{"px":"SGPT", "bruto":"30,000", "disc":"10,000", "total":"20,000"},
|
||||
{"px":"Urine Lengkap", "bruto":"30,000", "disc":"10,000", "total":"20,000"}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,83 @@
|
||||
|
||||
<template>
|
||||
<v-card flat>
|
||||
<v-data-table :headers="headers" :items="orders"
|
||||
:loading="isLoading"
|
||||
hide-actions class="elevation-1">
|
||||
<template slot="items" slot-scope="props">
|
||||
<td class="text-xs-left pa-2" >
|
||||
|
||||
<v-checkbox :label="`${props.item.px}`"></v-checkbox>
|
||||
</td>
|
||||
<td class="text-xs-right pa-2" >{{ props.item.bruto }}</td>
|
||||
<td class="text-xs-right pa-2">{{ props.item.disc }}</td>
|
||||
<td class="text-xs-right pa-2">{{ props.item.total }}</td>
|
||||
</template>
|
||||
|
||||
</v-data-table>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
table.v-table tbody td,table.v-table tbody th {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
table.v-table thead tr {
|
||||
height: 40px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
data () {
|
||||
return {
|
||||
headers: [
|
||||
{
|
||||
text: "PEMERIKSAAN",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "px",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "BRUTO",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "bruto",
|
||||
width: "25%",
|
||||
class: "text-xs-right pa-2 blue lighten-3 white--text",
|
||||
width: "15%"
|
||||
},
|
||||
{
|
||||
text: "DISKON",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "disc",
|
||||
class: "text-xs-right pa-2 blue lighten-3 white--text",
|
||||
width: "15%"
|
||||
},
|
||||
{
|
||||
text: "TOTAL",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "total",
|
||||
class: "text-xs-right pa-2 blue lighten-3 white--text",
|
||||
width: "15%"
|
||||
}
|
||||
],
|
||||
query : "",
|
||||
|
||||
isLoading: true,
|
||||
orders: [
|
||||
{"px":"Hemoglobin", "bruto":"30,000", "disc":"10,000", "total":"20,000"},
|
||||
{"px":"Trombosit", "bruto":"30,000", "disc":"10,000", "total":"20,000"},
|
||||
{"px":"Eritrosit", "bruto":"30,000", "disc":"10,000", "total":"20,000"},
|
||||
// {"px":"SGOT", "bruto":"30,000", "disc":"10,000", "total":"20,000"},
|
||||
// {"px":"SGPT", "bruto":"30,000", "disc":"10,000", "total":"20,000"},
|
||||
// {"px":"Urine Lengkap", "bruto":"30,000", "disc":"10,000", "total":"20,000"}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user