Commit 4a277e42 authored by renjintao's avatar renjintao

processview

parent ce7eacbd
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</template> </template>
<script> <script>
import Api from '../api' import Api from '../api'
import Processview from '../../processDesign/Process/processview.vue' import Processview from '../../technology/processview.vue'
export default { export default {
name: 'detail', name: 'detail',
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
load(v) { load(v) {
Api.get({ Id: this.idVal }).then((r) => { Api.get({ Id: this.idVal }).then((r) => {
if (r.success) { if (r.success) {
this.$refs.processview.loaddata(r.result.fromIds) this.$refs.processview.load(r.result.fromIds)
} else { } else {
this.$Message.error('加载失败') this.$Message.error('加载失败')
} }
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<Col span="9"> <Col span="9">
<div class="iview_cont border_none"> <div class="iview_cont border_none">
&nbsp; &nbsp;
<label v-text="formValidate.task_type_str"></label> <state code="Process.Routing.routingType" :value="formValidate.routingType+''" type="text"></state>
</div> </div>
</Col> </Col>
</Row> </Row>
...@@ -52,16 +52,16 @@ ...@@ -52,16 +52,16 @@
<Col span="9"> <Col span="9">
<div class="iview_cont"> <div class="iview_cont">
&nbsp; &nbsp;
<label v-text="formValidate.versiondesc"></label> <state code="Process.Routing.version" :value="formValidate.versionid+''" type="text"></state>
</div> </div>
</Col> </Col>
<Col span="3"> <Col span="3">
<div class="row_label">研制方式</div> <div class="row_label">工艺阶段</div>
</Col> </Col>
<Col span="9"> <Col span="9">
<div class="iview_cont border_none"> <div class="iview_cont border_none">
&nbsp; &nbsp;
<label v-text="formValidate.development_mode_str"></label> <state code="Process.Routing.phase" :value="formValidate.phase+''" type="text"></state>
</div> </div>
</Col> </Col>
</Row> </Row>
...@@ -165,19 +165,19 @@ ...@@ -165,19 +165,19 @@
<tbody> <tbody>
<template v-for="(item5,index5) in formValidate.details"> <template v-for="(item5,index5) in formValidate.details">
<tr> <tr>
<td class="tl">{{item5.taskseq}}</td> <td class="tl">{{item5.taskSeq}}</td>
<td class="tl">{{item5.name}}</td> <td class="tl">{{item5.name}}</td>
<td class="tl"> <td class="tl">
<div v-html="item5.task_content" class="tohtml"></div> <div v-html="item5.taskContent" class="tohtml"></div>
</td> </td>
<td class="tl">{{item5.operator}}</td> <td class="tl">{{item5.operator}}</td>
<td class="tl">{{item5.proofreader}}</td> <td class="tl">{{item5.proofreader}}</td>
</tr> </tr>
<tr v-for="(item6,index6) in item5.step"> <tr v-for="(item6,index6) in item5.step">
<td class="tl">{{item6.taskseq}}</td> <td class="tl">{{item6.taskSeq}}</td>
<td class="tl">{{item6.name}}</td> <td class="tl">{{item6.name}}</td>
<td class="tl"> <td class="tl">
<div v-html="item6.task_content" class="tohtml"></div> <div v-html="item6.taskContent" class="tohtml"></div>
</td> </td>
<td class="tl">{{item6.operator}}</td> <td class="tl">{{item6.operator}}</td>
<td class="tl">{{item6.proofreader}}</td> <td class="tl">{{item6.proofreader}}</td>
...@@ -211,9 +211,9 @@ ...@@ -211,9 +211,9 @@
<tbody> <tbody>
<template v-for="(item7,index7) in formValidate.qcards"> <template v-for="(item7,index7) in formValidate.qcards">
<tr> <tr>
<td class="tl">{{item7.taskseq}}</td> <td class="tl">{{item7.taskSeq}}</td>
<td class="tl">{{item7.check_content}}</td> <td class="tl">{{item7.checkContent}}</td>
<td class="tl">{{item7.checkresult}}</td> <td class="tl">{{item7.checkResult}}</td>
<td class="tl">{{item7.result}}</td> <td class="tl">{{item7.result}}</td>
<td class="tl">{{item7.checker}}</td> <td class="tl">{{item7.checker}}</td>
<td class="tl">{{item7.remarks}}</td> <td class="tl">{{item7.remarks}}</td>
...@@ -233,6 +233,7 @@ ...@@ -233,6 +233,7 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "./api";
import service from "@/plugins/request"; import service from "@/plugins/request";
export default { export default {
name: "processview", name: "processview",
...@@ -274,7 +275,7 @@ export default { ...@@ -274,7 +275,7 @@ export default {
load(v) { load(v) {
this.circleModal = true; this.circleModal = true;
this.dataSatus = false; this.dataSatus = false;
var url = `${designUrl}/routingheader/getprocessinfo?headerid=` + v; var url = `${technologyUrl}routingheader/getprocessinfo?headerid=` + v;
service service
.get(`${url}`) .get(`${url}`)
.then(response => { .then(response => {
...@@ -303,19 +304,53 @@ export default { ...@@ -303,19 +304,53 @@ export default {
loadImg() { loadImg() {
this.nameList = []; this.nameList = [];
this.formValidate.files = []; this.formValidate.files = [];
//查询上传到文件服务器上的文件 if (this.eid == undefined) {
this.$http.sysUser.getFile(this.parms).then(res => { let pars = {
if (res.data != [] && res.data.length > 0) { conditions: [
res.data.forEach(data => { {
let objImag = {}; fieldName: "code",
objImag.fileName = data.fileName; fieldValue: this.formValidate.code,
objImag.url = data.downloadPath; conditionalType: "Equal"
objImag.id = data.id; }
this.nameList.push(objImag); ]
}); };
this.formValidate.files = this.nameList; Api.paged(pars)
} .then(res => {
}); if (res.result.items[0].fileId) {
this.parms.eid = res.result.items[0].fileId;
} else {
this.parms.eid = this.$u.guid(); //未上传过文件
}
//查询上传到文件服务器上的文件
this.$http.sysUser.getFile(this.parms).then(res => {
if (res.data != [] && res.data.length > 0) {
res.data.forEach(data => {
let objImag = {};
objImag.fileName = data.fileName;
objImag.url = data.downloadPath;
objImag.id = data.id;
this.nameList.push(objImag);
});
this.formValidate.files = this.nameList;
}
});
})
.catch(err => {});
} else {
//查询上传到文件服务器上的文件
this.$http.sysUser.getFile(this.parms).then(res => {
if (res.data != [] && res.data.length > 0) {
res.data.forEach(data => {
let objImag = {};
objImag.fileName = data.fileName;
objImag.url = data.downloadPath;
objImag.id = data.id;
this.nameList.push(objImag);
});
this.formValidate.files = this.nameList;
}
});
}
} }
}, },
watch: { watch: {
...@@ -324,12 +359,11 @@ export default { ...@@ -324,12 +359,11 @@ export default {
this.load(v); this.load(v);
} }
}, },
uid(v) { uid(v) {
if (v != 0) { if (v != 0) {
this.parms.eid=v this.parms.eid = v;
} }
}, }
} }
}; };
</script> </script>
...@@ -353,6 +387,5 @@ export default { ...@@ -353,6 +387,5 @@ export default {
position: relative; position: relative;
border: 0px solid #eee; border: 0px solid #eee;
} }
</style> </style>
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