Commit 4619e2ab authored by renjintao's avatar renjintao

mesplan

parent 13090ad4
<template> <template>
<div> <Layout class="full">
<DataGrid :columns="columns" ref="grid" :action="action"> <Sider hide-trigger :style="{background: '#fff'}" width="260">
<template slot="easySearch"> <div class="zh-tree" :style="{height:treeHeight+'px'}">
<Form ref="formInline" :model="easySearch" inline> <h3 class="zh-title">产品结构</h3>
<FormItem prop="keys"> <div class="zh-box">
<Input <Input search placeholder="请输入查询条件" v-model="treeInputSearch" />
placeholder="请输入关键字订单编号/备注/任务节点要求/产品序号:No1~No99/产品名称/图号/批次号/项目号" <Tree
v-model="easySearch.keys.value" :data="searchList"
/> :style="{height:(treeHeight-95)+'px'}"
</FormItem> style="overflow:auto;width:215px;"
<FormItem> @on-select-change="selectTreeNode"
<Button type="primary" @click="search">查询</Button> ></Tree>
</FormItem> </div>
</Form> </div>
</template> </Sider>
<template slot="searchForm"> <Content class="content">
<Search /> <DataGrid :columns="columns" ref="grid" :action="action">
</template> <template slot="easySearch">
<template slot="buttons"> <Form ref="formInline" :model="easySearch" inline>
<Button type="primary" @click="addModal=true">新增</Button> <FormItem prop="keys">
</template> <Input
</DataGrid> placeholder="请输入关键字订单编号/备注/任务节点要求/产品序号:No1~No99/产品名称/图号/批次号/项目号"
<Modal v-model="addModal" title="新增" footer-hide> v-model="easySearch.keys.value"
<Add @on-close="cancel" @on-ok="addOk" /> />
</Modal> </FormItem>
<Modal v-model="editModal" title="编辑" footer-hide> <FormItem>
<Edit :eid="curId" @on-close="cancel" @on-ok="addOk" /> <Button type="primary" @click="search">查询</Button>
</Modal> </FormItem>
<Modal v-model="detailModal" title="详情"> </Form>
<Detail :eid="curId" /> </template>
</Modal> <template slot="searchForm">
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel"> <Search />
<p>确定删除?</p> </template>
</Modal> <template slot="buttons">
</div> <Button type="primary" @click="addModal=true">新增</Button>
</template>
</DataGrid>
<Modal v-model="addModal" title="新增" footer-hide>
<Add @on-close="cancel" @on-ok="addOk" />
</Modal>
<Modal v-model="editModal" title="编辑" footer-hide>
<Edit :eid="curId" @on-close="cancel" @on-ok="addOk" />
</Modal>
<Modal v-model="detailModal" title="详情">
<Detail :eid="curId" />
</Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel">
<p>确定删除?</p>
</Modal>
</Content>
</Layout>
</template> </template>
<script> <script>
import Api from "./api"; import Api from "./api";
...@@ -65,49 +81,6 @@ export default { ...@@ -65,49 +81,6 @@ export default {
deletelModal: false, deletelModal: false,
curId: 0, curId: 0,
columns: [ columns: [
{ key: "id", title: this.l("id"), hide: true, align: "left" },
{
key: "creationTime",
title: this.l("creationTime"),
hide: true,
align: "left"
},
{
key: "creatorUserId",
title: this.l("creatorUserId"),
hide: true,
align: "left"
},
{
key: "lastModificationTime",
title: this.l("lastModificationTime"),
hide: true,
align: "left"
},
{
key: "lastModifierUserId",
title: this.l("lastModifierUserId"),
hide: true,
align: "left"
},
{
key: "isDeleted",
title: this.l("isDeleted"),
hide: true,
align: "left"
},
{
key: "deletionTime",
title: this.l("deletionTime"),
hide: true,
align: "left"
},
{
key: "deleterUserId",
title: this.l("deleterUserId"),
hide: true,
align: "left"
},
{ {
key: "mesCode", key: "mesCode",
title: this.l("mesCode"), title: this.l("mesCode"),
...@@ -122,31 +95,19 @@ export default { ...@@ -122,31 +95,19 @@ export default {
high: true, high: true,
code: "mes.mes_plan.task_type" code: "mes.mes_plan.task_type"
}, },
{
key: "productId",
title: this.l("productId"),
align: "left",
high: true
},
{ {
key: "quantity", key: "quantity",
title: this.l("quantity"), title: this.l("quantity"),
align: "left", align: "left",
high: true high: true
}, },
{
key: "remark",
title: this.l("remark"),
align: "left",
easy: true,
high: true
},
{ {
key: "taskRequire", key: "taskRequire",
title: this.l("taskRequire"), title: this.l("taskRequire"),
align: "left", align: "left",
easy: true, easy: true,
high: true high: true,
hide: true
}, },
{ {
key: "status", key: "status",
...@@ -155,19 +116,13 @@ export default { ...@@ -155,19 +116,13 @@ export default {
high: true, high: true,
code: "mes.mes_plan.status" code: "mes.mes_plan.status"
}, },
{
key: "divideMark",
title: this.l("divideMark"),
align: "left",
high: true,
code: "mes.mes_plan.divide_mark"
},
{ {
key: "productCode", key: "productCode",
title: this.l("productCode"), title: this.l("productCode"),
align: "left", align: "left",
easy: true, easy: true,
high: true high: true,
hide: true
}, },
{ {
key: "productName", key: "productName",
...@@ -183,7 +138,6 @@ export default { ...@@ -183,7 +138,6 @@ export default {
easy: true, easy: true,
high: true high: true
}, },
{ key: "rootId", title: this.l("rootId"), align: "left", high: true },
{ {
key: "batchNumber", key: "batchNumber",
title: this.l("batchNumber"), title: this.l("batchNumber"),
...@@ -209,42 +163,47 @@ export default { ...@@ -209,42 +163,47 @@ export default {
key: "productingPreparationPeople", key: "productingPreparationPeople",
title: this.l("productingPreparationPeople"), title: this.l("productingPreparationPeople"),
align: "left", align: "left",
high: true high: true,
hide: true
}, },
{ {
key: "productingPreparationFinishDate", key: "productingPreparationFinishDate",
title: this.l("productingPreparationFinishDate"), title: this.l("productingPreparationFinishDate"),
align: "left", align: "left",
high: true high: true,
hide: true
}, },
{ {
key: "quotationPeople", key: "quotationPeople",
title: this.l("quotationPeople"), title: this.l("quotationPeople"),
align: "left", align: "left",
high: true high: true,
hide: true
}, },
{ {
key: "quotationFinishDate", key: "quotationFinishDate",
title: this.l("quotationFinishDate"), title: this.l("quotationFinishDate"),
align: "left", align: "left",
high: true high: true,
hide: true
}, },
{ key: "upId", title: this.l("upId"), align: "left", high: true },
{ {
key: "demandStartDate", key: "demandStartDate",
title: this.l("demandStartDate"), title: this.l("demandStartDate"),
align: "left", align: "left",
high: true high: true,
hide: true
}, },
{ {
key: "demandFinishDate", key: "demandFinishDate",
title: this.l("demandFinishDate"), title: this.l("demandFinishDate"),
align: "left", align: "left",
high: true high: true,
hide: true
}, },
{ {
title: "操作", title: "操作",
key: "id", key: "action",
width: 140, width: 140,
align: "center", align: "center",
render: (h, params) => { render: (h, params) => {
...@@ -335,5 +294,11 @@ export default { ...@@ -335,5 +294,11 @@ export default {
} }
}; };
</script> </script>
<style lang="less"> <style lang="less" scoped>
.full {
margin-top: 0;
.content {
margin-top: 10px;
}
}
</style> </style>
\ 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