|
|
@@ -18,6 +18,9 @@ import { defineComponent, ref } from 'vue';
|
|
|
import { handleFilter, InputList, SelectList } from '@/common/setup/filter';
|
|
|
import { initData } from '@/common/methods';
|
|
|
import { getGoodsList } from '@/services/bus/goods';
|
|
|
+import { queryTableList } from '@/common/setup/table';
|
|
|
+import { QhjParentAreaList } from '@/services/go/ermcp/qhj/interface';
|
|
|
+import { queryParentAreaList } from '@/services/go/ermcp/qhj';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'filter-platinum_pick_query',
|
|
|
@@ -26,7 +29,7 @@ export default defineComponent({
|
|
|
const select = ref<SelectList[]>([
|
|
|
{
|
|
|
value: undefined,
|
|
|
- key: 'contracttype1',
|
|
|
+ key: 'userinfotype',
|
|
|
placeholder: '账号类型',
|
|
|
list: [
|
|
|
{ value: 1, lable: '个人' },
|
|
|
@@ -46,8 +49,7 @@ export default defineComponent({
|
|
|
list: [],
|
|
|
},
|
|
|
]);
|
|
|
- const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'account' }];
|
|
|
- const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context);
|
|
|
+ const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'filtername' }];
|
|
|
// 是否包含子级 1-包含
|
|
|
const includesub = ref<boolean>(false);
|
|
|
|
|
|
@@ -59,10 +61,19 @@ export default defineComponent({
|
|
|
includesub.value = false;
|
|
|
},
|
|
|
};
|
|
|
+ const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, param);
|
|
|
+ const { queryTable } = queryTableList<QhjParentAreaList>();
|
|
|
initData(() => {
|
|
|
+ // 商品列表
|
|
|
select.value[1].list = getGoodsList().map((e) => {
|
|
|
return { value: e.goodsid, lable: e.goodsname };
|
|
|
});
|
|
|
+ // 机构列表
|
|
|
+ queryTable(queryParentAreaList).then((res) => {
|
|
|
+ select.value[2].list = res.map((e) => {
|
|
|
+ return { value: e.userid, lable: e.accountname };
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|
|
|
return {
|
|
|
includesub,
|