Commit bafd6ab3 authored by 仇晓婷's avatar 仇晓婷

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents 787673f4 7d51f13a
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
:type="expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'" :type="expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'"
size="16" size="16"
@click="toggle" @click="toggle"
title="展开/合并" title="展开/合并"/>
/>
</Button> </Button>
<Button> <Button>
<Icon type="md-refresh" size="16" @click="loadTree" title="刷新" /> <Icon type="md-refresh" size="16" @click="loadTree" title="刷新" />
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
</Col> </Col>
</Row> </Row>
<Row> <Row>
<Col span="8"> <Col span="8">
<FormItem label="数量" style="width:100%" prop="quantity"> <FormItem label="数量" style="width:100%" prop="quantity">
<InputNumber :min="0" v-model="orderSearchForm.quantity" style="width:240px"></InputNumber> <InputNumber :min="0" v-model="orderSearchForm.quantity" style="width:240px"></InputNumber>
...@@ -72,7 +71,7 @@ ...@@ -72,7 +71,7 @@
<Input v-model="orderSearchForm.projectNumber" style="width:240px" /> <Input v-model="orderSearchForm.projectNumber" style="width:240px" />
</FormItem> </FormItem>
</Col> </Col>
<Col span="8"> <Col span="8">
<FormItem label="批次号" style="width:100%"> <FormItem label="批次号" style="width:100%">
<Input v-model="orderSearchForm.batchNumber" style="width:240px" /> <Input v-model="orderSearchForm.batchNumber" style="width:240px" />
</FormItem> </FormItem>
...@@ -90,7 +89,7 @@ ...@@ -90,7 +89,7 @@
<Row> <Row>
<Col span="24"> <Col span="24">
<FormItem label="任务节点要求" style="width:100%"> <FormItem label="任务节点要求" style="width:100%">
<Input v-model="orderSearchForm.taskRequire" placeholder /> <Input v-model="orderSearchForm.taskRequire" placeholder />
</FormItem> </FormItem>
</Col> </Col>
<Col span="24"> <Col span="24">
...@@ -169,20 +168,20 @@ export default { ...@@ -169,20 +168,20 @@ export default {
type: "number", type: "number",
trigger: "change" trigger: "change"
} }
], ]
}, },
disabled:false, disabled: false
}; };
}, },
mounted(){ mounted() {
this.loadTree() this.loadTree();
}, },
methods: { methods: {
handleSubmit() { handleSubmit() {
this.$refs.formValidate.validate(v => { this.$refs.formValidate.validate(v => {
if (v) { if (v) {
this.disabled = true; this.disabled = true;
this.orderSearchForm.status=1 this.orderSearchForm.status = 1;
Api.mesplancreate(this.orderSearchForm) Api.mesplancreate(this.orderSearchForm)
.then(r => { .then(r => {
this.disabled = false; this.disabled = false;
...@@ -202,7 +201,7 @@ export default { ...@@ -202,7 +201,7 @@ export default {
}); });
}, },
handleClose() { handleClose() {
this.resetFields() this.resetFields();
this.$emit("on-close"); this.$emit("on-close");
}, },
l(key) { l(key) {
...@@ -225,33 +224,20 @@ export default { ...@@ -225,33 +224,20 @@ export default {
} }
}, },
resetFields() { resetFields() {
this.orderSearchForm = { this.orderSearchForm = {
productId: null, //产品id productId: null, //产品id
productName: "", //产品名称 productName: "", //产品名称
drawnNumber: null, //图号 drawnNumber: null, //图号
taskType: null, //任务类型 taskType: null, //任务类型
stage: null, //阶段 quantity: 1, //数量
materialId: null, //材料 taskRequire: "", //任务接点要求
quantity: 1, //数量 demandStartDate: this.getFormatDate(nowDate), //开始时间
guestName: "", //甲方客户 demandFinishDate: this.getFormatDateEnd(tomorrowDate), //完成时间
printSupply: "", //3D打印承制单位 remark: "", //备注
functionaryOffice: "", //厂内责任机关 projectNumber: "", //项目号
mainDepartmentId: "", //厂内责任主体部门ID batchNumber: "", //批次号
taskRequire: "", //任务接点要求 urgencyLevel: null //紧急程度
putintDocmentCode: "", //甲方投产输入文件编号 };
technologyDocmentCode: "", //甲方技术输入文件编号
outerDrawnNumber: "", //外部图号/模型号
modelVersion: "", //模型版本
taskCode: "", //甲方任务号
designer: "", //甲方设计人员
officeFunctionary: "", //厂内机关负责人
mainRoutingPeople: "", //厂内主工艺人员
routing_Method: null, //工艺方法
outer_Envelope_Size: "", //包装尺寸
demandStartDate: this.getFormatDate(nowDate), //开始时间
demandFinishDate: this.getFormatDate(tomorrowDate), //完成时间
remark: "" //备注
};
}, },
loadTree() { loadTree() {
//打开新增订单窗口加载产品 //打开新增订单窗口加载产品
...@@ -312,7 +298,8 @@ export default { ...@@ -312,7 +298,8 @@ export default {
"-" + "-" +
this.p(d.getMonth() + 1) + this.p(d.getMonth() + 1) +
"-" + "-" +
this.p(d.getDate())+ " 00:00:01"; this.p(d.getDate()) +
" 00:00:01";
return resDate; return resDate;
}, },
getFormatDateEnd(dates) { getFormatDateEnd(dates) {
...@@ -322,13 +309,14 @@ export default { ...@@ -322,13 +309,14 @@ export default {
"-" + "-" +
this.p(d.getMonth() + 1) + this.p(d.getMonth() + 1) +
"-" + "-" +
this.p(d.getDate())+ " 23:59:59"; this.p(d.getDate()) +
" 23:59:59";
return resDate; return resDate;
}, },
p(s) { p(s) {
return s < 10 ? "0" + s : s; return s < 10 ? "0" + s : s;
} }
//时间相关end //时间相关end
} }
}; };
</script> </script>
<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>工艺信息</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,6 +34,8 @@ export default { ...@@ -31,6 +34,8 @@ export default {
showMenu:true, showMenu:true,
treeHeight: '', treeHeight: '',
actNum:'1', actNum:'1',
info:"",
urlQccard:'',
} }
}, },
created() { created() {
...@@ -41,6 +46,8 @@ export default { ...@@ -41,6 +46,8 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
mounted() { mounted() {
this.getRoutingheaderInfo()
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
...@@ -50,12 +57,23 @@ export default { ...@@ -50,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>
...@@ -170,13 +170,6 @@ export default { ...@@ -170,13 +170,6 @@ export default {
return { return {
disabled: false, disabled: false,
entity: { entity: {
creationTime: null,
creatorUserId: null,
lastModificationTime: null,
lastModifierUserId: null,
isDeleted: null,
deleterUserId: null,
deletionTime: null,
routingHeaderId: null, routingHeaderId: null,
routingDetailId: null, routingDetailId: null,
routingStepId: null, routingStepId: null,
......
<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,
......
<style lang="less"> <style lang="less">
@import "./technolog.less"; @import "./technolog.less";
.lay100 {
height: calc(100vh - 105px);
background-color: #F5F6FA;
.con{
padding: 5px 5px 0px 10px;
}
}
</style> </style>
<template> <template>
<Layout class="lay100"> <Layout class="lay100">
...@@ -23,7 +16,7 @@ ...@@ -23,7 +16,7 @@
<Icon type="ios-undo-outline" />详情页面 <Icon type="ios-undo-outline" />详情页面
</a>--> </a>-->
<Card class="h100"> <Card class="h100">
<DataGrid :columns="columns" ref="grid" :action="action"> <DataGrid :columns="columns" ref="grid" :action="action" class="card_box">
<template slot="easySearch"> <template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline> <Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys"> <FormItem prop="keys">
...@@ -259,9 +252,9 @@ export default { ...@@ -259,9 +252,9 @@ export default {
this.showMenu = true; this.showMenu = true;
}, },
// 详情页面 // 详情页面
view() { view(id) {
// this.$router.push("technology/details"); // this.$router.push("technology/details");
window.open("/technology/details","_blank") window.open("/technology/details?id="+id,"_blank")
}, },
ok() { ok() {
this.$refs.grid.load(); this.$refs.grid.load();
......
...@@ -150,5 +150,16 @@ ...@@ -150,5 +150,16 @@
left: 44%; left: 44%;
} }
} }
}
.lay100 {
height: calc(100vh - 105px);
background-color: #F5F6FA;
.con{
padding: 5px 5px 0px 10px;
.h100{
overflow-y: auto;
}
}
} }
\ No newline at end of file
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