|
@@ -12,7 +12,6 @@
|
|
|
:size="size"
|
|
|
@page-curr-change="handlePageChange"
|
|
|
@page-size-change="handleSizeChange"
|
|
|
- @RowClick="RowClick"
|
|
|
@screen-reset="
|
|
|
pageInfo.curr = 1;
|
|
|
parmValue.page = 1;
|
|
@@ -118,7 +117,11 @@
|
|
|
type="primary"
|
|
|
class="fr"
|
|
|
icon="el-icon-search"
|
|
|
- @click="searchList"
|
|
|
+ @click="
|
|
|
+ pageInfo.curr = 1;
|
|
|
+ parmValue.page = 1;
|
|
|
+ searchList();
|
|
|
+ "
|
|
|
/></el-col>
|
|
|
<el-col :span="4" style="width: 66px">
|
|
|
<el-button
|
|
@@ -158,6 +161,19 @@
|
|
|
"
|
|
|
></el-tag>
|
|
|
</template>
|
|
|
+ <template #operation="{ scope }">
|
|
|
+ <el-tooltip
|
|
|
+ v-if="powers.some((item) => item == '007')"
|
|
|
+ effect="dark"
|
|
|
+ content="详情"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="el-icon-view tb-icon"
|
|
|
+ @click="gotoDetail(scope.row.id)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
</ex-table>
|
|
|
<add-model
|
|
|
:id="modelId"
|
|
@@ -223,7 +239,7 @@ export default {
|
|
|
parmValue: {
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
|
- wsm_code: "", // 盘点仓库
|
|
|
+ wsm_code: "", // 盘点仓库
|
|
|
check_code: "", // 盘点编号
|
|
|
type: "", //盘点类型
|
|
|
status: "", //判断状态
|
|
@@ -351,7 +367,7 @@ export default {
|
|
|
}
|
|
|
this.loading = false;
|
|
|
},
|
|
|
- async RowClick(e) {
|
|
|
+ async gotoDetail(id) {
|
|
|
let path = "checkDetail";
|
|
|
let index = this.visitedViews.findIndex((v) => v.name === path);
|
|
|
if (index !== -1) {
|
|
@@ -364,18 +380,18 @@ export default {
|
|
|
this.$store
|
|
|
.dispatch("tagsView/delView", this.visitedViews[index])
|
|
|
.then(() => {
|
|
|
- this.gotoDetail(path, e.id);
|
|
|
+ this.gotoDetailRouter(path, id);
|
|
|
});
|
|
|
})
|
|
|
.catch(() => {
|
|
|
console.log("取消");
|
|
|
});
|
|
|
} else {
|
|
|
- this.gotoDetail(path, e.id);
|
|
|
+ this.gotoDetailRouter(path, e.id);
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- gotoDetail(path, id) {
|
|
|
+ gotoDetailRouter(path, id) {
|
|
|
window.vm.$router.push({
|
|
|
path: path,
|
|
|
query: {
|