Initial import

This commit is contained in:
sas.fajri
2026-05-25 20:01:37 +07:00
commit 710d7c1b97
10371 changed files with 2381698 additions and 0 deletions

View File

@@ -0,0 +1,429 @@
<template>
<v-layout v-if="xact !== 'new'" column>
<v-dialog v-model="dialogconfirmationdeletepat" persistent max-width="290">
<v-card>
<v-card-title dark class="headline error pt-2 pb-2" primary-title style="color:white">
<h4 dark>Konfirmasi</h4>
</v-card-title>
<v-card-text>
{{msgconfirmationdeletepat}}
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn small color="error darken-1 text-sm-left" flat @click="doDeletePat()">Hapus</v-btn>
<v-btn small color="primary darken-1 text-sm-right" flat @click="dialogconfirmationdeletepat = false">Batal</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog v-model="dialogconfirmationsend" persistent max-width="290">
<v-card>
<v-card-title dark class="headline success pt-2 pb-2" primary-title style="color:white">
<h4 dark>Konfirmasi</h4>
</v-card-title>
<v-card-text>
{{msgconfirmationsend}}
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn small color="success darken-1 text-sm-left" flat @click="doOrderMethode()">Kirim</v-btn>
<v-btn small color="primary darken-1 text-sm-right" flat @click="dialogconfirmationsend = false">Batal</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog v-model="dialogformpricemou" persistent max-width="650">
<v-card>
<v-card-title>
<span class="headline">Form Methode Pemeriksaan {{xtestprices.Nat_TestName}}</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-layout wrap>
<v-flex xs12>
<v-select item-text="Nat_MethodeName" readonly return-object :items="xpricemoues" v-model="xpricemou" label="Metode"></v-select>
</v-flex>
<v-flex xs12>
<v-text-field label="Prioritas" v-model="xpriority"></v-text-field>
</v-flex>
<v-flex xs12>
<v-btn class="mt-1 mb-2" v-for="(vst,idx) in xorderdays" :key="vst.id" @click="changeDay(idx)" small :color="vst.isday === 'N' ? 'yellow' : 'green'">{{vst.M_DayOfWeekName}}
</v-btn>
</v-flex>
</v-layout>
<v-layout row>
</v-layout>
<v-divider></v-divider>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" flat @click="dialogformpricemou = false">Tutup</v-btn>
<v-btn v-if="xactpat === 'new'" color="blue darken-1" flat @click="saveNewMethode()">Simpan</v-btn>
<v-btn v-if="xactpat === 'edit'" color="blue darken-1" flat @click="saveEditMethode()">Simpan</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-card>
<v-layout row>
<v-flex xs12>
<v-subheader red--text text--lighten-1> DAFTAR HARGA PEMERIKSAAN {{xtestprices.T_TestName}}
<v-flex text-md-right>
</v-flex>
</v-subheader>
<v-divider></v-divider>
<v-layout row wrap>
<v-flex xs12 pa-2>
<v-data-table :headers="headers" :items="xpricemous" :loading="isLoading" hide-actions class="elevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pa-2">{{ props.item.M_CompanyName}}</td>
<td class="text-xs-left pa-2">{{ props.item.M_MouName}}
</td>
<td class="text-xs-left pa-2">{{ props.item.T_PriceIsCito}}
</td>
<td class="text-xs-left pa-2">{{ props.item.periode}}</td>
<td class="text-xs-left pa-2">{{ props.item.T_PricePriority}}
</td>
<td class="text-xs-left pa-2">{{ props.item.T_PriceTotal}}
</td>
</template>
</v-data-table>
</v-flex>
</v-layout>
<v-layout row wrap>
<v-flex xs12 pa-2>
</v-flex>
</v-layout>
</v-flex>
</v-flex>
</v-card>
</v-layout>
</template>
<style scoped>
</style>
<script>
module.exports = {
data: () => ({
oldlabel: '',
search_day: '',
xpriority: '',
headers: [
{
text: "PERUSAHAAN",
align: "left",
sortable: false,
value: "mr",
width: "20%",
class: "pa-1 blue lighten-3 white--text"
},
{
text: "AGREEMENT",
align: "left",
sortable: false,
value: "lab",
width: "20%",
class: "pa-1 blue lighten-3 white--text"
},
{
text: "CITO",
align: "left",
sortable: false,
value: "lab",
width: "10%",
class: "pa-1 blue lighten-3 white--text"
},
{
text: "PERIODE",
align: "left",
sortable: false,
value: "lab",
width: "20%",
class: "pa-1 blue lighten-3 white--text"
},
{
text: "PRIORITAS",
align: "left",
sortable: false,
value: "mr",
width: "10%",
class: "pa-1 blue lighten-3 white--text"
},
{
text: "HARGA",
align: "left",
sortable: false,
value: "lab",
width: "10%",
class: "pa-1 blue lighten-3 white--text"
}
]
}),
computed: {
dialogconfirmationdeletepat: {
get() {
return this.$store.state.testprice.dialog_confirmation_delete_meth
},
set(val) {
this.$store.commit("testprice/update_dialog_confirmation_delete_meth", val)
}
},
xtestprices() {
return this.$store.state.testprice.selected_testprice
},
msgconfirmationdeletepat() {
return this.$store.state.testprice.msg_confirmation_delete_meth
},
dialogconfirmationsend: {
get() {
return this.$store.state.testprice.dialog_confirmation_send
},
set(val) {
this.$store.commit("testprice/update_dialog_confirmation_send", val)
}
},
msgconfirmationsend() {
return this.$store.state.testprice.msg_confirmation_send
},
xact() {
return this.$store.state.testprice.act
},
xactpat() {
return this.$store.state.testprice.act_meth
},
xactsend() {
return this.$store.state.testprice.act_send
},
dialogformpricemou: {
get() {
return this.$store.state.testprice.dialog_form_pricemou
},
set(val) {
this.$store.commit("testprice/update_dialog_form_pricemou", val)
}
},
isLoading() {
return this.$store.state.testprice.search_status == 1
},
xpricemous(p) {
return this.$store.state.testprice.pricemous
},
xnoref: {
get() {
return this.$store.state.testprice.noref
},
set(val) {
this.$store.commit("testprice/update_noref", val)
}
},
namapricemou: {
get() {
return this.$store.state.testprice.namapricemou
},
set(val) {
this.$store.commit("testprice/update_nama_pricemou", val)
}
},
xdob: {
get() {
return this.$store.state.testprice.dob
},
set(val) {
this.$store.commit("testprice/update_dob", val)
}
},
xpricemoues() {
return this.$store.state.testprice.pricemoues
},
xpricemou: {
get() {
return this.$store.state.testprice.selected_pricemou
},
set(val) {
this.$store.commit("testprice/update_selected_pricemou", val)
}
},
xorderautodays() {
return this.$store.state.testprice.orderautodays
},
xorderautoday: {
get() {
return this.$store.state.testprice.orderautoday
},
set(val) {
this.$store.commit("testprice/update_orderautoday", val)
}
},
xorderdays() {
return this.$store.state.testprice.orderdays
},
sub_total() {
let days = this.xorderdays
sub_total = 0
days.forEach(function (vpx, idx) {
let total = parseInt(vpx.total)
sub_total = sub_total + total
})
return sub_total
},
dp() {
let mindp = this.$store.state.testprice.selected_testprice.M_MouMinDP
let dp = mindp / 100 * this.sub_total
return dp
},
isbill() {
let isbill = this.$store.state.testprice.selected_testprice.M_MouIsBill
return isbill
},
isagingonhold() {
let isagingonhold = this.$store.state.testprice.selected_testprice.M_MouIsAgingOnHold
return isagingonhold
},
agingonhold() {
let agingonhold = this.$store.state.testprice.selected_testprice.M_MouIsAgingOnHoldNote
return agingonhold
}
},
methods: {
createNewMethode() {
this.$store.commit("testprice/update_act_meth", 'new')
this.xnoref = ''
this.namapricemou = ''
this.$store.commit("testprice/update_selected_pricemou", [])
this.xdob = ''
this.$store.commit("testprice/update_orderdays", [])
this.$store.commit("testprice/update_dialog_form_pricemou", true)
},
checkError(value) {
var errors = this.$store.state.testprice.errors
if (errors.includes(value)) {
return true
} else {
return false
}
},
changeDay(idx) {
var arrOrders = this.$store.state.testprice.orderdays
arrOrders[idx].isday = arrOrders[idx].isday === 'N' ? 'Y' : 'N'
this.$store.commit("testprice/update_orderdays", arrOrders)
},
saveNewMethode() {
var prm = {}
prm.M_MethodePriorityNat_TestID = this.$store.state.testprice.selected_testprice
.Nat_TestID
prm.Nat_MethodeName = this.$store.state.testprice.selected_testprice.Nat_MethodeName
prm.M_MethodePriorityNat_MethodeID = this.$store.state.testprice.selected_pricemou.Nat_MethodeID
prm.M_MethodePriorityNumber = this.xpriority
prm.orderdays = this.xorderdays
this.$store.dispatch("testprice/savenewpricemou", prm)
},
editMethode(value) {
this.$store.commit("testprice/update_act_meth", 'edit')
this.$store.commit("testprice/update_x_meth_id", value.M_MethodePriorityID)
this.xpriority = value.M_MethodePriorityNumber
this.$store.commit("testprice/update_selected_pricemou", {
Nat_MethodeID: value.Nat_MethodeID,
Nat_MethodeName: value.Nat_MethodeName
})
this.isday = value.isday === 'N' ? false : true
this.$store.commit("testprice/update_orderdays", value.days)
this.$store.commit("testprice/update_dialog_form_pricemou", true)
},
saveEditMethode() {
var prm = {}
prm.M_MethodePriorityID = this.$store.state.testprice.x_meth_id
prm.M_MethodePriorityNat_TestID = this.$store.state.testprice.selected_testprice
.Nat_TestID
prm.Nat_MethodeName = this.$store.state.testprice.selected_pricemou.Nat_MethodeName
prm.M_MethodePriorityNat_MethodeID = this.$store.state.testprice.selected_pricemou.Nat_MethodeID
prm.M_MethodePriorityNumber = this.xpriority
prm.orderdays = this.xorderdays
this.$store.dispatch("testprice/saveeditpricemou", prm)
},
thr_search_day: _.debounce(function () {
this.$store.dispatch("testprice/searchday", {
day: this.search_day,
mouid: this.$store.state.testprice.selected_testprice.Nat_TestM_MouID
})
}, 2000),
deleteMethode(value) {
this.$store.commit("testprice/update_act_meth", 'delete')
this.$store.commit("testprice/update_x_meth_id", value.M_MethodePriorityID)
this.$store.commit("testprice/update_errors", [])
var errors = this.$store.state.testprice.errors
var msg = ''
msg = "Yakin, akan menghapus data pricemou " + value.M_MethodePriorityName + " ?"
this.$store.commit("testprice/update_msg_confirmation_delete_meth", msg)
this.$store.commit("testprice/update_dialog_confirmation_delete_meth", true)
},
doDeletePat() {
var prm = {}
prm.M_MethodePriorityNat_TestID = this.$store.state.testprice.selected_testprice
.Nat_TestID
prm.M_MethodePriorityID = this.$store.state.testprice.x_meth_id
prm.M_MethodePriorityName = this.namapricemou
prm.M_CompanyName = this.$store.state.testprice.selected_testprice.M_CompanyName
this.$store.dispatch("testprice/deletepricemou", prm)
},
sendOrderMethode(value) {
let msg = "Yakin, akan mengirim permintaan nomor " + this.$store.state.testprice.selected_testprice
.Nat_TestNumber + " ?"
this.$store.commit("testprice/update_msg_confirmation_send", msg)
this.$store.commit("testprice/update_dialog_confirmation_send", true)
},
doOrderMethode() {
var prm = {}
prm.Nat_TestID = this.$store.state.testprice.selected_testprice
.Nat_TestID
prm.Nat_TestNumber = this.$store.state.testprice.selected_testprice
.Nat_TestNumber
this.$store.dispatch("testprice/sendorder", prm)
},
convertMoney(money) {
return one_money(money)
},
addTest() {
var oldArr = this.$store.state.testprice.orderdays
oldArr.push(this.$store.state.testprice.orderautoday)
this.searchday = ''
this.$store.commit("testprice/update_orderautodays", [])
this.$store.commit("testprice/update_orderautoday", {})
},
deleteDataPx(idx) {
var inx = parseInt(idx);
var xrow = this.$store.state.testprice.orderdays[inx]
if (parseInt(xrow.xid) !== 0) {
var xdelday = this.$store.state.testprice.deleted_orderdays
xdelday.push(xrow)
this.$store.commit("testprice/update_deleted_orderdays", xdelday)
}
var oldArr = this.$store.state.testprice.orderdays
oldArr.splice(inx, 1)
this.$store.commit("testprice/update_orderdays", oldArr)
},
},
watch: {
search_city(val, old) {
if (val == old) return
if (!val) return
if (val.length < 1) return
if (this.$store.state.testprice.update_autocomplete_status == 1) return
this.thr_search_city()
},
search_day(val, old) {
if (val == old) return
if (!val) return
if (val.length < 1) return
if (this.$store.state.testprice.update_autocomplete_status == 1) return
this.thr_search_day()
}
}
}
</script>

View File

@@ -0,0 +1,450 @@
<template>
<v-layout class="fill-height" column>
<v-dialog v-model="dialogsuccess" persistent max-width="290">
<v-card>
<v-card-title color="success" class="headline">Berhasil !</v-card-title>
<v-card-text>
{{msgsuccess}}
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="green darken-1" flat @click="closeDialogSuccess">OK</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-card class="mb-2 pa-2 searchbox">
<v-layout>
<v-text-field class="xs4 ma-1" label="Kode" placeholder="Cari..." outline v-model="code" hide-details></v-text-field>
<v-text-field class="xs4 ma-1" label="Pemeriksaan" placeholder="Cari..." outline v-model="name" hide-details></v-text-field>
<span @click="searchMethode" class="icon-medium-fill-base xs1 white--text success iconsearch-search"></span>
</v-layout>
</v-card>
<v-card>
<v-layout row>
<v-flex xs12 pl-2 pr-2 pt-2 pb-2>
<v-data-table :headers="headers" :items="testprices" :loading="isLoading" :pagination.sync="pagination" class="elevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.T_TestCode}}</td>
<td class="text-xs-left pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.T_TestName}}</td>
</template>
<template>
<div class="text-xs-center">
<v-pagination v-model="page" :length="15" :total-visible="7"></v-pagination>
</div>
</template>
</v-data-table>
</v-flex>
</v-layout>
</v-card>
<one-dialog-alert :status="openalertconfirmation" :msg="msgalertconfirmation" @forget-dialog-alert="forgetAlertConfirmation()"
@close-dialog-alert="closeAlertConfirmation()"></one-dialog-alert>
<template>
<v-layout row justify-center>
<v-dialog v-model="dialogformorder" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Form Perusahaan</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-form ref="formcompany">
<v-layout row wrap>
<v-flex xs12 pa-2>
<v-layout row>
<v-flex xs12 pa-1>
<v-autocomplete label="Perusahaan*" v-model="xcompany" :items="xcompanies" :search-input.sync="search_company" auto-select-first
no-filter item-text="M_CompanyName" return-object :loading="isLoading" no-data-text="Pilih Perusahaan">
<template slot="item" slot-scope="{ item }">
<v-list-tile-content>
<v-list-tile-title v-text="item.M_CompanyName"></v-list-tile-title>
</v-list-tile-content>
</template>
</v-autocomplete>
<p v-if="checkError('requirexcompany')" class="error pl-2 pr-2" style="color:#fff">Pilih perusahaan dulu dong</p>
</v-flex>
</v-layout>
<v-layout row>
<v-flex xs12 pa-1>
<v-select item-text="M_MouName" return-object :items="xmous" v-model="xmou" label="MOU*"></v-select>
<p v-if="checkError('requirexmou')" class="error pl-2 pr-2" style="color:#fff">Pilih MOU dulu dong</p>
</v-flex>
</v-layout>
<v-layout row>
<v-flex xs12 pa-1>
<v-menu ref="menusdate" v-model="menusdate" :close-on-content-click="false" :nudge-right="0" lazy transition="scale-transition"
offset-y full-width max-width="290px" min-width="290px">
<template v-slot:activator="{ on }">
<v-text-field v-model="startComputedDateFormatted" label="Tgl. Order*" readonly v-on="on" @blur="date = deFormatedDate(startComputedDateFormatted)"></v-text-field>
</template>
<v-date-picker v-model="xsdate" no-title @input="menusdate = false"></v-date-picker>
<p v-if="checkError('requirexsdate')" class="error pl-2 pr-2" style="color:#fff">Tanggal order harus diisi dong</p>
</v-flex>
</v-layout>
<v-layout row>
<v-flex xs12 pa-1>
<v-text-field v-model="xnote" label="Catatan"></v-text-field>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" flat @click="updateDialogFormOrder()">Tutup</v-btn>
<v-btn v-if="xact === 'new'" color="blue darken-1" flat @click="saveFormPerusahaan()">Simpan</v-btn>
<v-btn v-if="xact === 'edit'" color="blue darken-1" flat @click="updateFormPerusahaan()">Simpan Perubahan</v-btn>
</v-card-actions>
</v-form>
</v-card>
</v-dialog>
</v-layout>
</template>
<template>
<v-layout row justify-center>
<v-dialog v-model="dialogstatusorder" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Status</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-timeline>
<v-timeline-item v-for="(status, i) in xstatuss" :key="i" :waktu="status.waktu" :user="status.user" small>
<template>
<span :class="`headline font-weight-bold cyan--text`" v-text="status.status"></span>
</template>
<div class="py-3">
<h2 :class="`headline font-weight-light mb-3 cyan--text`"></h2>
<div>
{{status.waktu}}
<p> [ {{status.user}} ] </p>
</div>
</div>
</v-timeline-item>
</v-timeline>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" flat @click="updateDialogStatusOrder()">Tutup</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-layout>
</template>
</v-layout>
</template>
<style scoped>
.searchbox .v-input.v-text-field .v-input__slot {
min-height: 60px;
}
.searchbox .v-btn {
min-height: 60px;
}
table.v-table tbody td,
table.v-table tbody th {
height: 40px;
}
table.v-table thead tr {
height: 40px;
}
</style>
<script>
module.exports = {
components: {
'one-dialog-info': httpVueLoader('../../common/oneDialogInfo.vue'),
'one-dialog-alert': httpVueLoader('../../common/oneDialogAlert.vue')
},
mounted() {
this.$store.dispatch("testprice/getpricemoureg")
this.$store.dispatch("testprice/search", {
code: this.code,
name: this.name,
lastid: -1
})
},
methods: {
checkError(value) {
var errors = this.$store.state.testprice.errors
if (errors.includes(value)) {
return true
} else {
return false
}
},
isSelected(p) {
return p.T_TestID == this.$store.state.testprice.selected_testprice
.T_TestID
},
searchMethode() {
this.$store.dispatch("testprice/search", {
code: this.code,
name: this.name,
lastid: -1
})
},
selectMe(pat) {
if (this.$store.state.testprice.no_save == 0) {
this.$store.commit("testprice/update_selected_testprice", pat)
this.$store.commit("testprice/update_act_comp", 'edit')
this.$store.dispatch("testprice/getpricemou", {
id: pat.T_TestID
})
} else {
this.$store.commit("testprice/update_open_alert_confirmation", true)
}
},
closeAlertConfirmation() {
this.$store.commit("testprice/update_open_alert_confirmation", false)
},
forgetAlertConfirmation() {
this.$store.commit("testprice/update_no_save", 0)
this.$store.commit("testprice/update_open_alert_confirmation", false)
},
updateAlert_success(val) {
this.$store.commit("testprice/update_alert_success", val)
},
updateDialogFormOrder() {
this.$store.commit("testprice/update_dialog_form_order", false)
},
updateDialogStatusOrder() {
this.$store.commit("testprice/update_dialog_status_order", false)
},
setNewOrder() {
this.$store.commit("testprice/update_selected_testprice", {})
this.$store.commit("testprice/update_act_comp", 'new')
this.$store.commit("testprice/update_dialog_form_order", true)
this.search_company = ''
},
setStatusOrder() {
this.$store.commit("testprice/update_selected_testprice", {})
this.$store.commit("testprice/update_dialog_status_order", true)
this.search_company = ''
},
saveFormPerusahaan() {
this.$store.commit("testprice/update_errors", [])
var errors = this.$store.state.testprice.errors
if (_.isEmpty(this.xcompany)) {
errors.push("requirexcompany")
}
if (_.isEmpty(this.xmou)) {
errors.push("requirexmou")
}
if (_.isEmpty(this.xsdate)) {
errors.push("requirexsdate")
}
if (errors.length === 0) {
this.$store.dispatch("testprice/newtestprice", {
companyid: this.xcompany.M_CompanyID,
mouid: this.xmou.M_MouID,
sdate: this.xsdate,
note: this.xnote
})
}
},
thr_search_company: _.debounce(function () {
this.$store.dispatch("testprice/searchcompany", this.search_company)
}, 2000),
closeDialogSuccess() {
let arrtestprice = this.$store.state.testprice.testprices
var idx = _.findIndex(arrtestprice, item => item.T_TestID === this.$store.state
.testprice.last_id)
console.log(idx)
this.$store.dispatch("testprice/search", {
code: this.code,
name: this.name,
lastid: idx
})
this.$store.commit("testprice/update_dialog_success", false)
},
formatDate(date) {
if (!date) return null
const [year, month, day] = date.split('-')
return `${day}-${month}-${year}`
},
deFormatedDate(date) {
if (!date) return null
const [day, month, year] = date.split('-')
return `${year}-${month.padStart(2, '0')}-${day.padStart(2, '0')}`
}
},
computed: {
dialogsuccess: {
get() {
return this.$store.state.testprice.dialog_success
},
set(val) {
this.$store.commit("testprice/update_dialog_success", val)
}
},
msgsuccess() {
return this.$store.state.testprice.msg_success
},
snackbar: {
get() {
return this.$store.state.testprice.alert_success
},
set(val) {
this.$store.commit("testprice/update_alert_success", val)
}
},
isLoading() {
return this.$store.state.testprice.search_status == 1
},
xact() {
return this.$store.state.testprice.act_comp
},
testprices() {
return this.$store.state.testprice.testprices
},
openalertconfirmation: {
get() {
return this.$store.state.testprice.open_alert_confirmation
},
set(val) {
this.$store.commit("testprice/update_open_alert_confirmation", val)
}
},
dialogformorder() {
return this.$store.state.testprice.dialog_form_order
},
dialogstatusorder() {
return this.$store.state.testprice.dialog_status_order
},
xdate: {
get() {
return this.$store.state.testprice.date
},
set(val) {
this.$store.commit("testprice/update_date", val)
}
},
xnote: {
get() {
return this.$store.state.testprice.note
},
set(val) {
this.$store.commit("testprice/update_note", val)
}
},
xcompanies() {
return this.$store.state.testprice.companies
},
xcompany: {
get() {
return this.$store.state.testprice.company
},
set(val) {
this.$store.commit("testprice/update_company", val)
this.$store.dispatch("testprice/getmou", this.$store.state.testprice.company)
}
},
xmous() {
return this.$store.state.testprice.mous
},
xmou: {
get() {
return this.$store.state.testprice.mou
},
set(val) {
this.$store.commit("testprice/update_mou", val)
}
},
startComputedDateFormatted() {
return this.formatDate(this.xsdate)
},
xsdate: {
get() {
return this.$store.state.testprice.sdate
},
set(val) {
this.$store.commit("testprice/update_sdate", val)
}
},
xstatuss() {
return this.$store.state.testprice.statuss
}
},
data() {
return {
msgalertconfirmation: "Perubahan yang telah dilakukan belum disimpan dong !",
items: [],
code: '',
name: '',
search_company: '',
menusdate: false,
date: new Date().toISOString().substr(0, 10),
page: 1,
headers: [{
text: "KODE",
align: "center",
sortable: false,
value: "mr",
width: "15%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "PEMERIKSAAN",
align: "center",
sortable: false,
value: "mr",
width: "40%",
class: "pa-2 blue lighten-3 white--text"
}
],
pagination: {
ascending: true,
page: 1,
rowsPerPage: 5,
sortBy: 'T_TestCode',
totalItems: this.$store.state.testprice.total_testprices
},
statuss: [{
waktu: '16-07-2019 10:00',
status: 'Order Dibuat',
user: 'Nagita Slavina'
},
{
waktu: '16-07-2019 11:00',
status: 'Order Dikirim',
user: 'Nagita Slavina'
},
{
waktu: '16-07-2019 12:00',
status: 'Order dikonfirmasi',
user: 'Chacha Frederica'
},
{
waktu: '16-07-2019 13:00',
status: 'Telah dibuat Surat Jalan',
user: 'Chacha Frederica'
},
{
waktu: '16-07-2019 14:00',
status: 'Kurir akan mengambil sampel',
user: 'Satria Subiantoro'
}
]
};
},
watch: {
search_company(val, old) {
if (val == old) return
if (!val) return
if (val.length < 1) return
if (this.$store.state.testprice.update_autocomplete_status == 1) return
this.thr_search_company()
}
}
}
</script>