feat: 标准入库流程2
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user