修改提交流程的传参

修改虚拟清单添加的接口
This commit is contained in:
qq787203167
2022-04-27 10:21:01 +08:00
parent 2e8a1fdff4
commit 7b4add830c
5 changed files with 9 additions and 10 deletions
@@ -17,7 +17,7 @@
<span>{{$t('standard')}}</span>
</div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
v-model="queryParam.serial_number"></j-input>
v-model="queryParam.serialNumber"></j-input>
</div>
</a-col>
<a-col :md="12" :sm="8">
@@ -225,7 +225,7 @@
this.selectedRowKeys = []
this.$emit('addModelList')
} else {
this.$message.warning(this.$t('operationFailed'))
this.$message.warning(res.message)
this.confirmLoading = false
}
})
@@ -249,7 +249,7 @@
}
],
url: {
addModelList: '/document/bussDocumentLibraryEO/queryPageInfoDummy',
addModelList: '/project/projectLawsInventoryEO/queryPageInfoBussDocument',
list: '/dummy/dummyInventoryInfoEO/list',
addModel: '/dummy/dummyInventoryInfoEO/add',
editModel: '/dummy/dummyInventoryInfoEO/edit',
@@ -187,13 +187,12 @@
})
},
completeTask(value,handlingTime) {
let json = Object.assign({}, this.queryBy, value)
let json = Object.assign({handlingTime:handlingTime}, this.queryBy, value)
let data = JSON.stringify(json).replace(/\"/g, '\'')
let query = {
userid: this.userInfo().id,
taskId: this.$route.query.taskId || this.$route.query.taskIds,
json: data,
handlingTime:handlingTime
}
postAction('/workFlow/completeTask', query).then((res) => {
if (res.success) {
@@ -17,7 +17,7 @@
<span>{{$t('standard')}}</span>
</div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
v-model="queryParam.serial_number"></j-input>
v-model="queryParam.serialNumber"></j-input>
</div>
</a-col>
<a-col :md="12" :sm="8">
@@ -209,7 +209,7 @@
this.selectedRowKeys = []
this.$emit('addModelList')
} else {
this.$message.warning(this.$t('operationFailed'))
this.$message.warning(res.message)
this.confirmLoading = false
}
})
@@ -519,7 +519,7 @@
},
queryParam: {},
url: {
addModelList: '/document/bussDocumentLibraryEO/queryPageInfoDummy',
addModelList: '/project/projectLawsInventoryEO/queryPageInfoBussDocument',
list: '/project/projectLawsInventoryEO/list',
addModel: 'project/projectLawsInventoryEO/add',
editModel: '/project/projectLawsInventoryEO/edit',
@@ -810,6 +810,8 @@
for (let j = 0; j < selectedRowKeys.length; j++) {
if (this.dataSource[i].id == selectedRowKeys[j]) {
this.dataSource[i].taskAffirmDueDate = this.formInline.taskAffirmDueDate
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
this.dataSource[i].handlingTime = handlingTime
Object.keys(this.dataSource[i]).forEach(res => {
if (this.dataSource[i][res] && this.dataSource[i][res] instanceof String) {
this.dataSource[i][res] = this.dataSource[i][res].replace(/\"/g, '“')
@@ -828,11 +830,9 @@
})
},
startProcess(value) {
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
let query = {
type: 1,
msg: value,
handlingTime:handlingTime,
projectNameId:this.$route.query.projectNameId,
projectName:this.$route.query.projectName,
taskAffirmDueDate: this.formInline.taskAffirmDueDate,