|
|
@@ -46,25 +46,36 @@
|
|
|
>
|
|
|
打印条码
|
|
|
</el-button>
|
|
|
- <!-- <el-button
|
|
|
+ <el-button
|
|
|
size="small"
|
|
|
:disabled="checkRadioData.length == 0"
|
|
|
icon="el-icon-thumb"
|
|
|
class="ele-btn-icon"
|
|
|
@click="moveTo(checkRadioData, 'person')"
|
|
|
+ v-if="$hasPermission('main:substance:update')"
|
|
|
>
|
|
|
设置片区负责人
|
|
|
</el-button>
|
|
|
- <el-button size="small" class="ele-btn-icon" @click="handlDelete"
|
|
|
- >删除</el-button
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ :disabled="checkRadioData.length == 0"
|
|
|
+ icon="el-icon-s-tools"
|
|
|
+ class="ele-btn-icon"
|
|
|
+ @click="batchSettings(1)"
|
|
|
+ v-if="$hasPermission('main:substance:update')"
|
|
|
>
|
|
|
+ 设置权属部门
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
- @click="moveTo(checkRadioData, 'move')"
|
|
|
:disabled="checkRadioData.length == 0"
|
|
|
+ icon="el-icon-setting"
|
|
|
class="ele-btn-icon"
|
|
|
- >移动到</el-button
|
|
|
- > -->
|
|
|
+ @click="batchSettings(2)"
|
|
|
+ v-if="$hasPermission('main:substance:update')"
|
|
|
+ >
|
|
|
+ 设置使用单位
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
<!-- 编码列 -->
|
|
|
<template v-slot:code="{ row }">
|
|
|
@@ -84,21 +95,24 @@
|
|
|
</el-link>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
- <DialogMoveto ref="movetoRef" @success="sucesstion" />
|
|
|
<print ref="printRef"></print>
|
|
|
<printSr ref="printSrRef"></printSr>
|
|
|
<printTg ref="printTgRef"></printTg>
|
|
|
+ <batchSetDialog ref="batchSetRef" @success="sucesstion" />
|
|
|
+ <DialogMoveto ref="movetoRef" @success="sucesstion" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import batchSetDialog from '@/views/ledgerAssets/equipment/components/batchSetDialog.vue';
|
|
|
+ import DialogMoveto from '@/views/ledgerAssets/equipment/components/DialogMoveTo.vue';
|
|
|
import print from '@/views/ledgerAssets/components/print.vue';
|
|
|
import printSr from '@/views/ledgerAssets/components/printSr';
|
|
|
import printTg from '@/views/ledgerAssets/components/printTg';
|
|
|
import { getByCode } from '@/api/system/dictionary-data';
|
|
|
import { businessStatus, sourceStatus } from '@/utils/dict/warehouse';
|
|
|
import EquipmentSearch from './equipment-search.vue';
|
|
|
- import DialogMoveto from './DialogMoveTo.vue';
|
|
|
+
|
|
|
import {
|
|
|
getAssetList,
|
|
|
downloadAsset,
|
|
|
@@ -116,7 +130,14 @@
|
|
|
import { getToken, setToken } from '@/utils/token-util';
|
|
|
|
|
|
export default {
|
|
|
- components: { EquipmentSearch, DialogMoveto, print, printSr, printTg },
|
|
|
+ components: {
|
|
|
+ EquipmentSearch,
|
|
|
+ print,
|
|
|
+ printSr,
|
|
|
+ printTg,
|
|
|
+ DialogMoveto,
|
|
|
+ batchSetDialog
|
|
|
+ },
|
|
|
mixins: [dictMixins],
|
|
|
props: {
|
|
|
// 类别id
|
|
|
@@ -160,7 +181,7 @@
|
|
|
minWidth: 180
|
|
|
},
|
|
|
{
|
|
|
- prop: 'name',
|
|
|
+ prop: 'category.name',
|
|
|
label: '名称',
|
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 110
|
|
|
@@ -310,6 +331,25 @@
|
|
|
this.getAssetLevelOptions();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 刷新回调
|
|
|
+ sucesstion(is) {
|
|
|
+ console.log(is);
|
|
|
+ if (is) {
|
|
|
+ this.reload();
|
|
|
+ }
|
|
|
+ this.checkRadioData = [];
|
|
|
+ },
|
|
|
+ // 移动到
|
|
|
+ moveTo(arr, type) {
|
|
|
+ this.$refs.movetoRef.open(arr, this.current, type);
|
|
|
+ },
|
|
|
+ batchSettings(type) {
|
|
|
+ let ids = this.checkRadioData.map((item) => {
|
|
|
+ return item.id;
|
|
|
+ });
|
|
|
+ this.$refs.batchSetRef.open(type, ids);
|
|
|
+ console.log(this.checkRadioData, 'checkRadioData 123');
|
|
|
+ },
|
|
|
allPrinting() {
|
|
|
if (this.clientEnvironmentId == 2) {
|
|
|
this.$refs.printSrRef.open(this.checkRadioData);
|
|
|
@@ -332,17 +372,7 @@
|
|
|
})
|
|
|
: [];
|
|
|
},
|
|
|
- // 刷新回调
|
|
|
- sucesstion(is) {
|
|
|
- if (is) {
|
|
|
- this.reload();
|
|
|
- }
|
|
|
- this.checkRadioData = [];
|
|
|
- },
|
|
|
- // 移动到
|
|
|
- moveTo(arr, type) {
|
|
|
- this.$refs.movetoRef.open(arr, this.current, type);
|
|
|
- },
|
|
|
+
|
|
|
// 全选
|
|
|
changeSelectAll(arr) {
|
|
|
console.log(arr);
|