|
@@ -47,11 +47,11 @@ import { ColumnType } from '@/common/methods/table/interface';
|
|
|
import { Moment } from 'moment';
|
|
import { Moment } from 'moment';
|
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
-import { useBuyOrSellBtnList, getBuyOrSellMarketPrice } from '../setup';
|
|
|
|
|
|
|
+import { useBuyOrSellBtnList, getBuyOrSellMarketPrice, sortPirce } from '../setup';
|
|
|
import { getUserId } from '@/services/bus/account';
|
|
import { getUserId } from '@/services/bus/account';
|
|
|
import { getUserAccountType } from '@/services/bus/user';
|
|
import { getUserAccountType } from '@/services/bus/user';
|
|
|
import { queryTjmdTradeOrderDetail } from '@/services/go/Tjmd';
|
|
import { queryTjmdTradeOrderDetail } from '@/services/go/Tjmd';
|
|
|
-import { QueryTjmdTradeOrderDetailReq } from '@/services/go/Tjmd/interface';
|
|
|
|
|
|
|
+import { QueryTjmdTradeOrderDetailReq, QueryTjmdTradeOrderDetailRsp } from '@/services/go/Tjmd/interface';
|
|
|
import { findItemGoods } from '../../setup';
|
|
import { findItemGoods } from '../../setup';
|
|
|
import { RefGoodsList } from '../../interface';
|
|
import { RefGoodsList } from '../../interface';
|
|
|
|
|
|
|
@@ -118,7 +118,7 @@ export default defineComponent({
|
|
|
const isBottom = getShowBottomValue();
|
|
const isBottom = getShowBottomValue();
|
|
|
console.log(isBottom.value, 'isBottom');
|
|
console.log(isBottom.value, 'isBottom');
|
|
|
// 表格列表数据
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList<WrOrderQuoteDetail>();
|
|
|
|
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<QueryTjmdTradeOrderDetailRsp>();
|
|
|
|
|
|
|
|
// 获取列表数据
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
const queryTableAction = () => {
|
|
@@ -128,7 +128,9 @@ export default defineComponent({
|
|
|
usertype: getUserAccountType(),
|
|
usertype: getUserAccountType(),
|
|
|
goodsid: findItemGoods(props.parantSelectedRow.goodscode)?.goodsid,
|
|
goodsid: findItemGoods(props.parantSelectedRow.goodscode)?.goodsid,
|
|
|
};
|
|
};
|
|
|
- queryTable(queryTjmdTradeOrderDetail, param);
|
|
|
|
|
|
|
+ queryTable(queryTjmdTradeOrderDetail, param).then((res) => {
|
|
|
|
|
+ tableList.value = sortPirce(res);
|
|
|
|
|
+ });
|
|
|
};
|
|
};
|
|
|
// 表格通用逻辑
|
|
// 表格通用逻辑
|
|
|
const param: ComposeTableParam = {
|
|
const param: ComposeTableParam = {
|
|
@@ -149,7 +151,7 @@ export default defineComponent({
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
isBottom,
|
|
isBottom,
|
|
|
- ...handleComposeTable<WrOrderQuoteDetail>(param),
|
|
|
|
|
|
|
+ ...handleComposeTable<QueryTjmdTradeOrderDetailRsp>(param),
|
|
|
queryTableAction,
|
|
queryTableAction,
|
|
|
loading,
|
|
loading,
|
|
|
tableList,
|
|
tableList,
|