|
|
@@ -87,8 +87,8 @@
|
|
|
<el-form-item label="签字注师1" prop="signatureAnnotator1" :rules="[
|
|
|
]">
|
|
|
<!-- <el-input v-model="inputForm.signatureAnnotator1" placeholder="请填写签字注师1" clearable></el-input>-->
|
|
|
- <UserSelect style="width: 100%" ref="userSelect1" :disabled="method === 'view'" :readonly="true"
|
|
|
- :limit='1' :modelValue="inputForm.signatureAnnotator1"
|
|
|
+ <UserSelect :clearable="true" style="width: 100%" ref="userSelect1" :disabled="method === 'view'"
|
|
|
+ :readonly="true" :limit='1' :modelValue="inputForm.signatureAnnotator1"
|
|
|
@update:modelValue='(value) => { changeSignatory1(value) }'></UserSelect>
|
|
|
<!--<el-input @blur="changeSignatory1(inputForm.signatureAnnotator1)" @focus="openUserDia1" v-model="inputForm.signatureAnnotator1Name" placeholder="请选择签字注师1">
|
|
|
<template #suffix>
|
|
|
@@ -105,8 +105,8 @@
|
|
|
<el-form-item label="签字注师2" prop="signatureAnnotator2" :rules="[
|
|
|
]">
|
|
|
<!-- <el-input v-model="inputForm.signatureAnnotator2" placeholder="请填写签字注师2" clearable></el-input>-->
|
|
|
- <UserSelect2 style="width: 100%" ref="userSelect2" :disabled="method === 'view'" :readonly="true"
|
|
|
- :limit='1' :modelValue="inputForm.signatureAnnotator2"
|
|
|
+ <UserSelect2 :clearable="true" style="width: 100%" ref="userSelect2" :disabled="method === 'view'"
|
|
|
+ :readonly="true" :limit='1' :modelValue="inputForm.signatureAnnotator2"
|
|
|
@update:modelValue='(value) => { changeSignatory2(value) }'>
|
|
|
</UserSelect2>
|
|
|
<!--<el-input @blur="changeSignatory2(inputForm.signatureAnnotator2)" @focus="openUserDia2" v-model="inputForm.signatureAnnotator2Name" placeholder="请选择签字注师2">
|
|
|
@@ -123,8 +123,8 @@
|
|
|
{ required: true, message: '签字注师1不能为空', trigger: 'blur' }
|
|
|
]">
|
|
|
<!-- <el-input v-model="inputForm.signatureAnnotator1" placeholder="请填写签字注师1" clearable></el-input>-->
|
|
|
- <UserSelect style="width: 100%" ref="userSelect1" :disabled="method === 'view'" :readonly="true"
|
|
|
- :limit='1' :modelValue="inputForm.signatureAnnotator1"
|
|
|
+ <UserSelect :clearable="true" style="width: 100%" ref="userSelect1" :disabled="method === 'view'"
|
|
|
+ :readonly="true" :limit='1' :modelValue="inputForm.signatureAnnotator1"
|
|
|
@update:modelValue='(value) => { changeSignatory1(value) }'>
|
|
|
</UserSelect>
|
|
|
<!--<el-input @blur="changeSignatory1(inputForm.signatureAnnotator1)" @focus="openUserDia1" v-model="inputForm.signatureAnnotator1Name" placeholder="请选择签字注师1">
|
|
|
@@ -140,8 +140,8 @@
|
|
|
{ required: true, message: '签字注师2不能为空', trigger: 'blur' }
|
|
|
]">
|
|
|
<!-- <el-input v-model="inputForm.signatureAnnotator2" placeholder="请填写签字注师2" clearable></el-input>-->
|
|
|
- <UserSelect2 style="width: 100%" ref="userSelect2" :disabled="method === 'view'" :readonly="true"
|
|
|
- :limit='1' :modelValue="inputForm.signatureAnnotator2"
|
|
|
+ <UserSelect2 :clearable="true" style="width: 100%" ref="userSelect2" :disabled="method === 'view'"
|
|
|
+ :readonly="true" :limit='1' :modelValue="inputForm.signatureAnnotator2"
|
|
|
@update:modelValue='(value) => { changeSignatory2(value) }'>
|
|
|
</UserSelect2>
|
|
|
<!--<el-input @blur="changeSignatory2(inputForm.signatureAnnotator2)" @focus="openUserDia2" v-model="inputForm.signatureAnnotator2Name" placeholder="请选择签字注师2">
|
|
|
@@ -1327,23 +1327,36 @@ export default {
|
|
|
this.inputForm.detailFor1020.forEach(item => { this.inputForm.details.push(item) })
|
|
|
this.inputForm.detailFor1030.forEach(item => { this.inputForm.details.push(item) })
|
|
|
|
|
|
- //根据签字注师1的人员id去查是否超过了可选次数
|
|
|
- userService.findCountById(this.inputForm.signatureAnnotator1).then(res => {
|
|
|
- if (Number(res.accountantUserCount) >= Number(res.signatureCount)) {
|
|
|
- this.$message.error(`签字注师1被选次数不可超过可选次数(${res.signatureCount}次)`)
|
|
|
- this.loading = false
|
|
|
- } else {
|
|
|
- this.reportReviewService.save(this.inputForm).then(() => {
|
|
|
- projectReportService.saveForm(this.inputForm).then(() => {
|
|
|
- this.$emit('refreshList')
|
|
|
- this.close()
|
|
|
- this.loading = false
|
|
|
- }).catch(() => {
|
|
|
- this.loading = false
|
|
|
+ if (this.commonJS.isNotEmpty(this.inputForm.signatureAnnotator1)) {
|
|
|
+ //根据签字注师1的人员id去查是否超过了可选次数
|
|
|
+ userService.findCountById(this.inputForm.signatureAnnotator1).then(res => {
|
|
|
+ if (Number(res.accountantUserCount) >= Number(res.signatureCount)) {
|
|
|
+ this.$message.error(`签字注师1被选次数不可超过可选次数(${res.signatureCount}次)`)
|
|
|
+ this.loading = false
|
|
|
+ } else {
|
|
|
+ this.reportReviewService.save(this.inputForm).then(() => {
|
|
|
+ projectReportService.saveForm(this.inputForm).then(() => {
|
|
|
+ this.$emit('refreshList')
|
|
|
+ this.close()
|
|
|
+ this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.reportReviewService.save(this.inputForm).then(() => {
|
|
|
+ projectReportService.saveForm(this.inputForm).then(() => {
|
|
|
+ this.$emit('refreshList')
|
|
|
+ this.close()
|
|
|
+ this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
return
|