Commit e3fc1911 authored by 高滢's avatar 高滢

feat(填写审查细则): 审查结果

parent 0ba603b0
...@@ -246,18 +246,53 @@ ...@@ -246,18 +246,53 @@
label="审查结果" label="审查结果"
prop="passed" prop="passed"
> >
<el-radio-group v-model="form.passed"> <el-row>
<el-radio <el-col :span="2">
:label="1" <el-radio-group v-model="form.passed">
@click.native="onRadioChange($event, '1')" <el-row>
>符合</el-radio <el-radio
> :label="1"
<el-radio @click.native="onRadioChange($event, '1')"
:label="0" >符合</el-radio
@click.native="onRadioChange($event, '0')" >
>不符合</el-radio </el-row>
> <el-row style="margin-top: 16px">
</el-radio-group> <el-radio
:label="0"
@click.native="onRadioChange($event, '0')"
>不符合</el-radio
>
</el-row>
</el-radio-group>
</el-col>
<el-col :span="4">
<el-row>
<el-input
v-model="form.successRemark"
placeholder="请输入符合备注"
/>
</el-row>
<el-row style="margin-top: 6px">
<el-input
v-model="form.failRemark"
placeholder="请输入不符合备注"
/>
</el-row>
</el-col>
</el-row>
</el-form-item>
<el-form-item
prop="updateTime"
class="right-content-item passed"
label="修改时间"
>
<el-date-picker
v-model="form.updateTime"
value-format="yyyy-MM-dd"
type="date"
placeholder="选择日期"
>
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item class="right-content-item" label="相关记录"> <el-form-item class="right-content-item" label="相关记录">
<div style="display: flex; flex-flow: column"> <div style="display: flex; flex-flow: column">
...@@ -304,11 +339,11 @@ ...@@ -304,11 +339,11 @@
</el-col> </el-col>
<el-col :span="1" :offset="1"> <el-col :span="1" :offset="1">
<el-button <el-button
v-if="file && file.id"
type="text" type="text"
size="default" size="default"
style="margin-top: 20px" style="margin-top: 20px"
@click="editFile(file)" @click="editFile(file)"
v-if="file && file.id"
>编辑文件</el-button >编辑文件</el-button
> >
</el-col> </el-col>
...@@ -461,7 +496,10 @@ export default { ...@@ -461,7 +496,10 @@ export default {
reviewDetailsId: '', reviewDetailsId: '',
taskId: '', taskId: '',
comment: '', comment: '',
fileList: [] fileList: [],
successRemark: '',
failRemark: '',
updateTime: ''
}, },
task: {}, task: {},
oldForm: { oldForm: {
...@@ -503,8 +541,7 @@ export default { ...@@ -503,8 +541,7 @@ export default {
}), }),
loading: false, loading: false,
choosed: '', choosed: '',
currentIndex: 0, currentIndex: 0
loading: false
} }
}, },
...@@ -586,7 +623,7 @@ export default { ...@@ -586,7 +623,7 @@ export default {
}, },
methods: { methods: {
editFile(file) { editFile(file) {
//let fileObj = this.detailsList[this.currentIndex].result.fileList[key] || file // let fileObj = this.detailsList[this.currentIndex].result.fileList[key] || file
request({ request({
url: '/review/enterprise/archive/getById', url: '/review/enterprise/archive/getById',
method: 'post', method: 'post',
...@@ -610,7 +647,8 @@ export default { ...@@ -610,7 +647,8 @@ export default {
*/ */
}, },
onRadioChange(e, passed) { onRadioChange(e, passed) {
if (e.target.tagName == 'INPUT') { if (e.target.tagName === 'INPUT') {
// eslint-disable-next-line eqeqeq
if (passed == this.form.passed) { if (passed == this.form.passed) {
this.form.passed = '' this.form.passed = ''
} else { } else {
...@@ -804,7 +842,7 @@ export default { ...@@ -804,7 +842,7 @@ export default {
} }
}, },
isAllPropertiesEqual() { isAllPropertiesEqual() {
for (let key in this.form) { for (const key in this.form) {
if (key !== 'isFileUpdate') { if (key !== 'isFileUpdate') {
if ( if (
JSON.stringify(this.form[key]) !== JSON.stringify(this.oldForm[key]) JSON.stringify(this.form[key]) !== JSON.stringify(this.oldForm[key])
...@@ -852,7 +890,12 @@ export default { ...@@ -852,7 +890,12 @@ export default {
reviewDetailsId: this.taskModel.id, reviewDetailsId: this.taskModel.id,
taskId: this.taskId, taskId: this.taskId,
comment: this.taskModel.result.comment, comment: this.taskModel.result.comment,
fileList: this.taskModel.result.fileList || [] fileList: this.taskModel.result.fileList || [],
successRemark: this.taskModel.result.successRemark,
failRemark: this.taskModel.result.failRemark,
updateTime: this.taskModel.result.updateTime
? this.taskModel.result.updateTime
: new Date()
} }
this.oldForm = { this.oldForm = {
passed: passed:
...@@ -862,7 +905,12 @@ export default { ...@@ -862,7 +905,12 @@ export default {
reviewDetailsId: this.taskModel.id, reviewDetailsId: this.taskModel.id,
taskId: this.taskId, taskId: this.taskId,
comment: this.taskModel.result.comment, comment: this.taskModel.result.comment,
fileList: this.taskModel.result.fileList || [] fileList: this.taskModel.result.fileList || [],
successRemark: this.taskModel.result.successRemark,
failRemark: this.taskModel.result.failRemark,
updateTime: this.taskModel.result.updateTime
? this.taskModel.result.updateTime
: new Date()
} }
} else { } else {
this.form = { this.form = {
...@@ -870,14 +918,20 @@ export default { ...@@ -870,14 +918,20 @@ export default {
reviewDetailsId: this.taskModel.id, reviewDetailsId: this.taskModel.id,
taskId: this.taskId, taskId: this.taskId,
comment: '', comment: '',
fileList: [] fileList: [],
successRemark: '',
failRemark: '',
updateTime: new Date()
} }
this.oldForm = { this.oldForm = {
passed: '', passed: '',
reviewDetailsId: this.taskModel.id, reviewDetailsId: this.taskModel.id,
taskId: this.taskId, taskId: this.taskId,
comment: '', comment: '',
fileList: [] fileList: [],
successRemark: '',
failRemark: '',
updateTime: new Date()
} }
} }
this.$nextTick(() => { this.$nextTick(() => {
...@@ -915,6 +969,7 @@ export default { ...@@ -915,6 +969,7 @@ export default {
} }
}) })
if ( if (
// eslint-disable-next-line eqeqeq
this.form.fileList.find(item => item.id == '' || item.id == null) this.form.fileList.find(item => item.id == '' || item.id == null)
) { ) {
this.$message({ this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment