| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <!-- <a-col :span="6"> |
| | | <a-form-item label="移交单状态"> |
| | | <j-dict-select-tag |
| | | dictCode="two_maintenance_devolution_status" |
| | |
| | | v-model="queryParam.confirmStatus" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col :span="7"> |
| | | <a-form-item label="完工时间"> |
| | | <a-range-picker |
| | |
| | | this.queryParam.endTime = '' |
| | | } else { |
| | | //后端报这个错rejected value ["2024-03-14T06:26:38.692Z"] |
| | | this.queryParam.beginTime = this.ranges[0].format('YYYY-MM-DD') |
| | | this.queryParam.endTime = this.ranges[1].format('YYYY-MM-DD') |
| | | // var beginTime = this.formattedTime(this.ranges[0]) |
| | | // this.queryParam.beginTime = this.ranges[0].format('YYYY-MM-DD') |
| | | // this.queryParam.endTime = this.ranges[1].format('YYYY-MM-DD') |
| | | this.queryParam.beginTime = this.formattedTime(this.ranges[0]) |
| | | this.queryParam.endTime = this.formattedTime(this.ranges[1]) |
| | | } |
| | | }, |
| | | |
| | | formattedTime(originalTime) { |
| | | |
| | | // 创建 Date 对象 |
| | | const date = new Date(originalTime) |
| | | |
| | | // 检查 Date 对象是否有效 |
| | | if (isNaN(date.getTime())) return '无效时间' |
| | | |
| | | // 获取年、月、日、时、分 |
| | | const year = date.getFullYear() |
| | | const month = String(date.getMonth() + 1).padStart(2, '0') |
| | | const day = String(date.getDate()).padStart(2, '0') |
| | | const hours = String(date.getHours()).padStart(2, '0') |
| | | const minutes = String(date.getMinutes()).padStart(2, '0') |
| | | const seconds = String(date.getSeconds()).padStart(2, '0') |
| | | // 拼接成指定格式 |
| | | return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}` |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | type="primary" |
| | | icon="plus" |
| | | >新增</a-button> |
| | | <a-button |
| | | <!-- <a-button |
| | | type="primary" |
| | | icon="download" |
| | | @click="handleExportXls('mom_eam_maintenance_type')" |
| | |
| | | type="primary" |
| | | icon="import" |
| | | >导入</a-button> |
| | | </a-upload> |
| | | </a-upload> --> |
| | | <!-- 高级查询区域 --> |
| | | <!-- <j-super-query |
| | | :fieldList="superFieldList" |
| | |
| | | type: 'checkbox', |
| | | onChange: (selectedRowKeys, selectedRows) => { |
| | | this.selectedRowKeys = selectedRowKeys |
| | | this.onSelectChange(selectedRows) |
| | | }, |
| | | onSelect: (record, selected, selectedRows) => { |
| | | if (selected) { |
| | |
| | | this.loadData() |
| | | }, |
| | | handleSubmit() { |
| | | this.$bus.$emit('selectionRows', this.selectionRowsNotClear) |
| | | // this.$bus.$emit('selectionRows', this.selectionRowsNotClear) |
| | | this.$bus.$emit('selectionRows', this.selectionRows) |
| | | this.searchReset(0) |
| | | this.close() |
| | | }, |
| | | onSelectionChange(selectedRowKeys, selectedRows) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectedRows = selectedRows; |
| | | onSelectChange(selectionRows) { |
| | | this.selectionRows = selectionRows |
| | | }, |
| | | // onSelectionChange(selectedRowKeys, selectedRows) { |
| | | // this.selectedRowKeys = selectedRowKeys; |
| | | // this.selectedRows = selectedRows; |
| | | // }, |
| | | |
| | | searchQuery() { |
| | | this.loadData(1) |
| | |
| | | this.loadData() |
| | | }, |
| | | handleSubmit() { |
| | | this.$bus.$emit('selectionRows', this.selectionRowsNotClear) |
| | | // this.$bus.$emit('selectionRows', this.selectionRowsNotClear) |
| | | this.$bus.$emit('selectionRows', this.selectionRows) |
| | | // this.searchReset(0) |
| | | this.close() |
| | | }, |
| | |
| | | this.loadData() |
| | | }, |
| | | handleSubmit() { |
| | | this.$bus.$emit('selectionRows', this.selectionRowsNotClear) |
| | | // this.$bus.$emit('selectionRows', this.selectionRowsNotClear) |
| | | this.$bus.$emit('selectionRows', this.selectionRows) |
| | | // this.searchReset(0) |
| | | this.close() |
| | | }, |
| | |
| | | |
| | | }, |
| | | changeDate(date, dateString) { |
| | | this.queryParam.startTime = dateString[0].format('YYYY-MM-DD HH:mm:ss'); |
| | | this.queryParam.endTime = dateString[1].format('YYYY-MM-DD HH:mm:ss'); |
| | | // this.queryParam.startTime = dateString[0].format('YYYY-MM-DD HH:mm:ss'); |
| | | // this.queryParam.endTime = dateString[1].format('YYYY-MM-DD HH:mm:ss'); |
| | | this.queryParam.startTime = this.formattedTime(dateString[0]); |
| | | this.queryParam.endTime = this.formattedTime(dateString[1]); |
| | | debugger |
| | | }, |
| | | formattedTime(originalTime) { |
| | | |
| | | // 创建 Date 对象 |
| | | const date = new Date(originalTime) |
| | | |
| | | // 检查 Date 对象是否有效 |
| | | if (isNaN(date.getTime())) return '无效时间' |
| | | |
| | | // 获取年、月、日、时、分 |
| | | const year = date.getFullYear() |
| | | const month = String(date.getMonth() + 1).padStart(2, '0') |
| | | const day = String(date.getDate()).padStart(2, '0') |
| | | const hours = String(date.getHours()).padStart(2, '0') |
| | | const minutes = String(date.getMinutes()).padStart(2, '0') |
| | | const seconds = String(date.getSeconds()).padStart(2, '0') |
| | | // 拼接成指定格式 |
| | | return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}` |
| | | }, |
| | | onSelectChange(selectionRows) { |
| | | this.selectionRows = selectionRows; |
| | |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | <a-row :gutter="24"> |
| | | <a-col |
| | | <!-- <a-col |
| | | :md="8" |
| | | :sm="8" |
| | | > |
| | |
| | | v-model="queryParam.num" |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col |
| | | :md="8" |
| | | :sm="8" |
| | |
| | | icon="plus" |
| | | >新增</a-button> |
| | | <!-- :hidden="disabled" --> |
| | | <a-button |
| | | <!-- <a-button |
| | | type="primary" |
| | | icon="download" |
| | | @click="handleExportXls('原因')" |
| | | >导出</a-button> |
| | | >导出</a-button> --> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-button style="margin-left: 8px"> |
| | | 批量操作 |