Commit 9584543b authored by renjintao's avatar renjintao

details

parent bf640b11
<style lang="less"> <style lang="less">
@import './technolog.less'; @import "./technolog.less";
</style> </style>
<template> <template>
<Layout class="details_box"> <Layout class="details_box">
<Header> <Header>
<h4 class="details_top tc"> <h4 class="details_top tc">
<a class="back_href" @click="back"> <Icon type="ios-undo-outline" />返回工艺规程</a> <a class="back_href" @click="back">
<div>工艺信息:{{info}}</div> <Icon type="ios-undo-outline" />返回工艺规程
</h4> </a>
<div class="details_body"> <div>工艺信息:{{info}}</div>
<Menu mode="horizontal" theme="light" active-name="1"> </h4>
<MenuItem name="1" to="/technology/details/working">工序</MenuItem> <div class="details_body">
<MenuItem name="2" to="/technology/details/routingqccard">质控卡</MenuItem> <Menu mode="horizontal" theme="light" active-name="1">
<MenuItem name="3" to="/technology/details/routingsupporting">工艺BOM</MenuItem> <MenuItem name="1" to="/technology/details/working">工序</MenuItem>
<MenuItem name="4" to="/technology/details/setup/setupDetails">生产准备</MenuItem> <MenuItem name="2" to="/technology/details/routingqccard">质控卡</MenuItem>
</Menu> <MenuItem name="3" to="/technology/details/routingsupporting">工艺BOM</MenuItem>
</div> <MenuItem name="4" to="/technology/details/setup/setupDetails">生产准备</MenuItem>
</Header> </Menu>
<Layout class="bottom_box" > </div>
<nuxt-child keep-alive ></nuxt-child> </Header>
</Layout> <Layout class="bottom_box">
<nuxt-child keep-alive :info="info"></nuxt-child>
</Layout> </Layout>
</Layout>
</template> </template>
<script> <script>
import Api from "./api";
export default { export default {
components: {}, components: {},
data() { data() {
...@@ -31,7 +34,8 @@ export default { ...@@ -31,7 +34,8 @@ export default {
showMenu:true, showMenu:true,
treeHeight: '', treeHeight: '',
actNum:'1', actNum:'1',
info:"aaaa", info:"",
urlQccard:'',
} }
}, },
created() { created() {
...@@ -42,6 +46,8 @@ export default { ...@@ -42,6 +46,8 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
mounted() { mounted() {
this.getRoutingheaderInfo()
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
...@@ -51,12 +57,23 @@ export default { ...@@ -51,12 +57,23 @@ export default {
}, },
computed: { }, computed: { },
methods: { methods: {
getRoutingheaderInfo()
{
let params={
id:this.$http.common.getquerystring('id')
}
Api.get(params).then(r=>{
this.info=r.result.name
}).catch(err=>{
this.$Message.error("连接错误")
})
},
back(){ back(){
this.$router.push({ this.$router.push({
name: "technology", name: "technology",
// params: { transmitData: lemData } // params: { transmitData: lemData }
}); });
}, },
} },
} }
</script> </script>
<template> <template>
<div> <div>
{{info}}
<DataGrid :columns="columns" ref="grid" :action="action"> <DataGrid :columns="columns" ref="grid" :action="action">
<template slot="easySearch"> <template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline> <Form ref="formInline" :model="easySearch" inline>
...@@ -39,6 +40,9 @@ export default { ...@@ -39,6 +40,9 @@ export default {
author: "henq", author: "henq",
description: "routing_qc_card 4/27/2020 10:31:00 AM" description: "routing_qc_card 4/27/2020 10:31:00 AM"
}, },
props: {
info: { type: String }
},
data() { data() {
return { return {
action: Api.index, action: Api.index,
......
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