| | |
| | | </template> |
| | | <script> |
| | | import { parseTime,formatDate } from '@/utils' |
| | | import { getThisWeekRange} from '@/utils/formatTime.js' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | created() {}, |
| | | mounted() { |
| | | this.initTimeData(); |
| | | this.find(1) |
| | | }, |
| | | methods: { |
| | | initTimeData(){ |
| | | this.datatime= ''; |
| | | this.datatime= getThisWeekRange(60);//启用了 |
| | | }, |
| | | // 时间转换 |
| | | formatterDateTime (row, column, cellValue, index) { |
| | | if (cellValue === null || cellValue === '') { |
| | |
| | | this.searchParam.purchaseCode = null |
| | | this.selectTypeValue = '' |
| | | this.datatime = '' |
| | | this.initTimeData();//重置时间 |
| | | this.find() |
| | | } |
| | | } |