Commit 2a76414d authored by youjie's avatar youjie

no message

parent 886445fd
...@@ -41,8 +41,9 @@ ...@@ -41,8 +41,9 @@
const data=reactive({ const data=reactive({
addNum: 1, addNum: 1,
hotelInfor: props.hotelInfor, hotelInfor: props.hotelInfor,
DetailList:[]
}) })
console.log(props.hotelInfor,'====') console.log(props.hotelInfor.PriceList[0],'====')
data.addNum = inject('addNum') data.addNum = inject('addNum')
const methods = { const methods = {
addGoods(type:any){ addGoods(type:any){
......
...@@ -31,12 +31,20 @@ ...@@ -31,12 +31,20 @@
</q-td> </q-td>
<q-td v-for="x in props.row.subList"> <q-td v-for="x in props.row.subList">
<template v-if="x.PriceList && x.PriceList.length > 0"> <template v-if="x.PriceList && x.PriceList.length > 0">
<div class="td-item" :class="[x.PriceList[0].ins.bg, x.PriceList[0].ins.color]"> <div class="td-item cursor-pointer" :class="[x.PriceList[0].ins.bg, x.PriceList[0].ins.color]">
{{ x.PriceList[0].CostPrice }} {{ x.PriceList[0].CostPrice }}
<q-popup-proxy v-if="x.RemainingInventory>0" class="no-shadow">
<TableOperation :hotelInfor="x"></TableOperation>
</q-popup-proxy>
</div> </div>
</template> </template>
<div class="td-item bg-dark" v-else></div> <div class="td-item bg-dark" v-else></div>
<div class="td-item">{{ x.Inventory }}/{{ x.UseInventory }}/{{ x.RemainingInventory }}</div> <div class="td-item cursor-pointer">
{{ x.Inventory }}/{{ x.UseInventory }}/{{ x.RemainingInventory }}
<q-popup-proxy v-if="x.RemainingInventory>0" class="no-shadow">
<TableOperation :hotelInfor="x"></TableOperation>
</q-popup-proxy>
</div>
<div class="td-item" :class="{ 'bg-red-9 text-white': x.UseInventory - x.Inventory > 0 }"> <div class="td-item" :class="{ 'bg-red-9 text-white': x.UseInventory - x.Inventory > 0 }">
<span v-if="x.UseInventory - x.Inventory > 0"> <span v-if="x.UseInventory - x.Inventory > 0">
{{ x.UseInventory - x.Inventory }} {{ x.UseInventory - x.Inventory }}
...@@ -83,8 +91,9 @@ import { date,useQuasar } from 'quasar' ...@@ -83,8 +91,9 @@ import { date,useQuasar } from 'quasar'
import { DateType, getDateType, getDayOfWeek } from '../../../utils/tools' import { DateType, getDateType, getDayOfWeek } from '../../../utils/tools'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import HotelPriceList from './HotelPriceList.vue' import HotelPriceList from './HotelPriceList.vue'
import TableOperation from "../Table-Operation.vue"
export default defineComponent({ export default defineComponent({
components: { HotelPriceList }, components: { HotelPriceList, TableOperation },
name: 'list-table', name: 'list-table',
setup() { setup() {
const $q=useQuasar() const $q=useQuasar()
...@@ -220,4 +229,7 @@ export default defineComponent({ ...@@ -220,4 +229,7 @@ export default defineComponent({
.hotel-table .q-table td { .hotel-table .q-table td {
padding: 0 !important; padding: 0 !important;
} }
.td-item.cursor-pointer:hover{
color: var(--q-primary) !important;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment