|
@@ -102,7 +102,7 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
- <el-col :span="8">
|
|
|
|
|
|
|
+ <el-col v-if="!hideSysDeviceNo" :span="8">
|
|
|
<el-form-item label="设备编号:" prop="sheBeiShiBieH">
|
|
<el-form-item label="设备编号:" prop="sheBeiShiBieH">
|
|
|
<template slot="label">
|
|
<template slot="label">
|
|
|
<span>设备编号</span>
|
|
<span>设备编号</span>
|
|
@@ -116,7 +116,7 @@
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="原设备编号:" prop="yuanSheBeiBian">
|
|
<el-form-item label="原设备编号:" prop="yuanSheBeiBian">
|
|
|
<template slot="label">
|
|
<template slot="label">
|
|
|
- <span class="required">原设备编号:</span>
|
|
|
|
|
|
|
+ <span class="required">{{ hideSysDeviceNo?'设备编号':'原设备编号' }}:</span>
|
|
|
</template>
|
|
</template>
|
|
|
<el-input v-model="form.yuanSheBeiBian" size="mini" />
|
|
<el-input v-model="form.yuanSheBeiBian" size="mini" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -733,7 +733,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { getSetting } from '@/utils/query'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
|
import ibpsUserSelector from '@/business/platform/org/selector'
|
|
import ibpsUserSelector from '@/business/platform/org/selector'
|
|
|
import { getequipmentCard, saveEquipmentCard } from '@/api/platform/device/device'
|
|
import { getequipmentCard, saveEquipmentCard } from '@/api/platform/device/device'
|
|
@@ -764,6 +763,16 @@ export default {
|
|
|
default: function () {
|
|
default: function () {
|
|
|
return { '停用': '停用', '报废': '报废', '合格': '合格' }
|
|
return { '停用': '停用', '报废': '报废', '合格': '合格' }
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ hideSysDeviceNo: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ default: false
|
|
|
|
|
+ },
|
|
|
|
|
+ tabList: {
|
|
|
|
|
+ type: Object,
|
|
|
|
|
+ default: function () {
|
|
|
|
|
+ return {}
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
data () {
|
|
data () {
|
|
@@ -777,7 +786,6 @@ export default {
|
|
|
{ label: '维修记录', name: 'six', component: 'RepairRecord', isKeepAlive: true },
|
|
{ label: '维修记录', name: 'six', component: 'RepairRecord', isKeepAlive: true },
|
|
|
{ label: '停用、报废记录', name: 'seven', component: 'ScrappedRecord', isKeepAlive: true }
|
|
{ label: '停用、报废记录', name: 'seven', component: 'ScrappedRecord', isKeepAlive: true }
|
|
|
],
|
|
],
|
|
|
- tabList: {},
|
|
|
|
|
filter: [{
|
|
filter: [{
|
|
|
descVal: '1',
|
|
descVal: '1',
|
|
|
includeSub: true,
|
|
includeSub: true,
|
|
@@ -986,12 +994,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- async mounted () {
|
|
|
|
|
- const tabList = await getSetting('device', 'tabList')
|
|
|
|
|
- if (tabList) {
|
|
|
|
|
- console.debug(tabList)
|
|
|
|
|
- this.tabList = tabList
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ mounted () {
|
|
|
this.init()
|
|
this.init()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -1219,6 +1222,9 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
async init () {
|
|
async init () {
|
|
|
|
|
+ if (this.hideSysDeviceNo) {
|
|
|
|
|
+ this.rules.yuanSheBeiBian[0].message = '设备编号不能为空'
|
|
|
|
|
+ }
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
this.isEdit = !!(this.params && this.params.id)
|
|
this.isEdit = !!(this.params && this.params.id)
|
|
|
this.isSheKou = this.deptList[0].positionId === '1166372468122714112' // 判断是否是蛇口医院
|
|
this.isSheKou = this.deptList[0].positionId === '1166372468122714112' // 判断是否是蛇口医院
|