|
@@ -13,13 +13,13 @@
|
|
|
<hc-search-input v-model="searchForm.materialName" @search="searchClick" />
|
|
|
</div>
|
|
|
</template>
|
|
|
- <hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" :index-style="{ width: 60 }">
|
|
|
- <template #key9="{ row }">
|
|
|
- <el-button v-if="row.key9 === 1" type="success" size="small">已同意</el-button>
|
|
|
- <el-button v-if="row.key9 === 2" type="info" size="small">待审批</el-button>
|
|
|
- <el-button v-if="row.key9 === 3" type="danger" size="small">已废除</el-button>
|
|
|
- </template>
|
|
|
- </hc-table>
|
|
|
+ <template #extra>
|
|
|
+ <el-button type="primary">手动入库</el-button>
|
|
|
+ </template>
|
|
|
+ <hc-table
|
|
|
+ :column="tableColumn" :datas="tableData" :loading="tableLoading" :index-style="{ width: 60 }"
|
|
|
+ is-check :check-style="{ width: 29 }" @selection-change="tableSelection"
|
|
|
+ />
|
|
|
<template #action>
|
|
|
<hc-pages :pages="searchForm" @change="pageChange" />
|
|
|
</template>
|
|
@@ -145,4 +145,10 @@ const getTableData = async () => {
|
|
|
searchForm.value.total = 0
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+//多选
|
|
|
+const tableCheckedKeys = ref([])
|
|
|
+const tableSelection = (rows) => {
|
|
|
+ tableCheckedKeys.value = rows
|
|
|
+}
|
|
|
</script>
|