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