Commit 708fcee2 by gonglei

加入前端代码

1 parent a4942c50
Showing 31 changed files with 323 additions and 103 deletions
......@@ -133,4 +133,8 @@ gitee帐号:
【金山文档 | WPS云文档】 微信支付流程调整
https://www.kdocs.cn/l/cqSXe4WVE94M
分批退款接口
https://pay.weixin.qq.com/doc/v3/merchant/4012791862
\ No newline at end of file
https://pay.weixin.qq.com/doc/v3/merchant/4012791862
https://www.yuque.com/runhoutang-6m1me/nkb887/bps7fkelyxfeoq7l?singleDoc# 《20260115 生产体验问题》
\ No newline at end of file
......@@ -211,6 +211,12 @@ public class AccountController {
return true;
}
@PostMapping("setTagAccounts")
public boolean setTagAccounts(@RequestBody TagAccount tagAccount) {
accountService.setTagAccounts(tagAccount);
return true;
}
/**
* 审核用户申请
*
......
......@@ -1761,7 +1761,27 @@
"name": "标签管理",
"type": "MENU",
"enabled": true,
"value": "/account/tag"
"value": "/account/tag",
"children": [
{
"code": "tag_1",
"name": "新建标签",
"type": "BUTTON",
"enabled": true
},
{
"code": "tag_2",
"name": "修改标签",
"type": "BUTTON",
"enabled": true
},
{
"code": "tag_3",
"name": "删除标签",
"type": "BUTTON",
"enabled": true
}
]
},
{
"code": "deposit",
......@@ -1852,7 +1872,27 @@
"name": "轮播图管理",
"type": "MENU",
"enabled": true,
"value": "/business/carousel"
"value": "/business/carousel",
"children": [
{
"code": "carousel_1",
"name": "新建轮播图",
"type": "BUTTON",
"enabled": true
},
{
"code": "carousel_2",
"name": "修改轮播图",
"type": "BUTTON",
"enabled": true
},
{
"code": "carousel_3",
"name": "删除轮播图",
"type": "BUTTON",
"enabled": true
}
]
},
{
"code": "price_rule",
......@@ -2038,6 +2078,24 @@
"enabled": true,
"value": "/business/notice",
"children": [
{
"code": "notice_template_1",
"name": "新建消息通知模板",
"type": "BUTTON",
"enabled": true
},
{
"code": "notice_template_2",
"name": "编辑消息通知模板",
"type": "BUTTON",
"enabled": true
},
{
"code": "notice_template_3",
"name": "查看消息通知模板",
"type": "BUTTON",
"enabled": true
}
]
},
{
......
......@@ -10,13 +10,11 @@ import com.glsx.usedcar.module.auction.entity.AuctionVehicle_;
import com.glsx.usedcar.module.auction.entity.Auction_;
import com.glsx.usedcar.module.auction.service.AuctionService;
import jakarta.annotation.Resource;
import jakarta.persistence.criteria.Expression;
import jakarta.persistence.criteria.Join;
import jakarta.persistence.criteria.JoinType;
import jakarta.persistence.criteria.Predicate;
import jakarta.persistence.criteria.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Page;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;
import org.summerframework.orm.paging.Operator;
import org.summerframework.orm.paging.Pagination;
......@@ -113,9 +111,17 @@ public class AuctionController {
*/
@PostMapping("pageRandomAuctionVehicle")
public Page<AuctionVehicle> pageRandomAuctionVehicle(@RequestBody Pagination<AuctionVehicle> pagination, @RequestAttribute(value = LOGIN_ACCOUNT, required = false) Account account) {
String cityCode = (String) pagination.getDataValue("cities");
pagination.addCondition((root, query, builder) -> {
Expression<Double> randomExp = builder.function("RAND", Double.class); // MySQL 用 RAND()
query.orderBy(builder.asc(randomExp)); // 按随机值升序(或降序,效果相同)
if (StringUtils.hasText(cityCode)) {
CriteriaBuilder.Case<Number> caseExpr = builder.selectCase();
caseExpr.when(builder.like(root.get(AuctionVehicle_.auction).get(Auction_.cities), "%" + cityCode + "%"), 1).otherwise(0);
query.orderBy(builder.desc(caseExpr), builder.asc(randomExp)); // 按随机值升序(或降序,效果相同)
} else {
query.orderBy(builder.asc(randomExp)); // 按随机值升序(或降序,效果相同)
}
return null; // 无过滤条件,返回所有数据并随机排序
});
return pageAuctionVehicle(pagination, account);
......
......@@ -68,9 +68,9 @@ spring:
data:
redis:
database: 6
host: 120.237.107.125
port: 16379
password: Ml1234..
host: localhost
port: 6379
password:
# 连接超时时间 单位 ms(毫秒)
timeout: 3000ms
jedis:
......
......@@ -17,7 +17,7 @@ import java.util.List;
public interface CommissionRuleDao extends BaseRepository<CommissionRule, Integer>, JpaSpecificationExecutor<CommissionRule> {
@EntityGraph(attributePaths = {"accounts", "accountTags"})
List<CommissionRule> findByEnabledIsTrueAndEffectiveDateLessThanEqualAndExpireDateGreaterThanEqualOrderByApplicableTypeAsc(LocalDate effectiveDate, LocalDate expireDate);
List<CommissionRule> findByEnabledIsTrueAndMinPriceLessThanEqualAndMaxPriceGreaterThanAndEffectiveDateLessThanEqualAndExpireDateGreaterThanEqualOrderByApplicableTypeAsc(double price, double price2, LocalDate effectiveDate, LocalDate expireDate);
@EntityGraph(attributePaths = {"accounts", "accountTags"})
CommissionRule findByRuleId(int ruleId);
......
......@@ -56,6 +56,18 @@ public class CommissionRule extends AuditingEntity implements Serializable {
private String ruleName;
/**
* 最低成交价
*/
@Column(nullable = false)
private double minPrice;
/**
* 最高成交价
*/
@Column(nullable = false)
private double maxPrice;
/**
* 规则详情
*/
@Column(nullable = true, length = 255)
......
......@@ -248,6 +248,23 @@ public class AccountService extends AbstractAuctionService {
}
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public void setTagAccounts(TagAccount tagAccount) {
List<Account> accounts = accountDao.findAllById(tagAccount.getAccountIds());
if (!CollectionUtils.isEmpty(tagAccount.getTagIds())) {
List<AccountTag> tags = accountTagDao.findAllById(tagAccount.getTagIds());
for (Account account : accounts) {
account.getAccountTags().clear();
account.getAccountTags().addAll(tags);
}
} else {
for (Account account : accounts) {
account.getAccountTags().clear();
}
}
accountTagDao.updateAccountCount();
}
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public Account updateMobile(Account customer) throws FieldException {
accountDao.checkExists("手机号码已存在用户绑定", customer, Account_.mobile);
return accountDao.updateById(customer.getAccountId(), UpdateField.of(Account_.mobile, customer.getMobile()));
......@@ -372,7 +389,7 @@ public class AccountService extends AbstractAuctionService {
// 参拍车商
long bidCount = bidDao.countAccountByCreateTimeBetween(startTime, endTime);
//新增中拍车商
long newDealCount = auctionOrderDao.countNewAccountByOrderStateAndTransferredTime(AuctionOrder.OrderState.CANCELED, startTime, endTime);
long newDealCount = auctionOrderDao.countNewAccountByOrderStateAndCreateTime(AuctionOrder.OrderState.CANCELED, startTime, endTime);
AccountDateStat accountTotalStat = new AccountDateStat();
accountTotalStat.setAccountCount((int) accountCount);
accountTotalStat.setActiveCount((int) activeCount);
......
......@@ -81,6 +81,8 @@ public class CommissionRuleService {
public CommissionRule updateCommissionRule(CommissionRule commissionRule) {
CommissionRule commissionRuleDB = commissionRuleDao.updateById(commissionRule,
CommissionRule_.ruleName,
CommissionRule_.maxPrice,
CommissionRule_.minPrice,
CommissionRule_.remark,
CommissionRule_.enabled,
CommissionRule_.ruleType,
......
......@@ -53,10 +53,10 @@ public interface AuctionOrderDao extends BaseRepository<AuctionOrder, Integer>,
long countAccountByOrderStateAndTransferredTime(AuctionOrder.OrderState orderState, LocalDateTime startTime, LocalDateTime endTime);
@Query("""
select count(distinct o.account) from AuctionOrder o where o.orderState !=?1 and o.transferredTime between ?2 and ?3 and
not exists (select 1 from AuctionOrder o2 where o2.account = o.account and o2.orderState = ?1 and o2.transferredTime < ?2)
select count(distinct o.account) from AuctionOrder o where o.orderState !=?1 and o.createTime between ?2 and ?3 and
not exists (select 1 from AuctionOrder o2 where o2.account = o.account and o2.orderState = ?1 and o2.createTime < ?2)
""")
long countNewAccountByOrderStateAndTransferredTime(AuctionOrder.OrderState orderState, LocalDateTime startTime, LocalDateTime endTime);
long countNewAccountByOrderStateAndCreateTime(AuctionOrder.OrderState orderState, LocalDateTime startTime, LocalDateTime endTime);
long countByOrderState(AuctionOrder.OrderState orderState);
......
......@@ -97,8 +97,9 @@ public class AuctionOrderService extends AbstractAuctionService {
}
public AuctionOrder getAuctionOrderByAccountAndAuctionVehicle(Account account, AuctionVehicle auctionVehicle) {
return auctionOrderDao.findTopByAccountAndVehicleAndAuction(account,auctionVehicle.getVehicle(),auctionVehicle.getAuction());
return auctionOrderDao.findTopByAccountAndVehicleAndAuction(account, auctionVehicle.getVehicle(), auctionVehicle.getAuction());
}
/**
* 分页查询
*
......@@ -343,9 +344,10 @@ public class AuctionOrderService extends AbstractAuctionService {
*/
private double calculateCommissionPrice(LocalDateTime now, Bid bid) {
Account account = bid.getAccount();
double commissionPrice = 0;
LocalDate today = now.toLocalDate();
List<CommissionRule> commissionRules = commissionRuleDao.findByEnabledIsTrueAndEffectiveDateLessThanEqualAndExpireDateGreaterThanEqualOrderByApplicableTypeAsc(today, today);
double bidPrice = bid.getBidPrice();
double commissionPrice = 0;
List<CommissionRule> commissionRules = commissionRuleDao.findByEnabledIsTrueAndMinPriceLessThanEqualAndMaxPriceGreaterThanAndEffectiveDateLessThanEqualAndExpireDateGreaterThanEqualOrderByApplicableTypeAsc(bidPrice, bidPrice, today, today);
CommissionRule commissionRule = null;
if (!commissionRules.isEmpty()) {
for (CommissionRule rule : commissionRules) {
......@@ -372,7 +374,7 @@ public class AuctionOrderService extends AbstractAuctionService {
}
}
if (Objects.nonNull(commissionRule)) {
commissionPrice = commissionRule.calCommissionPrice(bid.getBidPrice());
commissionPrice = commissionRule.calCommissionPrice(bidPrice);
}
return commissionPrice;
}
......
......@@ -43,6 +43,10 @@ export class AccountController{
return axios.post('account/addTagAccounts', tagAccount);
}
static setTagAccounts(axios:AxiosStatic, tagAccount: TagAccount): Promise<AxiosResponse<boolean>> {
return axios.post('account/setTagAccounts', tagAccount);
}
/**
* 审核用户申请
* @param approveHistory
......
......@@ -67,17 +67,12 @@ export default class AccountPicker extends PaginationComponent<Account> {
this.buildQueryForm({
accountName: [null, {label: '用户名', field: 'accountName', operator: Operator.like}],
createTime: [null, {label: '创建时间', field: 'createTime', operator: Operator.dateBetween, type: 'date-range'}],
lastLoginTime: [null, {label: '最近活跃时间', field: 'lastLoginTime', operator: Operator.dateBetween, type: 'date-range'}],
mobile: [null, {label: '手机号', field: 'mobile', operator: Operator.like}],
openId: [null, {label: '微信ID', field: 'openId', operator: Operator.like}],
idCard: [null, {label: '身份证', field: 'idCard', operator: Operator.like}],
idCardPortrait: [null, {label: '身份证人像面', field: 'idCardPortrait', operator: Operator.like}],
idCardNationalEmblem: [null, {label: '身份证国徽面', field: 'idCardNationalEmblem', operator: Operator.like}],
businessLicense: [null, {label: '营业执照', field: 'businessLicense', operator: Operator.like}],
avatar: [null, {label: '头像', field: 'avatar', operator: Operator.like}],
nickName: [null, {label: '昵称', field: 'nickName', operator: Operator.like}],
accountState: [null, {label: '账号状态', field: 'accountState', operator: Operator.like}],
surplus: [null, {label: '余额', field: 'surplus', operator: Operator.like}],
alipayAccount: [null, {label: '支付宝账号', field: 'alipayAccount', operator: Operator.like}],
enabled: [null, {label: '账号状态', field: 'enabled', type: 'select', allowClear: true, optionItems: [{label: '启用', value: true}, {label: '禁用', value: false}], operator: Operator.eq}],
});
this.pagination.setDefaultSort('createTime', Order.desc);
this.pageLoad();
......
......@@ -306,7 +306,7 @@ export default class ViewAccount extends Vue {
const tagAccount = new TagAccount();
tagAccount.accountIds = [this.accountId];
tagAccount.tagIds = this.tagIds;
AccountController.addTagAccounts(this.axios, tagAccount).then(response => {
AccountController.setTagAccounts(this.axios, tagAccount).then(response => {
message.success('保存成功');
this.account.accountTags = this.tags.filter(tag => this.tagIds.includes(tag.tagId));
this.editTags = false;
......
......@@ -4,7 +4,7 @@
<!--查询栏end-->
<!--用户分组列表start-->
<div class="table-operations">
<a-button type="primary" @click="addAccountGroup()">
<a-button v-sec="'tag_1'" type="primary" @click="addAccountGroup()">
<template #icon>
<PlusSquareOutlined class="mr-5"/>
</template>
......@@ -19,8 +19,8 @@
</template>
<template #bodyCell="{column,record}">
<template v-if="column.key === 'action'">
<a-button type="link" size="small" @click="editAccountGroup(record)">编辑</a-button>
<a-popconfirm placement="topRight" title="删除数据不可恢复,是否继续?" ok-text="确认" cancel-text="取消" @confirm="removeAccountGroup(record.tagId)">
<a-button v-sec="'tag_2'" type="link" size="small" @click="editAccountGroup(record)">编辑</a-button>
<a-popconfirm v-sec="'tag_3'" placement="topRight" title="删除数据不可恢复,是否继续?" ok-text="确认" cancel-text="取消" @confirm="removeAccountGroup(record.tagId)">
<a-button type="link" size="small">删除</a-button>
</a-popconfirm>
</template>
......
......@@ -4,7 +4,7 @@
<!--查询栏end-->
<!--轮播图列表start-->
<div class="table-operations">
<a-button type="primary" @click="addCarousel()">
<a-button v-sec="'carousel_1'" type="primary" @click="addCarousel()">
<template #icon>
<PlusSquareOutlined class="mr-5"/>
</template>
......@@ -19,8 +19,8 @@
</template>
<template #bodyCell="{column,record}">
<template v-if="column.key === 'action'">
<a-button type="link" @click="editCarousel(record)">编辑</a-button>
<a-popconfirm placement="topRight" title="删除数据不可恢复,是否继续?" ok-text="确认" cancel-text="取消" @confirm="removeCarousel(record.carouselId)">
<a-button v-sec="'carousel_2'" type="link" @click="editCarousel(record)">编辑</a-button>
<a-popconfirm v-sec="'carousel_3'" placement="topRight" title="删除数据不可恢复,是否继续?" ok-text="确认" cancel-text="取消" @confirm="removeCarousel(record.carouselId)">
<a-button type="link">删除</a-button>
</a-popconfirm>
<a-button type="link" @click="viewCarousel(record)">详情</a-button>
......
......@@ -4,6 +4,11 @@
<a-form-item label="规则名称" name="ruleName" :rules="[{ required: true, message: '请输入规则名称!' }]">
<a-input v-model:value="formState.ruleName" placeholder="请输入规则名称" :maxlength="128"/>
</a-form-item>
<a-form-item label="成交价区间" name="minPrice" :rules="[{ required: true, message: '请输入最低成交价!' },{validator: verifyPriceRange,message: '最低估值必须小于最高成交价'}]">
<a-input-number v-model:value="formState.minPrice" :min="0" :maxlength="8" :max="99999999" addon-after="元" placeholder="请输入最低成交价"/>
-
<a-input-number v-model:value="formState.maxPrice" :min="0" :maxlength="8" :max="99999999" addon-after="元" placeholder="请输入最高成交价"/>
</a-form-item>
<a-form-item label="适用人群" name="applicableType">
<a-radio-group v-model:value="formState.applicableType" placeholder="请输入适用人群" button-style="solid">
<a-radio-button v-for="applicableType in applicableTypes" :key="applicableType" :value="applicableType">{{ $t('enum.commissionRule.applicableType.' + applicableType) }}</a-radio-button>
......@@ -91,6 +96,7 @@ import AccountTypeTag from "@/views/account/account/tag/AccountTypeTag.vue";
import {Account} from "lib/src/entity/account/entity/Account";
import {ModalService} from "@/components/ModalService";
import AccountPicker from "@/views/account/account/AccountPicker.vue";
import {RuleObject} from "ant-design-vue/es/form/interface";
@Component({
components: {AccountTypeTag}
......@@ -107,6 +113,21 @@ export default class CommissionRuleForm extends EnhanceFormComponent<CommissionR
lastFetchId = 0;
verifyPriceRange(_rule: RuleObject, minPrice: number) {
if (!this.formState.maxPrice) {
return Promise.reject('请输入最高成交价!');
}
if (minPrice && this.formState.maxPrice) {
if (minPrice > this.formState.maxPrice) {
return Promise.reject('最低成交价必须小于最高成交价!');
} else {
return Promise.resolve();
}
} else {
return Promise.resolve();
}
}
created(): void {
AccountController.getAccountTags(this.axios).then(res => {
this.tags = res.data;
......@@ -156,6 +177,7 @@ export default class CommissionRuleForm extends EnhanceFormComponent<CommissionR
});
}
console.log(formValue);
formValue.maxPrice = this.formState.maxPrice;
switch (this.action) {
case 'create':
case 'add':
......
......@@ -77,7 +77,22 @@ export default class CommissionRulePage extends PaginationComponent<CommissionRu
*/
columns: TableColumnsType = [
{title: '规则ID', dataIndex: 'ruleId', key: 'ruleId', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '规则名称', dataIndex: 'ruleName', key: 'ruleName', resizable: true, ellipsis: true, sorter: true},
{title: '规则名称', dataIndex: 'ruleName', key: 'ruleName',width: 200, resizable: true, ellipsis: true, sorter: true},
{
title: "最低成交价区间", align: 'center', children: [
{
title: '最低成交价', dataIndex: 'minPrice', key: 'minPrice', align: 'right', width: 110, resizable: true, ellipsis: true, sorter: true,
customRender: ({text}) => {
return '¥' + text;
}
},
{
title: '最高成交价', dataIndex: 'maxPrice', key: 'maxPrice', align: 'right', width: 110, resizable: true, ellipsis: true, sorter: true, customRender: ({text}) => {
return '¥' + text;
}
},
]
},
{
title: '规则类型', dataIndex: 'ruleType', key: 'ruleType', width: 120, resizable: true, ellipsis: true, sorter: true,
customRender: ({text}) => {
......
<template>
<a-descriptions :bordered="false" :column="2" size="small">
<a-descriptions-item label="规则名称" name="ruleName" :span="3">
<a-descriptions-item label="规则名称" name="ruleName" :span="2">
{{ commissionRule.ruleName }}
</a-descriptions-item>
<a-descriptions-item label="成交价区间" name="ruleName" :span="2">
¥{{ commissionRule.minPrice }} - ¥{{ commissionRule.maxPrice }}
</a-descriptions-item>
<a-descriptions-item label="创建人" name="createBy">
<user-real-name :user-name="commissionRule.createBy"></user-real-name>
</a-descriptions-item>
......@@ -47,7 +50,7 @@
{{ $t('enum.commissionRule.applicableType.' + commissionRule.applicableType) }}
</a-descriptions-item>
<a-descriptions-item label="个人车主" v-if="commissionRule.applicableType==='ACCOUNT'">
<a-tag v-for="account in rule.accounts" :key="account.accountId">{{ account.accountName }}</a-tag>
<a-tag v-for="account in rule?.accounts" :key="account.accountId">{{ account.accountName }}</a-tag>
</a-descriptions-item>
<a-descriptions-item label="标签用户" v-if="commissionRule.applicableType==='TAG'">
<a-tag v-for="tag in rule.accountTags" :key="tag.tagId">{{ tag.tagName }}</a-tag>
......
......@@ -4,7 +4,7 @@
<!--查询栏end-->
<!--通知模板列表start-->
<div class="table-operations">
<a-button type="primary" @click="addNoticeTemplate()">
<a-button v-sec="'notice_template_1'" type="primary" @click="addNoticeTemplate()">
<template #icon>
<PlusSquareOutlined class="mr-5"/>
</template>
......@@ -22,8 +22,8 @@
</a-popconfirm>
</template>
<template v-if="column.key === 'action'">
<a-button type="link" size="small" @click="editNoticeTemplate(record)">编辑</a-button>
<a-button type="link" size="small" @click="viewNoticeTemplate(record)">查看</a-button>
<a-button v-sec="'notice_template_2'" type="link" size="small" @click="editNoticeTemplate(record)">编辑</a-button>
<a-button v-sec="'notice_template_3'" type="link" size="small" @click="viewNoticeTemplate(record)">查看</a-button>
</template>
</template>
<!--通知模板列表end-->
......
<template>
<a-descriptions title="价格规则详情" bordered :column="2" size="small">
<a-descriptions-item label="最低估值" name="minPrice">
<div>{{ priceRule.minPrice }}</div>
</a-descriptions-item>
<a-descriptions-item label="创建人" name="createBy">
<div>{{ priceRule.createBy }}</div>
</a-descriptions-item>
<a-descriptions-item label="修改人" name="updateBy">
<div>{{ priceRule.updateBy }}</div>
</a-descriptions-item>
<a-descriptions-item label="创建时间" name="createTime">
<div>{{ priceRule.createTime }}</div>
</a-descriptions-item>
<a-descriptions-item label="修改时间" name="updateTime">
<div>{{ priceRule.updateTime }}</div>
</a-descriptions-item>
<a-descriptions-item label="最高估值" name="maxPrice">
<div>{{ priceRule.maxPrice }}</div>
</a-descriptions-item>
<a-descriptions-item label="规则类型(比例下限固定差价)" name="ruleType">
<div>{{ priceRule.ruleType }}</div>
</a-descriptions-item>
<a-descriptions-item label="生效日期" name="effectiveDate">
<div>{{ priceRule.effectiveDate }}</div>
</a-descriptions-item>
<a-descriptions-item label="过期日期" name="expireDate">
<div>{{ priceRule.expireDate }}</div>
</a-descriptions-item>
<a-descriptions-item label="起拍价(比例/固定值)" name="startPrice">
<div>{{ priceRule.startPrice }}</div>
</a-descriptions-item>
</a-descriptions>
<a-descriptions title="价格规则详情" bordered :column="2" size="small">
<a-descriptions-item label="最低估值" name="minPrice">
<div>{{ priceRule.minPrice }}</div>
</a-descriptions-item>
<a-descriptions-item label="创建人" name="createBy">
<div>{{ priceRule.createBy }}</div>
</a-descriptions-item>
<a-descriptions-item label="修改人" name="updateBy">
<div>{{ priceRule.updateBy }}</div>
</a-descriptions-item>
<a-descriptions-item label="创建时间" name="createTime">
<div>{{ priceRule.createTime }}</div>
</a-descriptions-item>
<a-descriptions-item label="修改时间" name="updateTime">
<div>{{ priceRule.updateTime }}</div>
</a-descriptions-item>
<a-descriptions-item label="最高估值" name="maxPrice">
<div>{{ priceRule.maxPrice }}</div>
</a-descriptions-item>
<a-descriptions-item label="规则类型(比例下限固定差价)" name="ruleType">
<div>{{ priceRule.ruleType }}</div>
</a-descriptions-item>
<a-descriptions-item label="生效日期" name="effectiveDate">
<div>{{ priceRule.effectiveDate }}</div>
</a-descriptions-item>
<a-descriptions-item label="过期日期" name="expireDate">
<div>{{ priceRule.expireDate }}</div>
</a-descriptions-item>
<a-descriptions-item label="起拍价(比例/固定值)" name="startPrice">
<div>{{ priceRule.startPrice }}</div>
</a-descriptions-item>
</a-descriptions>
</template>
<script lang="ts">
import {Component, Vue} from "vue-facing-decorator";
@Component({
components: {}
})
export default class ViewPriceRule extends Vue {
components: {}
})
export default class ViewPriceRule extends Vue {
ruleId: any;
ruleId: any;
priceRule:PriceRule | null = null;
priceRule: PriceRule | null = null;
created(): void {
this.ruleId = Number(this.\\$route.query.ruleId);
this.axios.get('priceRule/getPriceRuleById', {params : { ruleId: this.ruleId }}).then(response => {
this.priceRule=response.data;
});
}
created(): void {
this.ruleId = Number(this.\\$route.query.ruleId
)
;
this.axios.get('priceRule/getPriceRuleById', {params: {ruleId: this.ruleId}}).then(response => {
this.priceRule = response.data;
});
}
}
</script>
<style scoped lang="ts">
......
......@@ -6,11 +6,11 @@ PUBLISH_PATH = '/'
# 平台端请求路径
# 生产环境
VITE_APP_API_URL = 'http://aapp.link:6911/api/'
VITE_APP_API_BASE_URL = 'http://aapp.link:6911/'
# VITE_APP_API_URL = 'http://aapp.link:6911/api/'
# VITE_APP_API_BASE_URL = 'http://aapp.link:6911/'
# VITE_APP_API_URL = 'https://aus.glsx.com.cn/app/api/'
# VITE_APP_API_BASE_URL = 'https://aus.glsx.com.cn/app/'
VITE_APP_API_URL = 'https://aus.glsx.com.cn/app/api/'
VITE_APP_API_BASE_URL = 'https://aus.glsx.com.cn/app/'
VITE_APP_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmYWN0b3JJZCI6MSwic3ViIjoiYWRtaW5pc3RyYXRvciIsInJlYWxOYW1lIjoi6LaF57qn566h55CG5ZGYIiwicGFzc3dvcmQiOiIkMmEkMTAkaFR0QkdSOTAxZ1A2SzQ5Ti9RNWFNT2oyQjE3cDVYZjRmeXliZTJ6ckpjdEJjWklMbUEwZEciLCJpc3MiOiJ5eHR3ZWIiLCJhdmF0YXIiOiJ1c2VySW5mby8yMDIzMDcxOC9OMUYxNGJ5NmRPLmpwZyIsImV4cCI6MTc2ODkyNzY3NywiaWF0IjoxNjk2OTI3Njc3LCJqdGkiOiIxIiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9TVVBFUiIsIkFETUlOIl19.3SYoNceGBTubVsikOb7aFpm5medHG-AUpVgcBdb2ao8'
......@@ -36,8 +36,8 @@
"quickapp": {},
/* 小程序特有相关 */
"mp-weixin": {
/* "appid": "wxa719209ed933d667",*/
"appid": "wx568d02f6352efd49",
"appid": "wxa719209ed933d667",
/* "appid": "wx568d02f6352efd49",*/
"setting": {
"urlCheck": false,
"es6": true,
......
......@@ -29,7 +29,7 @@
</view>
</template>
<script lang="ts">
import {Component} from "vue-facing-decorator";
import {Component, Hook} from "vue-facing-decorator";
import {onLoad, onShow} from "@dcloudio/uni-app";
import {Auction} from "lib/src/entity/auction/entity/Auction";
import {AuctionController} from "@/api/AuctionController";
......@@ -116,6 +116,17 @@ export default class AuctionSessionPage extends AuctionVehicleFilter {
});
}
@Hook('onShareAppMessage')
onShareAppMessage(res: any) {
console.debug('分享来源:', res.from);
const title = `优加车拍 ${this.auction.auctionName}`;
return {
title: title,
path: '/module/auction/AuctionSessionPage?actionId='+this.auctionId,
imageUrl: 'https://dj-oss-fastdfs-release.oss-cn-shenzhen.aliyuncs.com/auction/f0e4f6add8afa743af09294e791c2f9b.png', // 分享图片(建议尺寸 5:4,默认使用页面截图)
};
}
}
</script>
......
......@@ -298,12 +298,12 @@ export default class AuctionVehicleDetail extends Vue {
{id: 2, label: '过户次数', value: this.vehicle.ownership.transferCount + '次'},
{id: 3, label: '使用性质', value: Ownership.usageTypeLabel(this.vehicle)},
{id: 4, label: '排放标准', value: '国' + this.vehicle.coreSpecs.emissionStandard},
{id: 5, label: '所在地', value: this.vehicle.ownership.carProvinceName ?? '-'},
{id: 5, label: '所在地', value: this.vehicle.ownership.carCityName ?? '-'},
{id: 6, label: '上牌时间', value: this.vehicle.ownership.registrationDate ?? '-'},
{id: 7, label: '交强险到期', value: this.vehicle.licenseInfo.compulsoryInsuranceExpiry ?? '-'},
{id: 8, label: '年检到期', value: this.vehicle.licenseInfo.annualInspectionExpiry ?? '-'},
{id: 9, label: '车身颜色', value: this.vehicle.coreSpecs.exteriorColor ?? '-'},
{id: 10, label: '车辆网点', value: this.vehicle.venue?.venueName ?? '-'}
// {id: 10, label: '车辆网点', value: this.vehicle.venue?.venueName ?? '-'}
];
}
......
......@@ -106,7 +106,7 @@
</template>
<script lang="ts">
import {Component} from "vue-facing-decorator";
import {Component, Hook} from "vue-facing-decorator";
import {Auction} from "lib/src/entity/auction/entity/Auction";
import {onLoad, onShow} from "@dcloudio/uni-app";
import {AuctionController} from "@/api/AuctionController";
......@@ -270,6 +270,18 @@ export default class AuctionPage extends PaginationComponent<Auction> {
uni.navigateTo({url: url});
}
// 定义分享内容(必写)
@Hook('onShareAppMessage')
onShareAppMessage(res: any) {
console.debug('分享来源:', res.from);
const title = `优加车拍`;
return {
title: title,
path: '/pages/tabbar/AuctionPage',
imageUrl: 'https://dj-oss-fastdfs-release.oss-cn-shenzhen.aliyuncs.com/auction/f0e4f6add8afa743af09294e791c2f9b.png', // 分享图片(建议尺寸 5:4,默认使用页面截图)
};
}
}
</script>
......
......@@ -89,7 +89,7 @@
</van-dialog>
</template>
<script lang="ts">
import {Component, Vue} from "vue-facing-decorator";
import {Component, Hook, Vue} from "vue-facing-decorator";
import {onLoad, onShow} from "@dcloudio/uni-app";
import {CarouselController} from "@/api/CarouselController";
import {Carousel} from "lib/src/entity/business/entity/Carousel";
......@@ -295,6 +295,19 @@ export default class HomePage extends Vue {
}
}
// 定义分享内容(必写)
@Hook('onShareAppMessage')
onShareAppMessage(res: any) {
console.debug('分享来源:', res.from);
const title = `优加车拍`;
return {
title: title,
path: '/pages/tabbar/HomePage',
imageUrl: 'https://dj-oss-fastdfs-release.oss-cn-shenzhen.aliyuncs.com/auction/f0e4f6add8afa743af09294e791c2f9b.png', // 分享图片(建议尺寸 5:4,默认使用页面截图)
};
}
}
</script>
......
......@@ -7,10 +7,10 @@
</view>
<!-- <van-empty v-else image="/static/images/empty_2.png" description="未找到相关车源"/>-->
<!-- </scroll-view>-->
<template v-if="contents.length<20">
<like-auction-vehicles :page-size="20-contents.length"></like-auction-vehicles>
<view style="font-size: 12px;color: #666666;text-align: center">已为您展示周边城市的优质⻋源</view>
</template>
<!-- <template v-if="contents.length<20">-->
<!-- <like-auction-vehicles :page-size="20-contents.length"></like-auction-vehicles>-->
<!-- <view style="font-size: 12px;color: #666666;text-align: center">已为您展示周边城市的优质⻋源</view>-->
<!-- </template>-->
</template>
......@@ -43,8 +43,11 @@ export default class RecommendAuctionVehicles extends PaginationComponent<Auctio
});
onLoad((option) => {
this.buildQueryForm({
cities: [this.currentCity.code, {label: '当前城市编码', field: 'auction.cities', operator: Operator.like}],
// cities: [this.currentCity.code, {label: '当前城市编码', field: 'auction.cities', operator: Operator.like}],
});
if(this.currentCity.code){
this.pagination.putData("cities", this.currentCity.code);
}
this.initSearch();
});
}
......@@ -53,7 +56,8 @@ export default class RecommendAuctionVehicles extends PaginationComponent<Auctio
watchCurrentCity(newVal: City, oldVal: City): void {
console.log(newVal);
if (newVal && oldVal && newVal.code !== oldVal.code) {
this.pagination.queryForm.cities = newVal.code;
this.pagination.putData("cities", newVal.code);
// this.pagination.queryForm.cities = newVal.code;
this.pageReload();
}
}
......
......@@ -17,6 +17,15 @@ export class CommissionRule extends AuditingEntity {
* 规则名称
*/
ruleName: string;
/**
* 最低估值
*/
minPrice: number;
/**
* 最高估值
*/
maxPrice: number;
/**
* 规则详情
*/
......
......@@ -1304,6 +1304,14 @@
<DT arr="0" ds="Enum" en="'ACCOUNT','TAG','ALL'" id="706" ln="null" sc="null" sg="1" un="0"/>
<Cm>适用人群</Cm>
</Cl>
<Cl au="0" df="0" nm="MIN_PRICE" nu="0">
<DT arr="0" ds="Decimal" en="" id="3" ln="16" sc="2" sg="1" un="0"/>
<Cm>最低成交价</Cm>
</Cl>
<Cl au="0" df="0" nm="MAX_PRICE" nu="0">
<DT arr="0" ds="Decimal" en="" id="3" ln="16" sc="2" sg="1" un="0"/>
<Cm>最高成交价</Cm>
</Cl>
<UniqueConstraints/>
<SchTrHis/>
</Tbl>
......@@ -3556,7 +3564,7 @@
<svg path=""/>
</DiaProps>
<TbGl bkCl="#6699ff64" h="178" sch="schemaA" tbl="transaction" w="464" x="514" y="461"/>
<TbGl bkCl="#6699ff64" h="434" sch="schemaA" tbl="withdraw" w="526" x="1136" y="787"/>
<TbGl bkCl="#6699ff64" h="450" sch="schemaA" tbl="withdraw" w="526" x="1136" y="787"/>
<TbGl bkCl="#6699ff64" h="450" sch="schemaA" tbl="account" w="518" x="1131" y="181"/>
<TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="bank_account" w="436" x="1486" y="1317"/>
<TbGl bkCl="#6699ff64" h="178" sch="schemaA" tbl="deposit" w="475" x="156" y="133"/>
......@@ -3944,7 +3952,7 @@
<svg path=""/>
</DiaProps>
<TbGl bkCl="#6699ff64" h="210" sch="schemaA" tbl="price_rule" w="496" x="149" y="166"/>
<TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="commission_rule" w="472" x="1590" y="228"/>
<TbGl bkCl="#6699ff64" h="274" sch="schemaA" tbl="commission_rule" w="472" x="1590" y="228"/>
<TbGl bkCl="#6699ff64" h="274" sch="schemaA" tbl="deposit_rule" w="516" x="885" y="158"/>
<TbGl bkCl="#6699ff64" h="290" sch="schemaA" tbl="carousel" w="396" x="108" y="459"/>
<TbGl bkCl="#6699ff64" h="210" sch="schemaA" tbl="agreement" w="430" x="1174" y="581"/>
......@@ -4781,6 +4789,13 @@
<RnmCh ObjCls="Column" ParCls="Table" ParNme="refund" SupCls="Schema" SupNme="schemaA">
<Rnm nNm="WITHDRAW_ID" oNm="WITHDRAW_ID"/>
</RnmCh>
<RnmCh ObjCls="Column" ParCls="Table" ParNme="commission_rule" SupCls="Schema" SupNme="schemaA">
<Rnm nNm="MIN_PRICE" oNm="MIN_PRICE"/>
<Rnm nNm="MIN_PRICE" oNm="MIN_PRICE"/>
</RnmCh>
<RnmCh ObjCls="Column" ParCls="Table" ParNme="commission_rule" SupCls="Schema" SupNme="schemaA">
<Rnm nNm="MAX_PRICE" oNm="MAX_PRICE"/>
</RnmCh>
</RnmMgr>
<BasicOptionMgr>
<Name>dbDocOptionMgr</Name>
......
......@@ -214,4 +214,12 @@ ALTER TABLE withdraw ADD REFUND_AMOUNT DECIMAL(16, 2) DEFAULT 0
COMMENT '已退款金额' NOT NULL after REJECT_REASON;
ALTER TABLE withdraw ADD AUDITOR VARCHAR(32)
COMMENT '审核人' NULL after REFUND_AMOUNT;
\ No newline at end of file
COMMENT '审核人' NULL after REFUND_AMOUNT;
# 2026-01-18
ALTER TABLE commission_rule ADD MIN_PRICE DECIMAL(16, 2) DEFAULT 0
COMMENT '最低成交价' NOT NULL after APPLICABLE_TYPE;
ALTER TABLE commission_rule ADD MAX_PRICE DECIMAL(16, 2) DEFAULT 0
COMMENT '最高成交价' NOT NULL after MIN_PRICE;
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!