Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage

This commit is contained in:
wangzhijiang
2022-09-29 14:46:06 +08:00
5 changed files with 45 additions and 12 deletions
@@ -296,6 +296,12 @@
if (dataList[i].evaluationMethods && dataList[i].evaluationMethods instanceof Array) { if (dataList[i].evaluationMethods && dataList[i].evaluationMethods instanceof Array) {
dataList[i].evaluationMethods = dataList[i].evaluationMethods.join(',') dataList[i].evaluationMethods = dataList[i].evaluationMethods.join(',')
} }
Object.keys(dataList[i]).forEach(res=>{
if (dataList[i][res] && typeof dataList[i][res] == 'string') {
dataList[i][res] = dataList[i][res].replace(/\"/g, '“')
dataList[i][res] = dataList[i][res].replace(/\'/g, '‘')
}
})
dataList[i].lawsTechnologyEvaluationId = this.$route.query.lawsTechnologyEvaluationId || this.getUUID dataList[i].lawsTechnologyEvaluationId = this.$route.query.lawsTechnologyEvaluationId || this.getUUID
if (!dataList[i].evaluatorIds) { if (!dataList[i].evaluatorIds) {
this.$message.warning(this.$t('pleaseCompleteTheEvaluationMethodorEvaluator')) this.$message.warning(this.$t('pleaseCompleteTheEvaluationMethodorEvaluator'))
@@ -55,9 +55,9 @@
<span>{{$t('informationCategory')}}</span> <span>{{$t('informationCategory')}}</span>
</div> </div>
<j-dict-select-tag class="box-input" v-model="queryParam.information_category" <j-dict-select-tag class="box-input" v-model="queryParam.information_category"
:placeholder="$t('PleaseSelect')+$t('informationCategory')" :placeholder="$t('PleaseSelect')+$t('informationCategory')"
:type="'select'" :type="'select'"
:triggerChange="false" :dictCode="'information_category'"/> :triggerChange="false" :dictCode="'information_category'"/>
</div> </div>
</a-col> </a-col>
<span style="float: right;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
@@ -136,7 +136,7 @@
confirmLoading: false, confirmLoading: false,
selectedRowKeys: [], selectedRowKeys: [],
sarFileSplitInfoList: [], sarFileSplitInfoList: [],
informationCategoryList:[], informationCategoryList: [],
url: { url: {
list: '/split/sarFileSplitItems/getSplitItemsByPage' list: '/split/sarFileSplitItems/getSplitItemsByPage'
}, },
@@ -244,14 +244,18 @@
} }
}, },
searchQuery() { searchQuery() {
this.pageNo = 1 if (this.queryParam.info_id) {
this.replacePage() this.pageNo = 1
this.replacePage()
}
}, },
searchReset() { searchReset() {
this.pageNo = 1
this.queryParam = {} this.queryParam = {}
this.queryParam.info_id = this.sarFileSplitInfoList && this.sarFileSplitInfoList.length > 0 ? this.sarFileSplitInfoList[0].id : '' this.queryParam.info_id = this.sarFileSplitInfoList && this.sarFileSplitInfoList.length > 0 ? this.sarFileSplitInfoList[0].id : ''
this.replacePage() if (this.queryParam.info_id) {
this.pageNo = 1
this.replacePage()
}
}, },
onChange(page, pageSize) { onChange(page, pageSize) {
this.pageNo = page this.pageNo = page
@@ -270,15 +274,15 @@
let pageNo = JSON.parse(JSON.stringify(this.pageNo)) let pageNo = JSON.parse(JSON.stringify(this.pageNo))
let pageSize = JSON.parse(JSON.stringify(this.pageSize)) let pageSize = JSON.parse(JSON.stringify(this.pageSize))
let queryParam = JSON.parse(JSON.stringify(this.queryParam)) let queryParam = JSON.parse(JSON.stringify(this.queryParam))
if (queryParam.technology_territory && queryParam.technology_territory.length > 0){ if (queryParam.technology_territory && queryParam.technology_territory.length > 0) {
queryParam.technology_territory = queryParam.technology_territory.join(',') queryParam.technology_territory = queryParam.technology_territory.join(',')
} }
let query = { let query = {
pageNo: pageNo + '', pageNo: pageNo + '',
pageSize: pageSize + '', pageSize: pageSize + '',
info_id: this.queryParam.info_id, info_id: this.queryParam.info_id,
technology_territory:queryParam.technology_territory, technology_territory: queryParam.technology_territory,
information_category:queryParam.information_category, information_category: queryParam.information_category,
menu_id: '' menu_id: ''
} }
this.loading = true this.loading = true
@@ -345,6 +345,12 @@
this.$message.warning(this.$t('PleaseCompleteList')) this.$message.warning(this.$t('PleaseCompleteList'))
return return
} }
Object.keys(this.dataSource[i]).forEach(res=>{
if (this.dataSource[i][res] && typeof this.dataSource[i][res] == 'string') {
this.dataSource[i][res] = this.dataSource[i][res].replace(/\"/g, '“')
this.dataSource[i][res] = this.dataSource[i][res].replace(/\'/g, '‘')
}
})
} }
if (this.$route.query.taskDefinitionKey == 'pgrqr'){ if (this.$route.query.taskDefinitionKey == 'pgrqr'){
let feedbackTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') let feedbackTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
@@ -348,6 +348,7 @@
this.getNameList() this.getNameList()
this.formInline.studioEngineerName = this.userInfo().username this.formInline.studioEngineerName = this.userInfo().username
this.formInline.studioEngineer = this.userInfo().id this.formInline.studioEngineer = this.userInfo().id
this.formInline = {...this.formInline}
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
}) })
@@ -296,8 +296,14 @@
}, },
verifyTaskClick(val, num, isTrue) { verifyTaskClick(val, num, isTrue) {
let query = {} let query = {}
let isDisplay = false
switch (num) { switch (num) {
case 1: case 1:
if (val.designTaskStatus == 'NotDone'){
isDisplay = true
}else{
isDisplay = false
}
query = { query = {
taskIds: val.designTaskId, taskIds: val.designTaskId,
actiProcInstId: val.designPId, actiProcInstId: val.designPId,
@@ -307,7 +313,7 @@
studioEngineer: val.studioEngineer, studioEngineer: val.studioEngineer,
serialNumber: val.serialNumber, serialNumber: val.serialNumber,
TaskKey: val.designTaskDefinitionKey, TaskKey: val.designTaskDefinitionKey,
isDisplay: isTrue, isDisplay: isDisplay,
flowType: 2, flowType: 2,
Sponsor: 'designInitiatorName', Sponsor: 'designInitiatorName',
personLiable: 'designDutyName', personLiable: 'designDutyName',
@@ -323,6 +329,11 @@
} }
break break
case 2: case 2:
if (val.prehomoTaskStatus == 'NotDone'){
isDisplay = true
}else{
isDisplay = false
}
query = { query = {
taskIds: val.prehomoTaskId, taskIds: val.prehomoTaskId,
actiProcInstId: val.prehomoPId, actiProcInstId: val.prehomoPId,
@@ -348,6 +359,11 @@
} }
break break
case 3: case 3:
if (val.verifyTaskStatus == 'NotDone'){
isDisplay = true
}else{
isDisplay = false
}
query = { query = {
taskIds: val.verifyTaskId, taskIds: val.verifyTaskId,
actiProcInstId: val.verifyPId, actiProcInstId: val.verifyPId,