|
@@ -135,40 +135,28 @@
|
|
|
]">
|
|
|
<el-input maxlength="64" :disabled="true" v-model="inputForm.departmentName" placeholder="请输入所属部门"></el-input>
|
|
|
</el-form-item>
|
|
|
-<!-- <el-form-item prop="department" label="所属部门">-->
|
|
|
-<!-- <SelectTree-->
|
|
|
-<!-- ref="officeTree"-->
|
|
|
-<!-- :props="{-->
|
|
|
-<!-- value: 'id', // ID字段名-->
|
|
|
-<!-- label: 'name', // 显示名称-->
|
|
|
-<!-- children: 'children' // 子级字段名-->
|
|
|
-<!-- }"-->
|
|
|
-<!-- :disabled="true"-->
|
|
|
-<!-- :url="`/sys/office/treeData?type=1`"-->
|
|
|
-<!-- :value="inputForm.department"-->
|
|
|
-<!-- :accordion="true"-->
|
|
|
-<!-- size="medium"-->
|
|
|
-<!-- @getValue="(value) => {inputForm.department=value}"/>-->
|
|
|
-<!-- </el-form-item>-->
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="案卷号" prop="filedNo"
|
|
|
- :rules="[{required: true, message: '请输入案卷号', trigger: 'blur'}
|
|
|
+ <el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="status !== 'audit'"
|
|
|
+ label-width="150px">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="案卷号" prop="filedNo"
|
|
|
+ :rules="[{required: true, message: '请输入案卷号', trigger: 'blur'}
|
|
|
]">
|
|
|
- <el-input maxlength="15" v-model="inputForm.filedNo" placeholder="请输入案卷号"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-input maxlength="15" 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 maxlength="15" @change="checkFiledNo" v-model="inputForm.confirmFiledNo" placeholder="请输入确认案卷号"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-input maxlength="15" @change="checkFiledNo" v-model="inputForm.confirmFiledNo" placeholder="请输入确认案卷号"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-form>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="创建人" prop="createBy"
|
|
@@ -743,28 +731,21 @@
|
|
|
this.inputForm.status = '5'
|
|
|
this.inputForm.filedPaperType = '2'
|
|
|
this.inputForm.contractProperList = []
|
|
|
- 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('请填写确认案卷号')
|
|
|
- }
|
|
|
+ console.log('status', status)
|
|
|
// this.contractInfoService.updateInfo(this.inputForm)
|
|
|
// console.log('inputForm', this.inputForm)
|
|
|
this.inputForm.contractInfoId = id
|
|
|
this.inputForm.contractInfoList = this.$refs.archiveFile.getDataList()
|
|
|
// console.log('this.inputForm', this.inputForm)
|
|
|
// this.inputForm.contractProperList = this.$refs.uploadFile.getDataList()
|
|
|
+
|
|
|
this.contractFilePaperService.save(this.inputForm).then(({data}) => {
|
|
|
// console.log('data', data)
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
this.loading = false
|
|
|
})
|
|
|
+
|
|
|
// this.contractFileService.save(this.inputForm).then(({data}) => {
|
|
|
// // console.log('data', data)
|
|
|
// callback(data.businessTable, data.businessId, this.inputForm)
|
|
@@ -788,7 +769,17 @@
|
|
|
// console.log('this.inputForm.contractProperList', this.inputForm.contractProperList)
|
|
|
// this.contractInfoService.updateInfo(this.inputForm)
|
|
|
this.inputForm.contractInfoId = id
|
|
|
- // this.inputForm.contractInfoList = this.$refs.uploadFile.getDataList()
|
|
|
+ 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.inputForm.contractInfoList = this.$refs.uploadFile.getDataList()
|
|
|
this.contractFilePaperService.save(this.inputForm).then(({data}) => {
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
this.$refs.inputForm.resetFields()
|