合同查询

This commit is contained in:
zhangdingyu
2019-12-04 15:31:38 +08:00
parent f6908d87cc
commit 93b62e1221
2 changed files with 87 additions and 92 deletions

View File

@@ -24,8 +24,8 @@
<el-button type="success" icon="el-icon-search" class="move" size="small" style="margin-left: 10px" @click="selectCustomerOfName">查询</el-button> <el-button type="success" icon="el-icon-search" class="move" size="small" style="margin-left: 10px" @click="selectCustomerOfName">查询</el-button>
</el-card> </el-card>
<el-card> <el-card>
<el-button icon="el-icon-circle-plus-outline" size="small" style="margin-top: 3px;background-color: orange" @click="addMarketingManager();flag = 1" >添加营销经理</el-button> <el-button icon="el-icon-circle-plus-outline" type="primary" size="small" style="margin-top: 3px;" @click="addMarketingManager();flag = 1" >添加营销经理</el-button>
<el-button icon="el-icon-circle-plus-outline" size="small" style="margin-top: 3px;background-color: #f2dede" @click = "addCustomer();flag1 = 1">新增客户</el-button> <el-button icon="el-icon-circle-plus-outline" type="primary" plain size="small" style="margin-top: 3px" @click = "addCustomer();flag1 = 1">新增客户</el-button>
<el-table v-loading="loading3" :data="tableData3" highlight-current-row height="192" size="mini" stripe style="width: 100%;margin-top: 3px;margin-bottom: 0px" border> <el-table v-loading="loading3" :data="tableData3" highlight-current-row height="192" size="mini" stripe style="width: 100%;margin-top: 3px;margin-bottom: 0px" border>
<!--<el-table-column label="责权省份" align="center" min-width="80">--> <!--<el-table-column label="责权省份" align="center" min-width="80">-->
<!--<template slot-scope="scope">--> <!--<template slot-scope="scope">-->

View File

@@ -15,97 +15,91 @@
</el-card> </el-card>
<el-card> <el-card>
<el-table <el-col :span="15">
v-loading="listLoading" <el-table v-loading="listLoading" :data="tableData1" highlight-current-row style="margin-top: 3px" height="580" border size="mini" @row-click="selectMachine">
:data="tableData1" <el-table-column align="center" label="项目名称" prop="项目名称" width="150" show-overflow-tooltip>
:row-key="getRowKeys" <template slot-scope="scope">
:expand-row-keys="expands" {{ scope.row.项目名称 }}
highlight-current-row
style="width: 1280px; margin-top: 3px"
height="700"
border
size="mini"
@row-click="fetchTableData"
@expand-change="selectMachine">
<el-table-column type="expand" label="详情">
<template slot-scope="scope">
<el-table :data="tableData2" class="subTableHeader" border stripe style="width: 400px; text-align: center" size="mini">
<el-table-column label="设备型号" align="center">
<template slot-scope="scope">
{{ scope.row.机床图号 }}
</template>
</el-table-column>
<el-table-column label="设备名称" align="center">
<template slot-scope="scope">
{{ scope.row.机床名称 }}
</template>
</el-table-column>
</el-table>
</template>
</el-table-column>
<el-table-column align="center" label="合同编号" prop="合同编号" width="130">
<template slot-scope="scope">
<template>
<el-tag slot="reference" type="mini">{{ scope.row.合同编号 }}</el-tag>
</template> </template>
</template> </el-table-column>
</el-table-column> <el-table-column align="center" label="客户名称" prop="客户名称" width="230" show-overflow-tooltip>
<el-table-column align="center" label="项目名称" prop="项目名称" width="150" show-overflow-tooltip> <template slot-scope="scope">
<template slot-scope="scope"> {{ scope.row.客户名称 }}
{{ scope.row.项目名称 }} </template>
</template> </el-table-column>
</el-table-column> <el-table-column align="center" label="付款方式" width="80">
<el-table-column align="center" label="客户名称" prop="客户名称" width="230" show-overflow-tooltip> <template slot-scope="scope">
<template slot-scope="scope"> {{ scope.row.付款方式 }}
{{ scope.row.客户名称 }} </template>
</template> </el-table-column>
</el-table-column> <el-table-column align="center" label="合同总额(万元)" width="110">
<el-table-column align="center" label="合同总额" width="110"> <template slot-scope="scope">
<template slot-scope="scope"> {{ scope.row.合同总金额 }}
{{ scope.row.合同总金额 }} </template>
</template> </el-table-column>
</el-table-column> <el-table-column align="center" label="已付金额" width="80">
<el-table-column align="center" label="付款方式" width="80"> <template slot-scope="scope">
<template slot-scope="scope"> {{ Number(scope.row.已支付).toFixed(2) }}
{{ scope.row.付款方式 }} </template>
</template> </el-table-column>
</el-table-column> <el-table-column align="center" label="合同签订日期" width="110">
<el-table-column align="center" label="已付金额" width="80"> <template slot-scope="scope">
<template slot-scope="scope"> {{ scope.row.合同签订日期&&scope.row.合同签订日期!=='1900/1/1' ? scope.row.合同签订日期 : '-' }}
{{ Number(scope.row.已支付).toFixed(2) }} </template>
</template> </el-table-column>
</el-table-column> <el-table-column align="center" label="发货节点" width="110">
<el-table-column align="center" label="销售经理" prop="营销经理" width="100"> <template slot-scope="scope">
<template slot-scope="scope"> {{ scope.row.发货节点&&scope.row.发货节点!=='1900/1/1' ? scope.row.发货节点 : '-' }}
{{ scope.row.营销经理 }} </template>
</template> </el-table-column>
</el-table-column> <el-table-column align="center" label="销售经理" prop="营销经理" width="100">
<el-table-column align="center" label="合同信息备注" width="120"> <template slot-scope="scope">
<template slot-scope="scope"> {{ scope.row.营销经理 }}
{{ scope.row.合同信息备注 }} </template>
</template> </el-table-column>
</el-table-column> <el-table-column align="center" label="合同编号" prop="合同编号" width="130">
<el-table-column align="center" label="合同签订日期" width="110"> <template slot-scope="scope">
<template slot-scope="scope"> <template>
{{ scope.row.合同签订日期&&scope.row.合同签订日期!=='1900/1/1' ? scope.row.合同签订日期 : '-' }} <el-tag slot="reference" type="mini">{{ scope.row.合同编号 }}</el-tag>
</template> </template>
</el-table-column> </template>
<el-table-column align="center" label="发货节点" width="110"> </el-table-column>
<template slot-scope="scope"> <el-table-column align="center" label="合同信息备注" width="120">
{{ scope.row.发货节点&&scope.row.发货节点!=='1900/1/1' ? scope.row.发货节点 : '-' }} <template slot-scope="scope">
</template> {{ scope.row.合同信息备注 }}
</el-table-column> </template>
</el-table> </el-table-column>
<div class="block"> </el-table>
<el-pagination <div class="block">
:current-page="PageCurrent" <el-pagination
:page-sizes="[10, 20, 30, 40]" :current-page="PageCurrent"
:page-size="PageSize" :page-sizes="[10, 20, 30, 40]"
:total="total" :page-size="PageSize"
layout="total, sizes, prev, pager, next, jumper" :total="total"
@size-change="handleSizeChange" layout="total, sizes, prev, pager, next, jumper"
@current-change="handleCurrentChange"/> @size-change="handleSizeChange"
</div> @current-change="handleCurrentChange"/>
</div>
</el-col>
<el-col :span="9">
<el-table :data="tableData2" class="subTableHeader" border stripe style="text-align: center" size="mini">
<el-table-column label="设备型号" align="center" width="230" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.机床图号 }}
</template>
</el-table-column>
<el-table-column label="设备名称" align="center" min-width="150" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.机床名称 }}
</template>
</el-table-column>
<el-table-column label="设备状态" align="center" width="100">
<template slot-scope="scope">
{{ scope.row.机床状态 }}
</template>
</el-table-column>
</el-table>
</el-col>
</el-card> </el-card>
<!--营销经理选择--> <!--营销经理选择-->
@@ -729,6 +723,7 @@ export default {
} }
} }
selectMachine(row.项目流水号).then(response => { selectMachine(row.项目流水号).then(response => {
console.log(response.data)
this.tableData2 = response.data this.tableData2 = response.data
}) })
this.projectNum = row.项目流水号 this.projectNum = row.项目流水号