Browse Source

【接口看板+job+sore+Inventory】反查主表按钮优化

master
安虹睿 1 year ago
parent
commit
1f6c4c9ae4
  1. 4
      PC/InterFace.Dash/src/components/filterForDetailPage/index.vue
  2. 40
      PC/UI.WinIn.FasterZ.Inventory/src/components/filterForDetailPage/index.vue
  3. 40
      PC/UI.WinIn.FasterZ.Job/src/components/filterForDetailPage/index.vue
  4. 4
      PC/UI.WinIn.FasterZ.Store/src/components/filterForDetailPage/index.vue

4
PC/InterFace.Dash/src/components/filterForDetailPage/index.vue

@ -56,9 +56,9 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="item in operaButtons" style="margin: 0 10px;"> <span v-for="item in operaButtons" style="margin: 0 10px;">
<!-- 查看主表信息 --> <!-- 查看主表信息 如果配置中masterId的值为空则不显示-->
<el-button <el-button
v-if="item == 'showParent'" v-if="item == 'showParent' && (scope.row[URLOption_masterId])"
type="text" type="text"
@click="showParentHandleForDetail(scope.row)" @click="showParentHandleForDetail(scope.row)"
>查看主表信息</el-button> >查看主表信息</el-button>

40
PC/UI.WinIn.FasterZ.Inventory/src/components/filterForDetailPage/index.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="filterForDetailPage" v-if="dialogShow"> <div class="filterForDetailPage" v-if="dialogShow">
<el-dialog <el-dialog
title="明细查询" title="明细查询"
:visible.sync="dialogShow" :visible.sync="dialogShow"
@ -56,9 +56,9 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="item in operaButtons" style="margin: 0 10px;"> <span v-for="item in operaButtons" style="margin: 0 10px;">
<!-- 查看主表信息 --> <!-- 查看主表信息 如果配置中masterId的值为空则不显示-->
<el-button <el-button
v-if="item == 'showParent'" v-if="item == 'showParent' && (scope.row[URLOption_masterId])"
type="text" type="text"
@click="showParentHandleForDetail(scope.row)" @click="showParentHandleForDetail(scope.row)"
>查看主表信息</el-button> >查看主表信息</el-button>
@ -119,17 +119,17 @@
<el-table-column property="address" label="地址"></el-table-column> <el-table-column property="address" label="地址"></el-table-column>
</el-table> --> </el-table> -->
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import currenDescriptions from "@/components/currenDescriptions" import currenDescriptions from "@/components/currenDescriptions"
import { tableMixins } from "@/mixins/TableMixins"; import { tableMixins } from "@/mixins/TableMixins";
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"; import { TableHeaderMixins } from "@/mixins/TableHeaderMixins";
import { LoadingMixins } from "@/mixins/LoadingMixins"; import { LoadingMixins } from "@/mixins/LoadingMixins";
import { mixins } from "@/mixins/mixins"; import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select' import { filterSelectMixins } from '@/mixins/filter-Select'
import {getListDesById,getPageListForDetail} from "@/api/wms-api" import {getListDesById,getPageListForDetail} from "@/api/wms-api"
export default { export default {
name: 'filterForDetailPage', name: 'filterForDetailPage',
mixins: [ mixins: [
tableMixins, tableMixins,
@ -316,10 +316,10 @@ export default {
// }) // })
}, },
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.filterForDetailPage { .filterForDetailPage {
.mainTable-dialog{ .mainTable-dialog{
.el-dialog{ .el-dialog{
@ -334,5 +334,5 @@ export default {
.filterForDetailPage-list{ .filterForDetailPage-list{
height: calc(100%); height: calc(100%);
overflow: auto; overflow: auto;
} }
</style> </style>

40
PC/UI.WinIn.FasterZ.Job/src/components/filterForDetailPage/index.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="filterForDetailPage" v-if="dialogShow"> <div class="filterForDetailPage" v-if="dialogShow">
<el-dialog <el-dialog
title="明细查询" title="明细查询"
:visible.sync="dialogShow" :visible.sync="dialogShow"
@ -56,9 +56,9 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="item in operaButtons" style="margin: 0 10px;"> <span v-for="item in operaButtons" style="margin: 0 10px;">
<!-- 查看主表信息 --> <!-- 查看主表信息 如果配置中masterId的值为空则不显示-->
<el-button <el-button
v-if="item == 'showParent'" v-if="item == 'showParent' && (scope.row[URLOption_masterId])"
type="text" type="text"
@click="showParentHandleForDetail(scope.row)" @click="showParentHandleForDetail(scope.row)"
>查看主表信息</el-button> >查看主表信息</el-button>
@ -119,17 +119,17 @@
<el-table-column property="address" label="地址"></el-table-column> <el-table-column property="address" label="地址"></el-table-column>
</el-table> --> </el-table> -->
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import currenDescriptions from "@/components/currenDescriptions" import currenDescriptions from "@/components/currenDescriptions"
import { tableMixins } from "@/mixins/TableMixins"; import { tableMixins } from "@/mixins/TableMixins";
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"; import { TableHeaderMixins } from "@/mixins/TableHeaderMixins";
import { LoadingMixins } from "@/mixins/LoadingMixins"; import { LoadingMixins } from "@/mixins/LoadingMixins";
import { mixins } from "@/mixins/mixins"; import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select' import { filterSelectMixins } from '@/mixins/filter-Select'
import {getListDesById,getPageListForDetail} from "@/api/wms-api" import {getListDesById,getPageListForDetail} from "@/api/wms-api"
export default { export default {
name: 'filterForDetailPage', name: 'filterForDetailPage',
mixins: [ mixins: [
tableMixins, tableMixins,
@ -316,10 +316,10 @@ export default {
// }) // })
}, },
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.filterForDetailPage { .filterForDetailPage {
.mainTable-dialog{ .mainTable-dialog{
.el-dialog{ .el-dialog{
@ -334,5 +334,5 @@ export default {
.filterForDetailPage-list{ .filterForDetailPage-list{
height: calc(100%); height: calc(100%);
overflow: auto; overflow: auto;
} }
</style> </style>

4
PC/UI.WinIn.FasterZ.Store/src/components/filterForDetailPage/index.vue

@ -56,9 +56,9 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="item in operaButtons" style="margin: 0 10px;"> <span v-for="item in operaButtons" style="margin: 0 10px;">
<!-- 查看主表信息 --> <!-- 查看主表信息 如果配置中masterId的值为空则不显示-->
<el-button <el-button
v-if="item == 'showParent'" v-if="item == 'showParent' && (scope.row[URLOption_masterId])"
type="text" type="text"
@click="showParentHandleForDetail(scope.row)" @click="showParentHandleForDetail(scope.row)"
>查看主表信息</el-button> >查看主表信息</el-button>

Loading…
Cancel
Save