|
|
@ -12,7 +12,7 @@
|
|
|
|
<el-col :span="9">
|
|
|
|
<el-col :span="9">
|
|
|
|
<el-form-item style="float: right" >
|
|
|
|
<el-form-item style="float: right" >
|
|
|
|
<el-button type="success" @click="initList">查询</el-button>
|
|
|
|
<el-button type="success" @click="initList">查询</el-button>
|
|
|
|
<el-button type="success" @click="initList">提交月度计划</el-button>
|
|
|
|
<el-button type="success" @click="tjydjh">提交月度计划</el-button>
|
|
|
|
<el-button type="success" @click="initList">保存</el-button>
|
|
|
|
<el-button type="success" @click="initList">保存</el-button>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
@ -199,7 +199,7 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import router from "@/router";
|
|
|
|
import router from "@/router";
|
|
|
|
import { getCzxx} from '@/api/jhzx/qfxq'
|
|
|
|
import { getCzxx} from '@/api/jhzx/qfxq'
|
|
|
|
import {getList, sygdPC, saveByDcch, tqSygd, symxhz, getCnsb, saveMxList} from '@/api/jhzx/sygd'
|
|
|
|
import {getYdjh, tjydjh, getCnsb} from '@/api/jhzx/sygd'
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
import XEUtils from 'xe-utils'
|
|
|
|
import XEUtils from 'xe-utils'
|
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
@ -247,7 +247,7 @@ export default {
|
|
|
|
{ field: 'zl', title: '组立',width: 80,formatter: ['dictFormat','ZLLB'],
|
|
|
|
{ field: 'zl', title: '组立',width: 80,formatter: ['dictFormat','ZLLB'],
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
filterRender: { name: 'FilterCombination', }},
|
|
|
|
filterRender: { name: 'FilterCombination', }},
|
|
|
|
{ field: 'jssj', title: '组立结束时间',width: 110,
|
|
|
|
{ field: 'jssj', title: '前方需求时间',width: 110,
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
filterRender: { name: 'FilterCombination', }},
|
|
|
|
filterRender: { name: 'FilterCombination', }},
|
|
|
|
{ field: 'lqlb', title: '领取类型',width: 90,formatter: ['dictFormat','CLlQ'],
|
|
|
|
{ field: 'lqlb', title: '领取类型',width: 90,formatter: ['dictFormat','CLlQ'],
|
|
|
@ -794,7 +794,7 @@ export default {
|
|
|
|
this.$message.warning('选择时间范围')
|
|
|
|
this.$message.warning('选择时间范围')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
getList(this.queryParam).then((res) => {
|
|
|
|
getYdjh(this.queryParam).then((res) => {
|
|
|
|
this.list = res.data
|
|
|
|
this.list = res.data
|
|
|
|
if (this.$refs.xGrid) {
|
|
|
|
if (this.$refs.xGrid) {
|
|
|
|
this.$refs.xGrid.loadData(this.list)
|
|
|
|
this.$refs.xGrid.loadData(this.list)
|
|
|
@ -807,21 +807,13 @@ export default {
|
|
|
|
return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
|
|
|
|
return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getHeight() {
|
|
|
|
getHeight() {
|
|
|
|
this.height = window.innerHeight - 200
|
|
|
|
this.height = window.innerHeight - 230
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//明细排产
|
|
|
|
//提取月度计划
|
|
|
|
sygdPC() {
|
|
|
|
tjydjh() {
|
|
|
|
this.$store.dispatch('app/closeSideBar',true)
|
|
|
|
tjydjh().then((res) => {
|
|
|
|
sygdPC().then((res) => {
|
|
|
|
if (res){
|
|
|
|
if(res.data.no_tlt){
|
|
|
|
this.list=res.data
|
|
|
|
this.selectMbch=res.data
|
|
|
|
|
|
|
|
this.haveTltBoms=res.data.haveTltBoms
|
|
|
|
|
|
|
|
this.dialogVisible=true;
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
this.list = res.data.mxList
|
|
|
|
|
|
|
|
if (this.$refs.xGrid) {
|
|
|
|
|
|
|
|
this.$refs.xGrid.loadData(this.list)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.activeName='first'
|
|
|
|
this.activeName='first'
|
|
|
|