This commit is contained in:
itcast 2025-12-22 17:50:43 +08:00
parent c0f33de4b3
commit edbe3b9454
4 changed files with 33 additions and 21 deletions

View File

@ -243,7 +243,7 @@
<!-- 多选 --> <!-- 多选 -->
<el-form-item v-if="item.inputType == 3" :label="item.propertyName"> <el-form-item v-if="item.inputType == 3" :label="item.propertyName">
<el-select v-model="item.propertyValue" multiple placeholder="请选择" <el-select v-model="item.propertyValue" multiple placeholder="请选择"
:clearable="item.propertyValue !='' && item.propertyValue != null" clearable
style="width: 100%"> style="width: 100%">
<el-option <el-option
v-for="(item, index) in handleData(item.value)" v-for="(item, index) in handleData(item.value)"
@ -460,6 +460,9 @@ export default {
console.log('🚀 ~ getInfo ~ this.propertyVoList:', this.propertyVoList) console.log('🚀 ~ getInfo ~ this.propertyVoList:', this.propertyVoList)
if (this.propertyVoList.length > 0) { if (this.propertyVoList.length > 0) {
this.propertyVoList.forEach((item) => { this.propertyVoList.forEach((item) => {
if (item.propertyValue === '' || item.propertyValue === null || item.propertyValue === undefined) {
item.propertyValue = null;
}
if (item.inputType == 3) { if (item.inputType == 3) {
item.propertyValue = item.propertyValue.split(',') item.propertyValue = item.propertyValue.split(',')
} }

View File

@ -736,6 +736,7 @@ export default {
this.isAddVisible = this.$route.query.isAddVisible && JSON.parse(this.$route.query.isAddVisible) this.isAddVisible = this.$route.query.isAddVisible && JSON.parse(this.$route.query.isAddVisible)
this.isApprovalVisible = this.$route.query.isApprovalVisible && JSON.parse(this.$route.query.isApprovalVisible) this.isApprovalVisible = this.$route.query.isApprovalVisible && JSON.parse(this.$route.query.isApprovalVisible)
if (!this.orderId) { if (!this.orderId) {
this.orderId=''
this.pageTitle = '新增设备录入' this.pageTitle = '新增设备录入'
this.submitButtonText = '提交申请' this.submitButtonText = '提交申请'
} else if (this.isAddVisible) { } else if (this.isAddVisible) {
@ -785,7 +786,7 @@ export default {
productionDate: '', productionDate: '',
minOriginalValue: '', minOriginalValue: '',
maxOriginalValue: '', maxOriginalValue: '',
orderId: '',
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}, },
@ -973,30 +974,37 @@ export default {
this.upload.isUploading = true this.upload.isUploading = true
}, },
// //
//
handleFileSuccess(response, file, fileList) { handleFileSuccess(response, file, fileList) {
this.upload.open = false this.upload.open = false
this.upload.isUploading = false this.upload.isUploading = false
this.$refs.upload.clearFiles() this.$refs.upload.clearFiles()
this.$alert( this.$alert(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
response.msg + response.msg +
'</div>', '</div>',
'导入结果', '导入结果',
{ dangerouslyUseHTMLString: true }, { dangerouslyUseHTMLString: true },
) )
this.orderId = response.data || '' // 1orderIdorderId
this.$router if (response.data) {
.replace({ this.orderId = response.data
query: { this.$router
orderId: response.data, .replace({
isAddVisible: this.isAddVisible, query: {
isApprovalVisible: this.isApprovalVisible, orderId: response.data,
}, isAddVisible: this.isAddVisible,
}) isApprovalVisible: this.isApprovalVisible,
.then(() => { },
console.log('🚀 ~ 导入成功跳转完成') })
this.getList() .then(() => {
}) console.log('🚀 ~ 导入成功跳转完成')
this.getList()
})
} else {
// 2orderId使orderId
this.getList()
}
}, },
handleFileSuccess2(response, file, fileList) { handleFileSuccess2(response, file, fileList) {
this.upload.open2 = false this.upload.open2 = false
@ -1004,11 +1012,12 @@ export default {
this.$refs.upload2.clearFiles() this.$refs.upload2.clearFiles()
this.$alert( this.$alert(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
response.msg + response.msg +
'</div>', '</div>',
'导入结果', '导入结果',
{ dangerouslyUseHTMLString: true }, { dangerouslyUseHTMLString: true },
) )
// 3使orderId
setTimeout(() => { setTimeout(() => {
this.getList() this.getList()
}, 200) }, 200)

View File

@ -82,7 +82,7 @@
</el-row> --> </el-row> -->
<el-card class="content-box"> <el-card class="content-box">
<div > <div >
<el-table v-loading="loading" :data="tableData" border stripe height="650"> <el-table v-loading="loading" :data="tableData" border stripe height="546">
<el-table-column label="序号" align="center" width="80" type="index"> <el-table-column label="序号" align="center" width="80" type="index">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span> <span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>

View File

@ -104,7 +104,7 @@
<el-table <el-table
:data="projectList" :data="projectList"
show-overflow-tooltip show-overflow-tooltip
border stripe height="650" border stripe height="546"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<!--复选列--> <!--复选列-->