Commit 4bdb72e8 authored by 李苏's avatar 李苏 💬

powerObj

parent 489cf0c6
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="qr(ctx.basePage)" size='mini' type="primary">确认</el-button> <el-button @click="qr(ctx.basePage)" size='mini' type="primary">确认</el-button>
<el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button> <el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button>
<ImportButton style="margin-left: 10px;" @success="()=>{ <ImportButton v-if="ctx.basePage.powerObj['01']" style="margin-left: 10px;" @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'/lxyl/ckgl/bfcktz/import'" /> }" :url="'/lxyl/ckgl/bfcktz/import'" />
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="wc(ctx.basePage)" size='mini' type="primary">完成</el-button> <el-button @click="wc(ctx.basePage)" size='mini' type="primary">完成</el-button>
<el-button @click="qxwc(ctx.basePage)" size='mini' type="primary" style="margin-right: 10px;">取消完成</el-button> <el-button @click="qxwc(ctx.basePage)" size='mini' type="primary" style="margin-right: 10px;">取消完成</el-button>
<ImportButton @success="()=>{ <ImportButton v-if="ctx.basePage.powerObj['01']" @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'/wms/rkgl/cskc/import'" /> }" :url="'/wms/rkgl/cskc/import'" />
<!-- <el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button> --> <!-- <el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button> -->
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<ImportButton @success="()=>{ <ImportButton v-if="ctx.basePage.powerObj['01']" @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'lxyl/jcsj/uck/import'" /> }" :url="'lxyl/jcsj/uck/import'" />
</template> </template>
......
...@@ -26,11 +26,17 @@ ...@@ -26,11 +26,17 @@
<AddButton ref="add" :app='app'></AddButton> <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton>
<ExportTempButton :url="'jcsj/gys/excel/export'" :exportName="'供应商信息导入模板.xlsx'" ></ExportTempButton>
<!-- <ExportTempButton :url="'jcsj/gys/excel/export'" :exportName="'供应商信息导入模板.xlsx'" ></ExportTempButton>
<ImportTempButton @success="()=>{ <ImportTempButton @success="()=>{
$refs['TablePager'].pageQuery() $refs['TablePager'].pageQuery()
}" :url="'jcsj/gys/import'"></ImportTempButton> }" :url="'jcsj/gys/import'"></ImportTempButton> -->
<el-button @click="tb()" size='mini' type="primary" style="margin-left: 10px;">同步</el-button> <el-button @click="tb()" size='mini' type="primary" >同步</el-button>
<ImportButton v-if="powerObj['01']" style="margin-left: 10px;" @success="()=>{
$refs['TablePager'].pageQuery()
}" :url="'jcsj/gys/excel/import'" />
<!-- <AttachFileButton :app='app' ></AttachFileButton> --> <!-- <AttachFileButton :app='app' ></AttachFileButton> -->
<!-- 额外按钮--> <!-- 额外按钮-->
<!-- 表头设置 --> <!-- 表头设置 -->
...@@ -40,7 +46,7 @@ ...@@ -40,7 +46,7 @@
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
<template slot="tabCustom"> <template v-if="powerObj['02']" slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" fixed="right" > <el-table-column label="启用/停用" width="90" header-align="center" fixed="right" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;" <el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
......
...@@ -34,10 +34,16 @@ ...@@ -34,10 +34,16 @@
<AddButton ref="add" :app='app'></AddButton> <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton>
<ImportButton v-if="ctx.basePage.powerObj['01']" @success="()=>{
$refs['TablePager'].pageQuery()
}" :url="'jcsj/kh/excel/import'" />
<!--
<ExportTempButton :url="'jcsj/kh/excel/export'" :exportName="'客户信息导入模板.xlsx'" ></ExportTempButton> <ExportTempButton :url="'jcsj/kh/excel/export'" :exportName="'客户信息导入模板.xlsx'" ></ExportTempButton>
<ImportTempButton @success="()=>{ <ImportTempButton @success="()=>{
$refs['TablePager'].pageQuery() $refs['TablePager'].pageQuery()
}" :url="'jcsj/kh/import'"></ImportTempButton> }" :url="'jcsj/kh/import'"></ImportTempButton> -->
<el-button @click="tb()" size='mini' type="primary" style="margin-left: 10px;">同步</el-button> <el-button @click="tb()" size='mini' type="primary" style="margin-left: 10px;">同步</el-button>
<!-- <AttachFileButton :app='app' ></AttachFileButton> --> <!-- <AttachFileButton :app='app' ></AttachFileButton> -->
<!-- 额外按钮--> <!-- 额外按钮-->
...@@ -48,7 +54,7 @@ ...@@ -48,7 +54,7 @@
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
<template slot="tabCustom"> <template v-if="powerObj['02']" slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" fixed="right" > <el-table-column label="启用/停用" width="90" header-align="center" fixed="right" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;" <el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<ImportButton @success="()=>{ <ImportButton v-if="ctx.basePage.powerObj['01']" @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'/lxyl/jcsj/kq/import'" /> }" :url="'/lxyl/jcsj/kq/import'" />
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<ImportButton @success="()=>{ <ImportButton v-if="ctx.basePage.powerObj['01']" @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'lxyl/jcsj/kw/import'" /> }" :url="'lxyl/jcsj/kw/import'" />
<el-button style="margin-left: 10px;" @click="qkkw(ctx.basePage)" size='mini' type="primary">清空</el-button> <el-button style="margin-left: 10px;" @click="qkkw(ctx.basePage)" size='mini' type="primary">清空</el-button>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
<template slot="tabCustom"> <template v-if="powerObj['02']" slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" fixed="right" > <el-table-column label="启用/停用" width="90" header-align="center" fixed="right" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;" <el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<wlztDialog :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='物料组托'" /> <wlztDialog :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='物料组托'" />
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<ImportButton @success="()=>{ <ImportButton v-if="ctx.basePage.powerObj['01']" @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'/wms/kcgl/rqdj/import'" /> }" :url="'/wms/kcgl/rqdj/import'" />
<el-button @click="zt(ctx.basePage)" size='mini' style="margin-left: 10px;" type="primary">组托</el-button> <el-button @click="zt(ctx.basePage)" size='mini' style="margin-left: 10px;" type="primary">组托</el-button>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<ImportButton @success="()=>{ <ImportButton v-if="ctx.basePage.powerObj['01']" @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'/lxyl/rkgl/rktz/import'" /> }" :url="'/lxyl/rkgl/rktz/import'" />
<el-button style="margin-left: 10px;" @click="qr(ctx.basePage)" size='mini' type="primary">确认</el-button> <el-button style="margin-left: 10px;" @click="qr(ctx.basePage)" size='mini' type="primary">确认</el-button>
......
...@@ -26,10 +26,16 @@ ...@@ -26,10 +26,16 @@
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton> <AttachFileButton :app='app' ></AttachFileButton>
<ExportTempButton :url="'jcsj/wlxx/excel/export'" :exportName="'物料信息导入模板.xlsx'" ></ExportTempButton>
<ImportButton v-if="powerObj['01']" style="margin-right: 10px;" @success="()=>{
$refs['TablePager'].pageQuery()
}" :url="'jcsj/wlxx/excel/import'" />
<!-- <ExportTempButton :url="'jcsj/wlxx/excel/export'" :exportName="'物料信息导入模板.xlsx'" ></ExportTempButton>
<ImportTempButton @success="()=>{ <ImportTempButton @success="()=>{
$refs['TablePager'].pageQuery() $refs['TablePager'].pageQuery()
}" :url="'jcsj/wlxx/import'"></ImportTempButton> }" :url="'jcsj/wlxx/import'"></ImportTempButton> -->
<el-button @click="tbwl()" size='mini' type="primary">同步物料</el-button> <el-button @click="tbwl()" size='mini' type="primary">同步物料</el-button>
<!-- 额外按钮--> <!-- 额外按钮-->
<!-- 表头设置 --> <!-- 表头设置 -->
...@@ -39,7 +45,7 @@ ...@@ -39,7 +45,7 @@
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
<template slot="tabCustom"> <template v-if="powerObj['02']" slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" fixed="right" > <el-table-column label="启用/停用" width="90" header-align="center" fixed="right" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;" <el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment