慰问、会员入会接入待办
This commit is contained in:
@@ -235,6 +235,36 @@
|
||||
</el-form>
|
||||
</el-tab-pane>
|
||||
|
||||
<el-tab-pane v-if="hasPane(6)&&viewData.ecr" label="工会常务副主席审核信息" name="6">
|
||||
<el-form label-width="130px" label-suffix=":" style="padding: 20px 0">
|
||||
|
||||
<vi-title title="审核信息"></vi-title>
|
||||
|
||||
<el-row gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="审核人员">
|
||||
{{ viewData.ecr.username }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="审核时间">
|
||||
{{ viewData.ecr.time }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item label="审核意见">
|
||||
<div class="textarea-div">{{ viewData.ecr.opinion ? viewData.ecr.opinion : '暂无' }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="签  字">
|
||||
<el-image v-if="viewData.ecr.sign"
|
||||
style="width: 300px; height: 100px"
|
||||
:src="viewData.ecr.sign"
|
||||
fit="contain"></el-image>
|
||||
<span v-else>暂无</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-tab-pane>
|
||||
|
||||
<el-tab-pane v-if="handle" :label="label" name="999">
|
||||
<slot name="handle"></slot>
|
||||
</el-tab-pane>
|
||||
@@ -257,7 +287,7 @@ module.exports = {
|
||||
},
|
||||
panes: {
|
||||
type: Array,
|
||||
default: []
|
||||
default: () => []
|
||||
},
|
||||
},
|
||||
filters: {
|
||||
@@ -278,27 +308,32 @@ module.exports = {
|
||||
watch: {},
|
||||
methods: {
|
||||
hasPane(name) {
|
||||
if (!this.handle) {
|
||||
// 未指定页签范围时展示所有已有审核记录;显式传入范围时保持原有限制。
|
||||
if (!this.handle || this.panes.length === 0) {
|
||||
return true
|
||||
}
|
||||
return this.panes.includes(name)
|
||||
},
|
||||
async getInfo(id) {
|
||||
this.loading = true
|
||||
const {data, code, msg} = await $.get("/platform/fw/condolence/findOne", {id})
|
||||
this.loading = false
|
||||
if (data) {
|
||||
this.activeName = this.handle ? "999" : "1"
|
||||
condolence.toFormData(data)
|
||||
this.viewData = data
|
||||
|
||||
} else {
|
||||
this.viewData = {}
|
||||
this.$message({
|
||||
message: "获取信息失败",
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
/**
|
||||
* id 为慰问申请 ID;接口 data 为申请详情,ucr/fr/vcr/ecr 为各节点审核记录对象。
|
||||
* 无记录时对应页签隐藏;请求结束后统一解除加载状态。
|
||||
*/
|
||||
getInfo(id) {
|
||||
this.$set(this, 'loading', true)
|
||||
this.$set(this, 'viewData', {})
|
||||
return $.post('/platform/fw/condolence/findOne', {id})
|
||||
.then((res) => {
|
||||
if (res.code === 0 && res.data) {
|
||||
condolence.toFormData(res.data)
|
||||
this.$set(this, 'activeName', this.handle ? '999' : '1')
|
||||
this.$set(this, 'viewData', res.data)
|
||||
} else {
|
||||
this.$message.error('获取信息失败')
|
||||
}
|
||||
})
|
||||
.always(() => {
|
||||
this.$set(this, 'loading', false)
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in New Issue
Block a user