| | |
| | | :search-options="searchOptions" |
| | | @searchClick="searchClick" |
| | | @resetClick="resetClick" |
| | | :search-sel="searchSel" |
| | | /> |
| | | <div class="btn-pager"> |
| | | <PublicFunctionBtnView |
| | |
| | | infomation: {} |
| | | }, |
| | | selValueList: [], |
| | | search_map: {} |
| | | search_map: {}, |
| | | searchSel: { |
| | | value: "number", |
| | | label: "单据编号" |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | if (!this.isDetail) { |
| | | this.search_map = {} |
| | | } else { |
| | | this.search_map = { |
| | | [this.addConfig.id_name]: this.addConfig.client_name |
| | | } |
| | | } |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | |
| | | tableInfomation: [], |
| | | tableColumn: [ |
| | | { label: "单据编号", prop: "number", min: 120, isCommonClick: true }, |
| | | { label: "负责人", prop: "memberId", min: 90 }, |
| | | { label: "审批状态", prop: "approvalStatus" }, |
| | | { label: "负责人", prop: "member_name", min: 90 }, |
| | | // { label: "审批状态", prop: "approvalStatus" }, |
| | | { label: "创建人", prop: "creator", min: 100 }, |
| | | { label: "创建时间", prop: "createTime" } |
| | | { label: "创建时间", prop: "created_at" } |
| | | ] |
| | | } |
| | | this.searchOptions = [] |
| | | for (let i = 0; i < this.tableList.tableColumn.length; i++) { |
| | | const label = this.tableList.tableColumn[i].label |
| | | this.searchOptions.push({ value: (i + 1).toString(), label: label }) |
| | | const value = this.tableList.tableColumn[i].prop |
| | | this.searchOptions.push({ value: value, label: label }) |
| | | } |
| | | }, |
| | | // 请求数据 |
| | |
| | | if (res.data.list && res.data.list.length > 0) { |
| | | const list = res.data.list.map((item) => { |
| | | return { |
| | | ...item |
| | | ...item, |
| | | member_name: item.member.username |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |