Commit ad8e3fb3 by zhangxw

联调修改

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