|
|
@@ -18,6 +18,9 @@ import FilterOption from '@/common/components/filter/index.vue';
|
|
|
import { defineComponent, ref } from 'vue';
|
|
|
import { handleFilter, InputList, SelectList } from '@/common/setup/filter';
|
|
|
import { Moment } from 'moment';
|
|
|
+import { initData } from '@/common/methods';
|
|
|
+import { getGoodsList } from '@/services/bus/goods';
|
|
|
+import { SlotParam } from '@/common/setup/filter/interface';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'filter-platinum_pick_query',
|
|
|
@@ -27,25 +30,38 @@ export default defineComponent({
|
|
|
const select: SelectList[] = [
|
|
|
{
|
|
|
value: undefined,
|
|
|
- key: 'contracttype1',
|
|
|
- placeholder: '账号类型',
|
|
|
- list: [
|
|
|
- { value: 1, lable: '个人' },
|
|
|
- { value: -1, lable: '企业' },
|
|
|
- ],
|
|
|
+ key: 'goodsid',
|
|
|
+ placeholder: '选择商品',
|
|
|
+ list: [],
|
|
|
},
|
|
|
{
|
|
|
value: undefined,
|
|
|
- key: 'contracttype2',
|
|
|
- placeholder: '选择商品',
|
|
|
+ key: 'contracttype1',
|
|
|
+ placeholder: '选择状态',
|
|
|
list: [
|
|
|
- { value: 1, lable: '采购' },
|
|
|
- { value: -1, lable: '销售' },
|
|
|
+ { value: 1, lable: '个人' },
|
|
|
+ { value: -1, lable: '企业' },
|
|
|
],
|
|
|
},
|
|
|
];
|
|
|
const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'account' }];
|
|
|
- const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context);
|
|
|
+ const slotParam: SlotParam = {
|
|
|
+ search(result: any) {
|
|
|
+ const time = date.value;
|
|
|
+ // if (time) {
|
|
|
+ // result.tradedate = formatTime(time, 'd');
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ reset() {
|
|
|
+ date.value = [];
|
|
|
+ },
|
|
|
+ };
|
|
|
+ const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, slotParam);
|
|
|
+ initData(() => {
|
|
|
+ select[0].list = getGoodsList().map((e) => {
|
|
|
+ return { value: e.goodsid, lable: e.goodsname };
|
|
|
+ });
|
|
|
+ });
|
|
|
return {
|
|
|
date,
|
|
|
selectList,
|