parent
c7b9a9e942
commit
ecd06dce78
@ -0,0 +1,106 @@
|
||||
<template>
|
||||
<div class="mytable">
|
||||
<vxe-grid
|
||||
id="id4"
|
||||
ref="xGrid4"
|
||||
border
|
||||
resizable
|
||||
keep-source
|
||||
:align="'center'"
|
||||
:height="height"
|
||||
:auto-resize="true"
|
||||
:columns="tableColumn"
|
||||
highlight-current-row
|
||||
:custom-config="{ storage: true }"
|
||||
:cell-style="cellStyle"
|
||||
highlight-hover-row
|
||||
show-overflow
|
||||
show-header-overflow
|
||||
:scroll-y="{enabled: true}"
|
||||
>
|
||||
</vxe-grid>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:'Bcxq',
|
||||
props:{
|
||||
queryParam:Object,
|
||||
list:{
|
||||
type:Array,
|
||||
default:[]
|
||||
},
|
||||
height:{
|
||||
type:Number,
|
||||
default:500,
|
||||
}
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
tableColumn:[
|
||||
{type: 'seq', width: 60, title: '序号', fixed: "left"},
|
||||
{ field: '', title: '日期', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '垛位', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '船号', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '批量', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '数量', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '重量', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '订货清单号', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '订货数量', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '采购数量', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '到货数量', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '跨位', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '', title: '跨位需求数量', width: 150,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
cellStyle({row, column, rowIndex, columnIndex}) {
|
||||
let fields = ['tlt_zl', 'jsq_dz_pc', 'jsq_xz_pc', 'tzxqq', 'tlt_sl', 'hx_cd', 'qg_cd', 'gcxqq'];
|
||||
if (fields.includes(column.property)) {
|
||||
return {
|
||||
color: '#CC8B04',
|
||||
cursor: 'pointer'
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,215 @@
|
||||
<template>
|
||||
<div class="mytable">
|
||||
<el-button type="success" @click="sygdPC"> 提取明细</el-button>
|
||||
<el-button type="success" @click="symxhz">汇总</el-button>
|
||||
<vxe-grid
|
||||
id="id"
|
||||
ref="xGrid"
|
||||
border
|
||||
resizable
|
||||
keep-source
|
||||
:align="'center'"
|
||||
:height="height"
|
||||
:auto-resize="true"
|
||||
:columns="tableColumn"
|
||||
highlight-current-row
|
||||
:data="list"
|
||||
:custom-config="{ storage: true }"
|
||||
:scroll-x="{enabled: true}"
|
||||
:scroll-y="{enabled: true}"
|
||||
:span-method="rowspanMethod"
|
||||
highlight-hover-row
|
||||
show-overflow
|
||||
show-header-overflow
|
||||
>
|
||||
</vxe-grid>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {sygdPC, symxhz} from "@/api/jhzx/sygd";
|
||||
|
||||
export default {
|
||||
name:'First',
|
||||
props:{
|
||||
queryParam:Object,
|
||||
list:{
|
||||
type:Array,
|
||||
default:[]
|
||||
},
|
||||
height:{
|
||||
type:Number,
|
||||
default:500,
|
||||
}
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
tableColumn:[
|
||||
{ type: 'checkbox', width: 50 ,},
|
||||
{ type: 'seq', width: 60, title: '序号',fixed: "left"},
|
||||
{ field: 'dcCh', title: '船号',width: 100,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', }},
|
||||
{ field: 'dcPl', title: '批量号',width: 70,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', }},
|
||||
{ field: 'dcFd', title: '分段号',width: 100,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', }},
|
||||
{ field: 'bs', title: '板数', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'sl', title: '上料', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'xcpw', title: '型材抛丸', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'pw', title: '抛丸', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'yklm', title: '一垮龙门板数', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'yksk', title: '一垮数控板数', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'ykpkjs', title: '坡口切割结束', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'eksk', title: '二垮数控板数', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'ekskks', title: '数控切割开始', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'ekpkjs', title: '坡口切割结束', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'sksk', title: '三垮数控板数', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'skskqgks', title: '数控切割开始', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'skpkjs', title: '坡口切割结束', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'skpt', title: '三垮平铁板数', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'ptks', title: '平铁切割开始', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'ptjs', title: '平铁切割结束', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'qpt_zjs', title: '曲平铁转结束', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'qptjs', title: '曲平铁结束', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'qwbjs', title: '曲外板结束', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'zl', title: '组立', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'skbs', title: '数控 板数', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'skqgks', title: '数控切割开始', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'pkqgjs', title: '坡口切割结束', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'mbjb', title: '面板挤边', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'qkxcms', title: '七垮型 材米数', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'xcmb', title: '型材 面板', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'fdxq', title: '分段需求', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'gdjs', title: '光电 结束', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'bz', title: '备注', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
}
|
||||
],
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
sygdPC() {
|
||||
this.$store.dispatch('app/closeSideBar', true)
|
||||
sygdPC().then((res) => {
|
||||
if (!res.success){
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
symxhz() {
|
||||
if (!this.queryParam.beginTime ||!this.queryParam.endTime) {
|
||||
this.$message.warning('请先输入汇总的时间范围!');
|
||||
return
|
||||
}
|
||||
symxhz(this.queryParam).then((res) => {
|
||||
if (res.data) {
|
||||
this.list1 = res.data.xbList
|
||||
this.list2 = res.data.plList
|
||||
this.list3 = res.data.kwList
|
||||
}
|
||||
})
|
||||
},
|
||||
rowspanMethod({row, _rowIndex, column, visibleData}) {
|
||||
let fields = ['dcCh','dcPl'];// 需要合并的列
|
||||
const cellValue = row[column.property];// 合并行的相同的唯一标识
|
||||
if (cellValue && fields.includes(column.property)) {
|
||||
const prevRow = visibleData[_rowIndex - 1];
|
||||
let nextRow = visibleData[_rowIndex + 1];
|
||||
if(_rowIndex%2==0){
|
||||
return {rowspan: 2, colspan: 1};
|
||||
}else {
|
||||
return {rowspan: 0, colspan: 0};
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,70 @@
|
||||
<template>
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||
<el-tab-pane :label="item.label" :name="item.name" v-for="(item,index) in tabs" >
|
||||
<component :is="item.tableComp" :ref="item.ref" :height="height" :queryParam="queryParam" :list="tabsData[item.name]"/>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import First from "@/views/jhzx/components/sygdpc/First";
|
||||
import Sygdjh from "@/views/jhzx/components/sygdpc/Sygdjh";
|
||||
import Second from "@/views/jhzx/components/sygdpc/Second";
|
||||
import Third from "@/views/jhzx/components/sygdpc/Third";
|
||||
import Fourth from "@/views/jhzx/components/sygdpc/Fourth";
|
||||
import Bcxq from "@/views/jhzx/components/sygdpc/Bcxq";
|
||||
import SygdjhDetail from "@/views/jhzx/components/sygdpc/SygdjhDetail";
|
||||
export default {
|
||||
name:"MyTabs",
|
||||
components:{First,Sygdjh,Second,Third,Bcxq,Fourth,SygdjhDetail},
|
||||
props:{
|
||||
queryParam:Object,
|
||||
height:{
|
||||
type:Number,
|
||||
default:500,
|
||||
}
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
activeName:'first',
|
||||
tabs:[
|
||||
{name:'first',label:'前方三月需求计划',tableComp:'First',ref:'firstRef'},
|
||||
{name:'sygdjh',label:'三月滚动计划编制',tableComp:'Sygdjh',ref:'sygdjhRef'},
|
||||
{name:'sygdjhDetail',label:'三月滚动计划明细',tableComp:'SygdjhDetail',ref:'sygdjhDetailRef'},
|
||||
{name:'second',label:'线表信息',tableComp:'Second',ref:'secondRef'},
|
||||
{name:'third',label:'批量信息',tableComp:'Third',ref:'thirdRef'},
|
||||
{name:'bcxq',label:'板材需求',tableComp:'Bcxq',ref:'bcxqRef'},
|
||||
{name:'fourth',label:'跨位信息',tableComp:'Fourth',ref:'fourthRef'},
|
||||
],
|
||||
tabsData:{
|
||||
first:[],
|
||||
sygdjh:[],
|
||||
sygdjhDetail:[],
|
||||
second:[],
|
||||
third:[],
|
||||
bcxq:[],
|
||||
fourth:[],
|
||||
}
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
initData(name,list){
|
||||
this.tabsData[name]=list
|
||||
},
|
||||
initTabData(){
|
||||
this.$emit('initTabData',this.activeName);
|
||||
},
|
||||
getSelectData(){
|
||||
return this.$refs['sygdjhDetail'].getSelectData();
|
||||
},
|
||||
handleClick(){
|
||||
Object.keys(this.tabsData).forEach(key=>{
|
||||
if (key!==this.activeName){
|
||||
this.tabsData[key]=null;
|
||||
}
|
||||
})
|
||||
this.initTabData();
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<vxe-modal v-model="dialogVisible" width="600" title="选择目标船只">
|
||||
<template #default>
|
||||
<el-row class="query_wrapper">
|
||||
<el-row>
|
||||
<el-button size="small" style="float: right;margin-bottom: 5px;margin-right: 5px;" type="success"
|
||||
@click="saveByDcch">保存
|
||||
</el-button>
|
||||
</el-row>
|
||||
</el-row>
|
||||
<div class="mytable">
|
||||
<vxe-table
|
||||
ref="tableRef"
|
||||
auto-resize
|
||||
show-header-overflow
|
||||
show-overflow
|
||||
height="300"
|
||||
:row-config="{isHover: true}"
|
||||
:column-config="{resizable: true}"
|
||||
:data="selectMbch.no_tlt_ch">
|
||||
<vxe-column type="seq" width="50"></vxe-column>
|
||||
<vxe-column field="dcCh" title="船号" width="150"></vxe-column>
|
||||
<vxe-column align="center" field="dcCh1" title="目标船号" width="300">
|
||||
<template #default="{ row }">
|
||||
<vxe-select v-model="row.dcCh1" style="width: 80%;height: 30px;margin-bottom: 2px" transfer>
|
||||
<vxe-option
|
||||
v-for="item in haveTltBoms"
|
||||
:key="item.dcch"
|
||||
:value="item.dcch"
|
||||
:label="item.dcch"
|
||||
/>
|
||||
</vxe-select>
|
||||
</template>
|
||||
</vxe-column>
|
||||
</vxe-table>
|
||||
</div>
|
||||
</template>
|
||||
</vxe-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {saveByDcch} from "@/api/jhzx/sygd";
|
||||
|
||||
export default {
|
||||
name:'SelectShipModal',
|
||||
data(){
|
||||
return{
|
||||
dialogVisible:false,
|
||||
title:'',
|
||||
selectMbch:[],
|
||||
haveTltBoms:[],
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
saveByDcch() {
|
||||
saveByDcch(this.selectMbch).then((res) => {
|
||||
this.list = res.data
|
||||
if (this.$refs.xGrid) {
|
||||
this.$refs.xGrid.loadData(this.list)
|
||||
}
|
||||
})
|
||||
this.dialogVisible = false;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,67 @@
|
||||
<template>
|
||||
<vxe-modal v-model="dialogVisible" width="80%" title="修改明细信息">
|
||||
<template #default>
|
||||
<el-row class="query_wrapper">
|
||||
<el-row>
|
||||
<el-button size="small" style="float: right;margin-bottom: 5px;margin-right: 5px;" type="success"
|
||||
@click="save">保存
|
||||
</el-button>
|
||||
</el-row>
|
||||
</el-row>
|
||||
<div class="mytable">
|
||||
<vxe-grid
|
||||
id="id6"
|
||||
ref="tableRef1"
|
||||
border
|
||||
resizable
|
||||
keep-source
|
||||
:align="'center'"
|
||||
:height="height"
|
||||
:auto-resize="true"
|
||||
:columns="tableColumn6"
|
||||
highlight-current-row
|
||||
:data="mxList"
|
||||
:custom-config="{ storage: true }"
|
||||
:edit-config="{
|
||||
trigger: 'click',
|
||||
mode: 'row',
|
||||
showStatus: true,
|
||||
}"
|
||||
@checkbox-all="selectAllEvent"
|
||||
@checkbox-change="selectChangeEvent"
|
||||
:cell-style="cellStyle1"
|
||||
:header-cell-style="headerCellStyle"
|
||||
highlight-hover-row
|
||||
show-overflow
|
||||
>
|
||||
</vxe-grid>
|
||||
</div>
|
||||
</template>
|
||||
</vxe-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name:'ShowDetailModal',
|
||||
data(){
|
||||
return{
|
||||
dialogVisible:false,
|
||||
title:'',
|
||||
selectMbch:[],
|
||||
haveTltBoms:[],
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
saveByDcch() {
|
||||
saveByDcch(this.selectMbch).then((res) => {
|
||||
this.list = res.data
|
||||
if (this.$refs.xGrid) {
|
||||
this.$refs.xGrid.loadData(this.list)
|
||||
}
|
||||
})
|
||||
this.dialogVisible = false;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,151 @@
|
||||
<template>
|
||||
<div class="mytable">
|
||||
<vxe-grid
|
||||
id="id"
|
||||
ref="xGrid"
|
||||
border
|
||||
resizable
|
||||
keep-source
|
||||
:align="'center'"
|
||||
:height="height"
|
||||
:auto-resize="true"
|
||||
:columns="tableColumn"
|
||||
highlight-current-row
|
||||
:data="list"
|
||||
:custom-config="{ storage: true }"
|
||||
:scroll-x="{enabled: true}"
|
||||
:scroll-y="{enabled: true}"
|
||||
:span-method="rowspanMethod"
|
||||
highlight-hover-row
|
||||
show-overflow
|
||||
show-header-overflow
|
||||
>
|
||||
</vxe-grid>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:'Sygdjh',
|
||||
props:{
|
||||
height:{
|
||||
type:Number,
|
||||
default:500,
|
||||
},
|
||||
list:{
|
||||
type:Array,
|
||||
default:[]
|
||||
},
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
tableColumn:[
|
||||
{ field: 'day', title: '日期', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '白班时长', title: '白班', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '二班时长', title: '夜班', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '工序', title: '工序', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'kw', title: '套料图名称', width: 120,formatter:['dictFormat','QGKW'],
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '产能', title: '工序定额', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '设备编号', title: '设备编码', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '设备名称', title: '设备名称', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '设备产能', title: '设备定额', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'dcCh', title: '船号', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'dcPl', title: '批量', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'xzglxq', title: '小组需求期', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'dzglxq', title: '大组需求期', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'czlx', title: '操作类型(手工/数控)', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
//下面是bom的表头
|
||||
{ field: 'zl', title: '组立', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'kw', title: '跨位', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'tzbh', title: '套料图名称', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'tzbh', title: '套料图号', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'wpgg', title: '规格', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'wpcz', title: '材质', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'ljsl', title: '数量', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: '_degs', title: '定额', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
rowspanMethod({row, _rowIndex, column, visibleData}) {
|
||||
let fields = ['dcCh','dcPl'];// 需要合并的列
|
||||
const cellValue = row[column.property];// 合并行的相同的唯一标识
|
||||
if (cellValue && fields.includes(column.property)) {
|
||||
const prevRow = visibleData[_rowIndex - 1];
|
||||
let nextRow = visibleData[_rowIndex + 1];
|
||||
if(_rowIndex%2==0){
|
||||
return {rowspan: 2, colspan: 1};
|
||||
}else {
|
||||
return {rowspan: 0, colspan: 0};
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,142 @@
|
||||
<template>
|
||||
<div class="mytable">
|
||||
<vxe-grid
|
||||
id="id9"
|
||||
ref="xGrid"
|
||||
border
|
||||
resizable
|
||||
keep-source
|
||||
:align="'center'"
|
||||
:height="height"
|
||||
:auto-resize="true"
|
||||
:columns="tableColumn"
|
||||
highlight-current-row
|
||||
:data="list"
|
||||
:custom-config="{ storage: true }"
|
||||
highlight-hover-row
|
||||
show-overflow
|
||||
show-header-overflow
|
||||
>
|
||||
</vxe-grid>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:'SygdjhDetail',
|
||||
props:{
|
||||
list:{
|
||||
type:Array,
|
||||
default: []
|
||||
},
|
||||
height:{
|
||||
type:Number,
|
||||
default:500,
|
||||
}
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
tableColumn:[
|
||||
{ field: 'gl', title: '日期', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'bbgs', title: '白班', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'ybgs', title: '夜班', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'gx', title: '工位', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'sbbh', title: '设备编码', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'sbmc', title: '设备名称', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'sbde', title: '设备定额', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'ch', title: '船号', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'pl', title: '批次', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'xqrq', title: '钢板需求期', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'dzks', title: '小组开始', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'dz', title: '大组', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'type', title: '类型(手工/数控)', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'zl', title: '组立', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'kw', title: '跨位', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'tzmc', title: '套料图名称', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'tzbh', title: '套料图号', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'wpgg', title: '规格', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'wpcz', title: '材质', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'sl', title: '数量', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'jglx', title: '加工路线', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'de', title: '定额', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
},
|
||||
{ field: 'zrc', title: '中日程', width: 120,
|
||||
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
||||
filterRender: { name: 'FilterCombination', },
|
||||
}
|
||||
],
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
getSelectData(){
|
||||
const data=this.$refs.xGrid.getCheckboxRecords();
|
||||
return data;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,202 @@
|
||||
<template>
|
||||
<div class="mytable">
|
||||
<vxe-grid
|
||||
id="id2"
|
||||
ref="xGrid2"
|
||||
border
|
||||
resizable
|
||||
keep-source
|
||||
:align="'center'"
|
||||
:height="height"
|
||||
:auto-resize="true"
|
||||
:columns="tableColumn"
|
||||
:data="list"
|
||||
:custom-config="{ storage: true }"
|
||||
:cell-style="cellStyle"
|
||||
highlight-current-row
|
||||
highlight-hover-row
|
||||
show-overflow
|
||||
:scroll-y="{enabled: true}"
|
||||
>
|
||||
</vxe-grid>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:'Third',
|
||||
props:{
|
||||
queryParam:Object,
|
||||
list:{
|
||||
type:Array,
|
||||
default:[]
|
||||
},
|
||||
height:{
|
||||
type:Number,
|
||||
default:500,
|
||||
}
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
tableColumn: [
|
||||
{type: 'seq', width: 60, title: '序号', fixed: "left"},
|
||||
{
|
||||
field: 'dcCh', title: '船号', width: 100,
|
||||
filters: [{
|
||||
data: {
|
||||
checks: [],
|
||||
sVal: '',
|
||||
sMenu: '',
|
||||
fType1: '',
|
||||
fVal1: '',
|
||||
fMode: 'and',
|
||||
fType2: '',
|
||||
fVal2: ''
|
||||
}
|
||||
}],
|
||||
filterRender: {name: 'FilterCombination',}
|
||||
},
|
||||
{
|
||||
field: 'dcPl', title: '批量', width: 100,
|
||||
filters: [{
|
||||
data: {
|
||||
checks: [],
|
||||
sVal: '',
|
||||
sMenu: '',
|
||||
fType1: '',
|
||||
fVal1: '',
|
||||
fMode: 'and',
|
||||
fType2: '',
|
||||
fVal2: ''
|
||||
}
|
||||
}],
|
||||
filterRender: {name: 'FilterCombination',}
|
||||
},
|
||||
{
|
||||
field: 'dcFd', title: '分段', width: 100,
|
||||
filters: [{
|
||||
data: {
|
||||
checks: [],
|
||||
sVal: '',
|
||||
sMenu: '',
|
||||
fType1: '',
|
||||
fVal1: '',
|
||||
fMode: 'and',
|
||||
fType2: '',
|
||||
fVal2: ''
|
||||
}
|
||||
}],
|
||||
filterRender: {name: 'FilterCombination',}
|
||||
},
|
||||
{
|
||||
field: 'xzjsq', title: 'a=批量表(钢加小组结束)', width: 180,
|
||||
filters: [{
|
||||
data: {
|
||||
checks: [],
|
||||
sVal: '',
|
||||
sMenu: '',
|
||||
fType1: '',
|
||||
fVal1: '',
|
||||
fMode: 'and',
|
||||
fType2: '',
|
||||
fVal2: ''
|
||||
}
|
||||
}],
|
||||
filterRender: {name: 'FilterCombination',}
|
||||
},
|
||||
{
|
||||
field: 'xzglxq', title: 'b=钢料滚动需求(小组)', width: 180,
|
||||
filters: [{
|
||||
data: {
|
||||
checks: [],
|
||||
sVal: '',
|
||||
sMenu: '',
|
||||
fType1: '',
|
||||
fVal1: '',
|
||||
fMode: 'and',
|
||||
fType2: '',
|
||||
fVal2: ''
|
||||
}
|
||||
}],
|
||||
filterRender: {name: 'FilterCombin ation',}
|
||||
},
|
||||
{
|
||||
field: 'xzcz', title: 'b-a=时间差(小组)', width: 180,
|
||||
filters: [{
|
||||
data: {
|
||||
checks: [],
|
||||
sVal: '',
|
||||
sMenu: '',
|
||||
fType1: '',
|
||||
fVal1: '',
|
||||
fMode: 'and',
|
||||
fType2: '',
|
||||
fVal2: ''
|
||||
}
|
||||
}],
|
||||
filterRender: {name: 'FilterCombination',}
|
||||
},
|
||||
{
|
||||
field: 'dzjsq', title: 'c=批量表(钢加大组结束)', width: 180,
|
||||
filters: [{
|
||||
data: {
|
||||
checks: [],
|
||||
sVal: '',
|
||||
sMenu: '',
|
||||
fType1: '',
|
||||
fVal1: '',
|
||||
fMode: 'and',
|
||||
fType2: '',
|
||||
fVal2: ''
|
||||
}
|
||||
}],
|
||||
filterRender: {name: 'FilterCombination',}
|
||||
},
|
||||
{
|
||||
field: 'dzglxq', title: 'd=钢料滚动需求(大组)', width: 180,
|
||||
filters: [{
|
||||
data: {
|
||||
checks: [],
|
||||
sVal: '',
|
||||
sMenu: '',
|
||||
fType1: '',
|
||||
fVal1: '',
|
||||
fMode: 'and',
|
||||
fType2: '',
|
||||
fVal2: ''
|
||||
}
|
||||
}],
|
||||
filterRender: {name: 'FilterCombination',}
|
||||
},
|
||||
{
|
||||
field: 'dzcz', title: 'd-c=时间差(大组)', width: 180,
|
||||
filters: [{
|
||||
data: {
|
||||
checks: [],
|
||||
sVal: '',
|
||||
sMenu: '',
|
||||
fType1: '',
|
||||
fVal1: '',
|
||||
fMode: 'and',
|
||||
fType2: '',
|
||||
fVal2: ''
|
||||
}
|
||||
}],
|
||||
filterRender: {name: 'FilterCombination',}
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
cellStyle({row, column, rowIndex, columnIndex}) {
|
||||
let fields = ['tlt_zl', 'jsq_dz_pc', 'jsq_xz_pc', 'tzxqq', 'tlt_sl', 'hx_cd', 'qg_cd', 'gcxqq'];
|
||||
if (fields.includes(column.property)) {
|
||||
return {
|
||||
color: '#CC8B04',
|
||||
cursor: 'pointer'
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,235 @@
|
||||
<template>
|
||||
<el-container>
|
||||
<el-header style="width: 100%; height: 35px;font-size: 12px">
|
||||
<el-form :inline="true" label-width="65px" label-position="left">
|
||||
<el-row>
|
||||
<el-col :span="15">
|
||||
<el-form-item>
|
||||
<span style="font-size: 13px;color: #606266; margin-left: 4px;margin-right: 4px">小组需求时间范围:</span>
|
||||
<el-date-picker v-model="queryParam.beginTime" value-format="yyyy/MM/dd" fromat="yyyy/MM/dd" type="month" style="width: 33%;" />
|
||||
<span style="font-size: 13px;color: #606266; margin-left: 4px;margin-right: 4px">至</span>
|
||||
<el-date-picker v-model="queryParam.endTime" value-format="yyyy/MM/dd" fromat="yyyy/MM/dd" type="month" style="width: 33%" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="9">
|
||||
<el-form-item style="float: right">
|
||||
<el-button type="success" @click="initList">查询</el-button>
|
||||
<el-button type="success" @click="tqSygd">提交三月滚动</el-button>
|
||||
<el-button type="success" @click="钢料需求倒排三月滚动计划">三月滚动计划编制</el-button>
|
||||
<el-button type="success" @click="三月滚动计划数据读取">读取三月滚动</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</el-header>
|
||||
<el-container style="padding-top: 0px">
|
||||
<el-main>
|
||||
<MyTabs ref="myTabsRef" :height="height" :queryParam="queryParam" />
|
||||
</el-main>
|
||||
</el-container>
|
||||
<SelectShipModal ref="selectShipModalRef"/>
|
||||
<ShowDetailModal ref="showDetailModalRef"/>
|
||||
</el-container>
|
||||
</template>
|
||||
<script>
|
||||
import router from "@/router";
|
||||
import {getList, tqSygd, 排产, 获取排产结果} from '@/api/jhzx/sygd'
|
||||
import {mapGetters} from 'vuex'
|
||||
import XEUtils from 'xe-utils'
|
||||
import MyTabs from "@/views/jhzx/components/sygdpc/MyTabs.vue";
|
||||
import SelectShipModal from "@/views/jhzx/components/sygdpc/SelectShipModal.vue";
|
||||
import ShowDetailModal from "@/views/jhzx/components/sygdpc/ShowDetailModal.vue";
|
||||
|
||||
export default {
|
||||
name: 'SymxCX',
|
||||
components: {ShowDetailModal, SelectShipModal, MyTabs},
|
||||
data() {
|
||||
return {
|
||||
isUser:true,
|
||||
queryParam: {
|
||||
beginTime: '',
|
||||
endTime: ''
|
||||
},
|
||||
dictData: [],
|
||||
height: '500px',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['name', 'bmbm','yhdm'])
|
||||
},
|
||||
created() {
|
||||
window.addEventListener('resize', this.getHeight)
|
||||
this.getHeight()
|
||||
this.initBase()
|
||||
if(this.yhdm=='UserAdmin'||this.yhdm=='user02'){
|
||||
this.isUser=false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'queryParam.beginTime'(newValue, Value){
|
||||
if (newValue){
|
||||
this.format(newValue);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
钢料需求倒排三月滚动计划(){
|
||||
console.log(111)
|
||||
const data={from:this.queryParam.beginTime,to:this.queryParam.endTime}
|
||||
排产(data).then(res=>{
|
||||
this.三月滚动计划数据读取()
|
||||
})
|
||||
},
|
||||
三月滚动计划数据读取(){
|
||||
const data={from:this.queryParam.beginTime,to:this.queryParam.endTime}
|
||||
获取排产结果(data).then(res=>{
|
||||
this.activeName="sygdjh"
|
||||
console.log(res)
|
||||
})
|
||||
},
|
||||
//提交三月滚动
|
||||
tqSygd() {
|
||||
console.log(111)
|
||||
const list=this.$refs.myTabsRef.getSelectData();
|
||||
if (list.length===0){
|
||||
this.$message.warning('请先选择三月滚动计划明细数据!');
|
||||
return
|
||||
}
|
||||
tqSygd(this.list).then((res) => {
|
||||
if (res.data) {
|
||||
router.push({
|
||||
name: 'SygdWH',
|
||||
params: {
|
||||
list: res.data
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请先提取明细!');
|
||||
}
|
||||
})
|
||||
},
|
||||
//转码信息
|
||||
initBase() {
|
||||
this.queryParam.beginTime = XEUtils.toDateString(XEUtils.getWhatMonth(new Date(), 0, 1),'yyyy/MM/dd')
|
||||
},
|
||||
initList() {
|
||||
if (this.queryParam.beginTime === '' || this.queryParam.endTime === '') {
|
||||
this.$message.warning('选择时间范围')
|
||||
return
|
||||
}
|
||||
getList(this.queryParam).then((res) => {
|
||||
this.activeName = 'sygdjhDetail'
|
||||
this.$refs.myTabsRef.initData('sygdjhDetail',res.data.list)
|
||||
})
|
||||
},
|
||||
format (val) {
|
||||
this.queryParam.endTime=XEUtils.toDateString(XEUtils.getWhatMonth(val, 2, 'last'),'yyyy/MM/dd')
|
||||
},
|
||||
getHeight() {
|
||||
this.height = window.innerHeight - 200
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.el-header {
|
||||
margin: 0;
|
||||
padding: 5px;
|
||||
height: auto;
|
||||
|
||||
.el-input {
|
||||
width: 140px;
|
||||
}
|
||||
|
||||
.el-select {
|
||||
width: 140px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.el-container {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.el-main {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.el-col {
|
||||
padding: 0;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.el-aside {
|
||||
background: #fff;
|
||||
padding: 0
|
||||
}
|
||||
|
||||
.el-container {
|
||||
padding: 0
|
||||
}
|
||||
|
||||
.el-row {
|
||||
}
|
||||
|
||||
.el-row:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.tableStyles {
|
||||
background: #0a76a4;
|
||||
}
|
||||
|
||||
.my-dropdown {
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #dcdfe6;
|
||||
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
.mytable1 {
|
||||
|
||||
}
|
||||
|
||||
.borderClass {
|
||||
|
||||
}
|
||||
|
||||
.vxe-input {
|
||||
display: inline-block !important;
|
||||
position: relative !important;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.el-input {
|
||||
display: inline-block !important;
|
||||
position: relative !important;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.keyword-lighten {
|
||||
color: #000;
|
||||
background-color: #FFFF00;
|
||||
}
|
||||
|
||||
.vxe-textarea--inner {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.el-form-item__label-wrap {
|
||||
margin-left: 0px !important;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.fontClass {
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
Loading…
Reference in new issue