|
@@ -18,8 +18,37 @@
|
|
|
@on-load="getList"
|
|
|
@saveColumn="saveColumn"
|
|
|
@resetColumn="resetColumn"
|
|
|
+ @expand-change="expandChange"
|
|
|
@search-criteria-switch="searchCriteriaSwitch"
|
|
|
>
|
|
|
+ <template slot="expand" slot-scope="scope">
|
|
|
+ <el-menu :default-active="scope.row.projectType" class="el-menu-demo" mode="horizontal" @select="(key, keyPath) =>{handleSelect(scope,key, keyPath)}">
|
|
|
+ <el-menu-item :index="0">原始数据</el-menu-item>
|
|
|
+ <el-menu-item :index="1">追加</el-menu-item>
|
|
|
+ <el-menu-item :index="2">退款</el-menu-item>
|
|
|
+ </el-menu>
|
|
|
+ <el-table :data="scope.row.insideList">
|
|
|
+ <el-table-column label="状态" prop="strStatus" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="服务项目" prop="pname" align="center" show-overflow-tooltip width="180"></el-table-column>
|
|
|
+ <el-table-column label="收费建议" prop="remarks" align="center" show-overflow-tooltip width="120"></el-table-column>
|
|
|
+ <el-table-column label="承做人" prop="userid" align="center" show-overflow-tooltip width="120"></el-table-column>
|
|
|
+ <el-table-column label="任务部门" prop="deptid" align="center" show-overflow-tooltip width="120"></el-table-column>
|
|
|
+ <el-table-column label="开始日期" prop="beginTime" align="center" show-overflow-tooltip width="120"></el-table-column>
|
|
|
+ <el-table-column label="完成日期" prop="actualDate" align="center" show-overflow-tooltip width="180"></el-table-column>
|
|
|
+ <el-table-column label="服务费" prop="serviceCharge" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="代垫费" prop="matMoney" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="未知明细收入" prop="otheramt" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="合计金额" prop="amount" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="收款方式" prop="accountName" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="收款日期" prop="payTime" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="频率" prop="frequency" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="提醒日" prop="reminderDay" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="制单人" prop="createUserName" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="制单日期" prop="createTime" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="最新修改人" prop="updateUserName" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="最新修改时间" prop="updateTime" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </template>
|
|
|
<template slot="corpIdSearch">
|
|
|
<select-component
|
|
|
v-model="search.corpId"
|
|
@@ -89,7 +118,7 @@
|
|
|
<script>
|
|
|
import option from "./configuration/mainList.json";
|
|
|
import detailPage from "./detailsPage.vue";
|
|
|
- import { getList,deleteMain } from "@/api/workManagement/mainProject";
|
|
|
+ import {getList, deleteMain, projectDetail} from "@/api/workManagement/mainProject";
|
|
|
import reportDialog from "@/components/report-dialog/main";
|
|
|
import { micrometerFormat } from "@/util/validate";
|
|
|
import { getUserList } from "@/api/workManagement/mainProject";
|
|
@@ -156,6 +185,24 @@ export default {
|
|
|
detailPage
|
|
|
},
|
|
|
methods: {
|
|
|
+ //展开搜索
|
|
|
+ expandChange(row, expendList) {
|
|
|
+ projectDetail(row.id,"0,1,2,3,4,5").then(res =>{
|
|
|
+ if (res.data.data.itemList){
|
|
|
+ this.$set(row,'insideList',res.data.data.itemList.filter(item=>item.projectType === 0))
|
|
|
+ }
|
|
|
+ this.$set(row,'itemList',res.data.data.itemList)
|
|
|
+ this.$set(row,'projectType',0)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //tab切换后触发
|
|
|
+ handleSelect(scope,key, keyPath) {
|
|
|
+ this.$set(scope.row,'projectType',key)
|
|
|
+ this.$set(scope.row,'insideList',[])
|
|
|
+ if (scope.row.itemList){
|
|
|
+ this.$set(scope.row,'insideList',scope.row.itemList.filter(item=>item.projectType === key))
|
|
|
+ }
|
|
|
+ },
|
|
|
//远程模糊
|
|
|
remoteMethod(query){
|
|
|
let params = {
|