|
@@ -89,7 +89,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col v-if="inputForm.signatureType === '1' || inputForm.signatureType === '3' || commonJS.isEmpty(inputForm.signatureType)" :span="12">
|
|
|
+ <el-col v-if="inputForm.signatureType === '1' || commonJS.isEmpty(inputForm.signatureType)" :span="12">
|
|
|
<el-form-item label="签字注师1" prop="signatureAnnotator1"
|
|
|
:rules="[
|
|
|
]">
|
|
@@ -98,7 +98,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col v-if="inputForm.signatureType === '1' || inputForm.signatureType === '3' || commonJS.isEmpty(inputForm.signatureType)" :span="12">
|
|
|
+ <el-col v-if="inputForm.signatureType === '1' || commonJS.isEmpty(inputForm.signatureType)" :span="12">
|
|
|
<el-form-item label="签字注师2" prop="signatureAnnotator2"
|
|
|
:rules="[
|
|
|
]">
|
|
@@ -107,7 +107,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col v-if="inputForm.signatureType === '2'" :span="12">
|
|
|
+ <el-col v-if="inputForm.signatureType === '2' || inputForm.signatureType === '3'" :span="12">
|
|
|
<el-form-item label="签字注师1" prop="signatureAnnotator1"
|
|
|
:rules="[
|
|
|
{required: true, message:'签字注师1不能为空', trigger:'blur'}
|
|
@@ -117,7 +117,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col v-if="inputForm.signatureType === '2'" :span="12">
|
|
|
+ <el-col v-if="inputForm.signatureType === '2' || inputForm.signatureType === '3'" :span="12">
|
|
|
<el-form-item label="签字注师2" prop="signatureAnnotator2"
|
|
|
:rules="[
|
|
|
{required: true, message:'签字注师2不能为空', trigger:'blur'}
|
|
@@ -375,8 +375,14 @@
|
|
|
<el-form-item label="是否数据证券业务" prop="securityBusiness"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-input v-model="inputForm.securityBusiness" placeholder="请填写是否数据证券业务" clearable>
|
|
|
- </el-input>
|
|
|
+ <el-select v-model="inputForm.securityBusiness" placeholder="请选择报告类别" style="width:100%;">
|
|
|
+ <el-option
|
|
|
+ v-for="item in $dictUtils.getDictList('cw_report_negotiable')"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -458,9 +464,13 @@
|
|
|
|
|
|
</el-form>
|
|
|
<el-tabs v-model="activeName" type="border-card" @tab-click="tabHandleClick">
|
|
|
- <el-tab-pane label="签章文件" name="archiveFile">
|
|
|
- <!-- 签章文件-->
|
|
|
- <UpLoadComponent ref="archiveFile"></UpLoadComponent>
|
|
|
+<!-- <el-tab-pane label="签章文件" name="archiveFile">-->
|
|
|
+<!-- <!– 签章文件–>-->
|
|
|
+<!-- <UpLoadComponent ref="archiveFile"></UpLoadComponent>-->
|
|
|
+<!-- </el-tab-pane>-->
|
|
|
+ <el-tab-pane label="附件" name="enclosure">
|
|
|
+ <!-- 附件-->
|
|
|
+ <UpLoadComponent ref="enclosure"></UpLoadComponent>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-row>
|
|
@@ -476,7 +486,8 @@
|
|
|
|
|
|
<script>
|
|
|
import ReportReviewService from '@/api/cw/reportManagement/ReportReviewService'
|
|
|
- import UpLoadComponent from '@/views/common/UpLoadComponentV2.1'
|
|
|
+ // import UpLoadComponent from '@/views/common/UpLoadComponentV2.1'
|
|
|
+ import UpLoadComponent from '@/views/common/UpLoadComponent'
|
|
|
import SelectUserTree from '@/views/modules/utils/treeUserSelect'
|
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
|
import UserSelect from '../workClientInfo/clientUserSelect'
|
|
@@ -544,12 +555,13 @@
|
|
|
projectMasterName: '',
|
|
|
cwProjectInfoList: [],
|
|
|
cwFileInfoList: [],
|
|
|
+ cwFileInfoList2: [],
|
|
|
servedUnitId: '',
|
|
|
status: '',
|
|
|
realCreate: ''
|
|
|
},
|
|
|
keyWatch: '',
|
|
|
- activeName: 'archiveFile',
|
|
|
+ activeName: 'enclosure',
|
|
|
tableKey: '',
|
|
|
tableKeyClient: '1',
|
|
|
visible: false
|
|
@@ -568,7 +580,8 @@
|
|
|
computed: {
|
|
|
bus: {
|
|
|
get () {
|
|
|
- this.$refs.archiveFile.setDividerName('签章文件', false)
|
|
|
+ this.$refs.enclosure.setDividerName('附件', false)
|
|
|
+ // this.$refs.archiveFile.setDividerName('签章文件', false)
|
|
|
return this.businessId
|
|
|
},
|
|
|
set (val) {
|
|
@@ -612,7 +625,6 @@
|
|
|
})
|
|
|
} else if (this.commonJS.isNotEmpty(this.inputForm.signatureAnnotator2) && this.inputForm.projectMasterId !== this.inputForm.signatureAnnotator2 &&
|
|
|
this.inputForm.projectMasterId !== value && this.commonJS.isNotEmpty(value)) {
|
|
|
- console.log('this.inputForm.projectMasterId', this.inputForm.signatureAnnotator2)
|
|
|
this.$message.warning('签字注师1和签字注师2至少有一个与项目经理相同')
|
|
|
this.$nextTick(() => {
|
|
|
this.inputForm.signatureAnnotator1 = ''
|
|
@@ -635,8 +647,6 @@
|
|
|
})
|
|
|
} else if (this.commonJS.isNotEmpty(this.inputForm.signatureAnnotator1) && this.inputForm.projectMasterId !== this.inputForm.signatureAnnotator1 &&
|
|
|
this.inputForm.projectMasterId !== value && this.commonJS.isNotEmpty(value)) {
|
|
|
- console.log('this.inputForm.projectMasterId', value)
|
|
|
- console.log('this.inputForm.projectMasterId', this.inputForm.projectMasterId)
|
|
|
this.$message.warning('签字注师1和签字注师2至少有一个与项目经理相同')
|
|
|
this.$nextTick(() => {
|
|
|
this.inputForm.signatureAnnotator2 = ''
|
|
@@ -650,7 +660,8 @@
|
|
|
},
|
|
|
init (method, id) {
|
|
|
this.visible = true
|
|
|
- this.activeName = 'archiveFile'
|
|
|
+ this.activeName = 'enclosure'
|
|
|
+ // this.activeName = 'archiveFile'
|
|
|
this.reportReviewService = new ReportReviewService()
|
|
|
this.projectRecordsService = new ProjectRecordsService()
|
|
|
this.projectReportService = new ProjectReportService()
|
|
@@ -677,7 +688,7 @@
|
|
|
reportDate: '',
|
|
|
servedUnitName: '', // 被服务单位
|
|
|
registerAddress: '',
|
|
|
- securityBusiness: '否',
|
|
|
+ securityBusiness: '2',
|
|
|
businessLocation: '',
|
|
|
auditFees: '',
|
|
|
projectId: '',
|
|
@@ -712,8 +723,10 @@
|
|
|
if (this.commonJS.isEmpty(this.inputForm.realCreate)) {
|
|
|
this.inputForm.realCreate = JSON.parse(localStorage.getItem('user')).id
|
|
|
}
|
|
|
- this.$refs.archiveFile.clearUpload()
|
|
|
- this.$refs.archiveFile.newUpload(this.method, [], 'cwProjectReport', null, null, null, null, false)
|
|
|
+ this.$refs.enclosure.clearUpload()
|
|
|
+ this.$refs.enclosure.newUpload(this.method, [], 'cwProjectReport', null, null, null, null, false)
|
|
|
+ // this.$refs.archiveFile.clearUpload()
|
|
|
+ // this.$refs.archiveFile.newUpload(this.method, [], 'cwProjectReport', null, null, null, null, false)
|
|
|
// this.$refs.inputForm.resetFields()
|
|
|
// this.loading = true
|
|
|
/* this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
|
|
@@ -748,7 +761,6 @@
|
|
|
}
|
|
|
},
|
|
|
getContract (row) {
|
|
|
- console.log('row', row)
|
|
|
this.inputForm.projectName = row.projectName // 项目名称
|
|
|
this.inputForm.projectId = row.id // 项目id
|
|
|
this.inputForm.projectNumber = row.projectNumber // 项目编号
|
|
@@ -798,7 +810,6 @@
|
|
|
this.loading = true
|
|
|
this.$refs['inputForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- console.log('进来了2')
|
|
|
this.loading = true
|
|
|
let _this = this
|
|
|
let _num = 0
|
|
@@ -818,28 +829,29 @@
|
|
|
_num = 1
|
|
|
_this.loading = false
|
|
|
}
|
|
|
- _this.$refs.archiveFile.getDataList().then((data) => {
|
|
|
- _this.inputForm.cwFileInfoList = data
|
|
|
- if (_this.commonJS.isNotEmpty(_this.inputForm.cwFileInfoList)) {
|
|
|
- _this.inputForm.cwFileInfoList.forEach((item, index) => {
|
|
|
- if (_this.commonJS.isEmpty(item.fileType)) {
|
|
|
- _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
|
|
|
- _num = 1
|
|
|
- _this.loading = false
|
|
|
- throw new Error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
|
|
|
- } else if (_this.commonJS.isEmpty(item.sealType)) {
|
|
|
- _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
|
|
|
- _num = 1
|
|
|
- _this.loading = false
|
|
|
- throw new Error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- _this.$message.error('最少有一条签章文件数据!')
|
|
|
- _num = 1
|
|
|
- _this.loading = false
|
|
|
- }
|
|
|
- })
|
|
|
+ _this.inputForm.cwFileInfoList2 = _this.$refs.enclosure.getDataList()
|
|
|
+ // _this.$refs.archiveFile.getDataList().then((data) => {
|
|
|
+ // _this.inputForm.cwFileInfoList = data
|
|
|
+ // if (_this.commonJS.isNotEmpty(_this.inputForm.cwFileInfoList)) {
|
|
|
+ // _this.inputForm.cwFileInfoList.forEach((item, index) => {
|
|
|
+ // if (_this.commonJS.isEmpty(item.fileType)) {
|
|
|
+ // _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
|
|
|
+ // _num = 1
|
|
|
+ // _this.loading = false
|
|
|
+ // throw new Error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
|
|
|
+ // } else if (_this.commonJS.isEmpty(item.sealType)) {
|
|
|
+ // _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
|
|
|
+ // _num = 1
|
|
|
+ // _this.loading = false
|
|
|
+ // throw new Error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // _this.$message.error('最少有一条签章文件数据!')
|
|
|
+ // _num = 1
|
|
|
+ // _this.loading = false
|
|
|
+ // }
|
|
|
+ // })
|
|
|
resolve()
|
|
|
})
|
|
|
}
|
|
@@ -849,9 +861,9 @@
|
|
|
this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
|
}
|
|
|
this.projectReportService.saveForm(this.inputForm).then(({data}) => {
|
|
|
+ this.$emit('refreshList')
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
this.close()
|
|
|
- this.$emit('refreshList')
|
|
|
this.loading = false
|
|
|
}).catch(() => {
|
|
|
this.close()
|
|
@@ -878,32 +890,33 @@
|
|
|
this.$refs['inputForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.loading = true
|
|
|
+ // eslint-disable-next-line no-unused-vars
|
|
|
let _this = this
|
|
|
let _num = 0
|
|
|
const wait = function () {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- _this.$refs.archiveFile.getDataList().then((data) => {
|
|
|
- _this.inputForm.cwFileInfoList = data
|
|
|
- if (_this.commonJS.isNotEmpty(_this.inputForm.cwFileInfoList)) {
|
|
|
- _this.inputForm.cwFileInfoList.forEach((item, index) => {
|
|
|
- if (_this.commonJS.isEmpty(item.fileType)) {
|
|
|
- _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
|
|
|
- _num = 1
|
|
|
- _this.loading = false
|
|
|
- throw new Error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
|
|
|
- } else if (_this.commonJS.isEmpty(item.sealType)) {
|
|
|
- _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
|
|
|
- _num = 1
|
|
|
- _this.loading = false
|
|
|
- throw new Error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- _this.$message.error('最少有一条签章文件数据!')
|
|
|
- _num = 1
|
|
|
- _this.loading = false
|
|
|
- }
|
|
|
- })
|
|
|
+ // _this.$refs.archiveFile.getDataList().then((data) => {
|
|
|
+ // _this.inputForm.cwFileInfoList = data
|
|
|
+ // if (_this.commonJS.isNotEmpty(_this.inputForm.cwFileInfoList)) {
|
|
|
+ // _this.inputForm.cwFileInfoList.forEach((item, index) => {
|
|
|
+ // if (_this.commonJS.isEmpty(item.fileType)) {
|
|
|
+ // _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
|
|
|
+ // _num = 1
|
|
|
+ // _this.loading = false
|
|
|
+ // throw new Error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
|
|
|
+ // } else if (_this.commonJS.isEmpty(item.sealType)) {
|
|
|
+ // _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
|
|
|
+ // _num = 1
|
|
|
+ // _this.loading = false
|
|
|
+ // throw new Error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // _this.$message.error('最少有一条签章文件数据!')
|
|
|
+ // _num = 1
|
|
|
+ // _this.loading = false
|
|
|
+ // }
|
|
|
+ // })
|
|
|
resolve()
|
|
|
})
|
|
|
}
|
|
@@ -914,6 +927,7 @@
|
|
|
}
|
|
|
this.projectReportService.saveForm(this.inputForm).then(({data}) => {
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
+ this.$emit('refreshList')
|
|
|
this.loading = false
|
|
|
}).catch(() => {
|
|
|
this.loading = false
|
|
@@ -969,6 +983,26 @@
|
|
|
}, */
|
|
|
close () {
|
|
|
this.inputForm = {
|
|
|
+ reportReviewNo: '',
|
|
|
+ allPrintNum: '',
|
|
|
+ issueNum: '',
|
|
|
+ placeOnFileNum: '',
|
|
|
+ printedBy: '',
|
|
|
+ checkAutograph: '',
|
|
|
+ computerNo: '',
|
|
|
+ opinionType: '',
|
|
|
+ reportNo: '',
|
|
|
+ reportNumber: '',
|
|
|
+ reportType: '',
|
|
|
+ businessType: '',
|
|
|
+ auditBusinessType: '',
|
|
|
+ reportDate: '',
|
|
|
+ servedUnitName: '', // 被服务单位
|
|
|
+ registerAddress: '',
|
|
|
+ securityBusiness: '',
|
|
|
+ businessLocation: '',
|
|
|
+ auditFees: '',
|
|
|
+ projectId: '',
|
|
|
id: '',
|
|
|
createDate: '',
|
|
|
createBy: {
|
|
@@ -978,15 +1012,22 @@
|
|
|
remarks: '',
|
|
|
documentNo: '',
|
|
|
projectName: '',
|
|
|
- officeId: '',
|
|
|
projectNumber: '',
|
|
|
+ officeId: '',
|
|
|
signatureAnnotator1: '',
|
|
|
signatureAnnotator2: '',
|
|
|
signatureType: '',
|
|
|
+ projectMasterId: '',
|
|
|
projectMasterName: '',
|
|
|
+ cwProjectInfoList: [],
|
|
|
+ cwFileInfoList: [],
|
|
|
+ cwFileInfoList2: [],
|
|
|
+ servedUnitId: '',
|
|
|
+ status: '',
|
|
|
realCreate: ''
|
|
|
}
|
|
|
- this.$refs.archiveFile.clearUpload()
|
|
|
+ this.$refs.enclosure.clearUpload()
|
|
|
+ // this.$refs.archiveFile.clearUpload()
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
this.visible = false
|
|
|
},
|