bug修改
This commit is contained in:
@@ -142,7 +142,7 @@
|
|||||||
class="j-table-force-nowrap"
|
class="j-table-force-nowrap"
|
||||||
>
|
>
|
||||||
<span slot="action" class="action-span-cell" slot-scope="record">
|
<span slot="action" class="action-span-cell" slot-scope="record">
|
||||||
<a @click="lookLogistics()" v-if="record.postStatus === 1">查看物流</a>
|
<a @click="lookLogistics(record)" v-if="record.postStatus === 1">查看物流</a>
|
||||||
</span>
|
</span>
|
||||||
<!-- <p slot="expandedRowRender" slot-scope="record" style="margin: 0">-->
|
<!-- <p slot="expandedRowRender" slot-scope="record" style="margin: 0">-->
|
||||||
<!-- {{ record.sendDate }}-->
|
<!-- {{ record.sendDate }}-->
|
||||||
@@ -227,7 +227,7 @@ const columns = [
|
|||||||
{
|
{
|
||||||
title: '快递',
|
title: '快递',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'sendMethod'
|
dataIndex: 'sendMethod_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '快递单号',
|
title: '快递单号',
|
||||||
@@ -324,8 +324,9 @@ export default {
|
|||||||
/*
|
/*
|
||||||
* 查看物流
|
* 查看物流
|
||||||
* */
|
* */
|
||||||
lookLogistics() {
|
lookLogistics(record) {
|
||||||
window.open('https://www.ems.com.cn/', '_blank')
|
const com = Number(record.sendMethod) === 1 && 'ems' || 'shunfeng'
|
||||||
|
window.open(`https://www.kuaidi100.com/chaxun?com=${ com }&nu=${ record.postNo }`)
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
* 去合同详情 传入合同id
|
* 去合同详情 传入合同id
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<template v-if="statusType && statusNo">
|
<template v-if="statusType && statusNo">
|
||||||
|
<!-- placement="topLeft"-->
|
||||||
<a-tooltip
|
<a-tooltip
|
||||||
overlay-class-name="status-tooltip"
|
overlay-class-name="status-tooltip"
|
||||||
placement="topLeft"
|
|
||||||
:title="currentTitle"
|
:title="currentTitle"
|
||||||
arrow-point-at-center
|
arrow-point-at-center
|
||||||
:mouse-enter-delay="0.1"
|
:mouse-enter-delay="0.1"
|
||||||
@@ -14,7 +14,6 @@
|
|||||||
<template v-else>
|
<template v-else>
|
||||||
<img :src="status" @click="s"/>
|
<img :src="status" @click="s"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -147,6 +146,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 显示的模板数据,即根据返回值怎么处理数据
|
* 显示的模板数据,即根据返回值怎么处理数据
|
||||||
|
* 判断是否存在一句话里所有变量为null,存在就不显示那句话了
|
||||||
* @param item -传入的item的值
|
* @param item -传入的item的值
|
||||||
* @return 返回一个模板字符串用于后续显示,可按照需求进行更改
|
* @return 返回一个模板字符串用于后续显示,可按照需求进行更改
|
||||||
*/
|
*/
|
||||||
@@ -155,11 +155,17 @@ export default {
|
|||||||
console.log(item)
|
console.log(item)
|
||||||
// 来款
|
// 来款
|
||||||
if (this.statusKey === 'paymentRecord') {
|
if (this.statusKey === 'paymentRecord') {
|
||||||
result = `${ item.paymentDate }到账${ item.amountReceived }`
|
if (item.paymentDate || item.amountReceived) {
|
||||||
|
result = `${ item.paymentDate }到账${ item.amountReceived }`
|
||||||
|
}
|
||||||
} else if (this.statusKey === 'bill') {
|
} else if (this.statusKey === 'bill') {
|
||||||
result = `${ item.billDate }新增发票,发票单号:${ item.billNo }`
|
if (item.billDate || item.billNo) {
|
||||||
|
result = `${ item.billDate }新增发票,发票单号:${ item.billNo }`
|
||||||
|
}
|
||||||
} else if (this.statusKey === 'mail') {
|
} else if (this.statusKey === 'mail') {
|
||||||
result = `${ item.sendDate }新增邮寄信息,邮寄单号:${ item.postNo }`
|
if (item.sendDate || item.postNo) {
|
||||||
|
result = `${ item.sendDate }新增邮寄信息,邮寄单号:${ item.postNo }`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
@@ -173,6 +179,7 @@ export default {
|
|||||||
<style>
|
<style>
|
||||||
/* 自定义tooltip下样式问题*/
|
/* 自定义tooltip下样式问题*/
|
||||||
.status-tooltip .ant-tooltip-inner {
|
.status-tooltip .ant-tooltip-inner {
|
||||||
|
width: 16rem;
|
||||||
white-space: pre-wrap !important;
|
white-space: pre-wrap !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'startTime',
|
dataIndex: 'startTime',
|
||||||
width: 160,
|
width: 160,
|
||||||
customRender: (text, record) => (<j-ellipsis value={record.startTime + record.endTime} length={20}></j-ellipsis>)
|
customRender: (text, record) => (<j-ellipsis value={record.startTime + '~' + record.endTime} length={20}></j-ellipsis>)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '召开地点',
|
title: '召开地点',
|
||||||
|
|||||||
Reference in New Issue
Block a user