入库流程保存问题

This commit is contained in:
zhaokaiyao@91isoft.com
2021-11-19 17:52:52 +08:00
parent 05c832c2fb
commit 1f47637212
2 changed files with 25 additions and 7 deletions
@@ -1718,9 +1718,10 @@
this.verifySarStandard = this.$route.query.verifySarStandard
let mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.roleForm = mes.roleForm
this.commentText = mes.commentText
//表单文件处理
this.getFormFieldList(mes.form)
})
},
// 将文本状态的id与name对应
@@ -2597,6 +2598,8 @@
},
//保存
handleSave() {
//文件处理
this.fileInfoHandle();
this.form.country=this.countryArr;
// if(item.country !== undefined && item.country !== null){
// this.sarStandardsInfoEO.country = item.country.split(",");
@@ -1344,7 +1344,14 @@
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
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 TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
@@ -1591,7 +1598,6 @@ export default {
prcName : this.$route.query.prcName,
// 调整处理人抽屉状态
drawerModal: false,
drawerTitle: '',
nodeList: [],
selectPeople:'',
}
@@ -1628,9 +1634,11 @@ export default {
}).then(res => {
let mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.roleForm = mes.roleForm
this.commentText = mes.commentText
this.taskIds=mes.taskIds
//表单文件处理
this.getFormFieldList(mes.form)
})
},
choiceZRR1 (type, title, id) {
@@ -2001,7 +2009,7 @@ export default {
break;
default : ;
}
console.log("caNmae",this.form.caName);
// console.log("caNmae",this.form.caName);
this.$message({
showClose: true,
message: response.message,
@@ -2072,7 +2080,7 @@ export default {
this.fileMadel = true
},fileChange(fileList){
console.log("fileList",fileList);
// console.log("fileList",fileList);
},
// popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
// if(checkedData) {
@@ -2209,6 +2217,7 @@ export default {
this.getFormFieldList(processForm)
}
}).catch(e => {
console.log("错误")
})
})
},
@@ -2313,18 +2322,24 @@ export default {
this.active = name
},
handleSave() {
//表单文件处理
this.fileInfoHandle();
this.form.country=this.countryArr;
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', '1')
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
form: this.form,
roleForm: this.roleForm,
commentText: this.commentText,
taskInfo: '申请人修订',
taskIds:this.taskIds
}))
saveTaskForPub(_formData).then(res => {
saveTaskFirst(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
// this.bpnId = res.result