装备配置率配置

This commit is contained in:
jiang 2026-01-27 17:35:16 +08:00
parent c2f64313fe
commit d10a41ef8c
3 changed files with 1247 additions and 1258 deletions

View File

@ -366,14 +366,12 @@ export default {
//3.6.7.8. //3.6.7.8.
// \n // \n
this.dialogRow = this.dialogRow =
`装备名称:${row.name}\r\n` + `${row.name}\r\n` +
`装备编码:${row.code}\r\n` + `${row.code}\r\n` +
`规格型号:${row.specificationModel}\r\n` + `${row.specificationModel}\r\n` +
`产权单位:${row.propertyUnit}\r\n` + `${row.propertyUnit}\r\n` +
`装备小类:${row.subCategory}\r\n` + `${row.manufacturer}\r\n` +
`生产厂家:${row.manufacturer}\r\n` + `${row.productionDate}\r\n`
`出厂日期:${row.productionDate}\r\n` +
`特征属性:{${property}}`
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.qr3?.refreshQrcode() this.$refs.qr3?.refreshQrcode()
}) })

View File

@ -737,7 +737,6 @@
}) })
}, },
parseSelectOptions(value) { parseSelectOptions(value) {
if (!value) return [] if (!value) return []
// 1 // 1
@ -783,7 +782,7 @@
await this.getDeptTreeSelect() await this.getDeptTreeSelect()
if (type === 'edit') { if (type === 'edit') {
this.pageTitle = '编辑装备' this.pageTitle = '编辑装备'
this.isEdit = true this.isEdit = false
this.maId = id this.maId = id
this.getInfo() this.getInfo()
} else { } else {
@ -811,14 +810,14 @@
// fieldVoList form // fieldVoList form
this.config.forEach(item => { this.config.forEach(item => {
if (!item.propertyCode) return; // if (!item.propertyCode) return //
if (item.inputType == 'SELECT' && item.value) { if (item.inputType == 'SELECT' && item.value) {
// //
this.$set(this.form, item.propertyCode, item.propertyValue ? item.propertyValue.split(',') : []); this.$set(this.form, item.propertyCode, item.propertyValue ? item.propertyValue.split(',') : [])
} else { } else {
this.$set(this.form, item.propertyCode, item.propertyValue ?? ''); this.$set(this.form, item.propertyCode, item.propertyValue ?? '')
} }
}); })
} }
const propertyList = row.propertyVoList || [] const propertyList = row.propertyVoList || []
@ -831,14 +830,12 @@
.join(',') .join(',')
//3.6.7.8. //3.6.7.8.
this.dialogRow = this.dialogRow =
`装备名称:${row.name}\r\n` + `${row.name}\r\n` +
`装备编码:${row.code}\r\n` + `${row.code}\r\n` +
`规格型号:${row.specificationModel}\r\n` + `${row.specificationModel}\r\n` +
`产权单位:${row.propertyUnit}\r\n` + `${row.propertyUnit}\r\n` +
`装备小类:${row.subCategory}\r\n` + `${row.manufacturer}\r\n` +
`生产厂家:${row.manufacturer}\r\n` + `${row.productionDate}\r\n`
`出厂日期:${row.productionDate}\r\n` +
`特征属性:{${property}}`
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.qr3?.refreshQrcode() this.$refs.qr3?.refreshQrcode()
@ -1036,7 +1033,7 @@
this.isSubmit = true this.isSubmit = true
const loading = this.$loading() const loading = this.$loading()
try { try {
var fieldVoList = []; var fieldVoList = []
// //
if (this.config && this.config.length > 0) { if (this.config && this.config.length > 0) {
this.config.forEach(item => { this.config.forEach(item => {
@ -1047,9 +1044,6 @@
}) })
} }
if (!this.form.orderId && !this.isEdit) { if (!this.form.orderId && !this.isEdit) {
const result = await getEquipmentAddIdApi() const result = await getEquipmentAddIdApi()
this.orderId = result.data.id this.orderId = result.data.id

View File

@ -380,33 +380,29 @@
<el-form :inline="true" :model="searchForm.own" class="demo-form-inline"> <el-form :inline="true" :model="searchForm.own" class="demo-form-inline">
<el-form-item label="装备名称"> <el-form-item label="装备名称">
<el-input <el-input
v-model="searchForm.own.equipmentName" v-model="searchForm.own.name"
placeholder="请输入装备名称" placeholder="请输入装备名称"
clearable clearable
size="small"
/> />
</el-form-item> </el-form-item>
<el-form-item label="装备类型"> <el-form-item label="装备类型">
<el-select <el-select v-model="searchForm.own.type" placeholder="请选择分类"
v-model="searchForm.own.equipmentType" style="width: 100%;"
placeholder="请选择装备类型" clearable filterable @change="handleCategoryChange"
clearable
size="small"
> >
<el-option <el-option
v-for="item in equipmentTypeOptions" v-for="item in categoryList"
:key="item.value" :key="item.uniqueKey"
:label="item.label" :label="`${item.equipmentName}(${item.devType})`"
:value="item.value" :value="item.equipmentName"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="规格型号"> <el-form-item label="规格型号">
<el-input <el-input
v-model="searchForm.own.specModel" v-model="searchForm.own.specificationModel"
placeholder="请输入规格型号" placeholder="请输入规格型号"
clearable clearable
size="small"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -904,9 +900,9 @@ export default {
// //
searchForm: { searchForm: {
own: { own: {
equipmentName: '', name: '',
equipmentType: '', type: '',
specModel: '' specificationModel: ''
}, },
sharing: { sharing: {
equipmentName: '', equipmentName: '',
@ -1387,15 +1383,16 @@ export default {
async handleInstanceTableOwn() { async handleInstanceTableOwn() {
// //
this.searchForm.own = { this.searchForm.own = {
equipmentName: '', name: '',
equipmentType: '', type: '',
specModel: '' specificationModel: ''
} }
this.selectedOwnRows = [] this.selectedOwnRows = []
// //
this.tableData.own.pageNum = 1 this.tableData.own.pageNum = 1
// //
await this.loadOwnEquipmentData() await this.loadOwnEquipmentData()
await this.getCategoryList()
this.ownOpen = true this.ownOpen = true
}, },
async loadOwnEquipmentData() { async loadOwnEquipmentData() {
@ -1427,9 +1424,9 @@ export default {
}, },
resetOwnSearch() { resetOwnSearch() {
this.searchForm.own = { this.searchForm.own = {
equipmentName: '', name: '',
equipmentType: '', type: '',
specModel: '' specificationModel: ''
} }
this.tableData.own.pageNum = 1 this.tableData.own.pageNum = 1
this.loadOwnEquipmentData() this.loadOwnEquipmentData()