|
|
@@ -56,8 +56,10 @@ import { Basket } from 'src/models/Basket.js'
|
|
|
import { mixinWidget } from 'src/mixin/Mixins.js'
|
|
|
import { APIGateway } from 'src/api/APIGateway.js'
|
|
|
import BtnControl from 'src/components/Control/btn.vue'
|
|
|
+import FormBuilderDateTime from 'src/components/FormBuilderCustumComponents/FormBuilderDateTime.vue'
|
|
|
|
|
|
const BtnControlComp = shallowRef(BtnControl)
|
|
|
+const FormBuilderDateTimeComp = shallowRef(FormBuilderDateTime)
|
|
|
|
|
|
export default {
|
|
|
name: 'AdminBasketList',
|
|
|
@@ -81,11 +83,16 @@ export default {
|
|
|
},
|
|
|
inputs: [
|
|
|
{
|
|
|
- type: 'input',
|
|
|
- name: 'search',
|
|
|
- label: 'جست جو',
|
|
|
- placeholder: ' ',
|
|
|
- col: 'col-md-4 col-12'
|
|
|
+ type: FormBuilderDateTimeComp,
|
|
|
+ name: 'order_time__gte',
|
|
|
+ outsideLabel: 'از تاریخ',
|
|
|
+ col: 'col-md-5 col-12'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: FormBuilderDateTimeComp,
|
|
|
+ name: 'order_time__lt',
|
|
|
+ outsideLabel: 'تا تاریخ',
|
|
|
+ col: 'col-md-5 col-12'
|
|
|
},
|
|
|
{
|
|
|
type: 'select',
|
|
|
@@ -111,6 +118,13 @@ export default {
|
|
|
placeholder: ' ',
|
|
|
col: 'col-md-3 col-12'
|
|
|
},
|
|
|
+ {
|
|
|
+ type: 'input',
|
|
|
+ name: 'search',
|
|
|
+ label: 'جست جو',
|
|
|
+ placeholder: ' ',
|
|
|
+ col: 'col-md-4 col-12'
|
|
|
+ },
|
|
|
{ type: BtnControlComp, name: 'btn', label: 'جستجو', placeholder: ' ', atClick: this.search, col: 'col-md-2 col-12' }
|
|
|
],
|
|
|
table: {
|