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