1.满足均衡排产问题

2.在满足批次完整性的同时,当产能不足时需整批量调整
master
董哲奇 10 months ago
parent 5111d1063b
commit 187b2cc9a3

@ -1,7 +1,8 @@
<template> <template>
<div class="dashboard-editor-container" style="background-color: #f6fbff;"> <div class="dashboard-editor-container" style="background-color: #f6fbff;">
<!-- 直观图组件 -->
<!-- <Czfdzgtcx />--> <!-- <Czfdzgtcx />-->
<Uni /> <!-- <Uni />-->
<!-- <div class=" clearfix">--> <!-- <div class=" clearfix">-->
<!-- <pan-thumb :image="avatar" style="float: left">--> <!-- <pan-thumb :image="avatar" style="float: left">-->
<!-- &lt;!&ndash; Your roles:--> <!-- &lt;!&ndash; Your roles:-->

@ -17,7 +17,7 @@
<el-button type="success" @click="initList"></el-button> <el-button type="success" @click="initList"></el-button>
<!-- <el-button type="success" @click="initList1">1</el-button>--> <!-- <el-button type="success" @click="initList1">1</el-button>-->
<el-button type="success" @click="save"></el-button> <el-button type="success" @click="save"></el-button>
<el-button type="success" @click="tqSygd"></el-button> <el-button type="success" @click="tqSygd"></el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -26,10 +26,11 @@
<el-container style="padding-top: 0px"> <el-container style="padding-top: 0px">
<el-main> <el-main>
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="三月滚动计划编制" name="sygdjh" v-if="isUser"> <el-tab-pane label="月度计划编制" name="sygdjh" v-if="isUser">
<div class="mytable" > <div class="mytable" >
<el-button type="success" @click="paichan"></el-button> <el-button type="success" @click="paichan"></el-button>
<el-button type="success" @click="jgcx"></el-button> <el-button type="success" @click="jgcx(false)"></el-button>
<el-button type="success" @click="creatYdjh"></el-button>
<vxe-grid <vxe-grid
id="id9" id="id9"
ref="xGrid9" ref="xGrid9"
@ -60,8 +61,8 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="前方三月需求计划" name="first"> <el-tab-pane label="前方三月需求计划" name="first">
<div class="mytable"> <div class="mytable">
<el-button type="success" @click="confirmModal"></el-button> <el-button type="success" @click="confirmModal"></el-button>
<el-button type="success" @click="jgcx"></el-button> <el-button type="success" @click="jgcx"></el-button>
<el-button type="success" @click="symxhz"></el-button> <el-button type="success" @click="symxhz"></el-button>
<vxe-grid <vxe-grid
id="id" id="id"
@ -353,7 +354,7 @@ import {mapGetters} from 'vuex'
import XEUtils from 'xe-utils' import XEUtils from 'xe-utils'
import {getToken} from '@/utils/auth' import {getToken} from '@/utils/auth'
import ScrollPane from "@/layout/components/TagsView/ScrollPane.vue"; import ScrollPane from "@/layout/components/TagsView/ScrollPane.vue";
import {排产, 生成三月滚动, 获取排产结果,} from "@/api/jhzx/pc"; import {排产, 生成月度计划, 获取排产结果,} from "@/api/jhzx/pc";
import Gcrl from '@/components/Gcrl'; import Gcrl from '@/components/Gcrl';
import Sbwxjh from '@/views/sjzx/sbwxjhWH.vue'; import Sbwxjh from '@/views/sjzx/sbwxjhWH.vue';
import Sbjgry from '@/views/sjzx/sbjgryWH.vue'; import Sbjgry from '@/views/sjzx/sbjgryWH.vue';
@ -2766,7 +2767,7 @@ export default {
window.addEventListener('resize', this.getHeight) window.addEventListener('resize', this.getHeight)
this.getHeight() this.getHeight()
this.initBase() this.initBase()
if(this.yhdm=='user01'){ if(this.yhdm==='user01'||this.yhdm==='user02'){
this.isUser=true this.isUser=true
} }
}, },
@ -2943,7 +2944,7 @@ export default {
} }
} }
}, },
// //
tqSygd() { tqSygd() {
const data={from:this.queryParam.beginTime,to:this.queryParam.endTime} const data={from:this.queryParam.beginTime,to:this.queryParam.endTime}
tqSygd(data).then((res) => { tqSygd(data).then((res) => {
@ -3043,18 +3044,20 @@ export default {
getHeight() { getHeight() {
this.height = window.innerHeight - 200 this.height = window.innerHeight - 200
}, },
creatYdjh(){
const data={from:this.queryParam.beginTime,to:this.queryParam.endTime}
生成月度计划(data).then(res=>{
this.list=res.data
this.initList()
})
},
paichan(){ paichan(){
this.dialogVisible2=false this.dialogVisible2=false
const data={from:this.queryParam.beginTime,to:this.queryParam.endTime} const data={from:this.queryParam.beginTime,to:this.queryParam.endTime}
排产(data).then((res)=>{ 排产(data).then((res)=>{
if (res.success){ if (res.success){
this.jgcx(false) this.jgcx(false)
生成三月滚动(data).then(res=>{
this.list=res.data
this.initList()
})
}else{ }else{
this.jgcx(false)
this.$message.warning(res.message) this.$message.warning(res.message)
} }
}) })

@ -8,6 +8,7 @@
<div class="title-container"> <div class="title-container">
<!-- <h1 class="title">{{ loginForm.zxtmc }}集团信息管理系统</h1>-->
<h1 class="title">{{ loginForm.zxtmc }}钢加生产管控系统</h1> <h1 class="title">{{ loginForm.zxtmc }}钢加生产管控系统</h1>
<h3 class="title">{{ loginForm.zxtmc }}登录</h3> <h3 class="title">{{ loginForm.zxtmc }}登录</h3>
</div> </div>
@ -103,7 +104,7 @@
cgdlList:[], cgdlList:[],
cgdlm:"", cgdlm:"",
loginForm: { loginForm: {
username: 'UserAdmin', username: '',
password: '', password: '',
zxtbm: '', zxtbm: '',
zxtmc: '', zxtmc: '',

Loading…
Cancel
Save