修改手机端待办中心不切换页签,查询的条件都不被清空
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
pageSize: 10,
|
||||
loading: false,
|
||||
finished: false,
|
||||
isDisplay:false,
|
||||
isDisplay: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -65,7 +65,10 @@
|
||||
path: this.$route.query.goRouter,
|
||||
query: {
|
||||
searchValue: this.$route.query.searchValue,
|
||||
activeTab: this.$route.query.activeTab
|
||||
activeTab: this.$route.query.activeTab,
|
||||
searchFlowType: this.$route.query.searchFlowType,
|
||||
checked: this.$route.query.checked,
|
||||
selectModel: this.$route.query.selectModel
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@@ -77,9 +80,9 @@
|
||||
path: '/phonePreHomoMangement',
|
||||
query: {
|
||||
taskDefinitionKey: this.$route.query.taskDefinitionKey,
|
||||
projectName:this.$route.query.projectName,
|
||||
projectName: this.$route.query.projectName,
|
||||
id: item.id,
|
||||
isDisplay:this.isDisplay
|
||||
isDisplay: this.isDisplay
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -317,6 +317,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getDeliveryResult(item) {
|
||||
getAction('sys/common/getFileInfos', { id: item }).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -333,6 +334,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
disposeResultChange(value) {
|
||||
if (value == 'rzgcssc_tg') {
|
||||
this.form.reasonForReturn = ''
|
||||
@@ -349,6 +351,7 @@
|
||||
this.form = { ...this.form }
|
||||
})
|
||||
},
|
||||
|
||||
onSubmit() {
|
||||
this.$refs.form.validate().then(() => {
|
||||
this.textLoading = this.$t('Submitting')
|
||||
@@ -419,7 +422,15 @@
|
||||
//保存
|
||||
preservationClick() {
|
||||
let content = []
|
||||
content[0] = Object.assign(this.queryForm, this.form)
|
||||
let fileListId = []
|
||||
let form = JSON.parse(JSON.stringify(this.form))
|
||||
if (this.queryForm.valueType == 'file') {
|
||||
this.fileList.forEach(res => {
|
||||
fileListId.push(res.id)
|
||||
})
|
||||
form.deliveryResult = fileListId.join(',')
|
||||
}
|
||||
content[0] = Object.assign(this.queryForm, form)
|
||||
postAction(this.url.saveBatch, { 'dataList': content }).then((res) => {
|
||||
if (res.success) {
|
||||
this.ApprovedClick()
|
||||
|
||||
@@ -270,7 +270,10 @@
|
||||
path: this.$route.query.goRouter,
|
||||
query: {
|
||||
searchValue: this.$route.query.searchValue,
|
||||
activeTab: this.$route.query.activeTab
|
||||
activeTab: this.$route.query.activeTab,
|
||||
searchFlowType:this.$route.query.searchFlowType,
|
||||
checked:this.$route.query.checked,
|
||||
selectModel:this.$route.query.selectModel,
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
@@ -279,16 +279,21 @@
|
||||
mounted() {
|
||||
document.title = 'NIO GRP'
|
||||
if (this.$route.query.flowType) {
|
||||
let flowType = this.$route.query.flowType
|
||||
flowType = flowType.split(',')
|
||||
this.form.flowType = []
|
||||
this.form.flowType.push(this.$route.query.flowType)
|
||||
this.form = { ...this.form }
|
||||
this.form.flowType = this.form.flowType.concat(flowType)
|
||||
}
|
||||
if (this.$route.query.searchValue){
|
||||
this.phoneQueryValue = this.$route.query.searchValue
|
||||
if (this.$route.query.searchValue) {
|
||||
this.phoneQueryValue = this.$route.query.searchValue
|
||||
}
|
||||
if (this.$route.query.activeTab) {
|
||||
this.activeTab = this.$route.query.activeTab
|
||||
this.form.flowType = this.$route.query.searchFlowType
|
||||
this.form.checked = JSON.parse(this.$route.query.checked)
|
||||
this.form.selectModel = this.$route.query.selectModel
|
||||
}
|
||||
this.form = { ...this.form }
|
||||
// this.toDoProcessPageNo = 1
|
||||
// this.getToDoProcess()
|
||||
},
|
||||
@@ -476,8 +481,11 @@
|
||||
DueDate: 'designDueDate',
|
||||
remarks: 'designRemark',
|
||||
goRouter: '/phoneToDoCenter',
|
||||
searchValue:this.phoneQueryValue,
|
||||
activeTab:this.activeTab
|
||||
searchValue: this.phoneQueryValue,
|
||||
activeTab: this.activeTab,
|
||||
checked: this.form.checked,
|
||||
selectModel: this.form.selectModel,
|
||||
searchFlowType: this.form.flowType
|
||||
}
|
||||
this.$router.push({
|
||||
path: '/phoneProcessManagement',
|
||||
@@ -499,8 +507,11 @@
|
||||
DueDate: 'verifyDueDate',
|
||||
remarks: 'verifyRemark',
|
||||
goRouter: '/phoneToDoCenter',
|
||||
searchValue:this.phoneQueryValue,
|
||||
activeTab:this.activeTab
|
||||
searchValue: this.phoneQueryValue,
|
||||
activeTab: this.activeTab,
|
||||
searchFlowType: this.form.flowType,
|
||||
checked: this.form.checked,
|
||||
selectModel: this.form.selectModel
|
||||
}
|
||||
this.$router.push({
|
||||
path: '/phoneProcessManagement',
|
||||
@@ -518,8 +529,11 @@
|
||||
isDisplay: isTrue,
|
||||
projectName: row.projectName,
|
||||
goRouter: '/phoneToDoCenter',
|
||||
searchValue:this.phoneQueryValue,
|
||||
activeTab:this.activeTab
|
||||
searchValue: this.phoneQueryValue,
|
||||
activeTab: this.activeTab,
|
||||
searchFlowType: this.form.flowType,
|
||||
checked: this.form.checked,
|
||||
selectModel: this.form.selectModel
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@@ -597,6 +611,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getProcessDone() {
|
||||
let form = JSON.parse(JSON.stringify(this.form))
|
||||
if (form.flowType && form.flowType instanceof Array) {
|
||||
@@ -623,6 +638,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getSentProcess() {
|
||||
let form = JSON.parse(JSON.stringify(this.form))
|
||||
if (form.flowType && form.flowType instanceof Array) {
|
||||
@@ -649,6 +665,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
processClick(type) {
|
||||
if (!this.form.flowType) {
|
||||
this.form.flowType = []
|
||||
@@ -670,6 +687,7 @@
|
||||
}
|
||||
this.form = { ...this.form }
|
||||
},
|
||||
|
||||
checkboxGroupColor(type) {
|
||||
if (this.form.flowType && this.form.flowType.length > 0) {
|
||||
for (let i = 0; i < this.form.flowType.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user