bug: 标准入库流程 责任人会签节点点击保存没反应
This commit is contained in:
@@ -1497,14 +1497,14 @@
|
|||||||
console.log(bringData)
|
console.log(bringData)
|
||||||
const json = Object.assign(bringData, bringData.attrInfoCaseMap);
|
const json = Object.assign(bringData, bringData.attrInfoCaseMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
this.form = JSON.parse(JSON.stringify(json))
|
||||||
this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw.split(',')
|
this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw ? JSON.parse(JSON.stringify(json)).qcdw.split(',') : []
|
||||||
this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr.split(',')
|
this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr ? JSON.parse(JSON.stringify(json)).wssmr.split(',') : []
|
||||||
this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs.split(',')
|
this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs ? JSON.parse(JSON.stringify(json)).zrgcs.split(',') : []
|
||||||
this.form.zrbm = JSON.parse(JSON.stringify(json)).zrbm.split(',')
|
this.form.zrbm = JSON.parse(JSON.stringify(json)).zrbm ? JSON.parse(JSON.stringify(json)).zrbm.split(',') : []
|
||||||
this.form.syrz = JSON.parse(JSON.stringify(json)).syrz.split(',')
|
this.form.syrz = JSON.parse(JSON.stringify(json)).syrz ? JSON.parse(JSON.stringify(json)).syrz.split(',') : []
|
||||||
this.form.sycpx = JSON.parse(JSON.stringify(json)).sycpx.split(',')
|
this.form.sycpx = JSON.parse(JSON.stringify(json)).sycpx ? JSON.parse(JSON.stringify(json)).sycpx.split(',') : []
|
||||||
this.form.nylx = JSON.parse(JSON.stringify(json)).nylx.split(',')
|
this.form.nylx = JSON.parse(JSON.stringify(json)).nylx ? JSON.parse(JSON.stringify(json)).nylx.split(',') : []
|
||||||
this.form.cllx = JSON.parse(JSON.stringify(json)).cllx.split(',')
|
this.form.cllx = JSON.parse(JSON.stringify(json)).cllx ? JSON.parse(JSON.stringify(json)).cllx.split(',') : []
|
||||||
this.defaultCheckedKeys = [this.form.standSystem];
|
this.defaultCheckedKeys = [this.form.standSystem];
|
||||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm];
|
this.defaultCheckedKeys1 = [this.form.cycvppsbm];
|
||||||
this.defaultCheckedKeys2 = [this.form.kccvppsbm];
|
this.defaultCheckedKeys2 = [this.form.kccvppsbm];
|
||||||
@@ -1949,7 +1949,8 @@
|
|||||||
saveTaskFirst(_formData).then(res => {
|
saveTaskFirst(_formData).then(res => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
// this.$router.push('/processCenter')
|
// 流程保存之后,应该流转至草稿页面
|
||||||
|
this.$router.push({path:'/processCenter?tabsName=TaskDraft'})
|
||||||
// this.bpnId = res.result
|
// this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
@@ -1982,6 +1983,8 @@
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
|
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -679,6 +679,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {saveTaskFirst} from "api/process";
|
||||||
import ProcessHeader from '../../components/ProcessHeader'
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
@@ -943,7 +944,31 @@ export default {
|
|||||||
handleTabs(name) {
|
handleTabs(name) {
|
||||||
this.active = name
|
this.active = name
|
||||||
},
|
},
|
||||||
handleSave() {},
|
handleSave() {
|
||||||
|
this.saveLoading = true
|
||||||
|
let _formData = new FormData()
|
||||||
|
// _formData.append('id', this.bpnId)
|
||||||
|
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||||
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
|
_formData.append('prcType', this.$route.query.type)
|
||||||
|
_formData.append('json', JSON.stringify({
|
||||||
|
prcForm: this.prcForm,
|
||||||
|
sarAccessInfoList: this.sarAccessInfoList,
|
||||||
|
sarAccessInfoListADMIN: this.sarAccessInfoListADMIN,
|
||||||
|
bzqdForm: this.bzqdForm,
|
||||||
|
listInfo: this.listInfo,
|
||||||
|
id: this.id
|
||||||
|
}))
|
||||||
|
saveTaskFirst(_formData).then(res => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.$message.success('保存成功')
|
||||||
|
// 流程保存之后,应该流转至草稿页面
|
||||||
|
this.$router.push({path:'/processCenter?tabsName=TaskDraft'})
|
||||||
|
// this.bpnId = res.result
|
||||||
|
}).catch(e => {
|
||||||
|
this.saveLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
this.form.commentText = this.commentText
|
this.form.commentText = this.commentText
|
||||||
@@ -958,6 +983,8 @@ export default {
|
|||||||
}, res => {
|
}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
|
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else {
|
}else {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user