| | |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="4" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="刀具名称"> |
| | | <j-input placeholder="请输入刀具名称" v-model="queryParam.toolName"></j-input> |
| | | <a-form-item label="刀具编号"> |
| | | <a-input placeholder="请输入刀具编号" v-model="queryParam.toolId"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="4" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="刃磨结果"> |
| | | <j-input placeholder="请输入刃磨结果" v-model="queryParam.grindingResult"></j-input> |
| | | <a-input placeholder="请输入刃磨结果" v-model="queryParam.sharpeningResult"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="刃磨时间"> |
| | | <a-range-picker v-model="queryParam.inspectionDateRange" @change="onInspectionDateChange" format="YYYY-MM-DD" value-format="YYYY-MM-DD" /> |
| | | <a-range-picker v-model="queryParam.sharpeningTime" @change="onInspectionDateChange" format="YYYY-MM-DD" value-format="YYYY-MM-DD" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="4" :lg="7" :md="8" :sm="24"> |
| | |
| | | deleteBatch: "/tms/toolSharpening/deleteBatch", |
| | | exportXlsUrl: "/tms/toolSharpening/exportXls", |
| | | importExcelUrl: "tms/toolSharpening/importExcel", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | |
| | | |
| | | methods: { |
| | | onInspectionDateChange: function(value, dateString) { |
| | | this.queryParam.inspectionDateBegin = dateString[0] |
| | | this.queryParam.inspectionDateEnd = dateString[1] |
| | | this.queryParam.sharpeningTimeBegin = dateString[0] |
| | | this.queryParam.sharpeningTimeEnd = dateString[1] |
| | | }, |
| | | |
| | | |
| | |
| | | deleteAction(this.url.delete, { id: id }).then((res) => { |
| | | if (res.success) { |
| | | //重新计算分页问题 |
| | | this.reCalculatePage(1) |
| | | this.$message.success(res.message) |
| | | this.$refs.toolStockingBoundDetail.dataSource = [] |
| | | this.loadData() |
| | | this.ipagination.current = 1 |
| | | this.loadData() // 强制从第一页加载 |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |