Commit 9fbcc140 authored by zhengke's avatar zhengke
parents 47adca74 81ac4f14
...@@ -124,41 +124,66 @@ ...@@ -124,41 +124,66 @@
<template v-if="item.Unit_Price>=0"> <template v-if="item.Unit_Price>=0">
{{item.Unit_Price.toFixed(2)}} {{item.Unit_Price.toFixed(2)}}
</template> </template>
<template v-else >
<span class="redstyle">{{item.Unit_Price.toFixed(2)}}</span>
</template>
</td> </td>
<td style="border:none"> <td style="border:none">
<template v-if="item.PreferPrice>=0"> <template v-if="item.PreferPrice>=0">
{{item.PreferPrice.toFixed(2)}} {{item.PreferPrice.toFixed(2)}}
</template> </template>
<template v-else >
<span class="redstyle">{{item.PreferPrice.toFixed(2)}}</span>
</template>
</td> </td>
<td style="border:none"> <td style="border:none">
<template v-if="item.Income>=0"> <template v-if="item.Income>=0">
{{item.Income.toFixed(2)}} {{item.Income.toFixed(2)}}
</template> </template>
<template v-else >
<span class="redstyle">{{item.Income.toFixed(2)}}</span>
</template>
</td> </td>
<td style="color:var(--q-color-negative);border:none"> <td style="color:var(--q-color-negative);border:none">
<template v-if="item.DiscountMoney>=0"> <template v-if="item.DiscountMoney>=0">
{{item.DiscountMoney.toFixed(2)}} {{item.DiscountMoney.toFixed(2)}}
</template> </template>
<template v-else >
<span class="redstyle">{{item.DiscountMoney.toFixed(2)}}</span>
</template>
</td> </td>
<td style="border:none"> <td style="border:none">
<template v-if="item.LessPrice>=0"> <template v-if="item.LessPrice>=0">
{{item.LessPrice.toFixed(2)}} {{item.LessPrice.toFixed(2)}}
</template> </template>
<template v-else >
<span class="redstyle">{{item.LessPrice.toFixed(2)}}</span>
</template>
</td> </td>
<td style="border:none"> <td style="border:none">
<template v-if="item.Refund>=0"> <template v-if="item.Refund>=0">
{{item.Refund.toFixed(2)}} {{item.Refund.toFixed(2)}}
</template> </template>
<template v-else >
<span class="redstyle">{{item.Refund.toFixed(2)}}</span>
</template>
</td> </td>
<td style="border:none"> <td style="border:none">
<template v-if="item.PlatformTax>=0"> <template v-if="item.PlatformTax>=0">
{{item.PlatformTax.toFixed(2)}} {{item.PlatformTax.toFixed(2)}}
</template> </template>
<template v-else >
<span class="redstyle">{{item.PlatformTax.toFixed(2)}}</span>
</template>
</td> </td>
<td style="color:#2961FE;border:none"> <td style="color:#2961FE;border:none">
<template v-if="item.DueInMoney>=0"> <template v-if="item.DueInMoney>=0">
{{item.DueInMoney.toFixed(2)}} {{item.DueInMoney.toFixed(2)}}
</template> </template>
<template v-else >
<span class="redstyle">{{item.DueInMoney.toFixed(2)}}</span>
</template>
</td> </td>
<td style="border:none"> <td style="border:none">
<div style="background: rgba(2, 196, 153, 0.2);width: 80px;border-radius: 2px;text-align: center"> <div style="background: rgba(2, 196, 153, 0.2);width: 80px;border-radius: 2px;text-align: center">
...@@ -1547,5 +1572,8 @@ ...@@ -1547,5 +1572,8 @@
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
} }
.classorder .redstyle{
color:var(--q-color-negative);
}
</style> </style>
...@@ -56,6 +56,11 @@ ...@@ -56,6 +56,11 @@
<span style="color:#3FC4FF;">{{props.row.TeacherName}}</span> <span style="color:#3FC4FF;">{{props.row.TeacherName}}</span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-ClassDate="props">
<q-td auto-width :props="props">
{{props.row.ClassDate}} {{props.row.StartTime}}-{{props.row.EndTime}}
</q-td>
</template>
<!--处理状态--> <!--处理状态-->
<template v-slot:body-cell-MakeUpStatusStr="props"> <template v-slot:body-cell-MakeUpStatusStr="props">
<q-td> <q-td>
...@@ -188,6 +193,7 @@ ...@@ -188,6 +193,7 @@
} }
], ],
statusMsg: { statusMsg: {
Id: 0,
MakeUpStatus: 2, MakeUpStatus: 2,
ClassCheckId: 0, ClassCheckId: 0,
GuestId: 0, GuestId: 0,
...@@ -232,8 +238,10 @@ ...@@ -232,8 +238,10 @@
getClickItem(item) { getClickItem(item) {
this.statusMsg.ClassCheckId = item.ClassCheckId; this.statusMsg.ClassCheckId = item.ClassCheckId;
this.statusMsg.GuestId = item.OrderGuestId; this.statusMsg.GuestId = item.OrderGuestId;
this.statusMsg.Id = item.Id;
}, },
clearMsg() { clearMsg() {
this.statusMsg.Id = 0;
this.statusMsg.MakeUpStatus = 2; this.statusMsg.MakeUpStatus = 2;
this.statusMsg.ClassCheckId = 0; this.statusMsg.ClassCheckId = 0;
this.statusMsg.GuestId = 0; this.statusMsg.GuestId = 0;
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id" <q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id"
option-label="EmployeeName" v-model="msg.EnterID" :options="EmployeeList" emit-value map-options label="业务员" /> option-label="EmployeeName" v-model="msg.EnterID" :options="EmployeeList" emit-value map-options label="业务员" use-input @filter="filterFn2"/>
</div> </div>
</div> </div>
</div> </div>
...@@ -186,6 +186,7 @@ ...@@ -186,6 +186,7 @@
isShowRenewClass:false,//不显示续课 isShowRenewClass:false,//不显示续课
}, },
EmployeeList:[],//业务员 EmployeeList:[],//业务员
AllemployeeList:[],
} }
}, },
created() { created() {
...@@ -315,11 +316,23 @@ ...@@ -315,11 +316,23 @@
EmployeeName:"不限" EmployeeName:"不限"
} }
this.EmployeeList.unshift(obj) this.EmployeeList.unshift(obj)
this.AllemployeeList = JSON.parse(JSON.stringify(this.EmployeeList));
} }
}).catch(() => { }).catch(() => {
}) })
}, },
//筛选业务员
filterFn2(val, update) {
update(() => {
if (val === '') {
this.EmployeeList = JSON.parse(JSON.stringify(this.AllemployeeList))
} else {
const needle = val.toLowerCase()
this.EmployeeList = this.AllemployeeList.filter(v => v.EmployeeName.toLowerCase().indexOf(needle) > -1)
}
})
},
} }
} }
......
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