Commit e2597f34 authored by renjintao's avatar renjintao

plan index

parent 8a15ad6f
...@@ -472,7 +472,7 @@ export default { ...@@ -472,7 +472,7 @@ export default {
this.ModalIm = false this.ModalIm = false
}, },
getData(val) { getData(val) {
let url = `${technologyUrl}routingheaderimportservice/import`; let url = `${material}/projectplan/importplans`;
this.$refs.importExcel.deelData(url, this.columns, this.formatMethod(val)) this.$refs.importExcel.deelData(url, this.columns, this.formatMethod(val))
}, },
//根据页面二次处理数据 //根据页面二次处理数据
...@@ -481,37 +481,18 @@ export default { ...@@ -481,37 +481,18 @@ export default {
let tempList = []; let tempList = [];
tempData.forEach((ele) => { tempData.forEach((ele) => {
let obj = { let obj = {
classId: null, projectId: this.eid,
unicode: "", upTitle: ele.upTitle ? ele.upTitle : null,
name: ele.name ? ele.name : '', title: ele.title ? ele.title : '',
code: ele.code ? ele.code : '',
productId: ele.productId ? ele.productId : '', //?
productName: ele.productName ? ele.productName : "", //?
productBomId: ele.productBomId ? ele.productBomId : "", //?
drawingNo: ele.drawingNo ? ele.drawingNo : "", //?
version: "",
versionid: ele.versionid ? ele.versionid : "",
author: null,
departmentId: ele.departmentId ? ele.departmentId : null, //?
departmentName: ele.departmentName ? ele.departmentName : "", //?
isMain: 1,
upId: null,
upDetailId: null,
routingType: ele.routingType ? ele.routingType : null,
status: 0, status: 0,
approvalStatus: 4, //? type: ele.type ? ele.type : 0, //?
remark: "", startDate: ele.startDate ? ele.startDate : "", //?
approvalStatusRemark: "", endDate: ele.endDate ? ele.endDate : "", //?
auditUserId1: "", direction: ele.direction ? ele.direction : 0,
auditUserId2: "", executor: ele.executor ? ele.executor : null, //?
platesnum: null,
versionnotes: "",
isSendPpm: 1,
fileId: "",
phase: ele.phase ? ele.phase : null,
isEffect: ele.isEffect ? ele.isEffect : 1
}; };
if (ele.name && ele.name != '') { if (ele.title && ele.title != '') {
obj.ico = false obj.ico = false
} else { } else {
obj.ico = true obj.ico = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment