Browse Source

Merge remote-tracking branch 'origin/master'

yu.jie 4 years ago
parent
commit
5d871a0457
26 changed files with 898 additions and 956 deletions
  1. 2 2
      src/common/export/table.ts
  2. 8 4
      src/common/methods/table/interface.ts
  3. 40 1
      src/common/setup/filter/index.ts
  4. 2 1
      src/common/setup/table/index.ts
  5. 22 0
      src/common/setup/table/list.ts
  6. 0 1
      src/services/bus/login.ts
  7. 15 6
      src/services/go/ermcp/order/index.ts
  8. 293 293
      src/services/go/ermcp/order/interface.ts
  9. 0 1
      src/views/platinum/platinum_customer_info/compoments/add/index.vue
  10. 3 4
      src/views/platinum/platinum_customer_info/compoments/check/index.vue
  11. 7 0
      src/views/platinum/platinum_document_query/compoments/filter/index.vue
  12. 4 5
      src/views/platinum/platinum_document_query/compoments/setup.ts
  13. 79 0
      src/views/platinum/platinum_document_query/list/order/compoments/filter/index.vue
  14. 14 11
      src/views/platinum/platinum_document_query/list/order/index.vue
  15. 27 4
      src/views/platinum/platinum_document_query/list/position/compoments/filter/index.vue
  16. 9 11
      src/views/platinum/platinum_document_query/list/position/index.vue
  17. 0 51
      src/views/platinum/platinum_document_query/list/position/setup.ts
  18. 1 1
      src/views/platinum/platinum_document_query/list/success/index.vue
  19. 1 1
      src/views/platinum/platinum_document_query/list/waiting/index.vue
  20. 8 18
      src/views/platinum/platinum_financing_information/list/tab/compoments/filter/index.vue
  21. 8 17
      src/views/platinum/platinum_fixed_investment_price_query/compoments/filter/index.vue
  22. 9 18
      src/views/platinum/platinum_fixed_investment_query/list/flow/compoments/filter/index.vue
  23. 9 17
      src/views/platinum/platinum_fixed_investment_query/list/plan/compoments/filter/index.vue
  24. 8 18
      src/views/platinum/platinum_pick_query/compoments/filter/index.vue
  25. 4 16
      src/views/platinum/platinum_recharge_withdrawal_review/compoments/filter/index.vue
  26. 325 455
      swagger-to-ts/tableKey.js

+ 2 - 2
src/common/export/table.ts

@@ -3,12 +3,12 @@
 import BtnList from '@/common/components/buttonList/index.vue';
 import contextMenu from '@/common/components/contextMenu/index.vue';
 import { initData } from '@/common/methods';
-import { getBtnList, getTableColumns, getTableEvent, _getBtnList } from '@/common/setup/table/index';
+import { getBtnList, getTableColumns, getTableEvent, queryTableList, _getBtnList } from '@/common/setup/table/index';
 import { defineComponent } from 'vue';
 
 export {
     defineComponent, initData,
-    getTableColumns, getTableEvent, getBtnList, _getBtnList,
+    getTableColumns, getTableEvent, getBtnList, _getBtnList, queryTableList,
     contextMenu, BtnList,
 };
 

+ 8 - 4
src/common/methods/table/interface.ts

@@ -20,10 +20,6 @@ export interface TableKey {
 	table_pcweb_delivery: string, // 现货合同
 	table_pcweb_userinfo: string, // 客户资料
 	table_pcweb_warehouse: string, // 仓库信息
-	table_pcweb_stock_aduit_in: string, // 库存审核-入库
-	table_pcweb_stock_aduit_out: string, // 库存审核-出库
-	table_pcweb_stock_manage_current: string, // 库存管理-当前库存
-	table_pcweb_stock_manage_applylog: string, // 库存管理-当前库存
 	table_pcweb_purchase_pointprice: string, // 采购_待点价
 	table_pcweb_purchase_settle: string, // 采购_履约交收
 	table_pcweb_purchase_all: string, // 采购_全部
@@ -46,6 +42,10 @@ export interface TableKey {
 	table_pcweb_business_aduit_js: string, // 业务审核-交收
 	table_pcweb_fincial_aduit_fp: string, // 业务审核-发票
 	table_pcweb_fincial_aduit_kx: string, // 财务审核-款项
+	table_pcweb_stock_aduit_in: string, // 库存审核-入库
+	table_pcweb_stock_aduit_out: string, // 库存审核-出库
+	table_pcweb_stock_manage_current: string, // 库存管理-当前库存
+	table_pcweb_stock_manage_applylog: string, // 库存管理-当前库存
 	table_pcweb_hedging_plan: string, // 业务-套保计划
 	table_pcweb_current_inventory: string, // 库存查询-当前库存
 	table_pcweb_application_record: string, // 库存查询-申请记录
@@ -71,4 +71,8 @@ export interface TableKey {
 	table_pcweb_qhj_fixed_investment_flow_query: string, // 铂金宝-定投查询-定投流水查询
 	table_pcweb_qhj_fixed_financing_information: string, // 铂金宝-融资信息
 	table_pcweb_qhj_customer_info: string, // 铂金宝-客户资料
+	table_pcweb_qhj_holder_order: string, // 铂金宝-单据查询-持仓单
+	table_pcweb_qhj_order: string, // 铂金宝-单据查询-委托单
+	table_pcweb_qhj_pay_bill: string, // 铂金宝-单据查询-待付单
+	table_pcweb_qhj_deal_order: string, // 铂金宝-单据查询-成交单
 }

+ 40 - 1
src/common/setup/filter/index.ts

@@ -1,6 +1,9 @@
+import { formatTime } from '@/common/methods';
+import { getRangeTime } from '@/utils/time';
+import { Moment } from 'moment';
 import { isRef, Ref, ref, SetupContext } from 'vue';
 import * as type from './interface';
-import { InputList, SelectList } from './interface';
+import { InputList, SelectList, SlotParam } from './interface';
 
 
 export function handleFilter(select: SelectList[] | Ref<SelectList[]>, input: InputList[], context: SetupContext, slot?: type.SlotParam) {
@@ -57,3 +60,39 @@ export function handleFilter(select: SelectList[] | Ref<SelectList[]>, input: In
 }
 
 export type { InputList, SelectList };
+
+/**
+ * 时间过滤
+ * @param key 时间过滤对应的key
+ * @returns 
+ */
+export function handleTimeFilter(key: string) {
+    // 范围时间内过滤
+    function getFilterRangeTime(date: Ref<Moment[]>): SlotParam {
+        return {
+            search(result: any) {
+                // 处理范围时间内搜索
+                const time = date.value;
+                const temp = time.length > 1 ? getRangeTime(time[0], time[1]) : [''];
+                result[key] = temp;
+            },
+            reset() {
+                date.value = [];
+            },
+        };
+    }
+    // 具体时间过滤
+    function getFilterItemTime(date: Ref<Moment | undefined>) {
+        return {
+            search(result: any) {
+                const time = date.value;
+                const temp = time ? [formatTime(time, 'd')] : [''];
+                result[key] = temp;
+            },
+            reset() {
+                date.value = undefined;
+            },
+        };
+    }
+    return { getFilterRangeTime, getFilterItemTime }
+}

+ 2 - 1
src/common/setup/table/index.ts

@@ -3,9 +3,10 @@ import { Column } from '@/services/go/commonService/interface';
 import { getBtnList, _getBtnList } from './button';
 import { getTableColumns } from './clolumn';
 import { getTableEvent } from './event';
+import { queryTableList } from './list';
 
 
-export { getTableColumns, getTableEvent, getBtnList, _getBtnList };
+export { getTableColumns, getTableEvent, getBtnList, _getBtnList, queryTableList };
 export type { Column, ColumnType };
 
 

+ 22 - 0
src/common/setup/table/list.ts

@@ -0,0 +1,22 @@
+import { queryResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
+import { ref } from 'vue';
+
+/**
+ * 请求表格数据通用方法
+ * @param fn 
+ * @returns 
+ */
+export function queryTableList<T>() {
+    // 加载状态
+    const loading = ref<boolean>(false);
+    // 表格数据
+    const tableList = ref<T[]>([]);
+    function queryTable(fn: Function, param?: any): Promise<T[]> {
+        return queryResultLoadingAndInfo(fn, loading, param)
+            .then(res => {
+                tableList.value = res
+                return res
+            })
+    }
+    return { loading, tableList, queryTable }
+}

+ 0 - 1
src/services/bus/login.ts

@@ -22,7 +22,6 @@ export const login = async (logidCode: string, password: String, byteArr: Uint8A
         await APP.connectTrading();
         const account = await GetLoginID(logidCode);
         const loginData = await loginAction(account, password, byteArr);
-
         // localstorage 缓存登录信息,处理页面刷新
         setLoginData(loginData);
         await Promise.all([GetErmcpGoods(), GetPCMenus(), QueryTableDefine(), getServerTime(), LoginQuery(), QueryDeliveryGoodsDetail()])

+ 15 - 6
src/services/go/ermcp/order/index.ts

@@ -1,6 +1,7 @@
 
 /** ================================= 通用单据相关接口 ================================**/
-import {commonSearch_go} from "@/services/go";
+import { getSelectedAccountId } from "@/services/bus/account";
+import { commonSearch_go } from "@/services/go";
 import {
     QueryHisTradeDetailReq,
     QueryHisTradeDetailRsp,
@@ -8,7 +9,7 @@ import {
     QueryHisTradeOrderDetailRsp,
     QueryTradeDetailReq,
     QueryTradeDetailRsp,
-    QueryTradeOrderDetailReq, QueryTradeOrderDetailRsp, QueryTradePositionReq, QueryTradePositionRsp
+    QueryTradeOrderDetailReq, QueryTradeOrderDetailRsp, QueryTradePositionRsp
 } from "@/services/go/ermcp/order/interface";
 
 /**
@@ -17,6 +18,8 @@ import {
  * @param req
  */
 export function queryHisTradeDetail(req: QueryHisTradeDetailReq): Promise<QueryHisTradeDetailRsp[]> {
+    const accountID = getSelectedAccountId()?.toString()
+    req.accountID = accountID as string
     return commonSearch_go('/Order/QueryHisTradeDetail', req).catch((err) => {
         throw new Error(`历史成交单查询(合约市场): ${err.message}`);
     });
@@ -28,6 +31,8 @@ export function queryHisTradeDetail(req: QueryHisTradeDetailReq): Promise<QueryH
  * @param req
  */
 export function queryHisTradeOrderDetail(req: QueryHisTradeOrderDetailReq): Promise<QueryHisTradeOrderDetailRsp[]> {
+    const accountID = getSelectedAccountId()?.toString()
+    req.accountID = accountID as string
     return commonSearch_go('/Order/QueryHisTradeOrderDetail', req).catch((err) => {
         throw new Error(`历史委托单查询请求(合约市场): ${err.message}`);
     });
@@ -49,7 +54,9 @@ export function queryTradeDetail(req: QueryTradeDetailReq): Promise<QueryTradeDe
  * /Order/QueryTradeOrderDetail
  * @param req
  */
-export function queryTradeOrderDetail(req: QueryTradeOrderDetailReq): Promise<QueryTradeOrderDetailRsp[]>{
+export function queryTradeOrderDetail(req: QueryTradeOrderDetailReq): Promise<QueryTradeOrderDetailRsp[]> {
+    const accountID = getSelectedAccountId()?.toString()
+    req.accountID = accountID as string
     return commonSearch_go('/Order/QueryTradeOrderDetail', req).catch((err) => {
         throw new Error(`委托单查询请求(合约市场): ${err.message}`);
     });
@@ -58,10 +65,12 @@ export function queryTradeOrderDetail(req: QueryTradeOrderDetailReq): Promise<Qu
 /**
  * 仓汇总查询(合约市场)
  * /Order/QueryTradePosition
- * @param req
+ * @param //  交易模式 - 格式:1,2,3
  */
-export function queryTradePosition(req: QueryTradePositionReq): Promise<QueryTradePositionRsp[]>{
-    return commonSearch_go('/Order/QueryTradePosition', req).catch((err) => {
+export function queryTradePosition(radeMode?: string): Promise<QueryTradePositionRsp[]> {
+    const accountID = getSelectedAccountId()?.toString()
+    const param = radeMode ? { accountID, radeMode } : { accountID }
+    return commonSearch_go('/Order/QueryTradePosition', param).catch((err) => {
         throw new Error(`仓汇总查询(合约市场): ${err.message}`);
     });
 }

+ 293 - 293
src/services/go/ermcp/order/interface.ts

@@ -1,8 +1,8 @@
 /**
  * 历史成交单查询请求(合约市场)
  */
-export interface QueryHisTradeDetailReq{
-    accountID: string  //   资金账户 - 格式:1,2,3
+export interface QueryHisTradeDetailReq {
+    accountID?: string  //   资金账户 - 格式:1,2,3
     tradeID?: number   //   成交单号
     orderID?: number   //   委托单号
     tradeMode?: string //   交易模式 - 格式:1,2,3
@@ -15,74 +15,74 @@ export interface QueryHisTradeDetailReq{
 /**
  * 历史成交单查询返回
  */
-export interface QueryHisTradeDetailRsp{
-    accountid	:number;//账户ID[报价币种]
-    buildtype	:number;//委托单据类型 1:建仓 2:平仓 3:先平后建
-    buyorsell	:number;//方向 - number;
-//:买 1:卖
-    charge	:number;//手续费
-    closecharge	:number;//平仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
-    closeexchagechargevalue	:number;//平仓交易所手续费设置值
-    closefeealgorithm	:number;//平仓手续费收取方式 1:比率 2:固定
-    closememberchargevalue	:number;//平仓会员手续费设置值
-    closepl	:number;//平仓盈亏
-    closepl2	:number;//平仓盈亏[逐笔]
-    closeqty	:number;//平仓数量(先建后平操作 需要记录)
-    creditamount	:number;//授信金额
-    gcaccountid	:number;//账户ID[合约币种]
-    goodscode	:string;//商品代码
-    goodsid	:number;//商品ID
-    goodsname	:string;//商品名称
-    histradedate	:string;//历史交易日
-    intclosepl	:number;//整型盈亏(用于交易结算试算平衡-收益权)
-    isconfirmexercise	:number;//是否确认行权- number;
-//:否 1:是
-    ismain	:number;//是否主单 - number;
-//:不是 1:是
-    ispreexercise	:number;//是否预申报- number;
-//:否 1:是
-    isreckoned	:number;//是否结算 - number;
-//:未结算 1:已结算
-    isvaliddata	:number;//是否有效 - number;
-//:无效 1:有效
-    listingselecttype	:number;//关联委托单挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
-    marketid	:number;//市场ID
-    marketname	:string;//市场名称
-    matchaccountid	:number;//对手账号id
-    memberuserid	:number;//会员id 个人投资者 需要填写
-    opencharge	:number;//建仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
-    openexchagechargevalue	:number;//建仓交易所手续费设置值
-    openfeealgorithm	:number;//建仓手续费收取方式 1:比率 2:固定
-    openmemberchargevalue	:number;//建仓会员手续费设置值
-    openqty	:number;//开仓数量(先建后平操作 需要记录)
-    optiontype	:number;//期权类型 - 1:认购(看涨) 2:认沽(看跌)
-    orderid	:string;//委托单号
-    performanceplanid	:number;//履约计划ID[期权]
-    performancestatus	:number;//履约状态[期权] - number;
-//:无履约 1:未履约 2:履约中 3:履约完成
-    preexerciseprice	:number;//预申报价格
-    premium	:number;//权利金 - [持仓单的权利金]
-    relatedouttradeid	:number;//关联外部成交单ID
-    status	:number;//处理状态 - 1:待处理 2:已处理 3:处理失败
-    tradeamount	:number;//成交金额[账户币种,用于所有权]
-    tradedate	:string;//交易日(yyyyMMdd)
-    tradeid	:string;//成交单号(1number;
-//1+Unix秒时间戳(1number;
-//位)+2位(MarketServiceID)+xxxx)
-    trademode	:number;//交易模式
-    tradeprice	:number;//成交价格
-    tradeproperty	:number;//交易属性
-    tradeqty	:number;//成交数量
-    tradetime	:string;//成交时间
-    tradetype	:number;//成交类别 - 1:正常委托成交 2:定向做市成交(接单) 3:交割协议平仓成交 4:交割减仓成交 5:到期强平成交 6:风控斩仓成交 7:协议平仓(管理端)成交 8:仓单转持仓成交 9: 交割协议转让成交 1number;
-//:受托竞价成交(接单) 11:协议转让成交 12:系统强行平仓 13:期权违约平仓
+export interface QueryHisTradeDetailRsp {
+    accountid: number;//账户ID[报价币种]
+    buildtype: number;//委托单据类型 1:建仓 2:平仓 3:先平后建
+    buyorsell: number;//方向 - number;
+    //:买 1:卖
+    charge: number;//手续费
+    closecharge: number;//平仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
+    closeexchagechargevalue: number;//平仓交易所手续费设置值
+    closefeealgorithm: number;//平仓手续费收取方式 1:比率 2:固定
+    closememberchargevalue: number;//平仓会员手续费设置值
+    closepl: number;//平仓盈亏
+    closepl2: number;//平仓盈亏[逐笔]
+    closeqty: number;//平仓数量(先建后平操作 需要记录)
+    creditamount: number;//授信金额
+    gcaccountid: number;//账户ID[合约币种]
+    goodscode: string;//商品代码
+    goodsid: number;//商品ID
+    goodsname: string;//商品名称
+    histradedate: string;//历史交易日
+    intclosepl: number;//整型盈亏(用于交易结算试算平衡-收益权)
+    isconfirmexercise: number;//是否确认行权- number;
+    //:否 1:是
+    ismain: number;//是否主单 - number;
+    //:不是 1:是
+    ispreexercise: number;//是否预申报- number;
+    //:否 1:是
+    isreckoned: number;//是否结算 - number;
+    //:未结算 1:已结算
+    isvaliddata: number;//是否有效 - number;
+    //:无效 1:有效
+    listingselecttype: number;//关联委托单挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
+    marketid: number;//市场ID
+    marketname: string;//市场名称
+    matchaccountid: number;//对手账号id
+    memberuserid: number;//会员id 个人投资者 需要填写
+    opencharge: number;//建仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
+    openexchagechargevalue: number;//建仓交易所手续费设置值
+    openfeealgorithm: number;//建仓手续费收取方式 1:比率 2:固定
+    openmemberchargevalue: number;//建仓会员手续费设置值
+    openqty: number;//开仓数量(先建后平操作 需要记录)
+    optiontype: number;//期权类型 - 1:认购(看涨) 2:认沽(看跌)
+    orderid: string;//委托单号
+    performanceplanid: number;//履约计划ID[期权]
+    performancestatus: number;//履约状态[期权] - number;
+    //:无履约 1:未履约 2:履约中 3:履约完成
+    preexerciseprice: number;//预申报价格
+    premium: number;//权利金 - [持仓单的权利金]
+    relatedouttradeid: number;//关联外部成交单ID
+    status: number;//处理状态 - 1:待处理 2:已处理 3:处理失败
+    tradeamount: number;//成交金额[账户币种,用于所有权]
+    tradedate: string;//交易日(yyyyMMdd)
+    tradeid: string;//成交单号(1number;
+    //1+Unix秒时间戳(1number;
+    //位)+2位(MarketServiceID)+xxxx)
+    trademode: number;//交易模式
+    tradeprice: number;//成交价格
+    tradeproperty: number;//交易属性
+    tradeqty: number;//成交数量
+    tradetime: string;//成交时间
+    tradetype: number;//成交类别 - 1:正常委托成交 2:定向做市成交(接单) 3:交割协议平仓成交 4:交割减仓成交 5:到期强平成交 6:风控斩仓成交 7:协议平仓(管理端)成交 8:仓单转持仓成交 9: 交割协议转让成交 1number;
+    //:受托竞价成交(接单) 11:协议转让成交 12:系统强行平仓 13:期权违约平仓
 }
 
 /**
  * 历史委托单查询请求(合约市场)
  */
 export interface QueryHisTradeOrderDetailReq {
-    accountID: string  //    资金账户 - 格式:1,2,3
+    accountID?: string  //    资金账户 - 格式:1,2,3
     tradeMode?: string //    交易模式 - 格式:1,2,3
     orderStatus?: string//   委托状态 - 格式:1,2,3
     orderID?: number//       委托单号
@@ -93,87 +93,87 @@ export interface QueryHisTradeOrderDetailReq {
 /**
  * 历史委托单查询返回(合约市场)
  */
-export interface QueryHisTradeOrderDetailRsp{
-    accountid	:number;//账户ID[报价币种]
-    buildtype	:number;//委托单据类型 - 1:建仓 2:平仓 3:先平后建
-    buyorsell	:number;//买卖 - number;
-//:买 1:卖
-    cancelorderid	:string;//撤单单号(撤单时填写)
-    cancelqty	:number;//撤单数量
-    clientordertime	:string;//客户端委托时间
-    clientticket	:string;//客户端流水号
-    clienttype	:number;//客户端类型 - number;
-//:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端安卓 4:网页客户端 5:微信客户端 6:手机客户端苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)
-    closeexchagechargevalue	:number;//平仓交易所手续费设置值
-    closefeealgorithm	:number;//平仓手续费收取方式 1:比率 2:固定
-    closefreezecharge	:number;//平仓冻结手续费(先建后平操作,需要记录)
-    closememberchargevalue	:number;//平仓会员手续费设置值
-    closeqty	:number;//平仓数量(先建后平操作 需要记录)
-    closetradeqty	:number;//平仓成交数量(先建后平操作,需要记录)
-    closeunfreezecharge	:number;//平仓解冻手续费(先建后平操作,需要记录)
-    delistingtype	:number;//摘牌类型 - 1:价格最优 2:点选成交
-    freezecharge	:number;//冻结手续费
-    freezemargin	:number;//冻结保证金(冻结交易金额)
-    gcaccountid	:number;//账户ID[合约币种]
-    goodscode	:string;//商品代码
-    goodsid	:number;//商品ID
-    goodsname	:string;//商品名称
-    histradedate	:string;//历史交易日
-    isconfirmexercise	:number;//是否确认行权- number;
-//:否 1:是
-    ispreexercise	:number;//是否预申报- number;
-//:否 1:是
-    isvaliddata	:number;//是否有效 - number;
-//:无效 1:有效
-    listingselecttype	:number;//挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
-    marginalgorithm	:number;//保证金收取方式 1:比率 2:固定
-    marginvalue	:number;//即市保证金设置值
-    marketid	:number;//市场ID
-    marketmaxsub	:number;//市价最大偏移范围
-    marketname	:string;//市场名称
-    memberuserid	:number;//所属会员UserID
-    openexchagechargevalue	:number;//建仓交易所手续费设置值
-    openfeealgorithm	:number;//建仓手续费收取方式 1:比率 2:固定
-    openfreezecharge	:number;//开仓冻结手续费(先建后平操作,需要记录)
-    openmemberchargevalue	:number;//建仓会员手续费设置值
-    openqty	:number;//开仓数量(先建后平操作,需要记录)
-    opentradeqty	:number;//开仓成交数量(先建后平操作,需要记录)
-    openunfreezecharge	:number;//开仓解冻手续费(先建后平操作,需要记录)
-    operatetype	:number;//操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 1number;
-//:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让
-    operatorid	:number;//登录账号(LoginID)
-    optiontype	:number;//期权类型 - 1:认购(看涨) 2:认沽(看跌)
-    orderid	:string;//委托单号(1number;
-//number;
-//+Unix秒时间戳(1number;
-//位)+2位(MarketServiceID)+xxxx)
-    orderprice	:number;//委托价格
-    orderqty	:number;//委托数量
-    ordersrc	:number;//委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 1number;
-//:交割服务商被动(受托竞价) 11:预埋触发
-    orderstatus	:number;//委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 1number;
-//:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)
-    ordertime	:string;//委托时间
-    preexerciseprice	:number;//预申报价格
-    premium	:number;//权利金
-    preorderid	:string;//关联预埋单号(止盈止损单时填写)
-    pricemode	:number;//取价方式 - 1:市价 2: 限价
-    quoteid	:number;//报价单ID
-    relatedid	:string;//关联单号(交割单)
-    retcode	:number;//错误代码
-    sessionid	:number;//会话ID
-    tradedate	:string;//交易日(yyyyMMdd)
-    trademode	:number;//交易模式
-    tradeproperty	:number;//交易属性
-    tradeqty	:number;//成交数量
-    unfreezecharge	:number;//解冻手续费
-    unfreezemargin	:number;//解冻保证金
-    updatetime	:string;//更新时间
-    uuid	:string;//发起端唯一id
-    validtime	:string;//有效期限
-    validtype	:number;//有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效
-    volumetype	:number;//当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - number;
-//:任意量 1:最小量(暂时不支持) 2:全部量
+export interface QueryHisTradeOrderDetailRsp {
+    accountid: number;//账户ID[报价币种]
+    buildtype: number;//委托单据类型 - 1:建仓 2:平仓 3:先平后建
+    buyorsell: number;//买卖 - number;
+    //:买 1:卖
+    cancelorderid: string;//撤单单号(撤单时填写)
+    cancelqty: number;//撤单数量
+    clientordertime: string;//客户端委托时间
+    clientticket: string;//客户端流水号
+    clienttype: number;//客户端类型 - number;
+    //:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端安卓 4:网页客户端 5:微信客户端 6:手机客户端苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)
+    closeexchagechargevalue: number;//平仓交易所手续费设置值
+    closefeealgorithm: number;//平仓手续费收取方式 1:比率 2:固定
+    closefreezecharge: number;//平仓冻结手续费(先建后平操作,需要记录)
+    closememberchargevalue: number;//平仓会员手续费设置值
+    closeqty: number;//平仓数量(先建后平操作 需要记录)
+    closetradeqty: number;//平仓成交数量(先建后平操作,需要记录)
+    closeunfreezecharge: number;//平仓解冻手续费(先建后平操作,需要记录)
+    delistingtype: number;//摘牌类型 - 1:价格最优 2:点选成交
+    freezecharge: number;//冻结手续费
+    freezemargin: number;//冻结保证金(冻结交易金额)
+    gcaccountid: number;//账户ID[合约币种]
+    goodscode: string;//商品代码
+    goodsid: number;//商品ID
+    goodsname: string;//商品名称
+    histradedate: string;//历史交易日
+    isconfirmexercise: number;//是否确认行权- number;
+    //:否 1:是
+    ispreexercise: number;//是否预申报- number;
+    //:否 1:是
+    isvaliddata: number;//是否有效 - number;
+    //:无效 1:有效
+    listingselecttype: number;//挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
+    marginalgorithm: number;//保证金收取方式 1:比率 2:固定
+    marginvalue: number;//即市保证金设置值
+    marketid: number;//市场ID
+    marketmaxsub: number;//市价最大偏移范围
+    marketname: string;//市场名称
+    memberuserid: number;//所属会员UserID
+    openexchagechargevalue: number;//建仓交易所手续费设置值
+    openfeealgorithm: number;//建仓手续费收取方式 1:比率 2:固定
+    openfreezecharge: number;//开仓冻结手续费(先建后平操作,需要记录)
+    openmemberchargevalue: number;//建仓会员手续费设置值
+    openqty: number;//开仓数量(先建后平操作,需要记录)
+    opentradeqty: number;//开仓成交数量(先建后平操作,需要记录)
+    openunfreezecharge: number;//开仓解冻手续费(先建后平操作,需要记录)
+    operatetype: number;//操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 1number;
+    //:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让
+    operatorid: number;//登录账号(LoginID)
+    optiontype: number;//期权类型 - 1:认购(看涨) 2:认沽(看跌)
+    orderid: string;//委托单号(1number;
+    //number;
+    //+Unix秒时间戳(1number;
+    //位)+2位(MarketServiceID)+xxxx)
+    orderprice: number;//委托价格
+    orderqty: number;//委托数量
+    ordersrc: number;//委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 1number;
+    //:交割服务商被动(受托竞价) 11:预埋触发
+    orderstatus: number;//委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 1number;
+    //:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)
+    ordertime: string;//委托时间
+    preexerciseprice: number;//预申报价格
+    premium: number;//权利金
+    preorderid: string;//关联预埋单号(止盈止损单时填写)
+    pricemode: number;//取价方式 - 1:市价 2: 限价
+    quoteid: number;//报价单ID
+    relatedid: string;//关联单号(交割单)
+    retcode: number;//错误代码
+    sessionid: number;//会话ID
+    tradedate: string;//交易日(yyyyMMdd)
+    trademode: number;//交易模式
+    tradeproperty: number;//交易属性
+    tradeqty: number;//成交数量
+    unfreezecharge: number;//解冻手续费
+    unfreezemargin: number;//解冻保证金
+    updatetime: string;//更新时间
+    uuid: string;//发起端唯一id
+    validtime: string;//有效期限
+    validtype: number;//有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效
+    volumetype: number;//当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - number;
+    //:任意量 1:最小量(暂时不支持) 2:全部量
 }
 
 /**
@@ -191,71 +191,71 @@ export interface QueryTradeDetailReq {
 /**
  * 成交单查询返回
  */
-export interface QueryTradeDetailRsp{
-    accountid	:number;//账户ID[报价币种]
-    buildtype	:number;//委托单据类型 1:建仓 2:平仓 3:先平后建
-    buyorsell	:number;//方向 - number;
-//:买 1:卖
-    charge	:number;//手续费
-    closecharge	:number;//平仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
-    closeexchagechargevalue	:number;//平仓交易所手续费设置值
-    closefeealgorithm	:number;//平仓手续费收取方式 1:比率 2:固定
-    closememberchargevalue	:number;//平仓会员手续费设置值
-    closepl	:number;//平仓盈亏
-    closepl2	:number;//平仓盈亏[逐笔]
-    closeqty	:number;//平仓数量(先建后平操作 需要记录)
-    creditamount	:number;//授信金额
-    gcaccountid	:number;//账户ID[合约币种]
-    goodscode	:string;//商品代码
-    goodsid	:number;//商品ID
-    goodsname	:string;//商品名称
-    intclosepl	:number;//整型盈亏(用于交易结算试算平衡-收益权)
-    isconfirmexercise	:number;//是否确认行权- number;
-//:否 1:是
-    ismain	:number;//是否主单 - number;
-//:不是 1:是
-    ispreexercise	:number;//是否预申报- number;
-//:否 1:是
-    isreckoned	:number;//是否结算 - number;
-//:未结算 1:已结算
-    listingselecttype	:number;//关联委托单挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
-    marketid	:number;//市场ID
-    marketname	:string;//市场名称
-    matchaccountid	:number;//对手账号id
-    memberuserid	:number;//会员id 个人投资者 需要填写
-    opencharge	:number;//建仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
-    openexchagechargevalue	:number;//建仓交易所手续费设置值
-    openfeealgorithm	:number;//建仓手续费收取方式 1:比率 2:固定
-    openmemberchargevalue	:number;//建仓会员手续费设置值
-    openqty	:number;//开仓数量(先建后平操作 需要记录)
-    optiontype	:number;//期权类型 - 1:认购(看涨) 2:认沽(看跌)
-    orderid	:string;//委托单号
-    performanceplanid	:number;//履约计划ID[期权]
-    performancestatus	:number;//履约状态[期权] - number;
-//:无履约 1:未履约 2:履约中 3:履约完成
-    preexerciseprice	:number;//预申报价格
-    premium	:number;//权利金 - [持仓单的权利金]
-    relatedouttradeid	:number;//关联外部成交单ID
-    status	:number;//处理状态 - 1:待处理 2:已处理 3:处理失败
-    tradeamount	:number;//成交金额[账户币种,用于所有权]
-    tradedate	:string;//交易日(yyyyMMdd)
-    tradeid	:string;//成交单号(1number;
-//1+Unix秒时间戳(1number;
-//位)+2位(MarketServiceID)+xxxx)
-    trademode	:number;//交易模式
-    tradeprice	:number;//成交价格
-    tradeproperty	:number;//交易属性
-    tradeqty	:number;//成交数量
-    tradetime	:string;//成交时间
-    tradetype	:number;//成交类别 - 1:正常委托成交 2:定向做市成交(接单) 3:交割协议平仓成交 4:交割减仓成交 5:到期强平成交 6:风控斩仓成交 7:协议平仓(管理端)成交 8:仓单转持仓成交 9: 交割协议转让成交 1number;
-//:受托竞价成交(接单) 11:协议转让成交 12:系统强行平仓 13:期权违约平仓
+export interface QueryTradeDetailRsp {
+    accountid: number;//账户ID[报价币种]
+    buildtype: number;//委托单据类型 1:建仓 2:平仓 3:先平后建
+    buyorsell: number;//方向 - number;
+    //:买 1:卖
+    charge: number;//手续费
+    closecharge: number;//平仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
+    closeexchagechargevalue: number;//平仓交易所手续费设置值
+    closefeealgorithm: number;//平仓手续费收取方式 1:比率 2:固定
+    closememberchargevalue: number;//平仓会员手续费设置值
+    closepl: number;//平仓盈亏
+    closepl2: number;//平仓盈亏[逐笔]
+    closeqty: number;//平仓数量(先建后平操作 需要记录)
+    creditamount: number;//授信金额
+    gcaccountid: number;//账户ID[合约币种]
+    goodscode: string;//商品代码
+    goodsid: number;//商品ID
+    goodsname: string;//商品名称
+    intclosepl: number;//整型盈亏(用于交易结算试算平衡-收益权)
+    isconfirmexercise: number;//是否确认行权- number;
+    //:否 1:是
+    ismain: number;//是否主单 - number;
+    //:不是 1:是
+    ispreexercise: number;//是否预申报- number;
+    //:否 1:是
+    isreckoned: number;//是否结算 - number;
+    //:未结算 1:已结算
+    listingselecttype: number;//关联委托单挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
+    marketid: number;//市场ID
+    marketname: string;//市场名称
+    matchaccountid: number;//对手账号id
+    memberuserid: number;//会员id 个人投资者 需要填写
+    opencharge: number;//建仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
+    openexchagechargevalue: number;//建仓交易所手续费设置值
+    openfeealgorithm: number;//建仓手续费收取方式 1:比率 2:固定
+    openmemberchargevalue: number;//建仓会员手续费设置值
+    openqty: number;//开仓数量(先建后平操作 需要记录)
+    optiontype: number;//期权类型 - 1:认购(看涨) 2:认沽(看跌)
+    orderid: string;//委托单号
+    performanceplanid: number;//履约计划ID[期权]
+    performancestatus: number;//履约状态[期权] - number;
+    //:无履约 1:未履约 2:履约中 3:履约完成
+    preexerciseprice: number;//预申报价格
+    premium: number;//权利金 - [持仓单的权利金]
+    relatedouttradeid: number;//关联外部成交单ID
+    status: number;//处理状态 - 1:待处理 2:已处理 3:处理失败
+    tradeamount: number;//成交金额[账户币种,用于所有权]
+    tradedate: string;//交易日(yyyyMMdd)
+    tradeid: string;//成交单号(1number;
+    //1+Unix秒时间戳(1number;
+    //位)+2位(MarketServiceID)+xxxx)
+    trademode: number;//交易模式
+    tradeprice: number;//成交价格
+    tradeproperty: number;//交易属性
+    tradeqty: number;//成交数量
+    tradetime: string;//成交时间
+    tradetype: number;//成交类别 - 1:正常委托成交 2:定向做市成交(接单) 3:交割协议平仓成交 4:交割减仓成交 5:到期强平成交 6:风控斩仓成交 7:协议平仓(管理端)成交 8:仓单转持仓成交 9: 交割协议转让成交 1number;
+    //:受托竞价成交(接单) 11:协议转让成交 12:系统强行平仓 13:期权违约平仓
 }
 
 /**
  * 委托单查询请求(合约市场)
  */
 export interface QueryTradeOrderDetailReq {
-    accountID: string     //    资金账户 - 格式:1,2,3
+    accountID?: string     //    资金账户 - 格式:1,2,3
     tradeMode?: string //       交易模式 - 格式:1,2,3
     orderStatus?: string//      委托状态 - 格式:1,2,3
     orderID?: number//          委托单号
@@ -264,70 +264,70 @@ export interface QueryTradeOrderDetailReq {
 /**
  * 委托单查询返回(合约市场)
  */
-export interface QueryTradeOrderDetailRsp{
-    accountid	:number;//账户ID[报价币种]
-    buildtype	:number;//委托单据类型 1:建仓 2:平仓 3:先平后建
-    buyorsell	:number;//方向 - number;
-//:买 1:卖
-    charge	:number;//手续费
-    closecharge	:number;//平仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
-    closeexchagechargevalue	:number;//平仓交易所手续费设置值
-    closefeealgorithm	:number;//平仓手续费收取方式 1:比率 2:固定
-    closememberchargevalue	:number;//平仓会员手续费设置值
-    closepl	:number;//平仓盈亏
-    closepl2	:number;//平仓盈亏[逐笔]
-    closeqty	:number;//平仓数量(先建后平操作 需要记录)
-    creditamount	:number;//授信金额
-    gcaccountid	:number;//账户ID[合约币种]
-    goodscode	:string;//商品代码
-    goodsid	:number;//商品ID
-    goodsname	:string;//商品名称
-    intclosepl	:number;//整型盈亏(用于交易结算试算平衡-收益权)
-    isconfirmexercise	:number;//是否确认行权- number;
-//:否 1:是
-    ismain	:number;//是否主单 - number;
-//:不是 1:是
-    ispreexercise	:number;//是否预申报- number;
-//:否 1:是
-    isreckoned	:number;//是否结算 - number;
-//:未结算 1:已结算
-    listingselecttype	:number;//关联委托单挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
-    marketid	:number;//市场ID
-    marketname	:string;//市场名称
-    matchaccountid	:number;//对手账号id
-    memberuserid	:number;//会员id 个人投资者 需要填写
-    opencharge	:number;//建仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
-    openexchagechargevalue	:number;//建仓交易所手续费设置值
-    openfeealgorithm	:number;//建仓手续费收取方式 1:比率 2:固定
-    openmemberchargevalue	:number;//建仓会员手续费设置值
-    openqty	:number;//开仓数量(先建后平操作 需要记录)
-    optiontype	:number;//期权类型 - 1:认购(看涨) 2:认沽(看跌)
-    orderid	:string;//委托单号
-    performanceplanid	:number;//履约计划ID[期权]
-    performancestatus	:number;//履约状态[期权] - number;
-//:无履约 1:未履约 2:履约中 3:履约完成
-    preexerciseprice	:number;//预申报价格
-    premium	:number;//权利金 - [持仓单的权利金]
-    relatedouttradeid	:number;//关联外部成交单ID
-    status	:number;//处理状态 - 1:待处理 2:已处理 3:处理失败
-    tradeamount	:number;//成交金额[账户币种,用于所有权]
-    tradedate	:string;//交易日(yyyyMMdd)
-    tradeid	:string;//成交单号(1number;
-//1+Unix秒时间戳(1number;
-//位)+2位(MarketServiceID)+xxxx)
-    trademode	:number;//交易模式
-    tradeprice	:number;//成交价格
-    tradeproperty	:number;//交易属性
-    tradeqty	:number;//成交数量
-    tradetime	:string;//成交时间
-    tradetype	:number;//成交类别 - 1:正常委托成交 2:定向做市成交(接单) 3:交割协议平仓成交 4:交割减仓成交 5:到期强平成交 6:风控斩仓成交 7:协议平仓(管理端)成交 8:仓单转持仓成交 9: 交割协议转让成交 1number;
-//:受托竞价成交(接单) 11:协议转让成交 12:系统强行平仓 13:期权违约平仓
+export interface QueryTradeOrderDetailRsp {
+    accountid: number;//账户ID[报价币种]
+    buildtype: number;//委托单据类型 1:建仓 2:平仓 3:先平后建
+    buyorsell: number;//方向 - number;
+    //:买 1:卖
+    charge: number;//手续费
+    closecharge: number;//平仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
+    closeexchagechargevalue: number;//平仓交易所手续费设置值
+    closefeealgorithm: number;//平仓手续费收取方式 1:比率 2:固定
+    closememberchargevalue: number;//平仓会员手续费设置值
+    closepl: number;//平仓盈亏
+    closepl2: number;//平仓盈亏[逐笔]
+    closeqty: number;//平仓数量(先建后平操作 需要记录)
+    creditamount: number;//授信金额
+    gcaccountid: number;//账户ID[合约币种]
+    goodscode: string;//商品代码
+    goodsid: number;//商品ID
+    goodsname: string;//商品名称
+    intclosepl: number;//整型盈亏(用于交易结算试算平衡-收益权)
+    isconfirmexercise: number;//是否确认行权- number;
+    //:否 1:是
+    ismain: number;//是否主单 - number;
+    //:不是 1:是
+    ispreexercise: number;//是否预申报- number;
+    //:否 1:是
+    isreckoned: number;//是否结算 - number;
+    //:未结算 1:已结算
+    listingselecttype: number;//关联委托单挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
+    marketid: number;//市场ID
+    marketname: string;//市场名称
+    matchaccountid: number;//对手账号id
+    memberuserid: number;//会员id 个人投资者 需要填写
+    opencharge: number;//建仓手续费(支付总手续费=(交易所比率+会员比率)成交金额)
+    openexchagechargevalue: number;//建仓交易所手续费设置值
+    openfeealgorithm: number;//建仓手续费收取方式 1:比率 2:固定
+    openmemberchargevalue: number;//建仓会员手续费设置值
+    openqty: number;//开仓数量(先建后平操作 需要记录)
+    optiontype: number;//期权类型 - 1:认购(看涨) 2:认沽(看跌)
+    orderid: string;//委托单号
+    performanceplanid: number;//履约计划ID[期权]
+    performancestatus: number;//履约状态[期权] - number;
+    //:无履约 1:未履约 2:履约中 3:履约完成
+    preexerciseprice: number;//预申报价格
+    premium: number;//权利金 - [持仓单的权利金]
+    relatedouttradeid: number;//关联外部成交单ID
+    status: number;//处理状态 - 1:待处理 2:已处理 3:处理失败
+    tradeamount: number;//成交金额[账户币种,用于所有权]
+    tradedate: string;//交易日(yyyyMMdd)
+    tradeid: string;//成交单号(1number;
+    //1+Unix秒时间戳(1number;
+    //位)+2位(MarketServiceID)+xxxx)
+    trademode: number;//交易模式
+    tradeprice: number;//成交价格
+    tradeproperty: number;//交易属性
+    tradeqty: number;//成交数量
+    tradetime: string;//成交时间
+    tradetype: number;//成交类别 - 1:正常委托成交 2:定向做市成交(接单) 3:交割协议平仓成交 4:交割减仓成交 5:到期强平成交 6:风控斩仓成交 7:协议平仓(管理端)成交 8:仓单转持仓成交 9: 交割协议转让成交 1number;
+    //:受托竞价成交(接单) 11:协议转让成交 12:系统强行平仓 13:期权违约平仓
 }
 
 /**
  * 持仓汇总查询(合约市场)
  */
-export interface QueryTradePositionReq{
+export interface QueryTradePositionReq {
     accountID: string   //  资金账户 - 格式:1,2,3
     tradeMode?: string  //  交易模式 - 格式:1,2,3
 }
@@ -335,36 +335,36 @@ export interface QueryTradePositionReq{
 /**
  * 持仓汇总返回(合约市场)
  */
-export interface QueryTradePositionRsp{
-    accountid	:number;//资金账户
-    agreeunit	:number;//合约单位
-    averageprice	:number;//持仓均价
-    buyorsell	:number;//方向 - number;
-//:买 1:卖
-    closetotalqty	:number;//平仓总数量
-    curholderamount	:number;//当前持仓总金额[商品币种]
-    curpositionqty	:number;//当前持仓总数量
-    currencyid	:number;//报价货币ID
-    curtdposition	:number;//期末今日头寸
-    decimalplace	:number;//报价小数位
-    enableqty	:number;//可用量
-    fretdposition	:number;//冻结今日头寸
-    frozenqty	:number;//持仓冻结数量
-    goodscode	:string;//商品代码
-    goodsid	:number;//商品Id
-    goodsname	:string;//商品名称
-    goodunit	:string;//报价单位
-    goodunitid	:number;//报价单位ID
-    holderamount	:number;//期初持仓总金额[商品币种]
-    marketid	:number;//所属市场ID
-    openreqqty	:number;//开仓申请数量(用于比较最大持仓数量)
-    opentotalqty	:number;//开仓总数量
-    otherfrozenqty	:number;//持仓其他冻结数量(交割冻结)
-    positionqty	:number;//期初持仓数量
-    tnqty	:number;//T+N冻结总量
-    tnusedqty	:number;//T+N使用量(可以使用T+N的冻结数量)
-    trademode	:number;//交易模式
-    usedmargin	:number;//占用保证金[商品币种]
+export interface QueryTradePositionRsp {
+    accountid: number;//资金账户
+    agreeunit: number;//合约单位
+    averageprice: number;//持仓均价
+    buyorsell: number;//方向 - number;
+    //:买 1:卖
+    closetotalqty: number;//平仓总数量
+    curholderamount: number;//当前持仓总金额[商品币种]
+    curpositionqty: number;//当前持仓总数量
+    currencyid: number;//报价货币ID
+    curtdposition: number;//期末今日头寸
+    decimalplace: number;//报价小数位
+    enableqty: number;//可用量
+    fretdposition: number;//冻结今日头寸
+    frozenqty: number;//持仓冻结数量
+    goodscode: string;//商品代码
+    goodsid: number;//商品Id
+    goodsname: string;//商品名称
+    goodunit: string;//报价单位
+    goodunitid: number;//报价单位ID
+    holderamount: number;//期初持仓总金额[商品币种]
+    marketid: number;//所属市场ID
+    openreqqty: number;//开仓申请数量(用于比较最大持仓数量)
+    opentotalqty: number;//开仓总数量
+    otherfrozenqty: number;//持仓其他冻结数量(交割冻结)
+    positionqty: number;//期初持仓数量
+    tnqty: number;//T+N冻结总量
+    tnusedqty: number;//T+N使用量(可以使用T+N的冻结数量)
+    trademode: number;//交易模式
+    usedmargin: number;//占用保证金[商品币种]
 }
 
 

+ 0 - 1
src/views/platinum/platinum_customer_info/compoments/add/index.vue

@@ -367,7 +367,6 @@ export default defineComponent({
                     email: param.email, // email
                     proxystatementurl: isPersonal() ? '' : getAttachmentImg(), // 营业执照
                 };
-                debugger
                 requestResultLoadingAndInfo(addCustomerInfoOperate, reqParam, loading, OperateType === 1 ? ['保存草稿成功', '保存草稿失败:'] : ['新增客户资料成功', '新增客户资料失败:']).then(() => {
                     cancel();
                     context.emit('refresh');

+ 3 - 4
src/views/platinum/platinum_customer_info/compoments/check/index.vue

@@ -30,13 +30,13 @@
 import { defineComponent, PropType, ref } from 'vue';
 import { closeModal } from '@/common/setup/modal/index';
 import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
-import {AuditWskhUserInfoReq, UserInfoCheckMangeReq} from '@/services/proto/accountinfo/interface';
+import { AuditWskhUserInfoReq, UserInfoCheckMangeReq } from '@/services/proto/accountinfo/interface';
 import { getUserId } from '@/services/bus/account';
 import { Modal } from 'ant-design-vue';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
-import {auditWskhUserInfo, userInfoCheck} from '@/services/proto/accountinfo';
+import { auditWskhUserInfo, userInfoCheck } from '@/services/proto/accountinfo';
 import Detail from '../common-detail/index.vue';
-import {getLongTypeLoginID} from "@/services/bus/login";
+import { getLongTypeLoginID } from '@/services/bus/login';
 
 export default defineComponent({
     name: 'custom_info_btn_check',
@@ -63,7 +63,6 @@ export default defineComponent({
                         UserState: 4,
                         AuditedBy: Number(getLongTypeLoginID()),
                     };
-                    debugger
                     requestResultLoadingAndInfo(auditWskhUserInfo, reqParam, loading, ['审核成功', '审核失败:']).then(() => {
                         cancel();
                         context.emit('refresh');

+ 7 - 0
src/views/platinum/platinum_document_query/compoments/filter/index.vue

@@ -19,6 +19,8 @@ import { defineComponent, ref } from 'vue';
 import { handleFilter } from '@/common/setup/filter';
 import { Moment } from 'moment';
 import { handleFilterOption } from '../setup';
+import { initData } from '@/common/methods';
+import { getGoodsList } from '@/services/bus/goods';
 export default defineComponent({
     name: 'filter-platinum_pick_query',
     components: { FilterOption },
@@ -26,6 +28,11 @@ export default defineComponent({
         const date = ref<Moment[]>([]);
         const { select, input } = handleFilterOption();
         const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context);
+        initData(() => {
+            select.value[1].list = getGoodsList().map((e) => {
+                return { value: e.goodsid, lable: e.goodsname };
+            });
+        });
         return {
             date,
             selectList,

+ 4 - 5
src/views/platinum/platinum_document_query/compoments/setup.ts

@@ -1,7 +1,8 @@
 import { InputList, SelectList } from "@/common/setup/filter/interface";
+import { ref } from "vue";
 
 export function handleFilterOption() {
-    const select: SelectList[] = [
+    const select = ref<SelectList[]>([
         {
             value: undefined,
             key: 'contracttype1',
@@ -13,14 +14,12 @@ export function handleFilterOption() {
         },
         {
             value: undefined,
-            key: 'contracttype2',
+            key: 'goodsid',
             placeholder: '选择商品',
             list: [
-                { value: 1, lable: '采购' },
-                { value: -1, lable: '销售' },
             ],
         },
-    ];
+    ]);
     const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'account' }];
 
     return { select, input }

+ 79 - 0
src/views/platinum/platinum_document_query/list/order/compoments/filter/index.vue

@@ -0,0 +1,79 @@
+<template>
+  <!-- 过滤 -->
+  <div class="filterTable">
+    <a-range-picker v-model:value="date"
+                    class="commonPicker"
+                    style="width: 200px"
+                    :show-time="{hideDisabledOptions: true}"
+                    format="YYYY-MM-DD" />
+    <FilterOption :selectList="selectList"
+                  :inputList="inputList"
+                  :fixedBtnList="fixedBtnList" />
+    <slot></slot>
+  </div>
+</template>
+
+<script lang="ts">
+import FilterOption from '@/common/components/filter/index.vue';
+import { defineComponent, ref } from 'vue';
+import { handleFilter, handleTimeFilter, InputList, SelectList } from '@/common/setup/filter';
+import { initData } from '@/common/methods';
+import { getGoodsList } from '@/services/bus/goods';
+import { Moment } from 'moment';
+
+export default defineComponent({
+    name: 'filter-platinum_pick_query',
+    components: { FilterOption },
+    setup(props, context) {
+        const date = ref<Moment[]>([]);
+        const select = ref<SelectList[]>([
+            {
+                value: undefined,
+                key: 'contracttype1',
+                placeholder: '账号类型',
+                list: [
+                    { value: 1, lable: '个人' },
+                    { value: -1, lable: '企业' },
+                ],
+            },
+            {
+                value: undefined,
+                key: 'goodsid',
+                placeholder: '选择商品',
+                list: [],
+            },
+        ]);
+        const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'account' }];
+        // 范围时间内过滤
+        const { getFilterRangeTime } = handleTimeFilter('ordertime');
+
+        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, getFilterRangeTime(date));
+        initData(() => {
+            select.value[1].list = getGoodsList().map((e) => {
+                return { value: e.goodsid, lable: e.goodsname };
+            });
+        });
+        return {
+            date,
+            selectList,
+            inputList,
+            fixedBtnList,
+        };
+    },
+});
+</script>
+
+<style lang="less">
+.filterTable {
+    .commonPicker.ant-calendar-picker {
+        display: inline-flex;
+        padding-top: 9px;
+        padding-bottom: 6px;
+        margin-right: 10px;
+        .ant-input {
+            border: 0;
+            background: @m-grey9;
+        }
+    }
+}
+</style>;

+ 14 - 11
src/views/platinum/platinum_document_query/list/order/index.vue

@@ -1,7 +1,7 @@
 <template>
   <!-- 单据查询 委托单-->
   <div class="platinum_document_query_order">
-    <Filter />
+    <Filter @search="updateColumn" />
     <contextMenu :contextMenuList="firstBtn">
       <a-table :columns="columns"
                class="topTable hiddenFirstCol"
@@ -22,10 +22,11 @@
 </template>
 
 <script lang="ts">
-import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
-import { ErmcpWareHouseInfo } from '@/views/information/warehouse-info/list';
-import Filter from '../../compoments/filter/index.vue';
-import { queryTableList } from './setup';
+import { defineComponent, initData, getTableColumns, getTableEvent, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
+import { queryTradeOrderDetail } from '@/services/go/ermcp/order';
+import { QueryTradeOrderDetailRsp } from '@/services/go/ermcp/order/interface';
+import { ref } from 'vue';
+import Filter from './compoments/filter/index.vue';
 // import ControlModal from './compoments/controlModal/index.vue';
 
 export default defineComponent({
@@ -35,29 +36,31 @@ export default defineComponent({
         // 表头数据
         const { columns, registerColumn, updateColumn } = getTableColumns();
         // 表格事件
-        const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<ErmcpWareHouseInfo>({});
+        const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<QueryTradeOrderDetailRsp>({});
         // 表格操作按钮列表
         const [firstBtn] = _getBtnList('platinum_document_query_order', false).value;
         // 表格列表数据
-        const { loading, tableList, queryTable } = queryTableList('in');
+        const loading = ref<boolean>(false);
+        const tableList = ref<QueryTradeOrderDetailRsp[]>([]);
         initData(() => {
             // 获取列表数据
-            queryTable();
+            Promise.all([queryTradeOrderDetail({})]).then((res) => {
+                tableList.value = res[0];
+            });
             // 注册表头信息 过滤
-            registerColumn('table_pcweb_warehouse', ['warehousetype', 'warehousename', 'address']);
+            registerColumn('table_pcweb_qhj_order', ['goodsid', 'ordertime', 'operatorid']);
             // registerColumn('table_pcweb_qhj_withdrawal_review', ['warehousetype', 'warehousename', 'address']);
         });
 
         return {
             columns,
-
+            updateColumn,
             expandedRowKeys,
             selectedRow,
             Rowclick,
             firstBtn,
             loading,
             tableList,
-            queryTable,
             btnClick,
         };
     },

+ 27 - 4
src/views/platinum/platinum_document_query/list/position/compoments/filter/index.vue

@@ -10,16 +10,39 @@
 
 <script lang="ts">
 import FilterOption from '@/common/components/filter/index.vue';
-import { defineComponent } from 'vue';
-import { handleFilter } from '@/common/setup/filter';
-import { handleFilterOption } from '@/views/platinum/platinum_document_query/compoments/setup';
+import { defineComponent, ref } from 'vue';
+import { handleFilter, InputList, SelectList } from '@/common/setup/filter';
+import { initData } from '@/common/methods';
+import { getGoodsList } from '@/services/bus/goods';
 
 export default defineComponent({
     name: 'filter-platinum_pick_query',
     components: { FilterOption },
     setup(props, context) {
-        const { select, input } = handleFilterOption();
+        const select = ref<SelectList[]>([
+            {
+                value: undefined,
+                key: 'contracttype1',
+                placeholder: '账号类型',
+                list: [
+                    { value: 1, lable: '个人' },
+                    { value: -1, lable: '企业' },
+                ],
+            },
+            {
+                value: undefined,
+                key: 'goodsid',
+                placeholder: '选择商品',
+                list: [],
+            },
+        ]);
+        const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'account' }];
         const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context);
+        initData(() => {
+            select.value[1].list = getGoodsList().map((e) => {
+                return { value: e.goodsid, lable: e.goodsname };
+            });
+        });
         return {
             selectList,
             inputList,

+ 9 - 11
src/views/platinum/platinum_document_query/list/position/index.vue

@@ -1,7 +1,7 @@
 <template>
   <!-- 单据查询 持仓-->
   <div class="platinum_document_query_position">
-    <Filter />
+    <Filter @search="updateColumn" />
     <contextMenu :contextMenuList="firstBtn">
       <a-table :columns="columns"
                class="topTable hiddenFirstCol"
@@ -22,11 +22,10 @@
 </template>
 
 <script lang="ts">
-import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
-import { ErmcpWareHouseInfo } from '@/views/information/warehouse-info/list';
+import { defineComponent, initData, getTableColumns, getTableEvent, contextMenu, BtnList, _getBtnList, queryTableList } from '@/common/export/table';
+import { QueryTradePositionRsp } from '@/services/go/ermcp/order/interface';
 import Filter from './compoments/filter/index.vue';
-import { queryTableList } from './setup';
-// import ControlModal from './compoments/controlModal/index.vue';
+import { queryTradePosition } from '@/services/go/ermcp/order';
 
 export default defineComponent({
     name: 'platinum_document_query_position',
@@ -35,22 +34,21 @@ export default defineComponent({
         // 表头数据
         const { columns, registerColumn, updateColumn } = getTableColumns();
         // 表格事件
-        const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<ErmcpWareHouseInfo>({});
+        const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<QueryTradePositionRsp>({});
         // 表格操作按钮列表
         const [firstBtn] = _getBtnList('platinum_document_query_position', false).value;
         // 表格列表数据
-        const { loading, tableList, queryTable } = queryTableList('in');
+        const { loading, tableList, queryTable } = queryTableList<QueryTradePositionRsp>();
         initData(() => {
             // 获取列表数据
-            queryTable();
+            queryTable(queryTradePosition);
             // 注册表头信息 过滤
-            registerColumn('table_pcweb_warehouse', ['warehousetype', 'warehousename', 'address']);
-            // registerColumn('table_pcweb_qhj_withdrawal_review', ['warehousetype', 'warehousename', 'address']);
+            registerColumn('table_pcweb_qhj_order', ['contracttype1', 'goodsid', 'operatorid']);
         });
 
         return {
+            updateColumn,
             columns,
-
             expandedRowKeys,
             selectedRow,
             Rowclick,

+ 0 - 51
src/views/platinum/platinum_document_query/list/position/setup.ts

@@ -1,51 +0,0 @@
-import { QueryWareHouse } from '@/services/go/ermcp/warehouse-info/index';
-import { ErmcpWareHouseInfo } from '@/services/go/ermcp/warehouse-info/interface';
-import { message } from 'ant-design-vue';
-import { ref } from 'vue';
-
-
-
-/**
- * 获取表格列表数据
- * @param type 
- * @returns 
- */
-export function queryTableList(type: string) {
-    // 加载状态
-    const loading = ref<boolean>(false);
-    // 表格数据
-    const tableList = ref<ErmcpWareHouseInfo[]>([]);
-    function queryTable() {
-        QueryWareHouse('1')
-            .then((res) => {
-                tableList.value = res.map((e, i) => {
-                    return { ...e, key: String(i) };
-                });
-                loading.value = false;
-                console.log('查询列表', tableList);
-            })
-            .catch((err) => {
-                message.error(err);
-                loading.value = false;
-            });
-    }
-    return { loading, tableList, queryTable }
-}
-
-// export function queryTableList(type: 'in' | 'out') {
-//     // 加载状态
-//     const loading = ref<boolean>(false);
-//     // 表格数据
-//     const tableList = ref<QhjAccountOutInApply[]>([]);
-//     function queryTable() {
-//         queryResultLoadingAndInfo(queryAccountInOutApply, loading)
-//             .then(res => {
-//                 //申请类型 - 1:出金 2:入金 3: 单边账调整:入金; 4:单边账调整:出金 5:外部母账户调整:入金 6:外部母账户调整:出金 7:外部子账户:入金 8:外部子账户:出金
-//                 const arr = type === 'in' ? [1, 3, 5, 7] : [2, 4, 6, 8]
-//                 tableList.value = res.filter((e: QhjAccountOutInApply) => arr.includes(e.executetype)).map((e: QhjAccountOutInApply, i: number) => {
-//                     return { ...e, key: String(i) };
-//                 });
-//             })
-//     }
-//     return { loading, tableList, queryTable }
-// }

+ 1 - 1
src/views/platinum/platinum_document_query/list/success/index.vue

@@ -44,7 +44,7 @@ export default defineComponent({
             // 获取列表数据
             queryTable();
             // 注册表头信息 过滤
-            registerColumn('table_pcweb_warehouse', ['warehousetype', 'warehousename', 'address']);
+            registerColumn('table_pcweb_qhj_deal_order', ['warehousetype', 'warehousename', 'address']);
             // registerColumn('table_pcweb_qhj_withdrawal_review', ['warehousetype', 'warehousename', 'address']);
         });
 

+ 1 - 1
src/views/platinum/platinum_document_query/list/waiting/index.vue

@@ -44,7 +44,7 @@ export default defineComponent({
             // 获取列表数据
             queryTable();
             // 注册表头信息 过滤
-            registerColumn('table_pcweb_warehouse', ['warehousetype', 'warehousename', 'address']);
+            registerColumn('table_pcweb_qhj_pay_bill', ['warehousetype', 'warehousename', 'address']);
             // registerColumn('table_pcweb_qhj_withdrawal_review', ['warehousetype', 'warehousename', 'address']);
         });
 

+ 8 - 18
src/views/platinum/platinum_financing_information/list/tab/compoments/filter/index.vue

@@ -16,19 +16,17 @@
 <script lang="ts">
 import FilterOption from '@/common/components/filter/index.vue';
 import { defineComponent, ref } from 'vue';
-import { handleFilter, InputList, SelectList } from '@/common/setup/filter';
+import { handleFilter, handleTimeFilter, 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';
-import { getRangeTime } from '@/utils/time';
 
 export default defineComponent({
     name: 'filter-platinum_pick_query',
     components: { FilterOption },
     setup(props, context) {
         const date = ref<Moment[]>([]);
-        const select: SelectList[] = [
+        const select = ref<SelectList[]>([
             {
                 value: undefined,
                 key: 'goodsid',
@@ -47,23 +45,15 @@ export default defineComponent({
                     { value: 5, lable: '融资单' },
                 ],
             },
-        ];
+        ]);
         const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'account' }];
-        const slotParam: SlotParam = {
-            search(result: any) {
-                // 处理范围时间内搜索
-                const time = date.value;
-                const temp = time.length > 1 ? getRangeTime(time[0], time[1]) : [''];
-                result.contractconfirmtime = temp;
-            },
-            reset() {
-                date.value = [];
-            },
-        };
-        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, slotParam);
+        // 范围时间内过滤
+        const { getFilterRangeTime } = handleTimeFilter('contractconfirmtime');
+
+        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, getFilterRangeTime(date));
         initData(() => {
             // 选择商品
-            select[0].list = getGoodsList().map((e) => {
+            select.value[0].list = getGoodsList().map((e) => {
                 return { value: e.goodsid, lable: e.goodsname };
             });
         });

+ 8 - 17
src/views/platinum/platinum_fixed_investment_price_query/compoments/filter/index.vue

@@ -15,40 +15,31 @@
 <script lang="ts">
 import FilterOption from '@/common/components/filter/index.vue';
 import { defineComponent, ref } from 'vue';
-import { handleFilter, InputList, SelectList } from '@/common/setup/filter';
+import { handleFilter, handleTimeFilter, InputList, SelectList } from '@/common/setup/filter';
 import { Moment } from 'moment';
-import { formatTime, initData } from '@/common/methods';
+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',
     components: { FilterOption },
     setup(props, context) {
         const date = ref<Moment>();
-        const select: SelectList[] = [
+        const select = ref<SelectList[]>([
             {
                 value: undefined,
                 key: 'goodsid',
                 placeholder: '选择商品',
                 list: [],
             },
-        ];
-        const slotParam: SlotParam = {
-            search(result: any) {
-                const time = date.value;
-                const temp = time ? [formatTime(time, 'd')] : [''];
-                result.tradedate = temp;
-            },
-            reset() {
-                date.value = undefined;
-            },
-        };
+        ]);
+        // 具体时间过滤
+        const { getFilterItemTime } = handleTimeFilter('tradedate');
 
         const input: InputList[] = [];
-        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, slotParam);
+        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, getFilterItemTime(date));
         initData(() => {
-            select[0].list = getGoodsList().map((e) => {
+            select.value[0].list = getGoodsList().map((e) => {
                 return { value: e.goodsid, lable: e.goodsname };
             });
         });

+ 9 - 18
src/views/platinum/platinum_fixed_investment_query/list/flow/compoments/filter/index.vue

@@ -18,41 +18,32 @@
 <script lang="ts">
 import FilterOption from '@/common/components/filter/index.vue';
 import { defineComponent, ref } from 'vue';
-import { handleFilter, InputList, SelectList } from '@/common/setup/filter';
+import { handleFilter, handleTimeFilter, InputList, SelectList } from '@/common/setup/filter';
 import { Moment } from 'moment';
-import { SlotParam } from '@/common/setup/filter/interface';
 import { initData } from '@/common/methods';
 import { getGoodsList } from '@/services/bus/goods';
-import { getRangeTime } from '@/utils/time';
 
 export default defineComponent({
     name: 'filter-flow',
     components: { FilterOption },
     setup(props, context) {
         const date = ref<Moment[]>([]);
-        const select: SelectList[] = [
+        const select = ref<SelectList[]>([
             {
                 value: undefined,
                 key: 'goodsid',
                 placeholder: '选择商品',
                 list: [],
             },
-        ];
+        ]);
         const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'accountid' }];
-        const slotParam: SlotParam = {
-            search(result: any) {
-                // 处理范围时间内搜索
-                const time = date.value;
-                const temp = time.length > 1 ? getRangeTime(time[0], time[1]) : [''];
-                result.triggertime = temp;
-            },
-            reset() {
-                date.value = [];
-            },
-        };
-        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, slotParam);
+        // 范围时间内过滤
+        const { getFilterRangeTime } = handleTimeFilter('triggertime');
+
+        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, getFilterRangeTime(date));
         initData(() => {
-            select[0].list = getGoodsList().map((e) => {
+            // 选择商品
+            select.value[0].list = getGoodsList().map((e) => {
                 return { value: e.goodsid, lable: e.goodsname };
             });
         });

+ 9 - 17
src/views/platinum/platinum_fixed_investment_query/list/plan/compoments/filter/index.vue

@@ -15,18 +15,17 @@
 <script lang="ts">
 import FilterOption from '@/common/components/filter/index.vue';
 import { defineComponent, ref } from 'vue';
-import { handleFilter, InputList, SelectList } from '@/common/setup/filter';
+import { handleFilter, handleTimeFilter, InputList, SelectList } from '@/common/setup/filter';
 import { Moment } from 'moment';
-import { formatTime, initData } from '@/common/methods';
+import { initData } from '@/common/methods';
 import { getGoodsList } from '@/services/bus/goods';
-import { SlotParam } from '@/common/setup/filter/interface';
 
 export default defineComponent({
     name: 'filter-plan',
     components: { FilterOption },
     setup(props, context) {
         const date = ref<Moment>();
-        const select: SelectList[] = [
+        const select = ref<SelectList[]>([
             {
                 value: undefined,
                 key: 'goodsid',
@@ -43,21 +42,14 @@ export default defineComponent({
                     { value: 3, lable: '终止' },
                 ],
             },
-        ];
+        ]);
         const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'accountid' }];
-        const slotParam: SlotParam = {
-            search(result: any) {
-                const time = date.value;
-                const temp = time ? [formatTime(time, 'd')] : [''];
-                result.nexttriggerdate = temp;
-            },
-            reset() {
-                date.value = undefined;
-            },
-        };
-        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, slotParam);
+        // 具体时间过滤
+        const { getFilterItemTime } = handleTimeFilter('nexttriggerdate');
+
+        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, getFilterItemTime(date));
         initData(() => {
-            select[0].list = getGoodsList().map((e) => {
+            select.value[0].list = getGoodsList().map((e) => {
                 return { value: e.goodsid, lable: e.goodsname };
             });
         });

+ 8 - 18
src/views/platinum/platinum_pick_query/compoments/filter/index.vue

@@ -16,19 +16,17 @@
 <script lang="ts">
 import FilterOption from '@/common/components/filter/index.vue';
 import { defineComponent, ref } from 'vue';
-import { handleFilter, InputList, SelectList } from '@/common/setup/filter';
+import { handleFilter, handleTimeFilter, InputList, SelectList } from '@/common/setup/filter';
 import { Moment } from 'moment';
 import { initData } from '@/common/methods';
 import { queryPickGoods } from '@/services/go/ermcp/qhj';
-import { SlotParam } from '@/common/setup/filter/interface';
-import { getRangeTime } from '@/utils/time';
 
 export default defineComponent({
     name: 'filter-platinum_pick_query',
     components: { FilterOption },
     setup(props, context) {
         const date = ref<Moment[]>([]);
-        const select: SelectList[] = [
+        const select = ref<SelectList[]>([
             {
                 value: undefined,
                 key: 'pickupgoodsname',
@@ -50,23 +48,15 @@ export default defineComponent({
                     { value: 8, lable: '已撤销 ' },
                 ],
             },
-        ];
+        ]);
         const input: InputList[] = [{ value: '', placeholder: '模糊搜索商品名称', key: 'goodsname' }];
-        const slotParam: SlotParam = {
-            search(result: any) {
-                // 处理范围时间内搜索
-                const time = date.value;
-                const temp = time.length > 1 ? getRangeTime(time[0], time[1]) : [''];
-                result.reqtime = temp;
-            },
-            reset() {
-                date.value = [];
-            },
-        };
-        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, slotParam);
+        // 范围时间内过滤
+        const { getFilterRangeTime } = handleTimeFilter('reqtime');
+
+        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, getFilterRangeTime(date));
         initData(() => {
             queryPickGoods().then((res) => {
-                select[0].list = res.map((e) => {
+                select.value[0].list = res.map((e) => {
                     return { value: e.pickupgoodsid, lable: e.pickupgoodsname };
                 });
             });

+ 4 - 16
src/views/platinum/platinum_recharge_withdrawal_review/compoments/filter/index.vue

@@ -16,10 +16,8 @@
 <script lang="ts">
 import FilterOption from '@/common/components/filter/index.vue';
 import { defineComponent, ref } from 'vue';
-import { handleFilter, InputList, SelectList } from '@/common/setup/filter';
+import { handleFilter, handleTimeFilter, InputList, SelectList } from '@/common/setup/filter';
 import { Moment } from 'moment';
-import { SlotParam } from '@/common/setup/filter/interface';
-import { getRangeTime } from '@/utils/time';
 
 export default defineComponent({
     name: 'filter-withdrawal_review',
@@ -28,19 +26,9 @@ export default defineComponent({
         const date = ref<Moment[]>([]);
         const select: SelectList[] = [];
         const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'accountcode' }];
-
-        const slotParam: SlotParam = {
-            search(result: any) {
-                // 处理范围时间内搜索
-                const time = date.value;
-                const temp = time.length > 1 ? getRangeTime(time[0], time[1]) : [''];
-                result.updatetime = temp;
-            },
-            reset() {
-                date.value = [];
-            },
-        };
-        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, slotParam);
+        // 范围时间内过滤
+        const { getFilterRangeTime } = handleTimeFilter('reqtime');
+        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, getFilterRangeTime(date));
         return {
             date,
             selectList,

File diff suppressed because it is too large
+ 325 - 455
swagger-to-ts/tableKey.js


Some files were not shown because too many files changed in this diff