|
|
@@ -1,5 +1,6 @@
|
|
|
import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
+import { QueryOrderQuoteMyqQsp } from '@/services/go/wrtrade/interface';
|
|
|
|
|
|
|
|
|
export function handleColumns() {
|
|
|
@@ -30,6 +31,10 @@ export function handleColumns() {
|
|
|
return { getBuyOrSellColumns }
|
|
|
}
|
|
|
|
|
|
-export function filterBtn(btnList: BtnListType[]) {
|
|
|
- return btnList.filter(e => e.code !== 'warehouse_receipt_trade_blocs_post_buying')
|
|
|
+export function filterBtn(btnList: BtnListType[], selectedRow: QueryOrderQuoteMyqQsp) {
|
|
|
+ let result = btnList.filter(e => e.code !== 'warehouse_receipt_trade_blocs_post_buying')
|
|
|
+ if (selectedRow) {
|
|
|
+ result = selectedRow.canbargain ? result : result.filter(e => e.code !== 'warehouse_receipt_trade_blocs_bargain_delisting')
|
|
|
+ }
|
|
|
+ return result
|
|
|
}
|