|
|
|
@ -55,42 +55,42 @@ |
|
|
|
<el-row :gutter="10" class="mb8"> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<!-- 更新物资库 --> |
|
|
|
<el-button type="primary" @click="handlePlff">{{ |
|
|
|
<el-button type="primary" @click="handlePlff" v-hasPermi="['business:resource:gsp:gxwzk']">{{ |
|
|
|
$t('page.business.resource.gsp.gxwzk') }}</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<!-- 新增 --> |
|
|
|
<el-button type="primary" @click="handleXz">{{ |
|
|
|
<el-button type="primary" @click="handleXz" v-hasPermi="['business:resource:gsp:xz']">{{ |
|
|
|
$t('form.add') }}</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<!-- 批量发放 --> |
|
|
|
<el-button type="primary" :disabled="multiple" @click="handlePlff">{{ |
|
|
|
<el-button type="primary" :disabled="multiple" @click="handlePlff" v-hasPermi="['business:resource:gsp:ff']">{{ |
|
|
|
$t('page.business.resource.gsp.plff') }}</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<!-- 批量处置 --> |
|
|
|
<el-button type="primary" :disabled="multiple" @click="handlePlcz">{{ |
|
|
|
<el-button type="primary" :disabled="multiple" @click="handlePlcz" v-hasPermi="['business:resource:gsp:cz']">{{ |
|
|
|
$t('page.business.resource.gsp.plcz') }}</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<!-- 钥匙发放 --> |
|
|
|
<el-button type="primary" :disabled="multiple" @click="handleYsff">{{ |
|
|
|
<el-button type="primary" :disabled="multiple" @click="handleYsff" v-hasPermi="['business:resource:gsp:ff']">{{ |
|
|
|
$t('page.business.resource.gsp.ysff') }}</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<!-- 批量锁定 --> |
|
|
|
<el-button type="primary" :disabled="multiple" @click="handlePlsd">{{ |
|
|
|
<el-button type="primary" :disabled="multiple" @click="handlePlsd" v-hasPermi="['business:resource:gsp:ysff']">{{ |
|
|
|
$t('page.business.resource.gsp.plsd') }}</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<!-- 批量归档 --> |
|
|
|
<el-button type="primary" :disabled="multiple" @click="handlePlgd">{{ |
|
|
|
<el-button type="primary" :disabled="multiple" @click="handlePlgd" v-hasPermi="['business:resource:gsp:gd']">{{ |
|
|
|
$t('page.business.resource.gsp.plgd') }}</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<!-- 导出 --> |
|
|
|
<el-button type="primary" @click="handleDc">{{ |
|
|
|
<el-button type="primary" @click="handleDc" v-hasPermi="['business:resource:gsp:dc']">{{ |
|
|
|
$t('form.export') }}</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -138,55 +138,56 @@ |
|
|
|
<template |
|
|
|
v-if="scope.row.zjzt == 1 || scope.row.zjzt == 3 || scope.row.zjzt == 5 || (scope.row.zjzt == 9 && scope.row.jyzt == 5)"> |
|
|
|
<!-- 详情 --> |
|
|
|
<el-button type="text" @click="handleXq(scope.row)">{{ |
|
|
|
<el-button type="text" @click="handleXq(scope.row)" v-hasPermi="['business:resource:gsp:xq']">{{ |
|
|
|
$t('page.business.resource.gsp.detail') }}</el-button> |
|
|
|
</template> |
|
|
|
<template v-if="scope.row.zjzt == 1"> |
|
|
|
<!-- 发放 --> |
|
|
|
<el-button type="text" @click="handleFf(scope.row)">{{ |
|
|
|
<el-button type="text" @click="handleFf(scope.row)" v-hasPermi="['business:resource:gsp:ff']">{{ |
|
|
|
$t('page.business.resource.gsp.fafang') }}</el-button> |
|
|
|
<!-- 处置 --> |
|
|
|
<el-button type="text" @click="handleCz(scope.row)">{{ |
|
|
|
<el-button type="text" @click="handleCz(scope.row)" v-hasPermi="['business:resource:gsp:cz']">{{ |
|
|
|
$t('page.business.resource.gsp.cz') }}</el-button> |
|
|
|
<!-- 编辑 --> |
|
|
|
<el-button v-if="scope.row.bjzt == 1 && scope.row.zjzt == 1" type="text" @click="handleBj(scope.row)">{{ |
|
|
|
<el-button v-if="scope.row.bjzt == 1 && scope.row.zjzt == 1" type="text" @click="handleBj(scope.row)" |
|
|
|
v-hasPermi="['business:resource:gsp:bj']">{{ |
|
|
|
$t('form.edit') }}</el-button> |
|
|
|
<!-- 修改库存 --> |
|
|
|
<el-button v-if="scope.row.kcbjzt == 1" type="text" @click="handleXgkc(scope.row)" >{{ |
|
|
|
<el-button v-if="scope.row.kcbjzt == 1" type="text" @click="handleXgkc(scope.row)" v-hasPermi="['business:resource:gsp:xgkc']" >{{ |
|
|
|
$t('page.business.resource.gsp.xgkc') }}</el-button> |
|
|
|
<!-- 锁定 --> |
|
|
|
<el-button type="text" @click="handleSd(scope.row)">{{ |
|
|
|
<el-button type="text" @click="handleSd(scope.row)" v-hasPermi="['business:resource:gsp:sd']">{{ |
|
|
|
$t('page.business.resource.gsp.lock') }}</el-button> |
|
|
|
</template> |
|
|
|
<template v-if="scope.row.bjzt == 3 && (scope.row.zjzt == 1 || scope.row.zjzt == 3)"> |
|
|
|
<!-- 审核编辑 --> |
|
|
|
<el-button type="text" @click="handleShbj(scope.row)" >{{ |
|
|
|
<el-button type="text" @click="handleShbj(scope.row)" v-hasPermi="['business:resource:gsp:shbj']" >{{ |
|
|
|
$t('page.business.resource.gsp.shbj') }}</el-button> |
|
|
|
</template> |
|
|
|
<template v-if="scope.row.kcbjzt == 3 && (scope.row.zjzt == 1 || scope.row.zjzt == 3)"> |
|
|
|
<!-- 审核修改库存 --> |
|
|
|
<el-button type="text" @click="handleShxgkc(scope.row)">{{ |
|
|
|
<el-button type="text" @click="handleShxgkc(scope.row)" v-hasPermi="['business:resource:gsp:xgkc']">{{ |
|
|
|
$t('page.business.resource.gsp.shxgkc') }}</el-button> |
|
|
|
</template> |
|
|
|
<template v-if="scope.row.zjzt == 5"> |
|
|
|
<!-- 解锁 --> |
|
|
|
<el-button type="text" @click="handleJs(scope.row)">{{ |
|
|
|
<el-button type="text" @click="handleJs(scope.row)" v-hasPermi="['business:resource:gsp:js']">{{ |
|
|
|
$t('page.business.resource.gsp.unlock') }}</el-button> |
|
|
|
<!-- 归档 --> |
|
|
|
<el-button type="text" @click="handleGd(scope.row)">{{ |
|
|
|
<el-button type="text" @click="handleGd(scope.row)" v-hasPermi="['business:resource:gsp:gd']">{{ |
|
|
|
$t('page.business.resource.gsp.guidang') }}</el-button> |
|
|
|
</template> |
|
|
|
<template v-if="scope.row.zjzt == 3"> |
|
|
|
<!-- 归还 --> |
|
|
|
<el-button type="text" @click="handleGh(scope.row)" >{{ |
|
|
|
<el-button type="text" @click="handleGh(scope.row)" v-hasPermi="['business:resource:gsp:gh']">{{ |
|
|
|
$t('page.business.resource.gsp.guihuan') }}</el-button> |
|
|
|
</template> |
|
|
|
<template v-if="scope.row.zjzt == 9 && scope.row.jyzt == 1"> |
|
|
|
<!-- 解档 --> |
|
|
|
<el-button type="text" @click="handleJd(scope.row)" >{{ |
|
|
|
<el-button type="text" @click="handleJd(scope.row)" v-hasPermi="['business:resource:gsp:jd']">{{ |
|
|
|
$t('page.business.resource.gsp.jiedang') }}</el-button> |
|
|
|
<!-- 借阅 --> |
|
|
|
<el-button type="text" @click="handleJy(scope.row)" >{{ |
|
|
|
<el-button type="text" @click="handleJy(scope.row)" v-hasPermi="['business:resource:gsp:jy']">{{ |
|
|
|
$t('page.business.resource.gsp.jieyue') }}</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|