| | |
| | | prop: "subscribedAmount", |
| | | }, |
| | | { |
| | | label: "需补缴金额", |
| | | prop: "needPayAmount", |
| | | formatter: (row) => { |
| | | const requiredNumber = parseFloat(row.requiredNumber) || 0; |
| | | const subscribedAmount = parseFloat(row.subscribedAmount) || 0; |
| | | return (requiredNumber - subscribedAmount).toFixed(2); |
| | | }, |
| | | }, |
| | | { |
| | | label: "申购时间", |
| | | prop: "createTime", |
| | | }, |
| | |
| | | <el-button type="primary" icon="el-icon-edit" size="small" |
| | | v-if="isAuth('mining:stock-subscription:operate') && scope.row.status == 1" |
| | | @click.stop="batchPublishing(scope.row)">公布</el-button> |
| | | |
| | | <el-button type="primary" icon="el-icon-unlock" size="small" |
| | | v-if="isAuth('mining:stock-subscription:operate') && scope.row.status == 2 && scope.row.subscribedAmount == scope.row.requiredNumber && scope.row.unLock != 1" |
| | | v-if="isAuth('mining:stock-subscription:operate') && scope.row.unLock == 0" |
| | | @click.stop="unlockHandle(scope.row)">解锁</el-button> |
| | | |
| | | <el-button type="primary" icon="el-icon-unlock" size="small" |
| | | v-else-if="isAuth('mining:stock-subscription:operate') && scope.row.unLock == 1" |
| | | @click.stop="unlockHandle(scope.row)">锁定</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | |
| | | }, |
| | | //解锁 |
| | | unlockHandle(row) { |
| | | this.$confirm("确定要解锁该订单吗?", "提示", { |
| | | let str = `确定要${row.unLock == 1 ? "锁定" : "解锁"}该订单吗?` |
| | | this.$confirm(str, "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |