From 03f58ab166acec9275efcde6b30a47d93e8cb93b Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Mon, 21 Jun 2021 18:35:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=87=E5=87=86=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E6=B5=81=E7=A8=8B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzrk/step2.vue | 59 +++++++++++-------- 1 file changed, 36 insertions(+), 23 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue index b936728b9..aaa5948fa 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue @@ -597,7 +597,7 @@ import ProcessHeader from '../../components/ProcessHeader' import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' - import {inboundLiaisonDetail} from 'api/process' + import {inboundLiaisonDetail,processCreateStand} from 'api/process' export default { name: "bzrkStep2", data () { @@ -728,30 +728,43 @@ }, handleSave() {}, handleSubmit() { - var json = this.form - json.zrUserId = this.$store.getters.userInfo.userId - json.jlUserId = this.$store.getters.userInfo.userId - json.applyUpdUserId = this.$store.getters.userInfo.userId - json.prcCreateUser = this.$store.getters.userInfo.userId - json.prcCreateUserName = this.$store.getters.userInfo.account - this.$http.get('lawss/activiti/startProcess', {type: '1'}, { - _this: this - }, res => { - if (res.ok) { - this.$http.post('lawss/activiti/completeTask', { - taskIds: res.data, - userId : this.$store.getters.userInfo.userId, - json: JSON.stringify(json) - }, { - _this: this - }, res => { - console.log(res); - if (res.ok) { - } - }) + const json = JSON.stringify(this.form); + console.log(json) + // this.$http.post('lawss/activiti/completeTask', { + // taskIds: res.data, + // userId : this.$store.getters.userInfo.userId, + // json: json + // }, { + // _this: this + // }, res => { + // console.log(res); + // if (res.ok) { + // this.processCreateStand(json) + // } + // }) + }, + + /** + * @description: 流程入库 + * @date: 2020-11-18 21:47:58 + * @auth: chenxiaoxi + */ + processCreateStand(json) { + const _formData = new FormData() + _formData.append('infoJson', json) + processCreateStand(_formData).then(res => { + if (res.result === '操作成功' || res.data === '入库成功') { + this.$message.success(res.data) + setTimeout(() => { + this.$router.push({ + name: 'ProcessCenter' + }) + }, 100) + } else { + this.$message.warning(res.message) } }) - } + }, }, mounted () { this.getData()