流程保存
This commit is contained in:
@@ -397,7 +397,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, saveinboundTask } from "api/process";
|
import { inboundLiaisonDetail, saveTaskForPub } from "api/process";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "bzqdfbStep3",
|
name: "bzqdfbStep3",
|
||||||
@@ -693,16 +693,24 @@ export default {
|
|||||||
getFormFieldList (item) {
|
getFormFieldList (item) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.listForm = JSON.parse(JSON.stringify(item))
|
this.listForm = JSON.parse(JSON.stringify(item))
|
||||||
this.listForm.prcNum = this.prcNum
|
if(item.form === undefined){
|
||||||
this.listForm.prcName = this.prcName
|
this.listForm.prcNum = this.prcNum
|
||||||
this.listForm['id'] = item.id
|
this.listForm.prcName = this.prcName
|
||||||
this.listForm.dataList = item.dataList
|
this.listForm['id'] = item.id
|
||||||
this.dataList = item.dataList
|
this.listForm.dataList = item.dataList
|
||||||
this.listForm.applyUpdUserId = item.applyUpdUserId
|
this.dataList = item.dataList
|
||||||
this.listForm.jlUserId = item.jlUserId
|
this.listForm.applyUpdUserId = item.applyUpdUserId
|
||||||
this.listForm.zrUserId = item.zrUserId
|
this.listForm.jlUserId = item.jlUserId
|
||||||
this.fileIds = item.fileId;
|
this.listForm.zrUserId = item.zrUserId
|
||||||
this.getFileInfo();
|
this.fileIds = item.fileId;
|
||||||
|
this.getFileInfo();
|
||||||
|
} else {
|
||||||
|
this.listForm = item.form
|
||||||
|
this.dataList = item.form.dataList
|
||||||
|
this.listForm.dataList = item.form.dataList
|
||||||
|
this.fileIds = item.form.fileId;
|
||||||
|
this.getFileInfo();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//保存事件
|
//保存事件
|
||||||
@@ -713,23 +721,19 @@ export default {
|
|||||||
_formData.append("createUser", this.$store.getters.userInfo.userId);
|
_formData.append("createUser", this.$store.getters.userInfo.userId);
|
||||||
_formData.append("createUserName", this.$store.getters.userInfo.userName);
|
_formData.append("createUserName", this.$store.getters.userInfo.userName);
|
||||||
_formData.append("prcType", "4");
|
_formData.append("prcType", "4");
|
||||||
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append("json", JSON.stringify({
|
_formData.append("json", JSON.stringify({
|
||||||
taskInfo: '根据会签意见修订',
|
|
||||||
form: this.listForm,
|
form: this.listForm,
|
||||||
roleForm: this.roleForm,
|
|
||||||
prcNum: this.$route.query.prcNum,
|
|
||||||
taskIds: this.$route.query.taskIds,
|
|
||||||
pId: this.$route.query.prcId,
|
|
||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}));
|
}));
|
||||||
saveinboundTask(_formData).then(res => {
|
|
||||||
this.saveLoading = false;
|
// saveTaskForPub(_formData).then(res => {
|
||||||
this.$message.success("保存成功");
|
// this.saveLoading = false;
|
||||||
this.$router.push('/processCenter')
|
// this.$message.success("保存成功");
|
||||||
this.bpnId = res.result;
|
// this.bpnId = res.result;
|
||||||
}).catch(e => {
|
// }).catch(e => {
|
||||||
this.saveLoading = false;
|
// this.saveLoading = false;
|
||||||
});
|
// });
|
||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
|
|||||||
@@ -531,13 +531,13 @@ export default {
|
|||||||
queryTaskFirst({
|
queryTaskFirst({
|
||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let mes = JSON.parse(res.mes);
|
console.log(mes.form.dataList);
|
||||||
this.listForm = mes.form;
|
this.listForm = mes.form;
|
||||||
this.roleForm = mes.roleForm;
|
this.roleForm = mes.roleForm;
|
||||||
this.commentText = mes.commentText;
|
this.commentText = mes.commentText;
|
||||||
this.dataList = mes.form.dataList;
|
this.dataList = mes.form.dataList;
|
||||||
this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
if(!item.projectLine){
|
if(!item.productLine){
|
||||||
this.dataList = null
|
this.dataList = null
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -760,8 +760,9 @@ export default {
|
|||||||
//选择拆分标准确定事件
|
//选择拆分标准确定事件
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
if (this.selectedList.length == 1) {
|
if (this.selectedList.length == 1) {
|
||||||
this.listForm.standNumber = this.selectedList[0].standNumber;
|
this.listForm.standNumber = this.selectedList[0].standSortShow + '\xa0\xa0' + this.selectedList[0].standNumber + '-' + this.selectedList[0].standYear ;
|
||||||
this.listForm.standName = this.selectedList[0].standName;
|
this.listForm.standName = this.selectedList[0].standName;
|
||||||
|
this.listForm.standType = this.selectedList[0].standType;
|
||||||
this.listForm.id = this.selectedList[0].id;
|
this.listForm.id = this.selectedList[0].id;
|
||||||
this.$http.get("SarStandItems/sar-stand-items/findAllItems", {
|
this.$http.get("SarStandItems/sar-stand-items/findAllItems", {
|
||||||
ids: this.listForm.id,
|
ids: this.listForm.id,
|
||||||
|
|||||||
@@ -470,6 +470,7 @@ export default {
|
|||||||
listForm: {
|
listForm: {
|
||||||
standNumber: "", //标准编号
|
standNumber: "", //标准编号
|
||||||
standName: "",//标准名称
|
standName: "",//标准名称
|
||||||
|
standType: "", //标准类型
|
||||||
XCXSSRQ: "", //新车型实施日期
|
XCXSSRQ: "", //新车型实施日期
|
||||||
ZCCSSRQ: "", //在产车实施日期
|
ZCCSSRQ: "", //在产车实施日期
|
||||||
certifiedEngineer: "", //认证工程师
|
certifiedEngineer: "", //认证工程师
|
||||||
@@ -732,8 +733,9 @@ export default {
|
|||||||
//选择拆分标准确定事件
|
//选择拆分标准确定事件
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
if (this.selectedList.length === 1) {
|
if (this.selectedList.length === 1) {
|
||||||
this.listForm.standNumber = this.selectedList[0].standSortShow + '-' + this.selectedList[0].standNumber + '-' + this.selectedList[0].standYear ;
|
this.listForm.standNumber = this.selectedList[0].standSortShow + '\xa0\xa0' + this.selectedList[0].standNumber + '-' + this.selectedList[0].standYear ;
|
||||||
this.listForm.standName = this.selectedList[0].standName;
|
this.listForm.standName = this.selectedList[0].standName;
|
||||||
|
this.listForm.standType = this.selectedList[0].standType;
|
||||||
this.listForm.XCXSSRQ = this.selectedList[0].xcxssrqgj
|
this.listForm.XCXSSRQ = this.selectedList[0].xcxssrqgj
|
||||||
this.listForm.ZCCSSRQ = this.selectedList[0].zccssrqgj
|
this.listForm.ZCCSSRQ = this.selectedList[0].zccssrqgj
|
||||||
this.listForm.id = this.selectedList[0].id;
|
this.listForm.id = this.selectedList[0].id;
|
||||||
|
|||||||
Reference in New Issue
Block a user