|
|
@@ -347,6 +347,23 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row :gutter="20" v-if="showzhuCeYouXiaoQi">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="注册证有效期:">
|
|
|
+ <el-date-picker
|
|
|
+ v-if="!readonly"
|
|
|
+ v-model="form.zhuCeYouXiaoQi"
|
|
|
+ style="width: 100%"
|
|
|
+ type="date"
|
|
|
+ placeholder="选择日期"
|
|
|
+ :readonly="readonly"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ size="mini"
|
|
|
+ />
|
|
|
+ <span v-else>{{ form.zhuCeYouXiaoQi || '/' }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col v-if="hasFuZeRenDianHua" :span="8">
|
|
|
<el-form-item label="负责人电话:">
|
|
|
@@ -1052,6 +1069,7 @@ import {
|
|
|
saveEquipmentCard
|
|
|
} from '@/api/platform/device/device'
|
|
|
import { getImage } from '@/api/platform/file/attachment'
|
|
|
+import { getSetting } from '@/utils/query'
|
|
|
export default {
|
|
|
components: {
|
|
|
IbpsUserSelector: () => import('@/business/platform/org/selector'),
|
|
|
@@ -1215,6 +1233,7 @@ export default {
|
|
|
isFinished: false,
|
|
|
preParams: {},
|
|
|
Ids: [],
|
|
|
+ showzhuCeYouXiaoQi: false,
|
|
|
form: {
|
|
|
gouJinRiQi: '', // 购进日期
|
|
|
changShang: '', // 厂家/品牌
|
|
|
@@ -1261,6 +1280,7 @@ export default {
|
|
|
huanJingYaoQiu: '', // 环境要求
|
|
|
dianYuanYaoQiu: '', // 电源要求
|
|
|
zhuCeZhengHao: '', // 注册证号
|
|
|
+ zhuCeYouXiaoQi: '', // 注册证有效期
|
|
|
yqzp: '', // 附件上传
|
|
|
faPiao: '', // 资质证书
|
|
|
fuJianShang: '', // 设备使用说明书
|
|
|
@@ -1399,6 +1419,7 @@ export default {
|
|
|
|
|
|
mounted() {
|
|
|
this.init()
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
changeGuanLiRen(key, data) {
|
|
|
@@ -1585,6 +1606,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
async init() {
|
|
|
+ const deviceres = await getSetting('device')
|
|
|
+ this.showzhuCeYouXiaoQi = deviceres?.showzhuCeYouXiaoQi || false
|
|
|
if (this.hideSysDeviceNo) {
|
|
|
this.rules.yuanSheBeiBian[0].message = '设备编号不能为空'
|
|
|
}
|