bug修复
parent
0e7c6e0c72
commit
d466a36339
|
@ -59,7 +59,7 @@ flowTrain/batchList<template>
|
||||||
<el-table-column label="操作" align="center" width="200">
|
<el-table-column label="操作" align="center" width="200">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<el-button v-if="judge(row)" type="success" icon="el-icon-edit" size="mini" @click="handleAudit(row.TRAINING_BATCH_ID)">审核</el-button>
|
<el-button v-if="judge(row)" type="success" icon="el-icon-edit" size="mini" @click="handleAudit(row.TRAINING_BATCH_ID)">审核</el-button>
|
||||||
<el-button v-else type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row.TRAININGBATCH_ID)">查看</el-button>
|
<el-button v-else type="primary" icon="el-icon-edit" size="mini" @click="handleShow({id:row.TRAINING_BATCH_ID,vectory:judge(row)})">查看</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -143,8 +143,8 @@ export default {
|
||||||
this.$refs.users.init(id, '1')
|
this.$refs.users.init(id, '1')
|
||||||
},
|
},
|
||||||
|
|
||||||
handleShow(id) {
|
handleShow(e) {
|
||||||
this.$refs.users.init(id, '0')
|
this.$refs.users.init(e.id, '0', e.vectory)
|
||||||
},
|
},
|
||||||
judge(row) {
|
judge(row) {
|
||||||
if (row.STEP_STATUS === '0') {
|
if (row.STEP_STATUS === '0') {
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="closeWindow">关 闭</el-button>
|
<el-button @click="closeWindow">关 闭</el-button>
|
||||||
<el-button type="primary" @click="comfirm">确定提交审批</el-button>
|
<el-button v-if="vectory" type="primary" @click="comfirm">确定提交审批</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog :visible.sync="dialogVisible" title="审核">
|
<el-dialog :visible.sync="dialogVisible" title="审核">
|
||||||
|
@ -153,12 +153,13 @@ export default {
|
||||||
heirloom: {},
|
heirloom: {},
|
||||||
specialUsersList: {},
|
specialUsersList: {},
|
||||||
message: '',
|
message: '',
|
||||||
operator: ''
|
operator: '',
|
||||||
|
vectory: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(id, viewState) {
|
init(id, viewState, vectory) {
|
||||||
console.log(id, viewState)
|
this.vectory = vectory
|
||||||
this.form.TRAINING_BATCH_ID = this.TRAINING_BATCH_ID
|
this.form.TRAINING_BATCH_ID = this.TRAINING_BATCH_ID
|
||||||
this.form.TRAIN_USERS_ID = ''
|
this.form.TRAIN_USERS_ID = ''
|
||||||
this.form.USER_COUNT = ''
|
this.form.USER_COUNT = ''
|
||||||
|
@ -255,23 +256,18 @@ export default {
|
||||||
{
|
{
|
||||||
USER_ID: id,
|
USER_ID: id,
|
||||||
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
||||||
// CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID
|
|
||||||
}
|
}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.userDetailForm = Object.assign(this.userDetailForm, data.userDetail)
|
this.userDetailForm = Object.assign(this.userDetailForm, data.userDetail)
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
// this.userDetailForm = Object.assign(this.userDetailForm, data.pd)
|
|
||||||
this.userPhotoFile = data.userPhotoFile
|
this.userPhotoFile = data.userPhotoFile
|
||||||
if (this.userPhotoFile.length > 0) {
|
if (this.userPhotoFile.length > 0) {
|
||||||
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
||||||
}
|
}
|
||||||
// this.insuranceFileList = data.insuranceFile
|
|
||||||
// this.contractFileList = data.contractFile
|
|
||||||
this.photosOfLevel = data.photosOfLevel
|
this.photosOfLevel = data.photosOfLevel
|
||||||
this.userCardIDPhotoFile = data.userCardIDPhotoFile
|
this.userCardIDPhotoFile = data.userCardIDPhotoFile
|
||||||
this.socialPhotoFile = data.socialPhotoFile
|
this.socialPhotoFile = data.socialPhotoFile
|
||||||
this.specialUsersList = data.specialUsers
|
this.specialUsersList = data.specialUsers
|
||||||
// this.gongshangbaoxianFile = data.gongshangbaoxianFile
|
|
||||||
resolve()
|
resolve()
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
reject()
|
reject()
|
||||||
|
@ -300,13 +296,14 @@ export default {
|
||||||
this.handleClose()
|
this.handleClose()
|
||||||
},
|
},
|
||||||
getType(row) {
|
getType(row) {
|
||||||
if (row.RESULT_STATUS === 1) {
|
console.log(row)
|
||||||
|
if (row.RESULT_STATUS === '1') {
|
||||||
return '审批中'
|
return '审批中'
|
||||||
}
|
}
|
||||||
if (row.RESULT_STATUS === 2) {
|
if (row.RESULT_STATUS === '2') {
|
||||||
return '审批通过'
|
return '审批通过'
|
||||||
}
|
}
|
||||||
if (row.RESULT_STATUS === 3) {
|
if (row.RESULT_STATUS === '3') {
|
||||||
return '审批不通过'
|
return '审批不通过'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -322,16 +319,10 @@ export default {
|
||||||
TRAINING_BATCH_ID: this.TRAINING_BATCH_ID
|
TRAINING_BATCH_ID: this.TRAINING_BATCH_ID
|
||||||
}
|
}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
if (data.result == 'success') {
|
this.visible = false
|
||||||
this.$message.success('提交成功')
|
this.handleClose()
|
||||||
this.init(this.TRAINING_BATCH_ID, this.viewState)
|
|
||||||
} else if (data.result == 'exception') {
|
|
||||||
this.$message({
|
|
||||||
message: data.msg,
|
|
||||||
type: 'success'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue