增加权限控制
This commit is contained in:
@@ -85,8 +85,10 @@
|
|||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" @click="picDetailFun(scope.row.billNo, 0, 1)">入库图片</el-button>
|
<el-button link type="primary" @click="picDetailFun(scope.row.billNo, 0, 1)">入库图片</el-button>
|
||||||
<el-button link type="primary" @click="billClick(scope.row, 'bill', 'rk')">入库单</el-button>
|
<el-button link type="primary" @click="billClick(scope.row, 'bill', 'rk')">入库单</el-button>
|
||||||
<el-button link type="primary" @click="editData(scope.row)">修改</el-button>
|
<el-button link type="primary" @click="editData(scope.row)"
|
||||||
<el-button link type="primary" @click="delData(scope.row)">删除</el-button>
|
v-hasPermi="['wisdom:bill:edit']">修改</el-button>
|
||||||
|
<el-button link type="primary" @click="delData(scope.row)"
|
||||||
|
v-hasPermi="['wisdom:bill:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -126,13 +128,16 @@
|
|||||||
<el-button type="primary" plain icon="Plus" @click="handleDispatch">生成调度任务</el-button>
|
<el-button type="primary" plain icon="Plus" @click="handleDispatch">生成调度任务</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="Plus" @click="handleOneClickWarehousing">一键入库</el-button>
|
<el-button type="primary" plain icon="Plus" @click="handleOneClickWarehousing"
|
||||||
|
v-hasPermi="['wisdom:record:finish']">一键入库</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="Plus" @click="handleOneClickStockDelete">一键撤销</el-button>
|
<el-button type="primary" plain icon="Plus" @click="handleOneClickStockDelete"
|
||||||
|
v-hasPermi="['wisdom:record:rollback']">一键撤销</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="Delete" @click="handleOneClickStockDel">一键删除</el-button>
|
<el-button type="primary" plain icon="Delete" @click="handleOneClickStockDel"
|
||||||
|
v-hasPermi="['wisdom:record:remove']">一键删除</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="detailLoading" ref="infoTableRef" highlight-current-row
|
<el-table v-loading="detailLoading" ref="infoTableRef" highlight-current-row
|
||||||
@@ -157,7 +162,8 @@
|
|||||||
<el-table-column label="实际入库数量" align="center" prop="realQty" width="120" />
|
<el-table-column label="实际入库数量" align="center" prop="realQty" width="120" />
|
||||||
<el-table-column label="库位码" align="center" prop="pcode" width="120" />
|
<el-table-column label="库位码" align="center" prop="pcode" width="120" />
|
||||||
<el-table-column label="备注" align="center" prop="remark" width="200" />
|
<el-table-column label="备注" align="center" prop="remark" width="200" />
|
||||||
<el-table-column label="需求方" align="center" prop="demandDeptName" v-if="stockList.length && stockList[0].wlType == 'WZ008'" width="200" />
|
<el-table-column label="需求方" align="center" prop="demandDeptName"
|
||||||
|
v-if="stockList.length && stockList[0].wlType == 'WZ008'" width="200" />
|
||||||
<el-table-column label="是否移库" align="center" prop="isMove">
|
<el-table-column label="是否移库" align="center" prop="isMove">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span>{{ isMoveFun(scope.row.hasMoved) }}</span>
|
<span>{{ isMoveFun(scope.row.hasMoved) }}</span>
|
||||||
@@ -181,7 +187,7 @@
|
|||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['wisdom:bill:edit']">修改</el-button>
|
v-hasPermi="['wisdom:record:edit']">修改</el-button>
|
||||||
<el-button link type="primary" icon="Delete" v-show="scope.row.execStatus == 1"
|
<el-button link type="primary" icon="Delete" v-show="scope.row.execStatus == 1"
|
||||||
@click="handleStockDelete(scope.row)" v-hasPermi="['wisdom:bill:delete']">撤销</el-button>
|
@click="handleStockDelete(scope.row)" v-hasPermi="['wisdom:bill:delete']">撤销</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -878,12 +884,12 @@ warehouseFun();
|
|||||||
function warehouseRefresh() {
|
function warehouseRefresh() {
|
||||||
warehouseFun()
|
warehouseFun()
|
||||||
const location = storeData.value?.warehouseCode
|
const location = storeData.value?.warehouseCode
|
||||||
console.log(location,'location==>');
|
console.log(location, 'location==>');
|
||||||
// 更新库位
|
// 更新库位
|
||||||
if (location) {
|
if (location) {
|
||||||
pcodeList(location)
|
pcodeList(location)
|
||||||
}else{
|
} else {
|
||||||
kwOptions.value =[]
|
kwOptions.value = []
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,8 +81,10 @@
|
|||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" @click="picDetailFun(scope.row.billNo)">图片</el-button>
|
<el-button link type="primary" @click="picDetailFun(scope.row.billNo)">图片</el-button>
|
||||||
<el-button link type="primary" @click="billClick(scope.row, 'bill')">出库单</el-button>
|
<el-button link type="primary" @click="billClick(scope.row, 'bill')">出库单</el-button>
|
||||||
<el-button link type="primary" @click="editData(scope.row)">修改</el-button>
|
<el-button link type="primary" @click="editData(scope.row)"
|
||||||
<el-button link type="primary" @click="delData(scope.row)">删除</el-button>
|
v-hasPermi="['wisdom:outbound:edit']">修改</el-button>
|
||||||
|
<el-button link type="primary" @click="delData(scope.row)"
|
||||||
|
v-hasPermi="['wisdom:outbound:delete']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -100,13 +102,16 @@
|
|||||||
<el-button type="primary" plain icon="Plus" @click="handleDispatch">生成调度任务</el-button>
|
<el-button type="primary" plain icon="Plus" @click="handleDispatch">生成调度任务</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="Plus" @click="handleOneClickWarehousing">一键出库</el-button>
|
<el-button type="primary" plain icon="Plus" @click="handleOneClickWarehousing"
|
||||||
|
v-hasPermi="['wisdom:record:out:finish']">一键出库</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="Plus" @click="handleOneClickStockDelete">一键撤销</el-button>
|
<el-button type="primary" plain icon="Plus" @click="handleOneClickStockDelete"
|
||||||
|
v-hasPermi="['wisdom:bill:out:rollback']">一键撤销</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="Delete" @click="handleOneClickStockDel">一键删除</el-button>
|
<el-button type="primary" plain icon="Delete" @click="handleOneClickStockDel"
|
||||||
|
v-hasPermi="['wisdom:record:out:remove']">一键删除</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="detailLoading" show-overflow-tooltip border :data="outboundList"
|
<el-table v-loading="detailLoading" show-overflow-tooltip border :data="outboundList"
|
||||||
@@ -154,9 +159,9 @@
|
|||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['wisdom:bill:edit']" v-show="scope.row.execStatus == 0">修改</el-button>
|
v-hasPermi="['wisdom:outRecord:edit']" v-show="scope.row.execStatus == 0">修改</el-button>
|
||||||
<el-button link type="primary" icon="Delete" @click="handleStockDelete(scope.row)"
|
<el-button link type="primary" icon="Delete" @click="handleStockDelete(scope.row)"
|
||||||
v-show="scope.row.execStatus == 1" v-hasPermi="['wisdom:bill:delete']">撤销</el-button>
|
v-show="scope.row.execStatus == 1" v-hasPermi="['wisdom:bill:out:rollback']">撤销</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|||||||
Reference in New Issue
Block a user