|
|
@@ -21,6 +21,7 @@ import { Moment } from 'moment';
|
|
|
import { initData } from '@/common/methods';
|
|
|
import { getGoodsList } from '@/services/bus/goods';
|
|
|
import { SlotParam } from '@/common/setup/filter/interface';
|
|
|
+import { getRangeTime } from '@/utils/time';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'filter-platinum_pick_query',
|
|
|
@@ -36,21 +37,24 @@ export default defineComponent({
|
|
|
},
|
|
|
{
|
|
|
value: undefined,
|
|
|
- key: 'contracttype1',
|
|
|
- placeholder: '选择状态',
|
|
|
+ key: 'scfcontracttype',
|
|
|
+ placeholder: '合同类型',
|
|
|
list: [
|
|
|
- { value: 1, lable: '个人' },
|
|
|
- { value: -1, lable: '企业' },
|
|
|
+ { value: 1, lable: '仓单回购' },
|
|
|
+ { value: 2, lable: '仓单质押' },
|
|
|
+ { value: 3, lable: '合作套保' },
|
|
|
+ { value: 4, lable: '资金贷款' },
|
|
|
+ { value: 5, lable: '融资单' },
|
|
|
],
|
|
|
},
|
|
|
];
|
|
|
const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'account' }];
|
|
|
const slotParam: SlotParam = {
|
|
|
search(result: any) {
|
|
|
+ // 处理范围时间内搜索
|
|
|
const time = date.value;
|
|
|
- // if (time) {
|
|
|
- // result.tradedate = formatTime(time, 'd');
|
|
|
- // }
|
|
|
+ const temp = time.length > 1 ? getRangeTime(time[0], time[1]) : [''];
|
|
|
+ result.contractconfirmtime = temp;
|
|
|
},
|
|
|
reset() {
|
|
|
date.value = [];
|
|
|
@@ -58,6 +62,7 @@ export default defineComponent({
|
|
|
};
|
|
|
const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, slotParam);
|
|
|
initData(() => {
|
|
|
+ // 选择商品
|
|
|
select[0].list = getGoodsList().map((e) => {
|
|
|
return { value: e.goodsid, lable: e.goodsname };
|
|
|
});
|