From 7465b4f64339b353dbd7ea448e28ab1f213b878a Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 12 Jan 2022 10:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../complaint-detail.component.html | 19 +++- .../complaint-detail.component.ts | 101 ++++++++++++++++-- .../complaint/complaint.component.html | 36 +------ .../complaint/complaint.component.ts | 29 +++-- .../components/bulk/bulk.component.html | 4 +- 5 files changed, 134 insertions(+), 55 deletions(-) diff --git a/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.html b/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.html index b1012bcb..97817a28 100644 --- a/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.html +++ b/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.html @@ -1,7 +1,7 @@ - + + + +

投诉单号:{{datailList?.id}}

@@ -46,8 +49,20 @@ 运多星运营后台
操作人员:{{datailList?.complainantIdLabel}}
+
处理状态:{{datailList?.complaintStatusLabel}}
处理详情:{{datailList?.handleDetails}}
处理结果:{{datailList?.handleResult}}
+ + + + + + + + + + + \ No newline at end of file diff --git a/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.ts b/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.ts index 061230ad..e85ca1ca 100644 --- a/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.ts +++ b/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.ts @@ -14,15 +14,13 @@ import { OrderManagementService } from '../../services/order-management.service' }) export class OrderManagementComplaintDetailComponent implements OnInit { @ViewChild('sf', { static: false }) sf!: SFComponent; + @ViewChild('sfView', { static: false }) sfView!: SFComponent; ui: SFUISchema = {}; + uiView: SFUISchema = {}; + isVisibleRE = false; + channelId: any; schema: SFSchema = {}; - // abnormalReason = [ - // '司机装货轨迹异常', - // '司机卸货轨迹异常', - // '车辆装货轨迹异常', - // '司机位置未移动,或运输途中未打开APP', - // '运单轨迹严重异常' - // ] + schemaView: SFSchema = {}; i: any; datailList: any; id: string = ''; @@ -35,13 +33,32 @@ export class OrderManagementComplaintDetailComponent implements OnInit { { this.getDetail(this.id); this.initSF(); + this.initSTAudit() } } + initSTAudit() { + this.schemaView = { + properties: { + handleResult: { + title: '处理结果', + type: 'string', + maxLength: 50, + ui: { + placeholder: '最多不超过50字', + widget: 'textarea', + autosize: { minRows: 3, maxRows: 6 } + }, + }, + }, + required: ['handleResult'] + }; + this.uiView = { '*': { spanLabelFixed: 110, grid: { span: 24 } } }; + } initSF() { this.schema = { properties: { - complaintCause: { + complaintCauseLabel: { title: '投诉原因', type: 'string', maxLength: 30, @@ -124,5 +141,73 @@ export class OrderManagementComplaintDetailComponent implements OnInit { goBack() { window.history.go(-1) } + /* + * 审核关闭弹窗 + view: 1 + 浮动费用: 0 + 查看评价: 3 + */ + handleCancel(type: string) { + const paramsa = { + ...this.sfView.value, + handleStatus: 0, + id: this.channelId + } + this.service.request(this.service.$api_get_dealWithComplaint, paramsa).subscribe((res: any) =>{ + console.log(res) + if(res) { + this.service.msgSrv.success('已拒绝!') + this.isVisibleRE = false + this.getDetail(this.id); + } else{ + this.service.msgSrv.error(res?.msg) + } + }) + this.isVisibleRE = false + } + Cancel() { + this.isVisibleRE = false + } + handleCancel2() { + const paramsa = { + id: this.channelId + } + this.service.request(this.service.$api_get_canelComplaint, paramsa).subscribe((res: any) =>{ + console.log(res) + if(res) { + this.service.msgSrv.success('已拒绝!') + this.isVisibleRE = false + this.getDetail(this.id); + } else{ + this.service.msgSrv.error(res?.msg) + } + }) + this.isVisibleRE = false + } + /** + * 审核通过按钮 + */ + handleOK() { + const paramsa = { + ...this.sfView.value, + handleStatus: 1, + id: this.channelId + } + this.service.request(this.service.$api_get_dealWithComplaint, paramsa).subscribe((res: any) =>{ + console.log(res) + if(res) { + this.service.msgSrv.success('已通过!') + this.isVisibleRE = false + this.getDetail(this.id); + + } else{ + this.service.msgSrv.error(res?.msg) + } + }) + } + viewEvaluate() { + this.isVisibleRE = true + this.channelId = this.id; + } } diff --git a/src/app/routes/order-management/components/complaint/complaint.component.html b/src/app/routes/order-management/components/complaint/complaint.component.html index 0b6fcc42..1e9ba01e 100644 --- a/src/app/routes/order-management/components/complaint/complaint.component.html +++ b/src/app/routes/order-management/components/complaint/complaint.component.html @@ -1,7 +1,7 @@ - -
{{item.no}}
-
- -
- {{item.no}} -
-
- -
-

预付:¥200.00

-

到付:¥200.00

-

油卡:¥200.00

-

回单付:¥200.00

-

小计:¥200.00

-

附加费:¥200.00

-
-
diff --git a/src/app/routes/order-management/components/complaint/complaint.component.ts b/src/app/routes/order-management/components/complaint/complaint.component.ts index 645f96f9..f8ddb9de 100644 --- a/src/app/routes/order-management/components/complaint/complaint.component.ts +++ b/src/app/routes/order-management/components/complaint/complaint.component.ts @@ -22,6 +22,7 @@ export class OrderManagementComplaintComponent implements OnInit { isVisibleRE = false; _$expand = false; channelId: any; + resourceStatus: any; @ViewChild('st') private readonly st!: STComponent; @ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sfView', { static: false }) sfView!: SFComponent; @@ -42,23 +43,19 @@ export class OrderManagementComplaintComponent implements OnInit { ]; tabs = [ { name: '全部', - type: 5, - count: 0, + type: 0, }, { name: '待处理', - type: 5, - count: 0, + type: 1, }, { name: '已处理', - type: 5, - count: 0, + type: 2, }, { name: '已撤销', - type: 5, - count: 0, + type: 3, } ]; constructor( @@ -71,7 +68,12 @@ export class OrderManagementComplaintComponent implements OnInit { * 查询参数 */ get reqParams() { + const a:any = {}; + if(this.resourceStatus) { + a.complaintStatus = this.resourceStatus + } return { + ...a, ...this.sf?.value, }; } @@ -162,7 +164,7 @@ export class OrderManagementComplaintComponent implements OnInit { title: '投诉人', className: 'text-center', width: '120px', - render: 'complainant' + index: 'complainantName' }, { title: '操作', @@ -173,6 +175,7 @@ export class OrderManagementComplaintComponent implements OnInit { { text: '处理', click: (_record) => this.viewEvaluate(_record), + iif: (item) => item.complaintStatus == 1 }, { text: '查看', @@ -241,6 +244,11 @@ export class OrderManagementComplaintComponent implements OnInit { selectChange(e: number) { console.log(e); + this.resourceStatus = e; + this.initST(); + setTimeout(() => { + this.st.load(); + }, 500); } /** * 导入货源 @@ -269,6 +277,7 @@ export class OrderManagementComplaintComponent implements OnInit { if(res) { this.service.msgSrv.success('已拒绝!') this.isVisibleRE = false + this.st.reload(1) } else{ this.service.msgSrv.error(res?.msg) } @@ -287,6 +296,7 @@ export class OrderManagementComplaintComponent implements OnInit { if(res) { this.service.msgSrv.success('已拒绝!') this.isVisibleRE = false + this.st.reload(1) } else{ this.service.msgSrv.error(res?.msg) } @@ -307,6 +317,7 @@ export class OrderManagementComplaintComponent implements OnInit { if(res) { this.service.msgSrv.success('已通过!') this.isVisibleRE = false + this.st.reload(1) } else{ this.service.msgSrv.error(res?.msg) } diff --git a/src/app/routes/supply-management/components/bulk/bulk.component.html b/src/app/routes/supply-management/components/bulk/bulk.component.html index 541ca788..a569602a 100644 --- a/src/app/routes/supply-management/components/bulk/bulk.component.html +++ b/src/app/routes/supply-management/components/bulk/bulk.component.html @@ -1,7 +1,7 @@