Commit 6d34e0bf authored by 康振飞's avatar 康振飞

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

parents a02bdfc0 9c7e1b36
...@@ -927,6 +927,7 @@ export default { ...@@ -927,6 +927,7 @@ export default {
mes_part_task_plan_simulate: { mes_part_task_plan_simulate: {
id: '', id: '',
part_task_pk: '计划编号', part_task_pk: '计划编号',
mes_code: '计划编号',
priority: '优先级', priority: '优先级',
plan_qty: '排产数量', plan_qty: '排产数量',
spare_qty: '备件数量', spare_qty: '备件数量',
......
...@@ -30,8 +30,7 @@ ...@@ -30,8 +30,7 @@
</tr> </tr>
<tr v-for="(item,i) in filterSider"> <tr v-for="(item,i) in filterSider">
<td class="t_title"> <td class="t_title">
<b class="title" <b class="title">{{item.title}}</b>
>{{item.title}}</b>
</td> </td>
<td> <td>
<ul class="table_row_ul"> <ul class="table_row_ul">
...@@ -42,7 +41,6 @@ ...@@ -42,7 +41,6 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</span> </span>
</a> </a>
...@@ -76,7 +74,7 @@ ...@@ -76,7 +74,7 @@
<i-header-notice v-if="showNotice" /> <i-header-notice v-if="showNotice" />
<i-header-user /> <i-header-user />
<!-- <i-header-i18n v-if="showI18n" /> <!-- <i-header-i18n v-if="showI18n" />
<i-header-setting v-if="enableSetting && !isMobile" /> --> <i-header-setting v-if="enableSetting && !isMobile" />-->
</div> </div>
</Header> </Header>
<Content class="i-layout-content"> <Content class="i-layout-content">
...@@ -131,7 +129,7 @@ export default { ...@@ -131,7 +129,7 @@ export default {
}, },
data() { data() {
return { return {
isActive:0, isActive: 0,
showDrawer: false, showDrawer: false,
ticking: false, ticking: false,
headerVisible: true, headerVisible: true,
...@@ -361,6 +359,9 @@ export default { ...@@ -361,6 +359,9 @@ export default {
// } // }
} }
.product-layout { .product-layout {
.i-layout-content {
padding: 5px 10px;
}
.ivu-layout-header { .ivu-layout-header {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
...@@ -384,7 +385,8 @@ export default { ...@@ -384,7 +385,8 @@ export default {
-webkit-transition: width 0.5s, height 0.5s, -webkit-transform 0.5s; /* Safari */ -webkit-transition: width 0.5s, height 0.5s, -webkit-transform 0.5s; /* Safari */
transition: width 0.5s, height 0.5s, transform 0.5s; transition: width 0.5s, height 0.5s, transform 0.5s;
i { i {
-webkit-transition: font-size 0.5s, margin 0.5s, -webkit-transform 0.5s; /* Safari */ -webkit-transition: font-size 0.5s, margin 0.5s,
-webkit-transform 0.5s; /* Safari */
transition: font-size 0.5s, margin 0.5s, transform 0.5s; transition: font-size 0.5s, margin 0.5s, transform 0.5s;
} }
} }
...@@ -397,10 +399,10 @@ export default { ...@@ -397,10 +399,10 @@ export default {
top: 57%; top: 57%;
min-width: 1084px; min-width: 1084px;
min-height: 300px; min-height: 300px;
box-shadow: 0px 5px 17px 5px rgba(0,0,0,0.28); box-shadow: 0px 5px 17px 5px rgba(0, 0, 0, 0.28);
background: #f5f6fa; background: #f5f6fa;
.t_table_box{ .t_table_box {
border-collapse:collapse; border-collapse: collapse;
border-radius: 5px; border-radius: 5px;
tr:first-of-type { tr:first-of-type {
border-top-right-radius: 5px; border-top-right-radius: 5px;
...@@ -414,15 +416,15 @@ export default { ...@@ -414,15 +416,15 @@ export default {
border-bottom-left-radius: 5px; border-bottom-left-radius: 5px;
} }
} }
tr{ tr {
// line-height: 35px; // line-height: 35px;
td{ td {
padding: 9px 10px 0px; padding: 9px 10px 0px;
.table_row_ul{ .table_row_ul {
list-style: none; list-style: none;
border-bottom: 1px solid #E0E0E0; border-bottom: 1px solid #e0e0e0;
text-align: left; text-align: left;
li{ li {
list-style: none; list-style: none;
display: inline-block; display: inline-block;
a { a {
...@@ -432,15 +434,15 @@ export default { ...@@ -432,15 +434,15 @@ export default {
margin: 0px 6px; margin: 0px 6px;
border-radius: 4px; border-radius: 4px;
} }
a:hover{ a:hover {
background: #2680eb; background: #2680eb;
color: white; color: white;
} }
a:visited{ a:visited {
background: #2680eb; background: #2680eb;
color: white; color: white;
} }
a.active{ a.active {
background: #2680eb; background: #2680eb;
color: white; color: white;
} }
...@@ -448,32 +450,32 @@ export default { ...@@ -448,32 +450,32 @@ export default {
} }
} }
} }
.t_title{ .t_title {
min-width: 120px; min-width: 120px;
background: #515a6e; background: #515a6e;
.a_goIndex{ .a_goIndex {
color: #fff; color: #fff;
} }
.title{ .title {
padding: 5px 10px; padding: 5px 10px;
} }
} }
} }
} }
} }
.menu:hover .home { .menu:hover .home {
margin-top: 10px; margin-top: 10px;
height: 60px; height: 60px;
width: 60px; width: 60px;
z-index: 88888; z-index: 88888;
} }
.menu:hover .home .top_menu_box { .menu:hover .home .top_menu_box {
display: block; display: block;
} }
.menu:hover .home i { .menu:hover .home i {
font-size: 33px; font-size: 33px;
margin: 13px 0 0; margin: 13px 0 0;
} }
.ivu-breadcrumb { .ivu-breadcrumb {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
......
...@@ -118,16 +118,16 @@ ...@@ -118,16 +118,16 @@
<InputNumber v-model="entity.efficiencyValue" :step="0.01"></InputNumber> <InputNumber v-model="entity.efficiencyValue" :step="0.01"></InputNumber>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12" v-if="opTaskPk>0">
<FormItem :label="l('run_time')" prop="run_time"> <FormItem :label="l('run_time')" prop="run_time">
<span v-text="run_time"></span> <span v-text="row.run_time"></span>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
<Divider /> <Divider />
<FormItem :label="l('isDiscrete')" prop="lisan"> <FormItem :label="l('isDiscrete')" prop="isDiscrete">
<i-switch v-model="entity.lisan" size="large"> <i-switch v-model="entity.isDiscrete" size="large">
<span slot="open"></span> <span slot="open"></span>
<span slot="close"></span> <span slot="close"></span>
</i-switch> </i-switch>
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
overTime: "不加班", //"六日加班", 不加班 加班 overTime: "不加班", //"六日加班", 不加班 加班
efficiencyValue: 11, // 效率系数, 必须大于 0 efficiencyValue: 11, // 效率系数, 必须大于 0
shopId: null, shopId: null,
lisan: true, isDiscrete: true,
isDiscrete: "否", isDiscrete: "否",
discrete: 1, //离散数值 必须大于 1 discrete: 1, //离散数值 必须大于 1
multiple: true, multiple: true,
...@@ -231,9 +231,15 @@ export default { ...@@ -231,9 +231,15 @@ export default {
type: Number, type: Number,
default: 0 default: 0
}, },
run_time:{ run_time: {
type: Number, type: Number,
default:0 default: 0
},
row: {
type: Object,
default: () => {
return null;
}
} }
}, },
created() { created() {
...@@ -272,7 +278,7 @@ export default { ...@@ -272,7 +278,7 @@ export default {
this.entity.over = u.OverTime == "不加班"; this.entity.over = u.OverTime == "不加班";
this.entity.overTime = u.parameterValue; this.entity.overTime = u.parameterValue;
} else if (u.parametersCode == "Discrete") { } else if (u.parametersCode == "Discrete") {
this.entity.lisan = u.parameterValue == "是"; this.entity.isDiscrete = u.parameterValue == "是";
this.entity.isDiscrete = u.parameterValue; this.entity.isDiscrete = u.parameterValue;
} }
}); });
...@@ -280,15 +286,22 @@ export default { ...@@ -280,15 +286,22 @@ export default {
handleSubmit() { handleSubmit() {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
if(this.opTaskPk==0&&this.partTaskPk>0&&this.entity.flog<1){ if (
this.$Message.error("计划参数调整参数应用范围不能是工序级的") this.opTaskPk == 0 &&
this.entity.flog=1; this.partTaskPk > 0 &&
this.entity.flog < 1
) {
this.$Message.error("计划参数调整参数应用范围不能是工序级的");
this.entity.flog = 1;
return; return;
} }
this.entity.multipleEquipIds = this.entity.multipleEquipPks.join(); if(this.entity.multipleEquipPks){
this.entity.multipleEquipIds = this.entity.multipleEquipPks.join();
}
//
this.entity.planMethod = this.entity.planState ? "重叠" : "平行"; this.entity.planMethod = this.entity.planState ? "重叠" : "平行";
this.entity.overTime = this.entity.over ? "不加班" : "加班"; this.entity.overTime = this.entity.over ? "不加班" : "加班";
this.entity.isDiscrete = this.entity.lisan ? "是" : "否"; this.entity.isDiscrete = this.entity.isDiscrete ? "是" : "否";
this.entity.multipleEquip = this.entity.multiple ? "是" : "否"; this.entity.multipleEquip = this.entity.multiple ? "是" : "否";
Api.apsschedulupdateparameter(this.entity) Api.apsschedulupdateparameter(this.entity)
.then(res => { .then(res => {
...@@ -336,11 +349,35 @@ export default { ...@@ -336,11 +349,35 @@ export default {
}, },
opTaskPk(v, n) { opTaskPk(v, n) {
this.entity.opTaskPk = v; this.entity.opTaskPk = v;
if(v>0){
let entity={
partTaskPk: this.row.part_task_pk,
opTaskPk: this.row.op_task_pk,
taskSeq: this.row.task_seq,
flog: 5, //参数应用范围
calId: null,
planState: true,
planMethod: this.row.plan_method, // 平行 重叠
over: false,
overTime: this.row.over_time, //"六日加班", 不加班 加班
efficiencyValue:this.row.efficiency_value, // 效率系数, 必须大于 0
shopId: null,
isDiscrete: this.row.isdiscrete,
isDiscrete: "否",
discrete: this.row.discrete_value, //离散数值 必须大于 1
multiple: true,
multipleEquip: this.row.multi_machine, //"是否多台安排设备", 否 是
multipleCount: 1, //多台数量
multipleEquipPks: [],
multipleEquipIds: "", //"设备id", 用英文逗号分隔
}
this.entity=entity
}
this.entity.taskSeq = this.taskSeq; this.entity.taskSeq = this.taskSeq;
}, },
count(v, n) { count(v, n) {
this.entity.discrete = 1; this.entity.discrete = 1;
} },
} }
}; };
</script> </script>
...@@ -375,7 +412,7 @@ export default { ...@@ -375,7 +412,7 @@ export default {
} }
} }
} }
.h50{ .h50 {
height: 115px; height: 115px;
} }
.click-btn { .click-btn {
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
:partTaskPk="setParams.partTaskPk" :partTaskPk="setParams.partTaskPk"
:taskSeq="setParams.taskSeq" :taskSeq="setParams.taskSeq"
:count="setParams.count" :count="setParams.count"
:row="rowData"
/> />
</Modal> </Modal>
</div> </div>
...@@ -429,6 +430,7 @@ export default { ...@@ -429,6 +430,7 @@ export default {
taskSeq: row.task_seq, taskSeq: row.task_seq,
count: row.put_into_qty count: row.put_into_qty
}; };
this.rowData=row
this.setParsModal = true; this.setParsModal = true;
}, },
//单个工序进行参数设置end---- //单个工序进行参数设置end----
......
...@@ -146,8 +146,8 @@ export default { ...@@ -146,8 +146,8 @@ export default {
category: "icon" category: "icon"
}, },
{ {
key: "part_task_pk", key: "mes_code",
title: this.l("part_task_pk"), title: this.l("mes_code"),
align: "left", align: "left",
high: true high: true
}, },
......
...@@ -240,7 +240,6 @@ export default { ...@@ -240,7 +240,6 @@ export default {
line-height: 38px; line-height: 38px;
border-bottom: 1px solid #e4e6ed; border-bottom: 1px solid #e4e6ed;
margin-bottom: 15px; margin-bottom: 15px;
margin-right: 15px;
} }
.left-body:hover { .left-body:hover {
cursor: pointer; cursor: pointer;
...@@ -269,7 +268,6 @@ export default { ...@@ -269,7 +268,6 @@ export default {
.btn { .btn {
float: right; float: right;
margin-top: -52px; margin-top: -52px;
margin-right: 15px;
} }
} }
} }
......
<template> <template>
<div class="tree-type"> <div class="zh-tree">
<h3 class="zh-title">产品结构</h3> <h3 class="zh-title">产品结构</h3>
<div class="zh-box"> <div class="zh-box">
<Input placeholder="输入内容" style="width: auto" v-model="treeInputSearch"> <Input placeholder="输入内容" style="width: auto" v-model="treeInputSearch">
...@@ -81,7 +81,5 @@ export default { ...@@ -81,7 +81,5 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.tree-content {
margin-top: 15px;
}
</style> </style>
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
<Layout class="quotation"> <Layout class="quotation">
<!-- 左侧树 --> <!-- 左侧树 -->
<Sider hide-trigger :style="{background: '#fff'}" width="260"> <Sider hide-trigger :style="{background: '#fff'}" width="260">
<div class="zh-tree" :style="{ height: treeHeight + 'px' }"> <Tree-Type @func="getMsgFormSon" :style="{ height: treeHeight + 'px' }"></Tree-Type>
<Tree-Type @func="getMsgFormSon"></Tree-Type>
</div>
</Sider> </Sider>
<!-- 右侧内容 --> <!-- 右侧内容 -->
<Content class="content"> <Content class="content">
...@@ -364,8 +362,8 @@ export default { ...@@ -364,8 +362,8 @@ export default {
}; };
}, },
created() { created() {
this.treeHeight = window.innerHeight - 150; this.treeHeight = window.innerHeight - 140;
this.tableHeight = window.innerHeight - 280; this.tableHeight = window.innerHeight - 210;
this.newColumn = this.column; this.newColumn = this.column;
this.tableTata(this.selectName); this.tableTata(this.selectName);
}, },
...@@ -377,8 +375,8 @@ export default { ...@@ -377,8 +375,8 @@ export default {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight; window.screenHeight = window.innerHeight;
this.treeHeight = window.screenHeight - 150; this.treeHeight = window.screenHeight - 140;
this.tableHeight = window.innerHeight - 280; this.tableHeight = window.innerHeight - 210;
})(); })();
}; };
}, },
...@@ -816,17 +814,5 @@ export default { ...@@ -816,17 +814,5 @@ export default {
} }
}; };
</script> </script>
<style lang="less" scoped>
.table {
margin-top: 15px;
}
.seach {
margin-top: 15px;
}
</style>
<style>
.ivu-layout.ivu-layout-has-sider > .ivu-layout {
overflow-y: hidden !important;
}
</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