Commit ad8e3fb3 by zhangxw

联调修改

1 parent 005102a7
......@@ -85,8 +85,8 @@ export class VehicleController{
/**
*/
static getVehicleCountByState(axios:AxiosStatic): Promise<AxiosResponse<any>> {
return axios.get('vehicle/getVehicleCountByState');
static getVehicleCountByState(axios:AxiosStatic, params: any): Promise<AxiosResponse<any>> {
return axios.get('vehicle/getVehicleCountByState', params);
}
/**
......
......@@ -319,7 +319,6 @@ export default class AuctionForm extends FormComponent<Auction> {
this.formState.aucvehDuration = 30;
this.resetDelayUnit = 'second';
this.resetDelayDurationUnit = 'second';
this.formState.beforeEndMinute = 5;
this.formState.delayMinute = 3;
break;
......@@ -328,7 +327,7 @@ export default class AuctionForm extends FormComponent<Auction> {
AuctionController.getAuctionDetailById(this.axios, this.auctionId).then(res => {
const auction: Auction = res.data;
// @ts-ignore
auction.cities = auction.cities.map(item => [item.slice(0, 2) + '0000', item]);
auction.cities = auction.cities?.map(item => [item.slice(0, 2) + '0000', item]);
this.objectToKeys(auction.accountTags, 'tagId');
const durationMinute = dayjs(auction.auctionEndTime).diff(auction.auctionStartTime) / 60000;
this.duration = (durationMinute % 60) === 0 ? 'hour' : 'minute';
......
......@@ -60,6 +60,9 @@
:pagination="pageState" :row-key="record => record.id" :scroll="{ y: 'calc(100vh - 288px)' }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'regionName'">
<span>{{ `${record.provinceName}-${record.regionName}` }}</span>
</template>
<template v-if="column.key === 'status'">
<a-switch @change="handleEnableDisable(record)" v-model:checked="record.status" />
<span style="padding-left: 8px;">{{ record.status ? '启用' : '禁用' }}</span>
......
......@@ -240,6 +240,7 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
this.selectIds = [];
this.selectedItems = [];
this.pageReload();
this.getinspectOrderCountByStatus()
}
//重置查询条件
......@@ -247,6 +248,7 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
this.selectIds = [];
this.selectedItems = [];
this.pageReset();
this.getinspectOrderCountByStatus()
}
// 新增工单 编辑
......@@ -280,6 +282,7 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
}
this.loading = true;
this.pagination.reload().then(res => { }).finally(() => this.loading = false);
this.getinspectOrderCountByStatus()
}
onSelectChange(selectedRowKeys: number[], selectedRows: []): void {
......
......@@ -182,6 +182,7 @@ export default class ManualIssuanceModal extends Vue {
emits: {
handleOk: (accounts: Account[]) => {
modal.destroy();
console.log(1111111)
if (!this.form.accounts) {
this.form.accounts = [];
}
......@@ -207,9 +208,9 @@ export default class ManualIssuanceModal extends Vue {
formRef.validate().then(() => {
DiscountController.couponManualIssuance(this.axios, {
templateId: this.form.templateId,
// applicableType: this.form.applicableType,
accountIds: this.form.accounts?.map(account => account.accountId) ?? [],
// accountTags: this.form.accountTags ?? [],
targetType: this.form.applicableType === 'ACCOUNT' ? 2 : this.form.applicableType === 'TAG' ? 3 : 1,
tagIds: this.form.applicableType === 'TAG' ? this.form.accountTags?.map(val => val.value) : [],
targetPhoneNumbers: this.form.applicableType === 'ACCOUNT' ? this.form.accounts?.map(account => account.mobile) : [],
remark: this.form.remark,
}).then((res) => {
let { code, data, message: msg } = res.data;
......
......@@ -159,7 +159,7 @@
size="small">查看订单</a-button>
<a-button type="link" v-if="record.couponStatus === 2" @click="handleVehicleProfile(record)"
size="small">车辆档案</a-button>
<a-button type="link" v-if="(record.couponStatus === 3 || record.couponStatus === 4) && record.distributionType === 2" @click="handleReissue(record)"
<a-button type="link" v-if="record.canReissue" @click="handleReissue(record)"
size="small">重新发放</a-button>
</template>
</template>
......
......@@ -63,7 +63,7 @@ export default class AppraiseVehiclePricePage extends PaginationComponent<Vehicl
@Security.Getter hasPrivilege;
tabKey = "TO_BE_PRICED";
tabKey = "";
/**
* 表格列配置
*/
......@@ -132,6 +132,7 @@ export default class AppraiseVehiclePricePage extends PaginationComponent<Vehicl
switch (this.tabKey) {
case "":
this.pagination.addDefaultFilter('vehicleState', ['TO_BE_PRICED', 'PRICED'], Operator.in);
this.pagination.removeData('auditState');
break;
case "TO_BE_PRICED":
this.pagination.addDefaultFilter('vehicleState', ['TO_BE_PRICED'], Operator.in);
......@@ -151,6 +152,7 @@ export default class AppraiseVehiclePricePage extends PaginationComponent<Vehicl
break;
}
this.loading = true;
this.pageReset();
this.pagination.reload().then(res => {
// this.loadVehicleCount();
}).finally(() => this.loading = false);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!