Commit 292e88dd authored by 沈翠玲's avatar 沈翠玲

优化

parent 009c4713
......@@ -467,6 +467,7 @@
trackTime: form.trackTime,
nextTime: form.nextTime,
phoneResultStatus: form.phoneResultStatus,
auditStatus: 'un_audit',
followStatus: resuleObj.childrenlabel,
remark: form.remark,
voices: form.voices.map((v) => v.url),
......
......@@ -95,6 +95,16 @@
const paramCallback = (param) => {
const obj = JSON.parse(JSON.stringify(param));
obj['auditStatus'] = activeName.value
if (obj['trackTime']) {
if (obj['trackTime'][0]) obj['trackTimeBegin'] = obj['trackTime'][0];
if (obj['trackTime'][1]) obj['trackTimeEnd'] = obj['trackTime'][1];
delete obj['trackTime'];
}
if (obj['nextTime']) {
if (obj['nextTime'][0]) obj['nextTrackTimeBegin'] = obj['nextTime'][0];
if (obj['nextTime'][1]) obj['nextTrackTimeEnd'] = obj['nextTime'][1];
delete obj['nextTime'];
}
return obj;
};
const callTelephone = (row, type) => {
......@@ -110,7 +120,7 @@
return {
columns: [
{ type: 'checkbox', title: '', width: 40 },
{ field: 'id', title: '跟进记录ID', width: 90 },
{ field: 'trackRecord.id', title: '跟进记录ID', width: 90 },
{
field: 'caseId',
title: '案件ID',
......@@ -127,37 +137,37 @@
},
},
{
field: 'trackTime',
field: 'trackRecord.trackTime',
title: '跟进日期',
width: 100,
search: {
el: 'date-picker',
props: { type: 'datetime', valueFormat: 'YYYY-MM-DD HH:mm:ss' },
props: { type: 'daterange', valueFormat: 'YYYY-MM-DD' }
},
},
{
field: 'nextTime',
field: 'trackRecord.nextTime',
title: '下次跟进时间',
width: 110,
search: {
el: 'date-picker',
props: { type: 'datetime', valueFormat: 'YYYY-MM-DD HH:mm:ss' },
props: { type: 'daterange', valueFormat: 'YYYY-MM-DD' },
},
},
{
field: 'guarantor.name',
field: 'trackRecord.guarantor.name',
title: '联系人姓名',
width: 110,
search: { el: 'input', props: { clearable: true }, key: 'guarantorName' },
},
{
field: 'guarantor.phone',
field: 'trackRecord.guarantor.phone',
title: '联系人号码',
width: 110,
search: { el: 'input', props: { clearable: true }, key: 'guarantorPhone' },
},
{
field: 'followStatus',
field: 'trackRecord.followStatus',
title: '拨打跟进结果',
width: 120,
enum: followStatusOpt,
......@@ -167,8 +177,8 @@
default: ({ row }) => {
return (
<>
{row.followStatus
? followStatusOpt.find((v) => v.value === row.followStatus).label
{row.trackRecord.followStatus
? followStatusOpt.find((v) => v.value === row.trackRecord.followStatus).label
: ''}
</>
);
......@@ -176,7 +186,7 @@
},
},
{
field: 'phoneResultStatus',
field: 'trackRecord.phoneResultStatus',
title: '拨打处置状态',
width: 120,
enum: phoneResultStatusOpt,
......@@ -186,8 +196,8 @@
default: ({ row }) => {
return (
<>
{row.phoneResultStatus
? phoneResultStatusOpt.find((v) => v.value === row.phoneResultStatus).label
{row.trackRecord.phoneResultStatus
? phoneResultStatusOpt.find((v) => v.value === row.trackRecord.phoneResultStatus).label
: ''}
</>
);
......@@ -195,15 +205,15 @@
},
},
{
field: 'auditStatus',
field: 'trackRecord.auditStatus',
title: '稽核状态',
width: 80,
slots: {
default: ({ row }) => {
return (
<>
{row.auditStatus
? auditStatusOpt.find((v) => v.value === row.auditStatus).label
{row.trackRecord.auditStatus
? auditStatusOpt.find((v) => v.value === row.trackRecord.auditStatus).label
: ''}
</>
);
......@@ -222,12 +232,12 @@
width: 80,
slots: {
default: ({ row, rowIndex }) => {
if (row.voices && row.voices.length > 0) {
if (row.trackRecord.voices && row.trackRecord.voices.length > 0) {
return (
<>
{row.voices.map((item, index) => (
{row.trackRecord.voices.map((item, index) => (
<el-icon>
<Download onClick={() => download(item)} />
<Download onClick={() => download(row.trackRecord)} />
</el-icon>
))}
</>
......@@ -242,11 +252,11 @@
width: 80,
slots: {
default: ({ row, rowIndex }) => {
if (row.images && row.images.length > 0) {
if (row.trackRecord.images && row.trackRecord.images.length > 0) {
return (
<>
<el-icon>
<Picture onClick={() => preview(row, 'images')} />
<Picture onClick={() => preview(row.trackRecord, 'images')} />
</el-icon>
</>
);
......@@ -260,11 +270,11 @@
width: 80,
slots: {
default: ({ row, rowIndex }) => {
if (row.notes && row.notes.length > 0) {
if (row.trackRecord.notes && row.trackRecord.notes.length > 0) {
return (
<>
<el-icon>
<Picture onClick={() => preview(row, 'notes')} />
<Picture onClick={() => preview(row.trackRecord, 'notes')} />
</el-icon>
</>
);
......@@ -282,7 +292,7 @@
return (
<>
<el-icon>
<Picture onClick={() => preview(row, 'others')} />
<Picture onClick={() => preview(row.trackRecord, 'others')} />
</el-icon>
</>
);
......
......@@ -179,7 +179,7 @@
field: 'tenantTime',
title: '分配中心日期',
width: 100,
search: { el: 'date-picker', props: { type: 'date', valueFormat: 'YYYY-MM-DD' } },
search: { el: 'date-picker', props: { type: 'daterange', valueFormat: 'YYYY-MM-DD' } },
},
{
field: 'commissionAmount',
......@@ -191,7 +191,7 @@
field: 'cpeDate',
title: '分配CPE日期',
width: 100,
search: { el: 'date-picker', props: { type: 'date', valueFormat: 'YYYY-MM-DD' } },
search: { el: 'date-picker', props: { type: 'daterange', valueFormat: 'YYYY-MM-DD' } },
},
{
field: 'borrower.name',
......
......@@ -446,6 +446,7 @@
phoneResultStatus: form.phoneResultStatus,
followStatus: resuleObj.childrenlabel,
remark: form.remark,
auditStatus: 'un_audit',
voices: form.voices.map((v) => v.url),
images: form.images.map((v) => v.url),
notes: form.notes.map((v) => v.url),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment