bug修改、菜单三角形

This commit is contained in:
zhaoxiao
2021-10-15 15:48:59 +08:00
parent 3c4d61bff1
commit e3eef7508a
10 changed files with 258 additions and 159 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<template> <template>
<!-- 父组件的文件id如果是异步获取的 需要加上v-if判断--> <!-- 父组件的文件id如果是异步获取的 需要加上v-if判断-->
<div style="display: inline-block"> <div>
<!-- 2021-10-09 author:zx 把span换成了div,实现多个文件显示换行--> <!-- 2021-10-09 author:zx 把span换成了div,实现多个文件显示换行-->
<div v-for="(item) of fileList" :key="item.id">{{ item.name + ' ' }} <div v-for="(item) of fileList" :key="item.id">{{ item.name + ' ' }}
<span class="m-l-4 color-blue" @click="handleDownLoad(item)">下载</span> <span class="m-l-4 color-blue" @click="handleDownLoad(item)">下载</span>
+131 -106
View File
@@ -20,7 +20,7 @@
<span v-if="device === 'desktop'">欢迎进入标准所协同工作平台</span> <span v-if="device === 'desktop'">欢迎进入标准所协同工作平台</span>
<span v-else>Jero-Boot</span> <span v-else>Jero-Boot</span>
<user-menu /> <user-menu/>
</div> </div>
<!-- 顶部导航栏模式 --> <!-- 顶部导航栏模式 -->
<div v-else :class="['top-nav-header-index']"> <div v-else :class="['top-nav-header-index']">
@@ -48,128 +48,128 @@
</template> </template>
<script> <script>
import UserMenu from '../tools/UserMenu' import UserMenu from '../tools/UserMenu'
import SMenu from '../menu/' import SMenu from '../menu/'
import Logo from '../tools/Logo' import Logo from '../tools/Logo'
import { mixin } from '@/utils/mixin.js' import { mixin } from '@/utils/mixin.js'
export default { export default {
name: 'GlobalHeader', name: 'GlobalHeader',
components: { components: {
UserMenu, UserMenu,
SMenu, SMenu,
Logo, Logo
},
mixins: [mixin],
props: {
mode: {
type: String,
// sidemenu, topmenu
default: 'sidemenu'
}, },
mixins: [mixin], menus: {
props: { type: Array,
mode: { required: true
type: String,
// sidemenu, topmenu
default: 'sidemenu'
},
menus: {
type: Array,
required: true
},
theme: {
type: String,
required: false,
default: 'dark'
},
collapsed: {
type: Boolean,
required: false,
default: false
},
device: {
type: String,
required: false,
default: 'desktop'
}
}, },
data() { theme: {
return { type: String,
headerBarFixed: false, required: false,
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮----- default: 'dark'
topMenuStyle: {
headerIndexLeft: {},
topNavHeader: {},
headerIndexRight: {},
topSmenuStyle: {}
},
chatStatus: '',
isIndexBool:true,
}
}, },
created() { collapsed: {
// 防止刷新页面 上面导航栏不存在 type: Boolean,
this.isIndexBool = this.$route.path === '/dashboard/analysis' required: false,
default: false
}, },
watch: { device: {
/** 监听设备变化 */ type: String,
device() { required: false,
if (this.mode === 'topmenu') { default: 'desktop'
this.buildTopMenuStyle() }
} },
}, data() {
/** 监听导航栏模式变化 */ return {
mode(newVal) { headerBarFixed: false,
if (newVal === 'topmenu') {
this.buildTopMenuStyle()
}
},
/** 监听是否是首页 */
$route(val){
this.isIndexBool = val.path === '/dashboard/analysis'
}
},
//update-end--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
mounted() {
window.addEventListener('scroll', this.handleScroll)
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮----- //update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
topMenuStyle: {
headerIndexLeft: {},
topNavHeader: {},
headerIndexRight: {},
topSmenuStyle: {}
},
chatStatus: '',
isIndexBool: true
}
},
created() {
// 防止刷新页面 上面导航栏不存在
this.isIndexBool = this.$route.path === '/dashboard/analysis'
},
watch: {
/** 监听设备变化 */
device() {
if (this.mode === 'topmenu') { if (this.mode === 'topmenu') {
this.buildTopMenuStyle() this.buildTopMenuStyle()
} }
//update-end--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
}, },
methods: { /** 监听导航栏模式变化 */
handleScroll() { mode(newVal) {
if (this.autoHideHeader) { if (newVal === 'topmenu') {
let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop this.buildTopMenuStyle()
if (scrollTop > 100) { }
this.headerBarFixed = true },
} else { /** 监听是否是首页 */
this.headerBarFixed = false $route(val) {
} this.isIndexBool = val.path === '/dashboard/analysis'
}
},
//update-end--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
mounted() {
window.addEventListener('scroll', this.handleScroll)
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
if (this.mode === 'topmenu') {
this.buildTopMenuStyle()
}
//update-end--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
},
methods: {
handleScroll() {
if (this.autoHideHeader) {
let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
if (scrollTop > 100) {
this.headerBarFixed = true
} else { } else {
this.headerBarFixed = false this.headerBarFixed = false
} }
}, } else {
toggle() { this.headerBarFixed = false
this.$emit('toggle') }
}, },
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮----- toggle() {
buildTopMenuStyle() { this.$emit('toggle')
if (this.mode === 'topmenu') { },
if (this.device === 'mobile') { //update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
// 手机端需要清空样式,否则显示会错乱 buildTopMenuStyle() {
this.topMenuStyle.topNavHeader = {} if (this.mode === 'topmenu') {
this.topMenuStyle.topSmenuStyle = {} if (this.device === 'mobile') {
this.topMenuStyle.headerIndexRight = {} // 手机端需要清空样式,否则显示会错乱
this.topMenuStyle.headerIndexLeft = {} this.topMenuStyle.topNavHeader = {}
} else { this.topMenuStyle.topSmenuStyle = {}
let rightWidth = '360px' this.topMenuStyle.headerIndexRight = {}
this.topMenuStyle.topNavHeader = { 'min-width': '165px' } this.topMenuStyle.headerIndexLeft = {}
this.topMenuStyle.topSmenuStyle = { 'width': 'calc(100% - 165px)' } } else {
this.topMenuStyle.headerIndexRight = { 'min-width': rightWidth } let rightWidth = '360px'
this.topMenuStyle.headerIndexLeft = { 'width': `calc(100% - ${rightWidth})` } this.topMenuStyle.topNavHeader = { 'min-width': '165px' }
} this.topMenuStyle.topSmenuStyle = { 'width': 'calc(100% - 165px)' }
this.topMenuStyle.headerIndexRight = { 'min-width': rightWidth }
this.topMenuStyle.headerIndexLeft = { 'width': `calc(100% - ${ rightWidth })` }
} }
} }
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
} }
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
} }
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@@ -181,9 +181,11 @@
.top-nav-header-index { .top-nav-header-index {
background: #069F99 !important; background: #069F99 !important;
.header-index-wide { .header-index-wide {
margin-left: 10px; margin-left: 10px;
.header-index-left{
.header-index-left {
background: #069F99; background: #069F99;
} }
@@ -191,9 +193,30 @@
height: @height; height: @height;
line-height: @height; line-height: @height;
} }
//去掉自带菜单选中下面的边框,添加三角形
/deep/ .ant-menu-horizontal > .ant-menu-item-selected {
border-bottom: 2px solid transparent;
&::after {
content: '';
width: 20px;
height: 12px;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 6px solid #FFFFFF;
border-top: 6px solid transparent;
position: absolute;
top: 40px;
left: 50%;
transform: translateX(-50%);
}
}
} }
.trigger { .trigger {
line-height: 64px; line-height: 64px;
&:hover { &:hover {
background: rgba(0, 0, 0, 0.05); background: rgba(0, 0, 0, 0.05);
} }
@@ -208,6 +231,7 @@
transition: background 300ms; transition: background 300ms;
/* dark 样式 */ /* dark 样式 */
&.dark { &.dark {
color: #000000; color: #000000;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
@@ -227,6 +251,7 @@
line-height: @height; line-height: @height;
} }
/* update_end author:scott date:20190220 for: 缩小首页布局顶部的高度*/ /* update_end author:scott date:20190220 for: 缩小首页布局顶部的高度*/
</style> </style>
+19 -8
View File
@@ -3,7 +3,6 @@
<template v-if="statusType && statusNo"> <template v-if="statusType && statusNo">
<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"
@@ -94,7 +93,12 @@ export default {
}else { }else {
// 应收金额不为0 都正常判断 // 应收金额不为0 都正常判断
if(this.statusNo === 0 ){ if(this.statusNo === 0 ){
return error // 开票或邮寄时,不需要发票
if ((this.statusKey === 'bill' || this.statusKey === 'mail') && this.statuObj.needInvoice === 0) {
return zero
} else {
return error
}
}else if(this.statusNo === 1){ }else if(this.statusNo === 1){
return finished return finished
}else if(this.statusNo === 2){ }else if(this.statusNo === 2){
@@ -144,6 +148,7 @@ export default {
}, },
/** /**
* 显示的模板数据,即根据返回值怎么处理数据 * 显示的模板数据,即根据返回值怎么处理数据
* 添加字段是否存在的判断
* @param item -传入的item的值 * @param item -传入的item的值
* @return 返回一个模板字符串用于后续显示,可按照需求进行更改 * @return 返回一个模板字符串用于后续显示,可按照需求进行更改
*/ */
@@ -151,12 +156,18 @@ export default {
let result = '' let result = ''
console.log(item) console.log(item)
// 来款 // 来款
if(this.statusKey === 'paymentRecord') { if (this.statusKey === 'paymentRecord') {
result = `${item.paymentDate}到账${item.amountReceived}` if (item.paymentDate || item.amountReceived) {
} else if(this.statusKey === 'bill') { result = `${ item.paymentDate }到账${ item.amountReceived }元`
result = `${item.billDate}新增发票,发票单号:${item.billNo}` }
} else if(this.statusKey === 'mail' || this.statusKey === 'payMailContract') { } else if (this.statusKey === 'bill') {
result = `${item.sendDate}新增邮寄信息,邮寄单号:${item.postNo}` if (item.billDate || item.billNo) {
result = `${ item.billDate }新增发票,发票单号:${ item.billNo }`
}
} else if (this.statusKey === 'mail') {
if (item.sendDate || item.postNo) {
result = `${ item.sendDate }新增邮寄信息,邮寄单号:${ item.postNo }`
}
} }
return result return result
} }
+45 -30
View File
@@ -10,63 +10,61 @@
<section class="base-info"> <section class="base-info">
<h3 class="title">基本信息</h3> <h3 class="title">基本信息</h3>
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="12"> <a-col :span="12" class="detail-item">
<label>项目名称:</label> <label>项目名称:</label>
<span><j-ellipsis :value="basicInfo.chargeProject" :length="20"></j-ellipsis></span> <span><j-ellipsis :value="basicInfo.chargeProject" :length="20"></j-ellipsis></span>
</a-col> </a-col>
<!-- 我的项目--款项用途--> <!-- 我的项目--款项用途-->
<a-col :span="12" v-if="projectType === 1"> <a-col :span="12" v-if="projectType === 1" class="detail-item">
<label>款项用途:</label> <label>款项用途:</label>
<span><j-ellipsis :value="basicInfo.chargeUse_dictText" :length="20"></j-ellipsis></span> <span><j-ellipsis :value="basicInfo.chargeUse_dictText" :length="20"></j-ellipsis></span>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12" class="detail-item">
<label>项目负责人:</label> <label>项目负责人:</label>
<span><j-ellipsis :value="basicInfo.principalName" :length="20"></j-ellipsis></span> <span><j-ellipsis :value="basicInfo.principalName" :length="20"></j-ellipsis></span>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12" class="detail-item">
<label>应付金额:</label> <label>应付金额:</label>
<span><j-ellipsis :value="`${basicInfo.receivableAmount}元`" :length="20"></j-ellipsis></span> <span><j-ellipsis :value="`${basicInfo.receivableAmount}元`" :length="20"></j-ellipsis></span>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12" class="detail-item">
<label>实付金额:</label> <label>实付金额:</label>
<span><j-ellipsis :value="`${basicInfo.paidAmount}元`" :length="20"></j-ellipsis></span> <span><j-ellipsis :value="`${basicInfo.paidAmount}元`" :length="20"></j-ellipsis></span>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12" class="detail-item">
<label>打包:</label> <label>打包:</label>
<span><j-ellipsis :value="basicInfo.pack_dictText" :length="20"></j-ellipsis></span> <span><j-ellipsis :value="basicInfo.pack_dictText" :length="20"></j-ellipsis></span>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12" class="detail-item">
<label>需要发票:</label> <label>需要发票:</label>
<span><j-ellipsis :value="basicInfo.needInvoice_dictText" :length="20"></j-ellipsis></span> <span><j-ellipsis :value="basicInfo.needInvoice_dictText" :length="20"></j-ellipsis></span>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12" class="detail-item">
<label>付款方式:</label> <label>付款方式:</label>
<span><j-ellipsis :value="basicInfo.chargeWay_dictText" :length="20"></j-ellipsis></span> <span><j-ellipsis :value="basicInfo.chargeWay_dictText" :length="20"></j-ellipsis></span>
</a-col> </a-col>
<!-- 合同--> <!-- 合同-->
<a-col :span="12" v-if="basicInfo.chargeWay === 2"> <a-col :span="12" v-if="basicInfo.chargeWay === 2" class="detail-item">
<label>合同号:</label> <label>合同编号:</label>
<span class="contract-num" @click="toContractDetail"><j-ellipsis :value="basicInfo.contractNum" <span class="contract-num" @click="toContractDetail"><j-ellipsis :value="basicInfo.contractNum"
:length="20"></j-ellipsis></span> :length="20"></j-ellipsis></span>
</a-col> </a-col>
<!-- 收费通知--> <!-- 收费通知-->
<a-col :span="12" v-if="basicInfo.chargeWay === 3"> <a-col :span="12" v-if="basicInfo.chargeWay === 3" class="detail-item">
<label>收费通知号:</label> <label>收费通知号:</label>
<span><j-ellipsis :value="basicInfo.chargeNoticeNo" :length="20"></j-ellipsis></span> <span><j-ellipsis :value="basicInfo.chargeNoticeNo" :length="20"></j-ellipsis></span>
</a-col> </a-col>
<a-col :span="12" v-if="basicInfo.chargeWay === 3"> <a-col :span="12" v-if="basicInfo.chargeWay === 3" class="detail-item">
<label>收费通知:</label> <label>收费通知:</label>
<span><preview-file :file-id="basicInfo.chargeNoticeId"></preview-file></span> <span><preview-file :file-id="basicInfo.chargeNoticeId"></preview-file></span>
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="24" v-if="basicInfo.files"> <a-row :gutter="24" v-if="basicInfo.files">
<a-col :span="12"> <a-col class="detail-item">
<div class="files">
<label>项目资料:</label> <label>项目资料:</label>
<div> <span>
<preview-file :file-id="basicInfo.files"></preview-file> <preview-file :file-id="basicInfo.files"></preview-file>
</div> </span>
</div>
</a-col> </a-col>
</a-row> </a-row>
</section> </section>
@@ -74,13 +72,15 @@
<!--到账信息begin--> <!--到账信息begin-->
<section class="payment-info"> <section class="payment-info">
<h3 class="title">付款信息</h3> <h3 class="title">付款信息</h3>
<section class="payment-info-title">付款信息</section> <div class="payment-info-box">
<template v-if="paymentInfoList && paymentInfoList.length > 0"> <section class="payment-info-title">付款信息</section>
<div class="payment-info-content" v-for="item of paymentInfoList" :key="item.id"> <template v-if="paymentInfoList && paymentInfoList.length > 0">
{{ item.paymentDate }}付款{{ item.amountReceived }}元 <div class="payment-info-content" v-for="item of paymentInfoList" :key="item.id">
</div> {{ item.paymentDate }}付款{{ item.amountReceived }}元
</template> </div>
<a-list class="payment-info-content" v-else :data-source="[]"/> </template>
<a-list v-else :data-source="[]"/>
</div>
</section> </section>
<!--到账信息end--> <!--到账信息end-->
<!--开票邮寄信息begin--> <!--开票邮寄信息begin-->
@@ -175,17 +175,17 @@ const columns = [
{ {
title: '项目', title: '项目',
align: 'center', align: 'center',
dataIndex: 'chargeCompanyName' dataIndex: 'projectName'
}, },
{ {
title: '邮寄人', title: '邮寄人',
align: 'center', align: 'center',
dataIndex: 'liaisonMan' dataIndex: 'contactName'
}, },
{ {
title: '快递', title: '快递',
align: 'center', align: 'center',
dataIndex: 'sendMethod' dataIndex: 'sendMethod_dictText'
}, },
{ {
title: '快递单号', title: '快递单号',
@@ -354,9 +354,20 @@ h3.title::before {
.ant-col { .ant-col {
margin: 3px 0; margin: 3px 0;
} }
}
.files { .detail-item {
display: flex; max-width: 100%;
display: flex;
label {
flex-shrink: 0;
display: block;
}
span {
word-break: break-all;
display: block;
} }
} }
@@ -364,6 +375,10 @@ h3.title::before {
.payment-info { .payment-info {
margin-bottom: 14px; margin-bottom: 14px;
&-box {
border: 1px solid #ccc;
}
&-title { &-title {
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
@@ -379,7 +394,7 @@ h3.title::before {
//background: #efefef; //background: #efefef;
padding: 5px; padding: 5px;
padding-left: 10px; padding-left: 10px;
border: 1px solid #ccc; //border: 1px solid #ccc;
border-top: none; border-top: none;
} }
+12 -3
View File
@@ -20,17 +20,17 @@
</div> </div>
<div > <div >
<div class="message-list-item" v-for="item of dataMessageList" :key="item.id"> <div class="message-list-item" v-for="item of dataMessageList" :key="item.id">
<div style="display: flex"> <div class="message-list-item-name">
<div>【{{item.titile_dictText}}】</div> <div>【{{item.titile_dictText}}】</div>
<a-tooltip> <a-tooltip>
<template slot="title"> <template slot="title">
<span v-html="item.msgContent" class="ellipsis-span"></span> <span v-html="item.msgContent" class="ellipsis-span"></span>
</template> </template>
<span v-html="myEllipsis(item.msgContent,40)" class="ellipsis-span"></span> <span v-html="myEllipsis(item.msgContent,38)" class="ellipsis-span"></span>
</a-tooltip> </a-tooltip>
</div> </div>
<!-- <span v-html="item.msgContent"></span>--> <!-- <span v-html="item.msgContent"></span>-->
<span>{{item.sendTime}}</span> <span class="message-list-item-time">{{item.sendTime}}</span>
<span class="operate"> <span class="operate">
<a @click="showAnnouncement(item)" style="margin-right: 8px">查看</a> <a @click="showAnnouncement(item)" style="margin-right: 8px">查看</a>
<a @click="haveRead(item)" v-if="item.readFlag === '0' ">已读</a> <a @click="haveRead(item)" v-if="item.readFlag === '0' ">已读</a>
@@ -249,6 +249,15 @@ export default {
color: #FFF; color: #FFF;
font-weight: 500; font-weight: 500;
} }
&-item-name {
display: flex;
width: 35rem;
}
&-item-time {
width: 10rem;
}
} }
} }
.center { .center {
+23 -2
View File
@@ -12,7 +12,7 @@
</a-col> </a-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24"> <a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="需要发票"> <a-form-item label="需要发票">
<j-dict-select-tag dict-code="invoice_type" placeholder="请选择需要发票" <j-dict-select-tag dict-code="invoice_type" placeholder="请选择是否需要发票"
v-model="queryParam.needInvoice"></j-dict-select-tag> v-model="queryParam.needInvoice"></j-dict-select-tag>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -66,6 +66,24 @@
<j-ellipsis style="font-size: 14px" :value="record.projectName" :length="20"></j-ellipsis> <j-ellipsis style="font-size: 14px" :value="record.projectName" :length="20"></j-ellipsis>
</div> </div>
</template> </template>
<!-- 需要tooltip的文本-->
<template v-slot:text="{record,text}">
<a-tooltip>
<template slot="title">
{{ text }}
</template>
{{ text }}
</a-tooltip>
</template>
<!-- 金额-->
<template v-slot:money="{record,text}">
<a-tooltip>
<template slot="title">
{{ text }}元
</template>
{{ text }}元
</a-tooltip>
</template>
</project-table> </project-table>
</a-spin> </a-spin>
</div> </div>
@@ -98,14 +116,17 @@ export default {
}, { }, {
title: '应付金额', title: '应付金额',
dataIndex: 'amountReceivable', dataIndex: 'amountReceivable',
scopedSlots: 'money',
col: 4 col: 4
}, { }, {
title: '实付金额', title: '实付金额',
dataIndex: 'paidAmount', dataIndex: 'paidAmount',
scopedSlots: 'money',
col: 3 col: 3
}, { }, {
title: '负责人', title: '负责人',
dataIndex: 'principalName', dataIndex: 'directorName',
scopedSlots: 'text',
col: 3 col: 3
}, { }, {
title: '打包', title: '打包',
@@ -81,8 +81,8 @@
</p> </p>
<p class="item-meeting-img item-meeting-meetingTime"> <p class="item-meeting-img item-meeting-meetingTime">
<img src="../../assets/meetingImgs/meeting-time.png"/> <img src="../../assets/meetingImgs/meeting-time.png"/>
召开时间: 召开时间:{{ item.startTime }}~{{ item.endTime }}
<j-ellipsis :value="item.startTime + '~' + item.endTime" :length="30"></j-ellipsis> <!-- <j-ellipsis :value="item.startTime + '~' + item.endTime" :length="30"></j-ellipsis>-->
</p> </p>
<p class="item-meeting-img item-meeting-meetingPaymode"> <p class="item-meeting-img item-meeting-meetingPaymode">
<img src="../../assets/meetingImgs/meeting_paymode.png"/> <img src="../../assets/meetingImgs/meeting_paymode.png"/>
@@ -114,7 +114,7 @@ export default {
loading: false, loading: false,
columns: [ columns: [
{ {
title: '合同号', title: '合同编号',
align: 'center', align: 'center',
dataIndex: 'contractNum' dataIndex: 'contractNum'
}, },
+12 -3
View File
@@ -12,7 +12,7 @@
</a-col> </a-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24"> <a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="需要发票"> <a-form-item label="需要发票">
<j-dict-select-tag dict-code="invoice_type" placeholder="请选择需要发票" <j-dict-select-tag dict-code="invoice_type" placeholder="请选择是否需要发票"
v-model="queryParam.needInvoice"></j-dict-select-tag> v-model="queryParam.needInvoice"></j-dict-select-tag>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -74,6 +74,15 @@
{{ text }} {{ text }}
</a-tooltip> </a-tooltip>
</template> </template>
<!-- 金额-->
<template v-slot:money="{record,text}">
<a-tooltip>
<template slot="title">
{{ text }}元
</template>
{{ text }}元
</a-tooltip>
</template>
</project-table> </project-table>
</a-spin> </a-spin>
</div> </div>
@@ -109,12 +118,12 @@ export default {
}, { }, {
title: '应付金额', title: '应付金额',
dataIndex: 'receivableAmount', dataIndex: 'receivableAmount',
scopedSlots: 'text', scopedSlots: 'money',
col: 3 col: 3
}, { }, {
title: '实付金额', title: '实付金额',
dataIndex: 'paidAmount', dataIndex: 'paidAmount',
scopedSlots: 'text', scopedSlots: 'money',
col: 3 col: 3
}, { }, {
title: '负责人', title: '负责人',
+12 -3
View File
@@ -12,7 +12,7 @@
</a-col> </a-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24"> <a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="需要发票"> <a-form-item label="需要发票">
<j-dict-select-tag dict-code="invoice_type" placeholder="请选择需要发票" <j-dict-select-tag dict-code="invoice_type" placeholder="请选择是否需要发票"
v-model="queryParam.needInvoice"></j-dict-select-tag> v-model="queryParam.needInvoice"></j-dict-select-tag>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -69,6 +69,15 @@
{{ text }} {{ text }}
</a-tooltip> </a-tooltip>
</template> </template>
<!-- 金额-->
<template v-slot:money="{record,text}">
<a-tooltip>
<template slot="title">
{{ text }}元
</template>
{{ text }}元
</a-tooltip>
</template>
<template v-slot:meeting> <template v-slot:meeting>
<a-button type="primary" @click="toMeeting">工作组会议 <a-button type="primary" @click="toMeeting">工作组会议
<a-icon type="right"></a-icon> <a-icon type="right"></a-icon>
@@ -105,12 +114,12 @@ export default {
}, { }, {
title: '应付金额', title: '应付金额',
dataIndex: 'receivableAmount', dataIndex: 'receivableAmount',
scopedSlots: 'text', scopedSlots: 'money',
col: 4 col: 4
}, { }, {
title: '实付金额', title: '实付金额',
dataIndex: 'paidAmount', dataIndex: 'paidAmount',
scopedSlots: 'text', scopedSlots: 'money',
col: 3 col: 3
}, { }, {
title: '负责人', title: '负责人',