完善菜单权限
This commit is contained in:
parent
24f60a356a
commit
7cdd1e1e42
|
|
@ -44,6 +44,7 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['base:comeAndGo:add']"
|
||||
>新建</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -65,6 +66,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['base:comeAndGo:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -144,6 +146,7 @@
|
|||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['base:comeAndGo:edit']"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -151,6 +154,7 @@
|
|||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['base:comeAndGo:del']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['base:project:add']"
|
||||
>新建</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -54,6 +55,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['base:project:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -132,6 +134,7 @@
|
|||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['base:project:edit']"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -139,6 +142,7 @@
|
|||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['base:project:del']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['base:section:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -54,6 +55,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['base:section:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -136,6 +138,7 @@
|
|||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['base:section:edit']"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -143,6 +146,7 @@
|
|||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['base:section:del']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['base:unit:add']"
|
||||
>新建</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -54,6 +55,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['base:unit:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -107,6 +109,7 @@
|
|||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['base:unit:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -114,6 +117,7 @@
|
|||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['base:unit:del']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['machinery:coding:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
|
|
@ -225,6 +226,7 @@
|
|||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['machinery:coding:edit']"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -232,7 +234,7 @@
|
|||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['delete:user']"
|
||||
v-hasPermi="['machinery:coding:del']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -79,7 +79,8 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleSave"
|
||||
>保存</el-button
|
||||
v-hasPermi="['machinery:keeper:bind']"
|
||||
>绑定</el-button
|
||||
>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">-->
|
||||
|
|
@ -101,8 +102,9 @@
|
|||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['machinery:keeper:unbind:batch']"
|
||||
>
|
||||
解绑
|
||||
批量解绑
|
||||
</el-button>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">
|
||||
|
|
@ -122,6 +124,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['machinery:keeper:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -207,6 +210,8 @@
|
|||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-if="scope.row.userName"
|
||||
v-hasPermi="['machinery:keeper:unbind']"
|
||||
>
|
||||
解绑
|
||||
</el-button>
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['machinery:parts:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -116,6 +117,7 @@
|
|||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['machinery:parts:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<!-- <el-button-->
|
||||
|
|
@ -131,6 +133,7 @@
|
|||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['machinery:parts:del']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -79,7 +79,8 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleSave"
|
||||
>保存</el-button
|
||||
v-hasPermi="['machinery:personnel:bind']"
|
||||
>绑定</el-button
|
||||
>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">-->
|
||||
|
|
@ -103,8 +104,9 @@
|
|||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete()"
|
||||
v-hasPermi="['machinery:personnel:unbind:batch']"
|
||||
>
|
||||
解绑
|
||||
批量解绑
|
||||
</el-button>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">
|
||||
|
|
@ -134,6 +136,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['machinery:personnel:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -219,6 +222,8 @@
|
|||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-if="scope.row.userName"
|
||||
v-hasPermi="['machinery:personnel:unbind']"
|
||||
>
|
||||
解绑
|
||||
</el-button>
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['machinery:type:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -77,6 +78,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['machinery:type:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -184,6 +186,7 @@
|
|||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['machinery:supplier:edit']"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -191,6 +194,7 @@
|
|||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['machinery:supplier:del']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['machinery:type:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -231,6 +232,7 @@
|
|||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleConfig(scope.row)"
|
||||
v-hasPermi="['machinery:type:config']"
|
||||
>
|
||||
配置
|
||||
</el-button>
|
||||
|
|
@ -239,6 +241,7 @@
|
|||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['machinery:type:edit']"
|
||||
>
|
||||
修改
|
||||
</el-button>
|
||||
|
|
@ -247,6 +250,7 @@
|
|||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['machinery:type:del']"
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:dict:export']"
|
||||
v-hasPermi="['newPurchase:service:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@
|
|||
size="mini"
|
||||
@click="handleBind"
|
||||
:disabled="single"
|
||||
v-hasPermi="['tagBind:bind:bind']"
|
||||
>绑定</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -104,6 +105,7 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="createLabel"
|
||||
v-hasPermi="['tagBind:bind:create']"
|
||||
>标签生成</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -123,6 +125,7 @@
|
|||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="labelUpload"
|
||||
v-hasPermi="['tagBind:bind:unload']"
|
||||
>标签下载</el-button
|
||||
>
|
||||
</download-excel>
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['tagBind:history:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleNumberAdd"
|
||||
v-hasPermi="['warehousing:Inventory:add']"
|
||||
>数量盘点</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -46,6 +47,7 @@
|
|||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleCodeAdd"
|
||||
v-hasPermi="['warehousing:Inventory:add']"
|
||||
>编码盘点</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
|
|
@ -114,7 +116,8 @@
|
|||
type="text"
|
||||
size="mini"
|
||||
@click="queryDetails(row)"
|
||||
>查看详情</el-button
|
||||
v-hasPermi="['warehousing:Inventory:view']"
|
||||
>查看</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['warehousing:newParts:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -191,6 +192,7 @@
|
|||
size="mini"
|
||||
icon="el-icon-zoom-in"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['warehousing:newParts:view']"
|
||||
>查看</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -199,6 +201,7 @@
|
|||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-if="scope.row.taskStatus == 69"
|
||||
v-hasPermi="['warehousing:newParts:auditing']"
|
||||
>
|
||||
审核
|
||||
</el-button>
|
||||
|
|
@ -208,6 +211,7 @@
|
|||
icon="el-icon-edit"
|
||||
v-if="scope.row.taskStatus == 70"
|
||||
@click="handlePrint(scope.row)"
|
||||
v-hasPermi="['warehousing:newParts:list']"
|
||||
>
|
||||
入库单
|
||||
</el-button>
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['warehousing:newTools:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -169,6 +170,7 @@
|
|||
type="text"
|
||||
icon="el-icon-zoom-in"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['warehousing:newTools:view']"
|
||||
>查看</el-button
|
||||
>
|
||||
|
||||
|
|
@ -181,7 +183,7 @@
|
|||
scope.row.taskStatus == '105'
|
||||
"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['warehousing:auditing']"
|
||||
v-hasPermi="['warehousing:newTools:auditing']"
|
||||
>审核</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -190,6 +192,7 @@
|
|||
icon="el-icon-edit"
|
||||
v-if="scope.row.taskStatus == '28'"
|
||||
@click="handlePrint(scope.row)"
|
||||
v-hasPermi="['warehousing:newTools:list']"
|
||||
>入库单</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['warehousing:repair:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
@ -174,6 +175,7 @@
|
|||
size="mini"
|
||||
icon="el-icon-zoom-in"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['warehousing:repair:view']"
|
||||
>查看</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -182,7 +184,7 @@
|
|||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-if="scope.row.taskStatus == '入库进行中'"
|
||||
v-hasPermi="['repairTest:auditing']"
|
||||
v-hasPermi="['warehousing:repair:auditing']"
|
||||
>审核</el-button
|
||||
>
|
||||
<!-- <el-button-->
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@
|
|||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['warehousing:return:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
|
|
|||
Loading…
Reference in New Issue