|
@@ -20,8 +20,8 @@
|
|
|
<el-button hc-btn type="warning" @click="reportClick">按期上报</el-button>
|
|
|
<el-button hc-btn type="success" @click="detailsModalClick">清单明细</el-button>
|
|
|
<el-button hc-btn type="success" @click="isReportDrawer = true">查看报表</el-button>
|
|
|
- <el-button hc-btn color="#626aef">按部位排序</el-button>
|
|
|
- <el-button hc-btn color="#626aef">按录入时间排序</el-button>
|
|
|
+ <el-button hc-btn color="#626aef" @click="sortClick(1)">按部位排序</el-button>
|
|
|
+ <el-button hc-btn color="#626aef" @click="sortClick(2)">按录入时间排序</el-button>
|
|
|
</template>
|
|
|
<hc-table
|
|
|
:column="tableColumn" :datas="tableData" :loading="tableLoading"
|
|
@@ -102,7 +102,7 @@ const setSplitRef = () => {
|
|
|
|
|
|
//搜索表单
|
|
|
const searchForm = ref({
|
|
|
- contractPeriodId: null, contractUnitId: null, contractId: contractId.value,
|
|
|
+ contractPeriodId: null, contractUnitId: null, contractId: contractId.value, type: 1,
|
|
|
current: 1, size: 10, total: 0,
|
|
|
})
|
|
|
|
|
@@ -200,6 +200,14 @@ const getTableData = async () => {
|
|
|
tableLoading.value = false
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+//排序
|
|
|
+const sortClick = (type) => {
|
|
|
+ searchForm.value.type = type
|
|
|
+ searchForm.value.current = 1
|
|
|
+ getTableData()
|
|
|
+}
|
|
|
+
|
|
|
//获取表格计量期
|
|
|
const getTablePeriod = ({ contractPeriodId }) => {
|
|
|
const periods = key1Data.value
|