This commit is contained in:
BianLzhaoMin 2025-07-04 13:28:20 +08:00
parent f61f8a0ad8
commit 3c7c64462e
1 changed files with 12 additions and 1 deletions

View File

@ -23,7 +23,10 @@
noResultsText="没有搜索结果"
placeholder="请选择领用单位"
@select="uniteChange"
v-if="pageTitle === '新增'"
/>
<el-input v-else v-model="maForm.leaseUnit" style="width: 240px" disabled />
</el-form-item>
<el-form-item label="领用工程" prop="projectId">
<treeselect
@ -39,7 +42,10 @@
noResultsText="没有搜索结果"
placeholder="请选择领用工程"
@select="projectChange"
v-if="pageTitle === '新增'"
/>
<el-input v-else v-model="maForm.leaseProject" style="width: 240px" disabled />
</el-form-item>
<el-form-item label="领料人" prop="leasePerson">
<el-input
@ -566,7 +572,9 @@ export default {
currentTooltipItem: null,
tooltipPosition: { x: 0, y: 0 },
defaultImage: 'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg',
tooltipTimeout: null
tooltipTimeout: null,
pageTitle: '新增'
}
},
computed: {
@ -594,10 +602,12 @@ export default {
if (newVal.query.type == 'edit') {
this.isEdit = true
this.isDetail = false
this.pageTitle = '编辑'
this.id = newVal.query.id
const obj = Object.assign({}, newVal, { title: '领用申请编辑' })
this.$tab.updatePage(obj)
} else if (newVal.query.type == 'detail') {
this.pageTitle = '详情'
this.isEdit = false
this.isDetail = true
this.id = newVal.query.id
@ -629,6 +639,7 @@ export default {
// const obj = Object.assign({}, this.$route, { title: '' })
// this.$tab.updatePage(obj)
} else {
this.pageTitle = '新增'
this.isEdit = false
this.isDetail = false
this.id = ''