对接法规技术评估

This commit is contained in:
qq787203167
2022-07-15 11:05:25 +08:00
parent 865e5ce63b
commit 84e9cea1af
5 changed files with 65 additions and 13 deletions
@@ -99,6 +99,7 @@
<a-form-model-item class="itemModel" prop="taskExplain">
<a-textarea :placeholder="$t('pleaseEnter')+$t('processBackground')"
v-model="formInline.processBackground"
:disabled="!whetherDisplay"
:rows="4"/>
</a-form-model-item>
</div>
@@ -113,6 +114,7 @@
<a-form-model-item class="itemModel" prop="remarks">
<a-textarea :placeholder="$t('pleaseEnter')+$t('remarks')"
v-model="formInline.remark"
:disabled="!whetherDisplay"
:rows="4"/>
</a-form-model-item>
</div>
@@ -290,7 +292,6 @@
},
mounted() {
document.title = this.$t('regulatoryEngineer') + this.$t('initiatingProcess')
this.getList()
this.getEvaluationMethodTree()
if (this.$route.query.whetherTobring == '1') {
this.isTrue = true
@@ -299,8 +300,14 @@
}
if (this.$route.query.firstInitiation == '1') {
this.whetherDisplay = true
this.getList()
} else {
this.whetherDisplay = false
this.formInline.processBackground = this.$route.query.processBackground
this.formInline.lawsTechnologyEvaluationId = this.$route.query.lawsTechnologyEvaluationId
this.formInline.remark = this.$route.query.remark
this.formInline.standId = this.$route.query.standId
this.getListOne()
}
eventBUs.$on('searchQuery', search => {
Object.keys(search).forEach(res => {
@@ -333,6 +340,36 @@
this.pageSize = pageSize
this.getList()
},
getListOne() {
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
id: this.formInline.standId
}
this.loading = true
let url = ''
if (this.isTrue) {
url = this.url.addModelListOne
} else {
url = this.url.addModelList
}
postAction(url, query).then((res) => {
if (res.success) {
let content = res.result.records || []
this.selectedRowKeysRecord.push({
standId: content[0].id,
serialNumber: content[0].serial_number,
title: content[0].title,
technologyTerritory: content[0].technology_territory_id
})
this.standardDecomposition = content
this.loading = false
} else {
this.dataSource = []
this.loading = false
}
})
},
getList() {
let query = {
pageNo: this.pageNo,
@@ -463,7 +500,7 @@
value.startTime = startTime
value.flowStatus = 'Underway'
value.taskAffirmDueDate = value.endTime
if (!value.lawsTechnologyEvaluationId){
if (!value.lawsTechnologyEvaluationId) {
value.lawsTechnologyEvaluationId = this.getUUID()
}
value.regulationOwnerId = this.userInfo().id
@@ -532,7 +569,11 @@
}
}
</script>
<style>
.ant-input-disabled {
color: rgba(0, 0, 0, 0.65) !important;
}
</style>
<style scoped>
.detail-box {
padding: 67px 0 0 0;