标准评估流程第三步保存 质量工程师 认证工程师数据丢失

This commit is contained in:
宋伟佳
2022-02-08 14:52:53 +08:00
parent 73d36025e2
commit bdb0eada09
3 changed files with 44 additions and 18 deletions
@@ -604,6 +604,7 @@ export default {
totalNo: 0,
pageSizeNo: this.$store.getters.userInfo.configContent,
product: new Map(),
hisListForm:{},
listForm: {
standNumber: "", //标准编号
standName: "",//标准名称
@@ -663,6 +664,7 @@ export default {
getFormFieldList (item) {
console.log(item);
this.$nextTick(() => {
this.hisListForm = JSON.parse(JSON.stringify(item))
this.listForm = JSON.parse(JSON.stringify(item))
this.listForm.prcNum = this.prcNum
this.listForm.prcName = this.prcName
@@ -929,11 +931,12 @@ export default {
type: "5",
json: {
taskInfo: "选择已拆分标准",
form: this.listForm,
form: this.hisListForm,
roleForm: this.roleForm,
commentText: this.commentText
}
};
let json = this.hisListForm
this.$http.post("lawss/activiti/completeTaskNew", {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.userId,
@@ -280,6 +280,7 @@ export default {
* @description: 动态表单读取
*/
getFormFieldList (item) {
console.log(item);
this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item))
this.listForm.prcNum = this.prcNum
@@ -439,24 +439,45 @@ export default {
* @description: 动态表单读取
*/
getFormFieldList(item) {
console.log(item);
this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item));
this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id;
this.projectGroup = item.dataList[0].projectGroup;
this.$http.get('SarStandItems/sar-stand-items/findAllItems', {
ids: item.standId,
type: item.fileType
},{
_this: this
}, res => {
this.breakdownList = res.data
this.breakdownList.map(item => {
delete item.termsConditions
if(!item.form){
this.listForm = JSON.parse(JSON.stringify(item));
this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id;
this.projectGroup = item.dataList[0].projectGroup;
this.$http.get('SarStandItems/sar-stand-items/findAllItems', {
ids: item.standId,
type: item.fileType
},{
_this: this
}, res => {
this.breakdownList = res.data
this.breakdownList.map(item => {
delete item.termsConditions
})
})
})
this.getProductData();
this.getProductData();
}else{
this.listForm = JSON.parse(JSON.stringify(item.form));
this.commentText = item.commentText
this.dataList = item.dataList
this.projectGroup = item.dataList[0].projectGroup;
this.$http.get('SarStandItems/sar-stand-items/findAllItems', {
ids: item.form.standId,
type: item.form.fileType
},{
_this: this
}, res => {
this.breakdownList = res.data
this.breakdownList.map(item => {
delete item.termsConditions
})
})
this.getProductData();
}
});
},
choiceZRRS(row, type, index) {
@@ -641,13 +662,14 @@ export default {
//保存
handleSave() {
this.saveLoading = true;
this.listForm.dataList = this.dataList;
// this.listForm.dataList = this.dataList;
let _formData = new FormData();
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "5");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: this.listForm,
dataList: this.dataList,
commentText: this.commentText
}));
saveTaskForPub(_formData).then(res => {