|
|
@@ -57,6 +57,7 @@ import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
|
import { handleComposeOrderTable } from '@/common/setup/table/compose';
|
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
|
+import { BtnList as BtnListType } from '@/common/components/btnList/interface';
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import { getPaymentTypeName, getPerformanceStatusName, getPerformanceTypeName } from '@/common/constants/enumsName';
|
|
|
|
|
|
@@ -85,6 +86,25 @@ export default defineComponent({
|
|
|
tableName: 'table_pcweb_spot_trade_bottom_performance_info_sale',
|
|
|
recordList: getRecordItemTab(),
|
|
|
};
|
|
|
+ function handleBtn(btnList: BtnListType[], record: WrPerformancePlan): BtnListType[] {
|
|
|
+ // performancestatus: number;//履约状态 - 1:初始化 2:正常 3:处理错误 4:违约待处理 5:违约处理中 6:完成 7.违约已完成 8:释放冻结失败 9:超时待处理 1number;
|
|
|
+ const { curstepname, performancestatus } = record;
|
|
|
+ let result: ModalEnum[] = [];
|
|
|
+ if (performancestatus === 1) {
|
|
|
+ result = [ModalEnum.performance_information_sell_performance_breach_contract];
|
|
|
+ } else if (performancestatus === 2) {
|
|
|
+ if (curstepname === '卖方发货') {
|
|
|
+ result = [ModalEnum.performance_information_sell_performance_extension, ModalEnum.performance_information_sell_performance_breach_contract, ModalEnum.performance_information_sell_performance_detail];
|
|
|
+ } else if (curstepname === '买方支付') {
|
|
|
+ result = [ModalEnum.performance_information_sell_performance_extension, ModalEnum.performance_information_sell_performance_breach_contract, ModalEnum.performance_information_sell_performance_detail];
|
|
|
+ } else if (curstepname === '卖方发票') {
|
|
|
+ result = [ModalEnum.performance_information_sell_performance_extension, ModalEnum.performance_information_sell_performance_breach_contract, ModalEnum.performance_information_sell_performance_detail];
|
|
|
+ } else if (curstepname === '仓单转移') {
|
|
|
+ result = [ModalEnum.performance_information_sell_performance_extension, ModalEnum.performance_information_sell_performance_breach_contract, ModalEnum.performance_information_sell_performance_detail];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return btnList.filter((e) => result.includes(e.code as ModalEnum));
|
|
|
+ }
|
|
|
return {
|
|
|
...handleComposeOrderTable<WrPerformancePlan>(param),
|
|
|
loading,
|