39 lines
944 B
JavaScript
39 lines
944 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = OakComponent({
|
|
entity: 'wpAccount',
|
|
isList: true,
|
|
projection: {
|
|
id: 1,
|
|
price: 1,
|
|
mchId: 1,
|
|
enabled: 1,
|
|
taxLossRatio: 1,
|
|
refundCompensateRatio: 1,
|
|
refundGapDays: 1,
|
|
allowWithdrawTransfer: 1,
|
|
withdrawTransferLossRatio: 1,
|
|
},
|
|
properties: {
|
|
systemId: '',
|
|
},
|
|
filters: [
|
|
{
|
|
filter() {
|
|
const { systemId } = this.props;
|
|
return {
|
|
systemId,
|
|
};
|
|
}
|
|
}
|
|
],
|
|
formData({ data, legalActions }) {
|
|
return {
|
|
accounts: data,
|
|
canCreate: legalActions?.includes('create') && !data?.find(ele => ele.enabled),
|
|
oakExecutable: this.tryExecute(),
|
|
};
|
|
},
|
|
actions: ['create', 'update', 'remove'],
|
|
});
|