|
@@ -256,7 +256,7 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="status !== 'audit'"
|
|
|
|
|
|
+ <el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="method !== 'view' && !testFlag "
|
|
label-width="150px">
|
|
label-width="150px">
|
|
<el-form-item label="案卷号" prop="filedNo"
|
|
<el-form-item label="案卷号" prop="filedNo"
|
|
:rules="[{required: true, message: '请输入案卷号', trigger: 'blur'}
|
|
:rules="[{required: true, message: '请输入案卷号', trigger: 'blur'}
|
|
@@ -334,6 +334,8 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import CommonApi from '@/api/cw/common/CommonApi'
|
|
|
|
+ import userService from "@/api/sys/userService";
|
|
import contractInfoService from '@/api/cw/workContract/ContractInfoService'
|
|
import contractInfoService from '@/api/cw/workContract/ContractInfoService'
|
|
import ContractFilePaperService from '@/api/cw/workContract/ContractFilePaperService'
|
|
import ContractFilePaperService from '@/api/cw/workContract/ContractFilePaperService'
|
|
import UpLoadComponent from '@/views/common/UpLoadComponent'
|
|
import UpLoadComponent from '@/views/common/UpLoadComponent'
|
|
@@ -353,6 +355,7 @@
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
visable: false,
|
|
visable: false,
|
|
|
|
+ testFlag: false,
|
|
gridData: [],
|
|
gridData: [],
|
|
radio: 0,
|
|
radio: 0,
|
|
tableData: [],
|
|
tableData: [],
|
|
@@ -394,6 +397,7 @@
|
|
contractFees: []
|
|
contractFees: []
|
|
},
|
|
},
|
|
inputForm: {
|
|
inputForm: {
|
|
|
|
+ taskFiledPaperProcInsId: '',
|
|
departmentName: '', // 部门名称
|
|
departmentName: '', // 部门名称
|
|
customerId: '', // 客户id
|
|
customerId: '', // 客户id
|
|
address: '',
|
|
address: '',
|
|
@@ -471,7 +475,9 @@
|
|
},
|
|
},
|
|
ossService: null,
|
|
ossService: null,
|
|
contractFilePaperService: null,
|
|
contractFilePaperService: null,
|
|
|
|
+ commonApi: null,
|
|
created () {
|
|
created () {
|
|
|
|
+ this.commonApi = new CommonApi()
|
|
this.ossService = new OSSSerive()
|
|
this.ossService = new OSSSerive()
|
|
this.contractFilePaperService = new ContractFilePaperService()
|
|
this.contractFilePaperService = new ContractFilePaperService()
|
|
},
|
|
},
|
|
@@ -558,6 +564,7 @@
|
|
this.dataListNew = []
|
|
this.dataListNew = []
|
|
this.method = method
|
|
this.method = method
|
|
this.inputForm = {
|
|
this.inputForm = {
|
|
|
|
+ taskFiledPaperProcInsId: '',
|
|
departmentName: '', // 部门名称
|
|
departmentName: '', // 部门名称
|
|
customerId: '', // 客户id
|
|
customerId: '', // 客户id
|
|
address: '',
|
|
address: '',
|
|
@@ -615,6 +622,17 @@
|
|
// console.log('this.inputForm.id', this.inputForm.id)
|
|
// console.log('this.inputForm.id', this.inputForm.id)
|
|
contractInfoService.findById(this.inputForm.id).then((data) => {
|
|
contractInfoService.findById(this.inputForm.id).then((data) => {
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
|
|
+
|
|
|
|
+ this.commonApi.getTaskNameByProcInsId(this.inputForm.taskFiledPaperProcInsId).then((data) => {
|
|
|
|
+ if (this.commonJS.isNotEmpty(data)) {
|
|
|
|
+ if (data === '公司领导审核') {
|
|
|
|
+ this.testFlag = false
|
|
|
|
+ } else if (data === '部门主任审核') {
|
|
|
|
+ this.testFlag = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ console.log('this.testFlag', this.testFlag)
|
|
const f = []
|
|
const f = []
|
|
if (data.fees !== null && data.fees !== undefined && data.fees !== '') {
|
|
if (data.fees !== null && data.fees !== undefined && data.fees !== '') {
|
|
data.fees.split(',').forEach(item => {
|
|
data.fees.split(',').forEach(item => {
|
|
@@ -820,14 +838,19 @@
|
|
this.contractFilePaperService.save(this.inputForm).then((data) => {
|
|
this.contractFilePaperService.save(this.inputForm).then((data) => {
|
|
// console.log('data', data)
|
|
// console.log('data', data)
|
|
this.inputForm.id = data.businessId
|
|
this.inputForm.id = data.businessId
|
|
- callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
|
- this.$refs.inputForm.resetFields()
|
|
|
|
- this.loading = false
|
|
|
|
|
|
+ //去后台查询该员工所属部门的部门主任
|
|
|
|
+ userService.getDepartmentId().then((assignee) =>{
|
|
|
|
+ this.inputForm.assignee = assignee.id
|
|
|
|
+ callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
|
+ this.$refs.inputForm.resetFields()
|
|
|
|
+ this.loading = false
|
|
|
|
+ })
|
|
|
|
+
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 通过
|
|
// 通过
|
|
- agreeForm (callback) {
|
|
|
|
|
|
+ async agreeForm (callback) {
|
|
this.loading = true
|
|
this.loading = true
|
|
if (/* this.$refs.archiveFile.checkProgress() || */ this.$refs.uploadFile.checkProgress()) {
|
|
if (/* this.$refs.archiveFile.checkProgress() || */ this.$refs.uploadFile.checkProgress()) {
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -835,8 +858,7 @@
|
|
} else {
|
|
} else {
|
|
let id = this.inputForm.id
|
|
let id = this.inputForm.id
|
|
this.loading = true
|
|
this.loading = true
|
|
- this.inputForm.status = '5'
|
|
|
|
- this.inputForm.filedPaperType = '5'
|
|
|
|
|
|
+
|
|
this.inputForm.contractProperList = []
|
|
this.inputForm.contractProperList = []
|
|
this.inputForm.contractInfoId = id
|
|
this.inputForm.contractInfoId = id
|
|
if (this.inputForm.filedNo === '' || this.inputForm.filedNo === undefined) {
|
|
if (this.inputForm.filedNo === '' || this.inputForm.filedNo === undefined) {
|
|
@@ -845,12 +867,22 @@
|
|
throw new Error('请填写案卷号')
|
|
throw new Error('请填写案卷号')
|
|
}
|
|
}
|
|
this.inputForm.createTime = ''
|
|
this.inputForm.createTime = ''
|
|
- this.contractFilePaperService.save(this.inputForm).then((data) => {
|
|
|
|
- callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
|
- this.$refs.inputForm.resetFields()
|
|
|
|
- this.loading = false
|
|
|
|
- this.businessId = ''
|
|
|
|
- })
|
|
|
|
|
|
+ this.commonApi.getTaskNameByProcInsId(this.inputForm.taskFiledPaperProcInsId).then((data) => {
|
|
|
|
+ console.log('进来了')
|
|
|
|
+ if (this.commonJS.isNotEmpty(data)) {
|
|
|
|
+ if (data === '公司领导审核') {
|
|
|
|
+ this.inputForm.status = '5'
|
|
|
|
+ this.inputForm.filedPaperType = '5'
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ this.inputForm.filedPaperType = '2'
|
|
|
|
+ }
|
|
|
|
+ this.contractFilePaperService.save(this.inputForm).then((data) => {
|
|
|
|
+ console.log('data', data)
|
|
|
|
+ callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
|
+ this.loading = false
|
|
|
|
+ })
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
changeContractFee () {
|
|
changeContractFee () {
|