|
@@ -162,25 +162,27 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ </el-form>
|
|
|
|
|
|
- <el-row v-if="this.inputForm.filedType === '2'">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="案卷号" prop="filedNo" :rules="[
|
|
|
|
- {required: true, message:'请输入案卷号', trigger:'blur'}
|
|
|
|
|
|
+ <el-form size="middle" :model="inputForm" ref="inputForm2" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="status !== 'audit'"
|
|
|
|
+ label-width="150px">
|
|
|
|
+ <el-row v-if="this.inputForm.filedType === '2'">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="案卷号" prop="filedNo" :rules="[
|
|
|
|
+ {required: true, message:'请填写案卷号', trigger:'blur'}
|
|
]">
|
|
]">
|
|
- <el-input v-model="inputForm.filedNo"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ <el-input v-model="inputForm.filedNo" placeholder="请填写案卷号"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="确认案卷号" prop="confirmFiledNo" :rules="[
|
|
|
|
- {required: true, message:'请输入确认案卷号', trigger:'blur'}
|
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="确认案卷号" prop="confirmFiledNo" :rules="[
|
|
|
|
+ {required: true, message:'请填写确认案卷号', trigger:'blur'}
|
|
]">
|
|
]">
|
|
- <el-input @change="checkFiledNo" v-model="inputForm.confirmFiledNo"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
-
|
|
|
|
|
|
+ <el-input v-model="inputForm.confirmFiledNo" placeholder="请填写确认案卷号"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
</el-form>
|
|
</el-form>
|
|
<el-image-viewer
|
|
<el-image-viewer
|
|
v-if="showViewer"
|
|
v-if="showViewer"
|
|
@@ -508,26 +510,35 @@
|
|
},
|
|
},
|
|
// 通过
|
|
// 通过
|
|
agreeForm (callback) {
|
|
agreeForm (callback) {
|
|
- let id = this.inputForm.id
|
|
|
|
- this.loading = true
|
|
|
|
- this.inputForm.workAttachmentList = this.$refs.uploadComponent.getDataList()
|
|
|
|
- this.inputForm.status = '5'
|
|
|
|
- if (this.inputForm.contractFees !== undefined && this.inputForm.contractFees !== null) {
|
|
|
|
- this.inputForm.fees = this.inputForm.contractFees.join(',')
|
|
|
|
- }
|
|
|
|
- this.workContractService.save(this.inputForm)
|
|
|
|
- console.log('inputForm', this.inputForm)
|
|
|
|
- this.inputForm.filedType = '2'
|
|
|
|
- this.inputForm.contractInfoId = id
|
|
|
|
- this.workContractFileService.save(this.inputForm).then(({data}) => {
|
|
|
|
- callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
|
- this.$refs.inputForm.resetFields()
|
|
|
|
- this.loading = false
|
|
|
|
- this.businessId = ''
|
|
|
|
|
|
+ this.$refs['inputForm2'].validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ let id = this.inputForm.id
|
|
|
|
+ this.loading = true
|
|
|
|
+ if (this.inputForm.filedNo !== this.inputForm.confirmFiledNo) {
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.$message.warning(`案卷号和确认案卷号不一致`)
|
|
|
|
+ throw new Error('案卷号和确认案卷号不一致')
|
|
|
|
+ }
|
|
|
|
+ this.inputForm.workAttachmentList = this.$refs.uploadComponent.getDataList()
|
|
|
|
+ this.inputForm.status = '5'
|
|
|
|
+ if (this.inputForm.contractFees !== undefined && this.inputForm.contractFees !== null) {
|
|
|
|
+ this.inputForm.fees = this.inputForm.contractFees.join(',')
|
|
|
|
+ }
|
|
|
|
+ this.workContractService.save(this.inputForm)
|
|
|
|
+ this.inputForm.filedType = '2'
|
|
|
|
+ this.inputForm.contractInfoId = id
|
|
|
|
+ this.workContractFileService.save(this.inputForm).then(({data}) => {
|
|
|
|
+ callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
|
+ this.$refs.inputForm.resetFields()
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.businessId = ''
|
|
|
|
+ })
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
close () {
|
|
close () {
|
|
this.$refs.inputForm.resetFields()
|
|
this.$refs.inputForm.resetFields()
|
|
|
|
+ this.$refs.inputForm2.resetFields()
|
|
this.inputForm.clientName = ''
|
|
this.inputForm.clientName = ''
|
|
this.visible = false
|
|
this.visible = false
|
|
this.showVi = true
|
|
this.showVi = true
|