| | |
| | | { |
| | | label: '申请单号', |
| | | prop: 'id', |
| | | width: 300, |
| | | width: 200, |
| | | fixed: true, |
| | | search: true, |
| | | }, { |
| | | label: '集团码', |
| | | width: 200, |
| | | width: 150, |
| | | prop: 'groupCode', |
| | | search: true, |
| | | }, { |
| | | label: '操作类型', |
| | | width: 200, |
| | | width: 120, |
| | | prop: 'operationType', |
| | | type: 'select', |
| | | search: true, |
| | | dicData: [{ |
| | | label: '申请', |
| | | value: 1 |
| | | value: '1' |
| | | }, { |
| | | label: '更改', |
| | | value: 2 |
| | | value: '2' |
| | | }] |
| | | }, { |
| | | label: '申请单数据信息', |
| | |
| | | }, |
| | | { |
| | | label: '创建时间', |
| | | width: 200, |
| | | prop: 'createTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: '更改时间', |
| | | width: 200, |
| | | prop: 'lastModifyTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | }, { |
| | | label: '返回标识', |
| | | width: 100, |
| | | prop: 'code' |
| | | label: '是否成功', |
| | | width: 120, |
| | | prop: 'code', |
| | | html: true, |
| | | align:'center', |
| | | formatter : function (row) { |
| | | return row.code == '1' ? '<i class="el-icon-check" style="color: #32cd32;font-size: 20px;font-weight: 800"></i>' : '<i class="el-icon-close" style="color: #ff0000;font-size: 20px;font-weight: 800"></i>' |
| | | } |
| | | }, |
| | | { |
| | | label: '返回信息', |
| | | width: 300, |
| | | prop: 'content' |
| | | prop: 'content', |
| | | hide: true |
| | | }, |
| | | { |
| | | label: '消息信息', |
| | | width: 300, |
| | | width: 150, |
| | | prop: 'msg' |
| | | } |
| | | ] |
| | |
| | | message: "请至少选择一条数据!" |
| | | }) |
| | | } else { |
| | | console.log(this.stateParam) |
| | | // console.log(this.stateParam) |
| | | const response = await queryApplyStat(this.stateParam) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | // console.log(response) |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.loading = true |
| | | const { pageSize, currentPage, total } = this.page |
| | | let param = { size: pageSize, current: currentPage } |
| | | console.log(this.searchParam) |
| | | // console.log(this.searchParam) |
| | | this.searchParam = Object.keys(this.searchParam) |
| | | .filter((key) => this.searchParam[key] !== null && this.searchParam[key] !== undefined && this.searchParam[key] !== "") |
| | | .reduce((acc, key) => ({ ...acc, [key]: this.searchParam[key] }), {}); |
| | | console.log(this.searchParam) |
| | | // console.log(this.searchParam) |
| | | const response = await getList({ ...param, ...this.searchParam }) |
| | | if (response.status === 200) { |
| | | this.loading = false |
| | | console.log(response) |
| | | // console.log(response) |
| | | const data = response.data.data |
| | | this.data = data.records |
| | | this.page.total = data.total |
| | |
| | | this.getDataList() |
| | | }, |
| | | handleSearch(form, done) { |
| | | console.log(form) |
| | | // console.log(form) |
| | | const { id, groupCode, operationType } = form |
| | | let dataTime = { id, groupCode, operationType } |
| | | if (form.hasOwnProperty('createTime')) { |
| | |
| | | done() |
| | | }, |
| | | selectionChange(list) { |
| | | console.log(list) |
| | | // console.log(list) |
| | | let newData = list.map(item => { |
| | | const { dataOid } = item |
| | | return dataOid |
| | | }) |
| | | this.stateParam = { oids: newData.toString() } |
| | | console.log(newData) |
| | | // console.log(newData) |
| | | }, |
| | | handleRowClick(row) { |
| | | this.$refs.crud.toggleRowSelection(row, true) |