feat: 标准入库流程2
This commit is contained in:
@@ -597,7 +597,7 @@
|
|||||||
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'
|
||||||
import {inboundLiaisonDetail} from 'api/process'
|
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||||
export default {
|
export default {
|
||||||
name: "bzrkStep2",
|
name: "bzrkStep2",
|
||||||
data () {
|
data () {
|
||||||
@@ -728,30 +728,43 @@
|
|||||||
},
|
},
|
||||||
handleSave() {},
|
handleSave() {},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
var json = this.form
|
const json = JSON.stringify(this.form);
|
||||||
json.zrUserId = this.$store.getters.userInfo.userId
|
console.log(json)
|
||||||
json.jlUserId = this.$store.getters.userInfo.userId
|
// this.$http.post('lawss/activiti/completeTask', {
|
||||||
json.applyUpdUserId = this.$store.getters.userInfo.userId
|
// taskIds: res.data,
|
||||||
json.prcCreateUser = this.$store.getters.userInfo.userId
|
// userId : this.$store.getters.userInfo.userId,
|
||||||
json.prcCreateUserName = this.$store.getters.userInfo.account
|
// json: json
|
||||||
this.$http.get('lawss/activiti/startProcess', {type: '1'}, {
|
// }, {
|
||||||
_this: this
|
// _this: this
|
||||||
}, res => {
|
// }, res => {
|
||||||
if (res.ok) {
|
// console.log(res);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
// if (res.ok) {
|
||||||
taskIds: res.data,
|
// this.processCreateStand(json)
|
||||||
userId : this.$store.getters.userInfo.userId,
|
// }
|
||||||
json: JSON.stringify(json)
|
// })
|
||||||
}, {
|
},
|
||||||
_this: this
|
|
||||||
}, res => {
|
/**
|
||||||
console.log(res);
|
* @description: 流程入库
|
||||||
if (res.ok) {
|
* @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 () {
|
mounted () {
|
||||||
this.getData()
|
this.getData()
|
||||||
|
|||||||
Reference in New Issue
Block a user