|
@@ -21,13 +21,13 @@
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
-import { ComposeTableParam, BtnList, defineComponent, handleComposeTable, ModalEnum, queryTableList } from '@/common/export/commonTable';
|
|
|
|
|
|
|
+import { ComposeTableParam, BtnList, defineComponent, handleComposeTable, queryTableList } from '@/common/export/commonTable';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
-import { queryAgreementConfig } from '@/services/go/ermcp/qhj';
|
|
|
|
|
import { queryOrderQuoteDetail } from '@/services/go/wrtrade';
|
|
import { queryOrderQuoteDetail } from '@/services/go/wrtrade';
|
|
|
-import { QueryOrderQuoteDetailReq, WrOrderQuoteDetail } from '@/services/go/wrtrade/interface';
|
|
|
|
|
-import { defineAsyncComponent, PropType } from 'vue';
|
|
|
|
|
|
|
+import { QueryOrderQuoteDetailReq, WrOrderQuote, WrOrderQuoteDetail } from '@/services/go/wrtrade/interface';
|
|
|
|
|
+import { PropType } from 'vue';
|
|
|
import { BtnList as btnListType } from '@/common/components/btnList/interface';
|
|
import { BtnList as btnListType } from '@/common/components/btnList/interface';
|
|
|
|
|
+import { getSellMarketParam } from '../../setup';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'openComponent'],
|
|
emits: ['cancel', 'openComponent'],
|
|
@@ -41,6 +41,10 @@ export default defineComponent({
|
|
|
default: [],
|
|
default: [],
|
|
|
type: Array as PropType<btnListType[]>,
|
|
type: Array as PropType<btnListType[]>,
|
|
|
},
|
|
},
|
|
|
|
|
+ selectedRow: {
|
|
|
|
|
+ type: Object as PropType<WrOrderQuote>,
|
|
|
|
|
+ default: {},
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
BtnList,
|
|
BtnList,
|
|
@@ -51,20 +55,23 @@ export default defineComponent({
|
|
|
function open(item: btnListType) {
|
|
function open(item: btnListType) {
|
|
|
context.emit('openComponent', item);
|
|
context.emit('openComponent', item);
|
|
|
}
|
|
}
|
|
|
|
|
+ const { wrpricetype, haswr, tableKey } = getSellMarketParam(props.enumName);
|
|
|
// 获取列表数据
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
const queryTableAction = () => {
|
|
|
- // const param: QueryOrderQuoteReq = {
|
|
|
|
|
- // wrpricetype: 2,
|
|
|
|
|
- // haswr: 1,
|
|
|
|
|
- // };
|
|
|
|
|
- // queryTable(queryOrderQuote, param);
|
|
|
|
|
- queryTable(queryAgreementConfig);
|
|
|
|
|
|
|
+ const param: QueryOrderQuoteDetailReq = {
|
|
|
|
|
+ buyorsell: 1,
|
|
|
|
|
+ wrpricetype,
|
|
|
|
|
+ haswr,
|
|
|
|
|
+ wrfactortypeid: props.selectedRow.wrfactortypeid,
|
|
|
|
|
+ goodsid: props.selectedRow.goodsid,
|
|
|
|
|
+ };
|
|
|
|
|
+ queryTable(queryOrderQuoteDetail, param);
|
|
|
};
|
|
};
|
|
|
// 表格通用逻辑
|
|
// 表格通用逻辑
|
|
|
const param: ComposeTableParam = {
|
|
const param: ComposeTableParam = {
|
|
|
queryFn: queryTableAction,
|
|
queryFn: queryTableAction,
|
|
|
menuType: EnumRouterName.warehouse_receipt_trade_floating_price,
|
|
menuType: EnumRouterName.warehouse_receipt_trade_floating_price,
|
|
|
- tableName: 'table_pcweb_agreement',
|
|
|
|
|
|
|
+ tableName: tableKey,
|
|
|
tableFilterKey: [],
|
|
tableFilterKey: [],
|
|
|
isDetail: false,
|
|
isDetail: false,
|
|
|
};
|
|
};
|