|
@@ -886,25 +886,27 @@
|
|
throw new Error()
|
|
throw new Error()
|
|
} else {
|
|
} else {
|
|
if (status === 'save') {
|
|
if (status === 'save') {
|
|
- this.$refs['inputForm'].validate(async (valid) => {
|
|
|
|
- if (this.inputForm.filedPaperType !== '0' & this.inputForm.filedPaperType !== '') {
|
|
|
|
- if (this.inputForm.filedNo === '' || this.inputForm.filedNo === undefined) {
|
|
|
|
- this.loading = false
|
|
|
|
- this.$message.error('请填写案卷号')
|
|
|
|
- throw new Error('请填写案卷号')
|
|
|
|
- }
|
|
|
|
- if (this.inputForm.confirmFiledNo === '' || this.inputForm.confirmFiledNo === undefined) {
|
|
|
|
- this.loading = false
|
|
|
|
- this.$message.error('请填写确认案卷号')
|
|
|
|
- throw new Error('请填写确认案卷号')
|
|
|
|
|
|
+ this.loading = true
|
|
|
|
+ this.$refs['inputForm'].validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ if (this.inputForm.filedPaperType !== '0' & this.inputForm.filedPaperType !== '') {
|
|
|
|
+ if (this.inputForm.filedNo === '' || this.inputForm.filedNo === undefined) {
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.$message.error('请填写案卷号')
|
|
|
|
+ throw new Error('请填写案卷号')
|
|
|
|
+ }
|
|
|
|
+ if (this.inputForm.confirmFiledNo === '' || this.inputForm.confirmFiledNo === undefined) {
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.$message.error('请填写确认案卷号')
|
|
|
|
+ throw new Error('请填写确认案卷号')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- this.loading = true
|
|
|
|
this.inputForm.status = '5'
|
|
this.inputForm.status = '5'
|
|
this.inputForm.filedType = '5'
|
|
this.inputForm.filedType = '5'
|
|
this.inputForm.contractProperList = this.$refs.uploadFile.getDataList()
|
|
this.inputForm.contractProperList = this.$refs.uploadFile.getDataList()
|
|
this.inputForm.contractInfoList = this.$refs.archiveFile.getDataList()
|
|
this.inputForm.contractInfoList = this.$refs.archiveFile.getDataList()
|
|
this.inputForm.fees = this.inputForm.contractFees.join(',')
|
|
this.inputForm.fees = this.inputForm.contractFees.join(',')
|
|
- this.contractInfoService.save(this.inputForm).then(({data}) => {
|
|
|
|
|
|
+ this.contractInfoService.save(this.inputForm).then(() => {
|
|
this.loading = false
|
|
this.loading = false
|
|
this.close()
|
|
this.close()
|
|
}).catch(() => {
|
|
}).catch(() => {
|