对接法规技术评估
This commit is contained in:
+64
-29
@@ -127,6 +127,7 @@
|
||||
tree-node-filter-prop="title"
|
||||
v-model="formInline.evaluationMethods"
|
||||
:maxTagCount="1"
|
||||
@change="evaluationMethodsChange"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
class="box-input"
|
||||
style="width: 100%"
|
||||
@@ -155,7 +156,13 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
<TermInformation :gatherResultList="gatherResultList" v-if="isTrue"/>
|
||||
|
||||
<TermInformation
|
||||
ref="TermInformationRef"
|
||||
@TermInformationRefForm="TermInformationRefForm"
|
||||
:gatherResultList="gatherResultList"
|
||||
v-if="isTrue"/>
|
||||
|
||||
<footerProcess
|
||||
@submit="submit"
|
||||
:isSubmit="true"
|
||||
@@ -211,6 +218,7 @@
|
||||
pageSize: 10,
|
||||
pageNo: 1,
|
||||
formInline: {},
|
||||
standardDecomposition: [],
|
||||
gatherResultList: [],
|
||||
rules: {
|
||||
endTime: [
|
||||
@@ -358,16 +366,20 @@
|
||||
technologyTerritory: content[0].technology_territory_id
|
||||
})
|
||||
}
|
||||
this.standardDecomposition = content
|
||||
},
|
||||
standardDecompositionDocumentClick() {
|
||||
if (this.selectedRowKeysRecord && this.selectedRowKeysRecord.length > 0) {
|
||||
this.$refs.standardDecompositionSheetRef.getData(JSON.parse(JSON.stringify(this.selectedRowKeysRecord[0])))
|
||||
if (this.standardDecomposition && this.standardDecomposition.length > 0) {
|
||||
this.$refs.standardDecompositionSheetRef.getData(JSON.parse(JSON.stringify(this.standardDecomposition[0])))
|
||||
} else {
|
||||
this.$message.warning(this.$t('pleaseSelectStandardFirst'))
|
||||
}
|
||||
},
|
||||
standardDecompositionSheetForm(value) {
|
||||
|
||||
this.$refs.TermInformationRef.getData(JSON.parse(JSON.stringify(value)))
|
||||
},
|
||||
TermInformationRefForm(value) {
|
||||
this.$refs.standardDecompositionSheetRef.getRowList(JSON.parse(JSON.stringify(value)))
|
||||
},
|
||||
clickButtonToUpload(item) {
|
||||
this.$refs.uploadFile.perentHandleFunc()
|
||||
@@ -397,6 +409,10 @@
|
||||
this.formInline[value] = id
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
evaluationMethodsChange(key, name) {
|
||||
this.formInline.evaluationMethods = []
|
||||
this.formInline.evaluationMethods = name
|
||||
},
|
||||
dateChange(item) {
|
||||
this.formInline[item] = this.formInline[item] ? moment(this.formInline[item]).format('YYYY-MM-DD') : ''
|
||||
},
|
||||
@@ -415,37 +431,56 @@
|
||||
if (this.selectedRowKeysRecord && this.selectedRowKeysRecord.length == 0) {
|
||||
this.$message.warning(this.$t('pleaseSelectStandard'))
|
||||
} else {
|
||||
this.JLoading = true
|
||||
let value = Object.assign(this.formInline, this.selectedRowKeysRecord[0])
|
||||
if (this.isTrue) {
|
||||
value.evaluationType = 'Item evaluation'
|
||||
if (this.$refs.TermInformationRef) {
|
||||
this.$refs.TermInformationRef.submitData((dataList) => {
|
||||
this.submitData(startTime, dataList)
|
||||
})
|
||||
} else {
|
||||
value.evaluationType = 'Feedback evaluation'
|
||||
this.submitData(startTime)
|
||||
}
|
||||
value.startTime = startTime
|
||||
value.flowStatus = 'Underway'
|
||||
value.taskAffirmDueDate = value.endTime
|
||||
value.lawsTechnologyEvaluationId = this.getUUID()
|
||||
value.regulationOwnerId = this.userInfo().id
|
||||
Object.keys(value).forEach(res => {
|
||||
if (value[res] && value[res] instanceof Array) {
|
||||
value[res] = value[res].join(',')
|
||||
}
|
||||
if (value[res] && value[res] instanceof String) {
|
||||
value[res] = value[res].replace(/\"/g, '“')
|
||||
value[res] = value[res].replace(/\'/g, '‘')
|
||||
}
|
||||
})
|
||||
this.startProcess(value)
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
startProcess(value) {
|
||||
let query = {
|
||||
type: 6,
|
||||
...value,
|
||||
msg: JSON.stringify(value.evaluators).replace(/\"/g, '\'')
|
||||
submitData(startTime, dataList) {
|
||||
this.JLoading = true
|
||||
let value = Object.assign(this.formInline, this.selectedRowKeysRecord[0])
|
||||
if (this.isTrue) {
|
||||
value.evaluationType = 'Item evaluation'
|
||||
} else {
|
||||
value.evaluationType = 'Feedback evaluation'
|
||||
}
|
||||
value.startTime = startTime
|
||||
value.flowStatus = 'Underway'
|
||||
value.taskAffirmDueDate = value.endTime
|
||||
value.lawsTechnologyEvaluationId = this.getUUID()
|
||||
value.regulationOwnerId = this.userInfo().id
|
||||
value.regulationOwnerName = this.userInfo().username
|
||||
Object.keys(value).forEach(res => {
|
||||
if (value[res] && value[res] instanceof Array) {
|
||||
value[res] = value[res].join(',')
|
||||
}
|
||||
if (value[res] && value[res] instanceof String) {
|
||||
value[res] = value[res].replace(/\"/g, '“')
|
||||
value[res] = value[res].replace(/\'/g, '‘')
|
||||
}
|
||||
})
|
||||
this.startProcess(value, dataList)
|
||||
},
|
||||
startProcess(value, dataList) {
|
||||
let query = {}
|
||||
if (this.isTrue) {
|
||||
query = {
|
||||
type: 6,
|
||||
...value,
|
||||
msg: JSON.stringify({ itemList: dataList }).replace(/\"/g, '\'')
|
||||
}
|
||||
} else {
|
||||
query = {
|
||||
type: 6,
|
||||
...value,
|
||||
msg: JSON.stringify({ evaluators: this.$refs.TermInformationRef.dataList }).replace(/\"/g, '\'')
|
||||
}
|
||||
}
|
||||
postAction('/workFlow/startProcess', query).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user