入库流程保存问题
This commit is contained in:
@@ -1718,9 +1718,10 @@
|
|||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
this.verifySarStandard = this.$route.query.verifySarStandard
|
||||||
let mes = JSON.parse(res.mes)
|
let mes = JSON.parse(res.mes)
|
||||||
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
this.commentText = mes.commentText
|
this.commentText = mes.commentText
|
||||||
|
//表单文件处理
|
||||||
|
this.getFormFieldList(mes.form)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 将文本状态的id与name对应
|
// 将文本状态的id与name对应
|
||||||
@@ -2597,6 +2598,8 @@
|
|||||||
},
|
},
|
||||||
//保存
|
//保存
|
||||||
handleSave() {
|
handleSave() {
|
||||||
|
//文件处理
|
||||||
|
this.fileInfoHandle();
|
||||||
this.form.country=this.countryArr;
|
this.form.country=this.countryArr;
|
||||||
// if(item.country !== undefined && item.country !== null){
|
// if(item.country !== undefined && item.country !== null){
|
||||||
// this.sarStandardsInfoEO.country = item.country.split(",");
|
// this.sarStandardsInfoEO.country = item.country.split(",");
|
||||||
|
|||||||
@@ -1344,7 +1344,14 @@
|
|||||||
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,processCreateStand,changeAssigneeNew,saveTaskForPub,queryTaskFirst} from 'api/process'
|
import {
|
||||||
|
inboundLiaisonDetail,
|
||||||
|
processCreateStand,
|
||||||
|
changeAssigneeNew,
|
||||||
|
saveTaskForPub,
|
||||||
|
queryTaskFirst,
|
||||||
|
saveTaskFirst
|
||||||
|
} from 'api/process'
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||||
|
|
||||||
@@ -1591,7 +1598,6 @@ export default {
|
|||||||
prcName : this.$route.query.prcName,
|
prcName : this.$route.query.prcName,
|
||||||
// 调整处理人抽屉状态
|
// 调整处理人抽屉状态
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle: '',
|
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
selectPeople:'',
|
selectPeople:'',
|
||||||
}
|
}
|
||||||
@@ -1628,9 +1634,11 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
let mes = JSON.parse(res.mes)
|
let mes = JSON.parse(res.mes)
|
||||||
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
this.commentText = mes.commentText
|
this.commentText = mes.commentText
|
||||||
|
this.taskIds=mes.taskIds
|
||||||
|
//表单文件处理
|
||||||
|
this.getFormFieldList(mes.form)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
choiceZRR1 (type, title, id) {
|
choiceZRR1 (type, title, id) {
|
||||||
@@ -2001,7 +2009,7 @@ export default {
|
|||||||
break;
|
break;
|
||||||
default : ;
|
default : ;
|
||||||
}
|
}
|
||||||
console.log("caNmae",this.form.caName);
|
// console.log("caNmae",this.form.caName);
|
||||||
this.$message({
|
this.$message({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: response.message,
|
message: response.message,
|
||||||
@@ -2072,7 +2080,7 @@ export default {
|
|||||||
this.fileMadel = true
|
this.fileMadel = true
|
||||||
|
|
||||||
},fileChange(fileList){
|
},fileChange(fileList){
|
||||||
console.log("fileList",fileList);
|
// console.log("fileList",fileList);
|
||||||
},
|
},
|
||||||
// popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
// popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
// if(checkedData) {
|
// if(checkedData) {
|
||||||
@@ -2209,6 +2217,7 @@ export default {
|
|||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(processForm)
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
|
console.log("错误")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -2313,18 +2322,24 @@ export default {
|
|||||||
this.active = name
|
this.active = name
|
||||||
},
|
},
|
||||||
handleSave() {
|
handleSave() {
|
||||||
|
//表单文件处理
|
||||||
|
this.fileInfoHandle();
|
||||||
this.form.country=this.countryArr;
|
this.form.country=this.countryArr;
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
// _formData.append('id', this.bpnId)
|
||||||
|
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||||
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
|
_formData.append('prcType', '1')
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
form: this.form,
|
form: this.form,
|
||||||
roleForm: this.roleForm,
|
roleForm: this.roleForm,
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
taskInfo: '申请人修订',
|
taskInfo: '申请人修订',
|
||||||
|
taskIds:this.taskIds
|
||||||
}))
|
}))
|
||||||
saveTaskForPub(_formData).then(res => {
|
saveTaskFirst(_formData).then(res => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
// this.bpnId = res.result
|
// this.bpnId = res.result
|
||||||
|
|||||||
Reference in New Issue
Block a user