|
@@ -208,7 +208,7 @@
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="意见类型" prop="opinionType"
|
|
<el-form-item label="意见类型" prop="opinionType"
|
|
:rules="[
|
|
:rules="[
|
|
- {required: true, message:'意见类型不能为空', trigger:'blur'}
|
|
|
|
|
|
+ {required: true, message:'意见类型不能为空', trigger:'change'}
|
|
]">
|
|
]">
|
|
<el-select v-model="inputForm.opinionType" placeholder="请选择意见类型" style="width:100%;">
|
|
<el-select v-model="inputForm.opinionType" placeholder="请选择意见类型" style="width:100%;">
|
|
<el-option
|
|
<el-option
|
|
@@ -340,6 +340,10 @@
|
|
<!-- 附件-->
|
|
<!-- 附件-->
|
|
<UpLoadComponent ref="archiveFile"></UpLoadComponent>
|
|
<UpLoadComponent ref="archiveFile"></UpLoadComponent>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
+ <el-tab-pane label="已签章附件" name="signatureFile">
|
|
|
|
+ <!-- 附件-->
|
|
|
|
+ <UpLoadComponent2 ref="signatureFile"></UpLoadComponent2>
|
|
|
|
+ </el-tab-pane>
|
|
<el-tab-pane label="历史报告列表" name="contact">
|
|
<el-tab-pane label="历史报告列表" name="contact">
|
|
<el-row :gutter="15">
|
|
<el-row :gutter="15">
|
|
<el-form :disabled="method==='view'">
|
|
<el-form :disabled="method==='view'">
|
|
@@ -421,7 +425,7 @@
|
|
<el-button size="small" @click="close()" icon="el-icon-circle-close">关闭</el-button>
|
|
<el-button size="small" @click="close()" icon="el-icon-circle-close">关闭</el-button>
|
|
<el-button size="small" v-if="method === 'edit'" type="primary" icon="el-icon-circle-check" @click="doSubmit('save')">确定</el-button>
|
|
<el-button size="small" v-if="method === 'edit'" type="primary" icon="el-icon-circle-check" @click="doSubmit('save')">确定</el-button>
|
|
</span>
|
|
</span>
|
|
-<!-- <UpLoadComponentDialog ref="upLoadComponentDialog" @getUpload="getUpload"></UpLoadComponentDialog>-->
|
|
|
|
|
|
+ <UpLoadComponentDialog ref="upLoadComponentDialog" @getUpload="getUpload"></UpLoadComponentDialog>
|
|
<!-- <WorkContractChooseCom ref="workContractChooseCom" @getContract="getContract"></WorkContractChooseCom>-->
|
|
<!-- <WorkContractChooseCom ref="workContractChooseCom" @getContract="getContract"></WorkContractChooseCom>-->
|
|
<!-- <WorkClientChooseForm ref="workClientChooseForm" @getWorkClientChoose="getWorkClientChoose"></WorkClientChooseForm>-->
|
|
<!-- <WorkClientChooseForm ref="workClientChooseForm" @getWorkClientChoose="getWorkClientChoose"></WorkClientChooseForm>-->
|
|
<ProjectRecoredChooseCom ref="projectRecoredChooseCom" @getProject="getContract"></ProjectRecoredChooseCom>
|
|
<ProjectRecoredChooseCom ref="projectRecoredChooseCom" @getProject="getContract"></ProjectRecoredChooseCom>
|
|
@@ -431,7 +435,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- // import UpLoadComponent from '@/views/common/UpLoadComponent'
|
|
|
|
|
|
+ import UpLoadComponent2 from '@/views/common/UpLoadComponent'
|
|
import UpLoadComponent from '@/views/common/UpLoadComponentV2.1'
|
|
import UpLoadComponent from '@/views/common/UpLoadComponentV2.1'
|
|
import SelectUserTree from '@/views/modules/utils/treeUserSelect'
|
|
import SelectUserTree from '@/views/modules/utils/treeUserSelect'
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
@@ -490,6 +494,7 @@
|
|
projectMasterName: '',
|
|
projectMasterName: '',
|
|
cwProjectInfoList: [],
|
|
cwProjectInfoList: [],
|
|
cwFileInfoList: [],
|
|
cwFileInfoList: [],
|
|
|
|
+ signatureFileList: [],
|
|
servedUnitId: '',
|
|
servedUnitId: '',
|
|
status: '',
|
|
status: '',
|
|
realCreate: ''
|
|
realCreate: ''
|
|
@@ -536,6 +541,7 @@
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
SelectUserTree,
|
|
SelectUserTree,
|
|
|
|
+ UpLoadComponent2,
|
|
UpLoadComponent,
|
|
UpLoadComponent,
|
|
SelectTree,
|
|
SelectTree,
|
|
UserSelect,
|
|
UserSelect,
|
|
@@ -561,24 +567,6 @@
|
|
// this.$refs.upLoadComponentDialog.newUpload('view', this.inputForm.cwProjectInfoList[index].cwFileInfoList, null, null, null, null, null, false, index)
|
|
// this.$refs.upLoadComponentDialog.newUpload('view', this.inputForm.cwProjectInfoList[index].cwFileInfoList, null, null, null, null, null, false, index)
|
|
this.$refs.upLoadComponentDialog.newUpload('view', this.inputForm.cwWorkClientContactDTOList[index].cwFileInfoList, null, null, null, null, null, false, index)
|
|
this.$refs.upLoadComponentDialog.newUpload('view', this.inputForm.cwWorkClientContactDTOList[index].cwFileInfoList, null, null, null, null, null, false, index)
|
|
},
|
|
},
|
|
- // sss (index) {
|
|
|
|
- // if (this.commonJS.isEmpty(this.inputForm.cwProjectInfoList[index].cwFileInfoList)) {
|
|
|
|
- // this.inputForm.cwProjectInfoList[index].cwFileInfoList = []
|
|
|
|
- // }
|
|
|
|
- // this.$refs.upLoadComponentDialog.newUpload(null, this.inputForm.cwProjectInfoList[index].cwFileInfoList, null, null, null, null, null, false, index)
|
|
|
|
- // },
|
|
|
|
- // getUpload (p, index) {
|
|
|
|
- // p.then((list) => {
|
|
|
|
- // // list为返回数据
|
|
|
|
- // this.inputForm.cwProjectInfoList[index].cwFileInfoList = list
|
|
|
|
- // this.inputForm.cwProjectInfoList[index].fileNumber = list.length
|
|
|
|
- // this.tableKeyClient = Math.random()
|
|
|
|
- // this.tableKeyContact = Math.random()
|
|
|
|
- // // console.log('this.inputForm.cwFileInfoList', this.inputForm.cwFileInfoList)
|
|
|
|
- // // console.log('list.length', list.length)
|
|
|
|
- // // console.log(list)
|
|
|
|
- // })
|
|
|
|
- // },
|
|
|
|
getKeyWatch (keyWatch) {
|
|
getKeyWatch (keyWatch) {
|
|
this.keyWatch = keyWatch
|
|
this.keyWatch = keyWatch
|
|
},
|
|
},
|
|
@@ -621,9 +609,11 @@
|
|
projectMasterName: '',
|
|
projectMasterName: '',
|
|
cwProjectInfoList: [],
|
|
cwProjectInfoList: [],
|
|
cwFileInfoList: [],
|
|
cwFileInfoList: [],
|
|
|
|
+ signatureFileList: [],
|
|
servedUnitId: '',
|
|
servedUnitId: '',
|
|
status: '',
|
|
status: '',
|
|
- realCreate: ''
|
|
|
|
|
|
+ realCreate: '',
|
|
|
|
+ cwWorkClientContactDTOList: []
|
|
}
|
|
}
|
|
this.inputForm.id = id
|
|
this.inputForm.id = id
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -651,6 +641,7 @@
|
|
// })
|
|
// })
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.archiveFile.clearUpload()
|
|
this.$refs.archiveFile.clearUpload()
|
|
|
|
+ this.$refs.signatureFile.clearUpload()
|
|
this.$refs.inputForm.resetFields()
|
|
this.$refs.inputForm.resetFields()
|
|
this.loading = true
|
|
this.loading = true
|
|
this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
|
|
this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
|
|
@@ -660,6 +651,7 @@
|
|
// this.$refs.uploadComponent.clearUpload()
|
|
// this.$refs.uploadComponent.clearUpload()
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
|
+ console.log('this.inputForm.cwWorkClientContactDTOList', data.cwWorkClientContactDTOList)
|
|
if (this.commonJS.isEmpty(this.inputForm.createDate)) {
|
|
if (this.commonJS.isEmpty(this.inputForm.createDate)) {
|
|
this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
}
|
|
}
|
|
@@ -673,6 +665,7 @@
|
|
method = 'view'
|
|
method = 'view'
|
|
}
|
|
}
|
|
this.$refs.archiveFile.newUpload(method, data.cwFileInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
this.$refs.archiveFile.newUpload(method, data.cwFileInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
|
|
+ this.$refs.signatureFile.newUpload(method, data.signatureFileList, 'cwWorkContract', null, null, null, null, false)
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
// this.projectRecordsService.queryById(this.inputForm.id).then(({data}) => {
|
|
// this.projectRecordsService.queryById(this.inputForm.id).then(({data}) => {
|
|
@@ -717,15 +710,17 @@
|
|
// 暂存
|
|
// 暂存
|
|
// this.inputForm.status = '1'
|
|
// this.inputForm.status = '1'
|
|
this.loading = true
|
|
this.loading = true
|
|
- // if (this.$refs.uploadComponent.checkProgress()) {
|
|
|
|
- // this.loading = false
|
|
|
|
- // return
|
|
|
|
- // }
|
|
|
|
- // this.inputForm.workAttachmentDtoList = this.$refs.uploadComponent.getDataList()
|
|
|
|
- // this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.opinionType)) {
|
|
|
|
+ this.$message.error('意见类型不能为空')
|
|
|
|
+ this.loading = false
|
|
|
|
+ throw new Error('意见类型不能为空')
|
|
|
|
+ }
|
|
this.$refs.archiveFile.getDataList().then((data) => {
|
|
this.$refs.archiveFile.getDataList().then((data) => {
|
|
this.inputForm.cwFileInfoList = data
|
|
this.inputForm.cwFileInfoList = data
|
|
})
|
|
})
|
|
|
|
+ this.$refs.signatureFile.getDataList().then((data) => {
|
|
|
|
+ this.inputForm.signatureFileList = data
|
|
|
|
+ })
|
|
this.projectReportService.saveForm(this.inputForm).then(({data}) => {
|
|
this.projectReportService.saveForm(this.inputForm).then(({data}) => {
|
|
// callback(data.businessTable, data.businessId, this.inputForm)
|
|
// callback(data.businessTable, data.businessId, this.inputForm)
|
|
this.close()
|
|
this.close()
|
|
@@ -772,6 +767,9 @@
|
|
this.$refs.archiveFile.getDataList().then((data) => {
|
|
this.$refs.archiveFile.getDataList().then((data) => {
|
|
this.inputForm.cwFileInfoList = data
|
|
this.inputForm.cwFileInfoList = data
|
|
})
|
|
})
|
|
|
|
+ this.$refs.signatureFile.getDataList().then((data) => {
|
|
|
|
+ this.inputForm.signatureFileList = data
|
|
|
|
+ })
|
|
this.projectReportService.saveForm(this.inputForm).then(({data}) => {
|
|
this.projectReportService.saveForm(this.inputForm).then(({data}) => {
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -943,6 +941,18 @@
|
|
// eslint-disable-next-line no-useless-escape
|
|
// eslint-disable-next-line no-useless-escape
|
|
str = str.replace(/[^\d^\.]+/g, '') // 保留数字和小数点
|
|
str = str.replace(/[^\d^\.]+/g, '') // 保留数字和小数点
|
|
return str
|
|
return str
|
|
|
|
+ },
|
|
|
|
+ getUpload (p, index) {
|
|
|
|
+ p.then((list) => {
|
|
|
|
+ // list为返回数据
|
|
|
|
+ this.inputForm.cwProjectInfoList[index].cwFileInfoList = list
|
|
|
|
+ this.inputForm.cwProjectInfoList[index].fileNumber = list.length
|
|
|
|
+ this.tableKeyClient = Math.random()
|
|
|
|
+ this.tableKeyContact = Math.random()
|
|
|
|
+ // console.log('this.inputForm.cwFileInfoList', this.inputForm.cwFileInfoList)
|
|
|
|
+ // console.log('list.length', list.length)
|
|
|
|
+ // console.log(list)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|