Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/views/jhzxgl/pwjhFK.vue
master
xhj 1 year ago
commit f0202bb97c

@ -5,6 +5,7 @@
"author": "Pan <panfree23@gmail.com>",
"scripts": {
"dev": "vue-cli-service serve",
"local": "vue-cli-service serve --mode local",
"lint": "eslint --ext .js,.vue src",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",

File diff suppressed because it is too large Load Diff

@ -8,4 +8,4 @@ export function save(data) {return request({url: '/dmQfxq/save', method: 'post',
export function getCzxx(data) {return request({url: '/dmQfxq/getCzxx', method: 'post', data})}
export function getQfxq(data) {return request({url: '/ypp/getQfxq', method: 'post', data})}

@ -11,4 +11,9 @@ export function tqSygd() {return request({url: '/dmSygdMx/tqSygd', method: 'post
export function getCnsb() {return request({url: '/dmSygdMx/getCnsb', method: 'post'})}
export function saveMxList() {return request({url: '/dmSygdMx/saveList', method: 'post'})}
export function getYdjh(data) {return request({url: '/dmYdjh/getList', method: 'post', data})}
export function tjydjh() {return request({url: '/dmYdjh/tjydjh', method: 'post'})}
export function tjydjh(data) {return request({url: '/dmYdjh/tj', method: 'post', data})}
export function hz(data) {return request({url: '/dmYdjh/hz', method: 'post', data})}
export function ydjhxf(data) {return request({url: '/dmYdjh/xf', method: 'post', data})}
//采购计划到货情况
export function cgjhdhqk(data={}) {return request({url: '/dmSygdMx/cgjhdhqk', method: 'post',data})}

@ -0,0 +1,33 @@
/*
预配盘相关接口
*/
import request from "@/utils/request";
/**
* 摆放位置查询
*/
export function getBfwz(data={}) {return request({url: '/dwxx/list', method: 'post', data})}
/**
* 摆放位置增删改
* @param data
* @returns {*}
*/
export function saveBfwz(data={}) {return request({url: '/dwxx/addOrEdit', method: 'post', data})}
export function getDmppxxbList(data={}) {return request({url: '/dmPpxxb/getDmppxxbList', method: 'post', data})}
export function saveDmppxxb(data) {return request({url: '/dmPpxxb/saveDmppxxb', method: 'post', data})}
export function getList(data) {return request({url: '/ypp/getList', method: 'post', data})}
export function getLjxx(data) {return request({url: '/ypp/getLjxx', method: 'post', data})}
export function getPpxx(data) {return request({url: '/ypp/getPpxx', method: 'post', data})}
export function checkBfwz(data) {return request({url: '/ypp/checkBfwz', method: 'post', data})}
export function yppZx(data) {return request({url: '/ypp/zx', method: 'post', data})}
export function yppQr(data) {return request({url: '/ypp/qr', method: 'post', data})}

@ -11,6 +11,14 @@ export function getGYS(data) {
});
}
export function getGhs(data) {
return request({
url: "/emSbjbb/getGhs",
method: "post",
data,
});
}
// 获取设备分类
export function getSBLX(data) {
return request({

@ -8,8 +8,7 @@
<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" type="month" style="width: 33%;" />
<span style="font-size: 13px;color: #606266; margin-left: 4px;margin-right: 4px"></span>
<el-input v-model="queryParam.endTime" ></el-input>
<!-- <el-date-picker v-model="queryParam.endTime" value-format="yyyy/MM/dd" type="month" style="width: 33%" />-->
<el-date-picker v-model="queryParam.endTime" value-format="yyyy/MM/dd" type="month" style="width: 33%" />
</el-form-item>
</el-col>
<el-col :span="9" >
@ -36,7 +35,7 @@
<el-container style="padding-top: 0px">
<el-main>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="钢料需求" name="first">
<!-- <el-tab-pane label="钢料需求" name="first">-->
<div class="mytable">
<vxe-grid
id="id"
@ -59,34 +58,7 @@
>
</vxe-grid>
</div>
</el-tab-pane>
<!-- <el-tab-pane label="汇总" name="third">-->
<!-- <div class="mytable">-->
<!-- <vxe-grid-->
<!-- id="id2"-->
<!-- ref="xGrid2"-->
<!-- border-->
<!-- resizable-->
<!-- keep-source-->
<!-- show-footer-->
<!-- :align="'center'"-->
<!-- :height="height"-->
<!-- :auto-resize="true"-->
<!-- highlight-current-row-->
<!-- :data="list2"-->
<!-- :columns="tableColumn2"-->
<!-- :custom-config="{ storage: true }"-->
<!-- :footer-method="footerMethod"-->
<!-- highlight-hover-row-->
<!-- show-overflow-->
<!-- show-header-overflow-->
<!-- >-->
<!-- <template #numMx5="{ items, _columnIndex }">-->
<!-- <span style="color: red">{{ items[_columnIndex] }}</span>-->
<!-- </template>-->
<!-- </vxe-grid>-->
<!-- </div>-->
<!-- </el-tab-pane>-->
</el-tabs>
</el-main>
</el-container>
@ -121,98 +93,98 @@ export default {
height: '500px',
tableColumn:[
{ field: 'dcCh', title: '船只', width: 120,
{ field: 'dcCh', title: '船只', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcPl', title: '批量号', width: 120,
{ field: 'dcPl', title: '批量号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdh', title: '总段号', width: 120,
{ field: 'zdh', title: '总段号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcFd', title: '分段号', width: 120,
{ field: 'dcFd', title: '分段号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dzjz', title: '大组极重', width: 120,
{ field: 'dzjz', title: '大组极重', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zxfdxq', title: '总装部最新分段需求期', width: 120,
{ field: 'zxfdxq', title: '总装部最新分段需求期', minWidth: "90",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xzglxq', title: '钢料需求(小组)', width: 120,
{ field: 'xzglxq', title: '钢料需求(小组)', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dzglxq', title: '钢料需求(大组)', width: 120,
{ field: 'dzglxq', title: '钢料需求(大组)', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xdb', title: 'X大板', width: 120,
{ field: 'xdb', title: 'X大板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xskj', title: 'X数控件', width: 120,
{ field: 'xskj', title: 'X数控件', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xpt', title: 'X平铁', width: 120,
{ field: 'xpt', title: 'X平铁', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xyw', title: 'X压弯', width: 120,
{ field: 'xyw', title: 'X压弯', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xxc', title: 'X型材', width: 120,
{ field: 'xxc', title: 'X型材', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xtxc', title: 'X二次装T型材', width: 120,
{ field: 'xtxc', title: 'X二次装T型材', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'ddb', title: 'D大板', width: 120,
{ field: 'ddb', title: 'D大板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dqb', title: 'D曲板', width: 120,
{ field: 'dqb', title: 'D曲板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dxc', title: 'D型材T', width: 120,
{ field: 'dxc', title: 'D型材T', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dsj', title: 'D散件', width: 120,
{ field: 'dsj', title: 'D散件', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xqzt', title: '需求状态', width: 120,formatter:this.formatterZt,
{ field: 'xqzt', title: '需求状态', minWidth: "100",formatter:this.formatterZt,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'drcs', title: '导入次数', width: 120,
{ field: 'drcs', title: '导入次数', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xzglxqOld', title: '原需求期', width: 120,
{ field: 'xzglxqOld', title: '原需求期', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
tableColumn2:[
{ field: 'dcCh', title: '船只', width: 200,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
}
],
// tableColumn2:[
// { field: 'dcCh', title: '', width: 200,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', },
// }
// ],
isupload:'02',
uploadData:{},
heads: { token: getToken() },
@ -355,6 +327,11 @@ export default {
getCzxx({}).then(res=>{
this.dictData = res.data
})
var date = new Date();
var Y = date.getFullYear() + "/";
var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1)+ "/";
var D = date.getDate()<10? "0" +date.getDate():date.getDate();
this.queryParam.beginTime = Y + M + D;
},
//1
initList() {
@ -380,48 +357,48 @@ export default {
},
generatedCol(){
//
this.tableColumn2= [] ;
this.tableColumn2.push({
key: this.tableColumn2.length + 1,
field: 'dcCh',
title: '船只',
width: 200
})
var a =this.monthList
for (let i = 0; i < a.length; i++) {
this.tableColumn2.push({
key: this.tableColumn2.length + 1,
field: 'yf'+a[i],
title: a[i]+``,
width: 200
})
}
// this.tableColumn2= [] ;
// this.tableColumn2.push({
// key: this.tableColumn2.length + 1,
// field: 'dcCh',
// title: '',
// width: 200
// })
// var a =this.monthList
// for (let i = 0; i < a.length; i++) {
// this.tableColumn2.push({
// key: this.tableColumn2.length + 1,
// field: 'yf'+a[i],
// title: a[i]+``,
// width: 200
// })
// }
},
formatDate ({ cellValue }) {
return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
},
getHeight() {
this.height = window.innerHeight - 200
this.height = window.innerHeight - 150
},
format (val) {
this.monthList= [] ;
// this.monthList= [] ;
var date = new Date(val); //10*1000131000
var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1);
// M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1);
// this.queryParam.beginTime=Y+M;
this.monthList.push(M);
// this.monthList.push(M);
date.setMonth(date.getMonth()+1);
M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) ;
this.monthList.push(M)
// date.setMonth(date.getMonth()+1);
// M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) ;
// this.monthList.push(M)
date.setMonth(date.getMonth()+1);
M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) ;
this.monthList.push(M)
// date.setMonth(date.getMonth()+1);
// M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) ;
// this.monthList.push(M)
date.setMonth(date.getMonth()+1);
date.setMonth(date.getMonth()+2);
var Y = date.getFullYear() + "/";
M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1)+ "/";
var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1)+ "/";
var D = date.getDate()<10? "0" +date.getDate():date.getDate();
// var h = date.getHours() + ":";
// var m = date.getMinutes() + ":";

@ -1,22 +1,211 @@
<template>
<el-container>
<span style="margin-top: 20px;margin-left: 20px">待开发...</span>
<el-header style="width: 100%;height: 35px">
<el-form ref="requestForm" :model="request" label-width="65px">
<el-row>
<el-col :span="3">
<el-form-item label="船号:">
<vxe-pulldown ref="xDown4" transfer >
<template #default>
<vxe-input
v-model="request.dcCh"
placeholder="船号"
style="height: 28px;
line-height: 28px; width: 150px;"
suffix-icon="vxe-icon--search"
@keyup="keyupEvent4"
@focus="focusEvent4"
/>
</template>
<template #dropdown>
<div class="my-dropdown mytable " style="width: 250px">
<vxe-grid
highlight-hover-row
height="auto"
:data="projectData"
:columns="projectColumns"
@cell-click="cellClickEvent"
show-overflow
>
<template #wgbsEdit="{ row}">
<vxe-checkbox v-model="row.wgbs" checked-value="Y" unchecked-value="N" disabled ></vxe-checkbox>
</template>
</vxe-grid>
</div>
</template>
</vxe-pulldown>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="批量:">
<el-input v-model="request.dcPl" type="search" placeholder="批量" ></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="分段:">
<el-input v-model="request.dcFd" type="search" placeholder="分段" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="在建船只:" label-width="105px">
<el-checkbox v-model="request.zjcz" type="search" placeholder="合同号" ></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="11" style="text-align: right">
<el-button type="primary" @click="initList()"></el-button>
<el-button type="success" @click="qr"></el-button>
</el-col>
</el-row>
</el-form>
</el-header>
<Yppfk0 ref="yppfk0" />
</el-container>
</template>
<script>
import {getCzplBase} from "@/api/sjzx/jcsj";
import {getBfwz, yppQr} from "@/api/jhzxgl/ypp";
import Yppfk0 from "@/views/jhzxgl/components/Yppfk0.vue";
export default {
name: "QfqrGL",
name: "Cgjhdh",
components: { Yppfk0},
data() {
return {
yppTqShow:false,
height: "500px",
list:[],
projectColumns: [
{field: 'cbbm', title: '船号',width: 110},
{ field: 'wgbs', title: '完工标识', width: 80,
slots:{
default: 'wgbsEdit'
},
},
],
qyList:[],
dwList:[],
bfwzList:[],
projectData:[],
request:{
dcCh:'',
dcPl:'',
dcFd:'',
zjcz:true,
},
}
},
created() {
window.addEventListener("resize", this.getHeight);
this.getHeight();
this.initProject()
this.initBfwz()
},
methods: {
qr(){
const data=this.$refs.yppfk0.getSelectQfxq();
if (data.length==0){
this.$message.warning('请选择待执行的数据');
return;
}
yppQr(data).then(res=>{
this.$message.success('成功');
})
},
initList(){
this.$refs.yppfk0.initXqjh(this.request)
},
initBfwz(){
getBfwz().then(res=>{
this.bfwzList=res.data
const _qyList=[]
const _dwhList=[]
const table=this.$refs.tableRef
const qyColumn=table.getColumnByField('qy')
const dwColumn=table.getColumnByField('dwh')
this.bfwzList.forEach(item=>{
_qyList.push({label:item.qy,value:item.qy})
_dwhList.push({label:item.dwh,value:item.dwh,_parent:item.qy})
})
qyColumn.editRender.options=_qyList
dwColumn.editRender.options=_dwhList
this.qyList=_qyList;
this.dwList=_dwhList
})
},
initProject(){
getCzplBase({}).then(res=>{
this.projectData=res.data.cbbm
})
},
cellClickEvent({row}){
this.request.dcCh = row.cbbm
this.$refs.xDown4.hidePanel()
},
focusEvent4(){
this.$refs.xDown4.showPanel()
},
keyupEvent4(){
if (this.request.dcCh) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.dcCh.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}
},
getHeight() {
this.height = window.innerHeight - 160;
},
}
};
</script>
<style lang="scss" scoped >
.el-header {
margin: 0;
padding: 5px 0;
height: auto;
}
.el-container {
padding: 0;
margin: 0;
}
.el-main {
padding: 0;
}
.el-col {
padding: 0;
}
.el-aside {
background: #fff;
padding: 0;
}
.el-container {
padding: 0;
}
.el-row {
margin-bottom: 5px;
}
.el-row:last-child {
margin-bottom: 0;
}
.tableStyles {
background: #0a76a4;
}
.my-dropdown {
width: 450px;
height: 250px;
background-color: #fff;
border: 1px solid #dcdfe6;
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
}
::v-deep .mytable .vxe-input {
display: flex !important;
}
::v-deep .el-form-item {
margin-bottom: 0px !important;
}
::v-deep .el-input{
width: auto !important;
}
</style>

@ -133,61 +133,102 @@ export default {
zt:[],
height: '500px',
tableColumn: [
{ type: 'checkbox', width: 50 },
{ type: 'seq', width: 60, title: '序号' },
{ field: 'dcCh', title: '船号', width: 100,
{ field: 'dcCh', title: '船只', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcPl', title: '批量', width: 100,editRender: { name: 'input' },
{ field: 'dcPl', title: '批量号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcFd', title: '分段', width: 100, editRender: { name: 'input' },
{ field: 'zdh', title: '总段号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'pscd', title: '配送场地', width: 120, editRender: { name: 'input' },
{ field: 'dcFd', title: '分段号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'cjzg', title: '车间主管', width: 120, editRender: { name: 'input' },
{ field: 'dzjz', title: '大组极重', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'db', title: '大板', width: 120, editRender: { name: 'input' },
{ field: 'zxfdxq', title: '总装部最新分段需求期', minWidth: "90",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xc', title: '型材', width: 120, editRender: { name: 'input' },
{ field: 'xzglxq', title: '钢料需求(小组)', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'txc', title: 'T型材', width: 120, editRender: { name: 'input' },
{ field: 'dzglxq', title: '钢料需求(大组)', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'bz', title: '备注', width: 120, editRender: { name: 'input' },
{ field: 'xdb', title: 'X大板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zt', title: '状态', width: 100,formatter: ['dictFormat','ZTLX']
{ field: 'xskj', title: 'X数控件', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xpt', title: 'X平铁', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xyw', title: 'X压弯', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'bzry', title: '编制人员', width: 110, editRender: { name: 'input' },
{ field: 'xxc', title: 'X型材', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'bzrq', title: '编制日期', width: 110, editRender: { name: 'input' },
{ field: 'xtxc', title: 'X二次装T型材', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'ddb', title: 'D大板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dqb', title: 'D曲板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dxc', title: 'D型材T', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dsj', title: 'D散件', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xqzt', title: '需求状态', minWidth: "100",formatter:this.formatterZt,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'drcs', title: '导入次数', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xzglxqOld', title: '原需求期', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zt', title: '状态', width: 100,formatter: ['dictFormat','ZTLX']
},
{ field: 'shry', title: '审核人员', width: 110, editRender: { name: 'input' },
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'shrq', title: '审核日期', width: 110, editRender: { name: 'input' },
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
}
]
}
},

@ -88,7 +88,6 @@
:custom-config="{ storage: true }"
highlight-hover-row
show-overflow
show-header-overflow
>
@ -144,56 +143,95 @@ export default {
uploadAction: process.env.VUE_APP_BASE_API + '/dmQfxq/upload',
dictData:[],
height: '500px',
tableColumn: [
tableColumn:[
{ type: 'checkbox', width: 50 },
{ type: 'seq', width: 60, title: '序号' },
{ field: 'dcCh', title: '船号', width: 100,
{ field: 'dcCh', title: '船只', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcPl', title: '批量', width: 100,editRender: { name: 'input' },
{ field: 'dcPl', title: '批量号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcFd', title: '分段', width: 100, editRender: { name: 'input' },
{ field: 'zdh', title: '总段号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'pscd', title: '配送场地', width: 120, editRender: { name: 'input' },
{ field: 'dcFd', title: '分段号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'cjzg', title: '车间主管', width: 120, editRender: { name: 'input' },
{ field: 'dzjz', title: '大组极重', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'db', title: '大板', width: 120, editRender: { name: 'input' },
{ field: 'zxfdxq', title: '总装部最新分段需求期', minWidth: "90",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xc', title: '型材', width: 120, editRender: { name: 'input' },
{ field: 'xzglxq', title: '钢料需求(小组)', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'txc', title: 'T型材', width: 120, editRender: { name: 'input' },
{ field: 'dzglxq', title: '钢料需求(大组)', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'bz', title: '备注', width: 120, editRender: { name: 'input' },
{ field: 'xdb', title: 'X大板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zt', title: '状态', width: 100,formatter: ['dictFormat','ZTLX']
{ field: 'xskj', title: 'X数控件', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xpt', title: 'X平铁', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xyw', title: 'X压弯', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xxc', title: 'X型材', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xtxc', title: 'X二次装T型材', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'ddb', title: 'D大板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dqb', title: 'D曲板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'bzry', title: '编制人员', width: 110, editRender: { name: 'input' },
{ field: 'dxc', title: 'D型材T', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'bzrq', title: '编制日期', width: 110, editRender: { name: 'input' },
{ field: 'dsj', title: 'D散件', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xqzt', title: '需求状态', minWidth: "100",formatter:this.formatterZt,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'drcs', title: '导入次数', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xzglxqOld', title: '原需求期', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zt', title: '状态', width: 100,formatter: ['dictFormat','ZTLX']
},
{ field: 'shry', title: '审核人员', width: 110, editRender: { name: 'input' },
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
@ -202,7 +240,6 @@ export default {
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
}
]
}
},

@ -1,22 +1,202 @@
<template>
<el-container>
<span style="margin-top: 20px;margin-left: 20px">待开发...</span>
<el-header style="width: 100%;height: 35px">
<el-form ref="requestForm" :model="request" label-width="65px">
<el-row>
<el-col :span="3">
<el-form-item label="船号:">
<vxe-pulldown ref="xDown4" transfer >
<template #default>
<vxe-input
v-model="request.dcCh"
placeholder="船号"
style="height: 28px;
line-height: 28px; width: 150px;"
suffix-icon="vxe-icon--search"
@keyup="keyupEvent4"
@focus="focusEvent4"
/>
</template>
<template #dropdown>
<div class="my-dropdown mytable " style="width: 250px">
<vxe-grid
highlight-hover-row
height="auto"
:data="projectData"
:columns="projectColumns"
@cell-click="cellClickEvent"
show-overflow
>
<template #wgbsEdit="{ row}">
<vxe-checkbox v-model="row.wgbs" checked-value="Y" unchecked-value="N" disabled ></vxe-checkbox>
</template>
</vxe-grid>
</div>
</template>
</vxe-pulldown>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="批量:">
<el-input v-model="request.dcPl" type="search" placeholder="批量" ></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="分段:">
<el-input v-model="request.dcFd" type="search" placeholder="分段" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="在建船只:" label-width="105px">
<el-checkbox v-model="request.zjcz" type="search" placeholder="合同号" ></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="11" style="text-align: right">
<el-button type="primary" @click="initList()"></el-button>
<el-button type="success" @click="zx"></el-button>
</el-col>
</el-row>
</el-form>
</el-header>
<Yppfk0 ref="yppfk0" />
<QfxqzxPrint ref="qfxqzxprintRef" v-show="printCompShow" @showPrintComp="showPrintComp" />
</el-container>
</template>
<script>
import {getCzplBase} from "@/api/sjzx/jcsj";
import Yppfk0 from "@/views/jhzxgl/components/Yppfk0.vue";
import QfxqzxPrint from "@/views/jhzxgl/components/QfxqzxPrint.vue";
import {yppZx} from "@/api/jhzxgl/ypp";
export default {
name: "QfzxGL",
name: "Cgjhdh",
components: {QfxqzxPrint, Yppfk0},
data() {
return {
printCompShow:false,
yppTqShow:false,
height: "500px",
list:[],
projectColumns: [
{field: 'cbbm', title: '船号',width: 110},
{ field: 'wgbs', title: '完工标识', width: 80,
slots:{
default: 'wgbsEdit'
},
},
],
qyList:[],
dwList:[],
bfwzList:[],
projectData:[],
request:{
dcCh:'',
dcPl:'',
dcFd:'',
zjcz:true,
},
}
},
created() {
window.addEventListener("resize", this.getHeight);
this.getHeight();
this.initProject()
},
methods: {
zx(){
const data=this.$refs.yppfk0.getSelectQfxq();
if (data.length==0){
this.$message.warning('请选择待执行的数据');
return;
}
yppZx(data).then(res=>{
this.$refs.qfxqzxprintRef.show(res.data)
})
},
showPrintComp(){
this.printCompShow=true
setTimeout(()=>{
this.$print(this.$refs.qfxqzxprintRef)
this.printCompShow=false
},500)
},
initList(){
this.$refs.yppfk0.initXqjh(this.request)
},
initProject(){
getCzplBase({}).then(res=>{
this.projectData=res.data.cbbm
})
},
cellClickEvent({row}){
this.request.dcCh = row.cbbm
this.$refs.xDown4.hidePanel()
},
focusEvent4(){
this.$refs.xDown4.showPanel()
},
keyupEvent4(){
if (this.request.dcCh) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.dcCh.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}
},
getHeight() {
this.height = window.innerHeight - 160;
},
}
};
</script>
<style lang="scss" scoped >
.el-header {
margin: 0;
padding: 5px 0;
height: auto;
}
.el-container {
padding: 0;
margin: 0;
}
.el-main {
padding: 0;
}
.el-col {
padding: 0;
}
.el-aside {
background: #fff;
padding: 0;
}
.el-container {
padding: 0;
}
.el-row {
margin-bottom: 5px;
}
.el-row:last-child {
margin-bottom: 0;
}
.tableStyles {
background: #0a76a4;
}
.my-dropdown {
width: 450px;
height: 250px;
background-color: #fff;
border: 1px solid #dcdfe6;
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
}
::v-deep .mytable .vxe-input {
display: flex !important;
}
::v-deep .el-form-item {
margin-bottom: 0px !important;
}
::v-deep .el-input{
width: auto !important;
}
</style>

@ -53,12 +53,11 @@
:columns="tableColumn"
:data="list"
:custom-config="{ storage: true }"
highlight-current-row
highlight-hover-row
show-overflow
show-header-overflow
@cell-click="cellClickEvent"
>
<!-- show-header-overflow-->
</vxe-grid>
</div>
</el-main>
@ -364,7 +363,7 @@ export default {
return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
},
getHeight() {
this.height = window.innerHeight - 190
this.height = window.innerHeight - 160
},
}

@ -60,13 +60,12 @@
:columns="tableColumn"
:data="list"
:custom-config="{ storage: true }"
highlight-current-row
highlight-hover-row
show-overflow
show-header-overflow
@checkbox-all="selectAllEvent"
@checkbox-change="selectChangeEvent"
>
<!-- show-header-overflow-->
</vxe-grid>
</div>
</el-main>
@ -452,7 +451,7 @@ export default {
return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
},
getHeight() {
this.height = window.innerHeight - 190
this.height = window.innerHeight - 160
},
//
selectAllEvent() {

@ -77,9 +77,9 @@
:columns="tableColumn"
:data="list"
:custom-config="{ storage: true }"
highlight-current-row
highlight-hover-row
show-overflow
show-header-overflow
show-overflows
@checkbox-all="selectAllEvent"
@checkbox-change="selectChangeEvent"
>

@ -5,10 +5,11 @@
<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" type="date" 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" type="date" style="width: 33%"/>
<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" type="month" style="width: 33%;" />
<span style="font-size: 13px;color: #606266; margin-left: 4px;margin-right: 4px"></span>
<!-- <el-input v-model="queryParam.endTime" ></el-input>-->
<el-date-picker v-model="queryParam.endTime" value-format="yyyy/MM/dd" type="month" style="width: 33%" />
</el-form-item>
</el-col>
<el-col :span="9">
@ -38,7 +39,6 @@
:height="height"
:auto-resize="true"
:columns="tableColumn"
highlight-current-row
:data="list"
:custom-config="{ storage: true }"
:edit-config="{
@ -48,8 +48,10 @@
}"
@checkbox-all="selectAllEvent"
@checkbox-change="selectChangeEvent"
highlight-current-row
highlight-hover-row
show-overflow
>
</vxe-grid>
</div>
@ -95,13 +97,12 @@
:height="height"
:auto-resize="true"
:columns="tableColumn2"
highlight-current-row
:data="list2"
:custom-config="{ storage: true }"
:cell-style="cellStyle"
highlight-current-row
highlight-hover-row
show-overflow
show-header-overflow
>
</vxe-grid>
@ -145,6 +146,8 @@
highlight-current-row
:data="list3"
:custom-config="{ storage: true }"
:span-method="rowspanMethod"
:scroll-y="{enabled: false}"
highlight-hover-row
show-overflow
show-header-overflow
@ -261,8 +264,8 @@ export default {
haveTltBoms: [],
activeName: 'first',
queryParam: {
beginTime: '2023/08/01',
endTime: '2023/10/01'
beginTime: '',
endTime: ''
},
list: [],
list1: [],
@ -275,7 +278,7 @@ export default {
tableColumn: [
{type: 'seq', width: 60, title: '序号', fixed: "left"},
{
field: 'dcCh', title: '船号', width: 100,
field: 'dcCh', title: '船号', minWidth: "70",
filters: [{
data: {
checks: [],
@ -291,7 +294,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'dcCh1', title: '目标船号', width: 90,
field: 'dcCh1', title: '目标船号', minWidth: "90",
filters: [{
data: {
checks: [],
@ -307,7 +310,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},//
{
field: 'dcPl', title: '批量', width: 80,
field: 'dcPl', title: '批量', minWidth: "70",
filters: [{
data: {
checks: [],
@ -323,7 +326,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'dcFd', title: '分段号', width: 100,
field: 'dcFd', title: '分段号', minWidth: "150",
filters: [{
data: {
checks: [],
@ -339,7 +342,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'zl', title: '组立', width: 80, formatter: ['dictFormat', 'ZLLB'],
field: 'zl', title: '组立', minWidth: "70", formatter: ['dictFormat', 'ZLLB'],
filters: [{
data: {
checks: [],
@ -355,7 +358,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'jssj', title: '钢料滚动需求期', width: 110,
field: 'jssj', title: '钢料滚动需求期', minWidth: "130",
filters: [{
data: {
checks: [],
@ -497,21 +500,6 @@ export default {
}],
filterRender: {name: 'FilterCombination',}
},
// { field: 'jsqLqb', title: '',width: 100,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
// { field: 'jsqTlt', title: '',width: 80,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
// { field: 'dhqd', title: '',width: 100,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
// { field: 'orderBs', title: '',width: 80,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
// { field: 'arrivalBs', title: '',width: 80,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
{
field: 'jzbs', title: '矫正标识', width: 100,
filters: [{
@ -529,7 +517,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'hxcd', title: '划线长度(米)', width: 100,
field: 'hxcd', title: '划线长度(米)', minWidth: "110",
filters: [{
data: {
checks: [],
@ -545,7 +533,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'hxcdKc', title: '划线空程长度(米)', width: 100,
field: 'hxcdKc', title: '划线空程长度(米)', minWidth: "140",
filters: [{
data: {
checks: [],
@ -561,7 +549,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'qgcd', title: '切割长度(米)', width: 100,
field: 'qgcd', title: '切割长度(米)', minWidth: "120",
filters: [{
data: {
checks: [],
@ -577,7 +565,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'qgcdKc', title: '切割空程长度(米)', width: 100,
field: 'qgcdKc', title: '切割空程长度(米)', minWidth: "140",
filters: [{
data: {
checks: [],
@ -593,7 +581,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'slrq', title: '上料计划日期', width: 100,
field: 'slrq', title: '上料计划日期', minWidth: "120",
filters: [{
data: {
checks: [],
@ -609,7 +597,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'pwrq', title: '抛丸计划日期', width: 100,
field: 'pwrq', title: '抛丸计划日期', minWidth: "120",
filters: [{
data: {
checks: [],
@ -625,7 +613,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'hxrq', title: '划线计划日期', width: 100,
field: 'hxrq', title: '划线计划日期', minWidth: "120",
filters: [{
data: {
checks: [],
@ -641,7 +629,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'qgrq', title: '切割计划日期', width: 100,
field: 'qgrq', title: '切割计划日期', minWidth: "120",
filters: [{
data: {
checks: [],
@ -656,14 +644,10 @@ export default {
}],
filterRender: {name: 'FilterCombination',}
},
// { field: 'slry', title: '',width: 100,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
// { field: 'pw', title: '',width: 100},
{
field: 'jzsb',
title: '矫正设备',
width: 100,
minWidth: "110",
filters: [{
data: {
checks: [],
@ -679,19 +663,10 @@ export default {
filterRender: {name: 'FilterCombination'},
editRender: {name: "$select", options: [], props: {clearable: true}}
},
// { field: 'jzry', title: '',width: 100,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
// { field: 'jzrq', title: '',width: 100,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
// { field: 'pw', title: '',width: 100,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
{
field: 'pwsb',
title: '抛丸设备',
width: 100,
minWidth: "110",
filters: [{
data: {
checks: [],
@ -707,14 +682,10 @@ export default {
filterRender: {name: 'FilterCombination'},
editRender: {name: "$select", options: [], props: {clearable: true}}
},
// { field: 'pwry', title: '',width: 100,
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
{
field: 'hxsb',
title: '划线设备',
width: 100,
minWidth: "110",
filters: [{
data: {
checks: [],
@ -737,7 +708,7 @@ export default {
{
field: 'qgsb',
title: '切割设备',
width: 100,
minWidth: "110",
filters: [{
data: {
checks: [],
@ -757,7 +728,7 @@ export default {
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
{
field: 'pklx', title: '坡口类型', width: 100,
field: 'pklx', title: '坡口类型', minWidth: "110",
filters: [{
data: {
checks: [],
@ -773,7 +744,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'pkcd', title: '坡口长度', width: 100,
field: 'pkcd', title: '坡口长度', minWidth: "110",
filters: [{
data: {
checks: [],
@ -791,7 +762,7 @@ export default {
{
field: 'pksb',
title: '坡口设备',
width: 100,
minWidth: "110",
filters: [{
data: {
checks: [],
@ -808,7 +779,7 @@ export default {
editRender: {name: "$select", options: [], props: {clearable: true,}}
},
{
field: 'pkrq', title: '坡口计划日期', width: 100,
field: 'pkrq', title: '坡口计划日期', minWidth: "130",
filters: [{
data: {
checks: [],
@ -842,7 +813,7 @@ export default {
{
field: 'qjgsb',
title: '曲加工设备',
width: 100,
minWidth: "120",
filters: [{
data: {
checks: [],
@ -862,7 +833,7 @@ export default {
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
// filterRender: { name: 'FilterCombination', }},
{
field: 'qjgrq', title: '曲加工计划日期', width: 100,
field: 'qjgrq', title: '曲加工计划日期', minWidth: "140",
filters: [{
data: {
checks: [],
@ -896,7 +867,7 @@ export default {
{
field: 'dmsb',
title: '打磨设备',
width: 100,
minWidth: "110",
filters: [{
data: {
checks: [],
@ -913,7 +884,7 @@ export default {
editRender: {name: "$select", options: [], props: {clearable: true,}}
},
{
field: 'dmrq', title: '打磨计划日期', width: 100,
field: 'dmrq', title: '打磨计划日期', minWidth: "130",
filters: [{
data: {
checks: [],
@ -929,7 +900,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'gjjsDz', title: '钢加大组结束', width: 100,
field: 'gjjsDz', title: '钢加大组结束', minWidth: "130",
filters: [{
data: {
checks: [],
@ -1025,7 +996,7 @@ export default {
filterRender: {name: 'FilterCombination',}
},
{
field: 'gxsj', title: '数据更新时间', width: 100,
field: 'gxsj', title: '数据更新时间', minWidth: "130",
filters: [{
data: {
checks: [],
@ -1402,7 +1373,7 @@ export default {
filterRender: {name: 'FilterCombination',},
},
{
field: 'dhsl', title: '到货数量', width: 120,
field: 'lhsl', title: '到货数量', width: 120,
filters: [{
data: {
checks: [],
@ -2372,6 +2343,13 @@ export default {
this.getHeight()
this.initBase()
},
watch: {
'queryParam.beginTime'(newValue, Value){
if (newValue){
this.format(newValue);
}
}
},
methods: {
rowClassName({row, rowIndex}) {
if (row.dcCh === '合计') {
@ -2402,7 +2380,7 @@ export default {
rowspanMethod({row, _rowIndex, column, visibleData}) {
//vxe-grid :scroll-y="{enabled: false}"
//
let fields = ['nf', 'yf', 'rq', 'tzxqq'];//
let fields = ['nf', 'yf', 'rq', 'tzxqq','kw','ch',];//
const cellValue = row[column.property];//
if (cellValue && fields.includes(column.property)) {
const prevRow = visibleData[_rowIndex - 1];
@ -2468,7 +2446,7 @@ export default {
}
})
} else {
this.$message.warning('请先将三月明细预排产');
this.$message.warning('请先提取明细');
}
})
},
@ -2536,6 +2514,7 @@ export default {
getCzxx({}).then(res => {
this.dictData = res.data
})
this.queryParam.beginTime = new Date();
},
//1
initList() {
@ -2562,18 +2541,36 @@ export default {
sygdPC() {
this.$store.dispatch('app/closeSideBar', true)
sygdPC().then((res) => {
if (res.data.no_tlt) {
this.selectMbch = res.data
this.haveTltBoms = res.data.haveTltBoms
this.dialogVisible = true;
} else {
this.list = res.data.mxList
if (!res.success){
this.$message.warning(res.message)
}else{
this.list = res.data
if (this.$refs.xGrid) {
this.$refs.xGrid.loadData(this.list)
}
}
// if (res.data.no_tlt) {
// this.selectMbch = res.data
// this.haveTltBoms = res.data.haveTltBoms
// this.dialogVisible = true;
// } else {
// this.list = res.data
// if (this.$refs.xGrid) {
// this.$refs.xGrid.loadData(this.list)
// }
// }
})
this.activeName = 'first'
},
format (val) {
var date = new Date(val); //10*1000131000
date.setMonth(date.getMonth()+2);
var Y = date.getFullYear() + "/";
var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1)+ "/";
var D = date.getDate()<10? "0" +date.getDate():date.getDate();
this.queryParam.endTime=Y + M + D;
}
}
}

@ -1,22 +1,264 @@
<template>
<el-container>
<span style="margin-top: 20px;margin-left: 20px">待开发...</span>
<el-header style="width: 100%">
<el-form ref="requestForm" :model="request" label-width="65px">
<el-row>
<el-col :span="3">
<el-form-item label="船号:">
<vxe-pulldown ref="xDown4" transfer >
<template #default>
<vxe-input
v-model="request.wjwz"
placeholder="船号"
style="height: 28px;
line-height: 28px; width: 150px;"
suffix-icon="vxe-icon--search"
@keyup="keyupEvent4"
@focus="focusEvent4"
/>
</template>
<template #dropdown>
<div class="my-dropdown mytable " style="width: 250px">
<vxe-grid
highlight-hover-row
height="auto"
:data="projectData"
:columns="projectColumns"
@cell-click="cellClickEvent"
show-overflow
>
<template #wgbsEdit="{ row}">
<vxe-checkbox v-model="row.wgbs" checked-value="Y" unchecked-value="N" disabled ></vxe-checkbox>
</template>
</vxe-grid>
</div>
</template>
</vxe-pulldown>
</el-form-item>
</el-col>
<el-col :span="2">
<el-form-item label="在建船只:" label-width="105px">
<el-checkbox v-model="request.zjcz" type="search" placeholder="合同号" ></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="时间范围:" label-width="105px">
<el-col :span="11">
<el-date-picker v-model="request.ksrq" type="date" format="yyyy/MM/dd" value-format="yyyy/MM/dd" placeholder="开始日期" ></el-date-picker>
</el-col>
<el-col style="text-align: center" :span="2"></el-col>
<el-col :span="11">
<el-date-picker v-model="request.jsrq" type="date" format="yyyy/MM/dd" value-format="yyyy/MM/dd" placeholder="结束日期" ></el-date-picker>
</el-col>
</el-form-item>
</el-col>
<el-col :span="13" style="text-align: right">
<el-button type="primary" @click="initList()"></el-button>
</el-col>
</el-row>
</el-form>
</el-header>
<el-container style="padding-top: 10px">
<el-container>
<el-main>
<div class="mytable">
<vxe-grid
id="id"
ref="tableRef"
border
resizable
keep-source
:height="height"
:auto-resize="true"
:columns="tableColumn"
:data="list"
:custom-config="{ storage: true }"
:scroll-y="{ enabled: true }"
highlight-hover-row
>
</vxe-grid>
</div>
</el-main>
</el-container>
</el-container>
</el-container>
</template>
<script>
import {getGhs} from "@/api/sjzx/sbxxWH";
import {getCzplBase} from "@/api/sjzx/jcsj";
import {cgjhdhqk, getList} from "@/api/jhzx/sygd";
export default {
name: "Wzxq",
name: "Cgjhdh",
data() {
return {
height: "500px",
list:[],
projectColumns: [
{field: 'cbbm', title: '船号',width: 110},
{ field: 'wgbs', title: '完工标识', width: 80,
slots:{
default: 'wgbsEdit'
},
},
],
projectData:[],
ShipNoList:[],
ghsList:[],
request:{
ghsbm:'',
wjwz:'',
ddmc:'',
zjcz:true,
xhth:'',
ksrq:'',
jsrq:'',
},
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', },
},
],
}
},
created() {
window.addEventListener("resize", this.getHeight);
this.getHeight();
this.initGhs();
this.initProject()
},
methods: {
initList(){
getList(this.request).then((res) => {
this.list = res.data
})
},
initProject(){
getCzplBase({}).then(res=>{
console.log(res)
this.projectData=res.data.cbbm
})
},
initGhs(){
getGhs().then(res=>{
this.ghsList=res.data
})
},
cellClickEvent({row}){
this.request.wjwz = row.cbbm
this.$refs.xDown4.hidePanel()
},
focusEvent4(){
this.$refs.xDown4.showPanel()
},
keyupEvent4(){
if (this.request.wjwz) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.wjwz.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}
},
getHeight() {
this.height = window.innerHeight - 160;
},
}
};
</script>
<style lang="scss" scoped >
.el-header {
margin: 0;
padding: 5px 0;
height: auto;
}
.el-container {
padding: 0;
margin: 0;
}
.el-main {
padding: 0;
}
.el-col {
padding: 0;
}
.el-aside {
background: #fff;
padding: 0;
}
.el-container {
padding: 0;
}
.el-row {
margin-bottom: 5px;
}
.el-row:last-child {
margin-bottom: 0;
}
.tableStyles {
background: #0a76a4;
}
.my-dropdown {
width: 450px;
height: 250px;
background-color: #fff;
border: 1px solid #dcdfe6;
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
}
::v-deep .mytable .vxe-input {
display: flex !important;
}
::v-deep .el-form-item {
margin-bottom: 0px !important;
}
::v-deep .el-input{
width: auto !important;
}
</style>

@ -220,6 +220,7 @@ export default {
},
//
getTableList(data) {
Object.keys(data).forEach((item, index) => {
data[item].sort(this.compare("nf"));
data[item].sort(this.compare("yf"));
@ -384,6 +385,7 @@ export default {
},
//
total(list, field) {
let count = 0;
list.forEach((item) => {
if (item !== "dcCh" && item !== "zt") {

@ -0,0 +1,369 @@
<template>
<!-- 月度计划管理 -->
<el-container>
<el-header style="width: 100%; height: 50px;font-size: 12px">
<el-form :inline="true" label-width="65px" label-position="left">
<el-row>
<el-col :span="15">
<el-form-item label="月份:">
<el-date-picker v-model="queryParam.yf" value-format="yyyy/MM/dd" type="month" style="width: 80%;" />
</el-form-item>
<el-form-item label="状态:">
<el-select v-model="queryParam.zt" placeholder="状态" clearable>
<el-option
v-for="item in statusOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="9">
<el-form-item style="float: right" >
<el-button type="success" @click="initList"></el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-header>
<el-container style="padding-top: 0px">
<el-main>
<el-tabs v-model="activeName" @tab-click="handleClick">
<div class="mytable">
<vxe-grid
id="id"
ref="xGrid"
border
resizable
keep-source
:align="'center'"
:height="height"
:auto-resize="true"
:columns="tableColumn"
:data="list"
:custom-config="{ storage: true }"
highlight-current-row
highlight-hover-row
show-overflow
>
</vxe-grid>
</div>
</el-tabs>
</el-main>
</el-container>
</el-container>
</template>
<script>
import { getCzxx} from '@/api/jhzx/qfxq'
import {getYdjh, tjydjh, getCnsb,hz} from '@/api/jhzx/sygd'
import { mapGetters } from 'vuex'
import XEUtils from 'xe-utils'
import { getToken } from '@/utils/auth'
import ScrollPane from "@/layout/components/TagsView/ScrollPane.vue";
export default {
name:'YdjhzxCX',
components: {ScrollPane},
data() {
return {
statusOptions:[],
dialogVisible:false,
title1:'修改明细信息',
selectMbch:[],
mxList:[],
haveTltBoms:[],
activeName: 'first',
queryParam: {
dcch:'',
yf:'',
zt: '0'
},
list: [],
checkedList: [],
heads: { token: getToken() },
dictData:[],
sbxx:{},
height: '500px',
tableColumn:[
{ type: 'seq', width: 60, title: '序号'},
{ field: 'zt', title: '状态',width: 70,formatter: ['dictFormat','SYZT'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'dcCh', title: '船号',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'dcCh1', title: '目标船号',width: 90,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},//
{ field: 'dcPl', title: '批量',width: 80,
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: 'zl', title: '组立',width: 80,formatter: ['dictFormat','ZLLB'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'jssj', title: '前方需求时间',width: 110,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'lqlb', title: '领取类型',width: 90,formatter: ['dictFormat','CLlQ'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'lx', title: '物资类型',width: 90,formatter:this.formatterLx,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'kw', title: '跨位',width: 80,formatter: ['dictFormat','QGKW'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'tzbh', title: '套料图号',width: 90,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'wpgg', title: '规格',width: 80,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'bcshzl', title: '重量',width: 80,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'wpxh', title: '材质',width: 80,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],},
{ field: 'xcms', title: '型材米数',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'jzbs', title: '矫正标识',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'hxcd', title: '划线长度(米)',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'hxcdKc', title: '划线空程长度(米)',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'qgcd', title: '切割长度(米)',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'qgcdKc', title: '切割空程长度(米)',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'slrq', title: '上料计划日期',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'pwrq', title: '抛丸计划日期',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'hxrq', title: '划线计划日期',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'qgrq', title: '切割计划日期',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'jzsb', title: '矫正设备',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' },editRender: { name: "$select",options: [],props: { clearable: true} }},
{ field: 'pwsb', title: '抛丸设备',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' },editRender: { name: "$select",options: [],props: { clearable: true}}},
{ field: 'hxsb', title: '划线设备',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },editRender: { name: "$select",options: [],props: { clearable: true,}}},
{ field: 'qgsb', title: '切割设备',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },editRender: { name: "$select",options: [],props: { clearable: true,}}},
{ field: 'pklx', title: '坡口类型',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'pkcd', title: '坡口长度',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'pksb', title: '坡口设备',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },editRender: { name: "$select",options: [],props: { clearable: true,}}},
{ field: 'pkrq', title: '坡口计划日期',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'qbs', title: '曲标识',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'qjgsb', title: '曲加工设备',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },editRender: { name: "$select",options: [],props: { clearable: true,}}},
{ field: 'qjgrq', title: '曲加工计划日期',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'dmcd', title: '打磨长度',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'dmsb', title: '打磨设备',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },editRender: { name: "$select",options: [],props: { clearable: true,}}},
{ field: 'dmrq', title: '打磨计划日期',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'gjjsDz', title: '钢加大组结束',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'gjjsXz', title: '钢加小组结束',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'ljsl', title: '零件数量',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'gjks', title: '钢加开始',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'dcCh2', title: '本船号',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},//
{ field: 'gxsj', title: '数据更新时间',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
],
}
},
computed: {
...mapGetters(['name', 'bmbm'])
},
created() {
window.addEventListener('resize', this.getHeight)
this.getHeight()
this.initBase()
this.initgxList()
},
methods: {
initgxList(){
const dict=window.localStorage.getItem( 'SYZT');
const status =JSON.parse(dict)
const testList = [];
for (let i = 0; i < status.length; i++) {
const temp = {
label: status[i].bmsm,
value: status[i].bm,
};
testList.push(temp);
}
this.statusOptions= testList;
},
//
formatterLx({cellValue}){
if(cellValue==='B'){
return '板材'
}
if (cellValue==='X'){
return '型材'
}
return cellValue
},
//
initBase(){
getCzxx({}).then(res=>{
this.dictData = res.data
})
getCnsb().then(res=>{
this.sbxx = res.data
const tableRef = this.$refs.xGrid.getColumnByField('dcCh');
})
var date = new Date();
var Y = date.getFullYear() + "/";
var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1)+ "/";
var D = date.getDate()<10? "0" +date.getDate():date.getDate();
this.queryParam.yf = Y + M + D;
},
//1
initList() {
if (this.queryParam.yf === '') {
this.$message.warning('选择时间范围')
return
}
getYdjh(this.queryParam).then((res) => {
this.list = res.data
if (this.$refs.xGrid) {
this.$refs.xGrid.loadData(this.list)
}
})
this.activeName='first'
},
formatDate ({ cellValue }) {
return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
},
getHeight() {
this.height = window.innerHeight - 160
},
}
}
</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>

@ -92,7 +92,6 @@
highlight-current-row
highlight-hover-row
show-overflow
@cell-click="cellClickEvent_xb"
>
</vxe-grid>
</div>
@ -117,7 +116,6 @@
highlight-hover-row
show-overflow
show-header-overflow
@cell-click="cellClickEvent_xb"
>
</vxe-grid>
</div>
@ -141,7 +139,6 @@
highlight-hover-row
show-overflow
show-header-overflow
@cell-click="cellClickEvent_xb"
>
</vxe-grid>
</div>
@ -165,7 +162,6 @@
highlight-hover-row
show-overflow
show-header-overflow
@cell-click="cellClickEvent_xb"
>
</vxe-grid>
</div>
@ -173,57 +169,18 @@
</el-tabs>
</el-main>
</el-container>
<!-- 弹出层展示明细-->
<vxe-modal v-model="dialogVisible" width="80%" :title="title">
<template #default>
<el-row class="query_wrapper">
<el-row>
<span style="font-size: 13px;color: red; margin-left: 4px;"> * 表中红色数据取自其他船只</span>
<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>
</el-container>
</template>
<script>
import router from "@/router";
import { getCzxx} from '@/api/jhzx/qfxq'
import {getYdjh, tjydjh, getCnsb} from '@/api/jhzx/sygd'
import { getCzxx} from '@/api/jhzx/qfxq'
import {getYdjh, tjydjh, getCnsb,hz} from '@/api/jhzx/sygd'
import { mapGetters } from 'vuex'
import XEUtils from 'xe-utils'
import { getToken } from '@/utils/auth'
import ScrollPane from "@/layout/components/TagsView/ScrollPane.vue";
import {emSbjbbZM} from "@/api/sjzx/sbcnWH";
export default {
name:'YdjhzxGL',
components: {ScrollPane},
@ -236,7 +193,9 @@ export default {
haveTltBoms:[],
activeName: 'first',
queryParam: {
yf:''
dcch:'',
yf:'',
zt: '0'
},
list: [],
list2: [],
@ -250,8 +209,8 @@ export default {
sbxx:{},
height: '500px',
tableColumn:[
{ type: 'seq', width: 60, title: '序号',fixed: "left"},
{ type: 'checkbox', width: 50 ,},
{ type: 'seq', width: 60, title: '序号'},
{ field: 'dcCh', title: '船号',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
@ -959,104 +918,29 @@ export default {
this.initBase()
},
methods: {
tjydjh(){
if (this.checkedList.length<1){
this.$message.warning('请选择要提交的信息!');
return
}
tjydjh(this.checkedList).then((res)=>{
this.initList()
})
},
//
symxhz(){
if (this.list.length<1){
this.$message.warning('请先查询需要汇总的信息!');
return
}
symxhz(this.list).then((res) => {
hz(this.list).then((res) => {
if (res.data) {
this.list2=res.data.plList
this.list3=res.data.tzList
this.list4=res.data.dhList
this.list5=res.data.kwList
}
})
},
//
rowspanMethod({ row, _rowIndex, column, visibleData }){
//vxe-grid :scroll-y="{enabled: false}"
//
let fields = ['nf','yf','rq','tzxqq'];//
const cellValue = row[column.property];//
if (cellValue && fields.includes(column.property)) {
const prevRow = visibleData[_rowIndex - 1];
let nextRow = visibleData[_rowIndex + 1];
if (prevRow && prevRow[column.property] === cellValue) {
//
return { rowspan: 0, colspan: 0 };
} else {
//
let countRowspan = 1;
while (nextRow && nextRow[column.property] === cellValue) {
nextRow = visibleData[++countRowspan + _rowIndex];
}
if (countRowspan > 1) {
return { rowspan: countRowspan, colspan: 1 };
}
}
}
},
//
cellClickEvent_xb(row){
this.mxList=row.row.mxList
this.dialogVisible=true
// const tableRef = this.$refs.tableRef1;
// this.sbmx1(tableRef)
},
//
sbmx1(tableRef){
this.sbmx("jzsb",this.sbxx.jp,tableRef)
this.sbmx("pwsb",this.sbxx.pw,tableRef)
this.sbmx("hxsb",this.sbxx.hx,tableRef)
this.sbmx("qgsb",this.sbxx.qg,tableRef)
this.sbmx("pksb",this.sbxx.pk,tableRef)
this.sbmx("dmsb",this.sbxx.dm,tableRef)
this.sbmx("qjgsb",this.sbxx.qjg,tableRef)
},
//
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'
}
}
},
//
cellStyle1({ row }){
if (row.dcCh1) {
return {
color: 'red',
cursor:'pointer'
}
}
},
//
headerCellStyle({ column }){
let fields = ['jzsb','pwsb','hxsb','qgsb','pksb','dmsb','qjgsb'];
if (fields.includes(column.field)) {
return {
backgroundColor: 'lightblue',
cursor:'pointer'
}
}
},
//
tqSygd(){
tqSygd().then((res) => {
if (res.data) {
router.push({
name: 'SygdWH',
params: {
list: res.data
}
})
}else {
this.$message.warning('请先将三月明细预排产!');
this.list2=res.data.tzjhList
this.list3=res.data.dhList
this.list4=res.data.slList
this.list5=res.data.pwList
this.list6=res.data.qgList
}
})
},
@ -1070,24 +954,11 @@ export default {
const records = this.$refs.xGrid.getCheckboxRecords();
this.checkedList = records;
},
//
saveByDcch(){
saveByDcch(this.selectMbch).then((res) => {
this.list = res.data
if (this.$refs.xGrid) {
this.$refs.xGrid.loadData(this.list)
}
})
this.dialogVisible=false;
},
//
save(){
this.$message.warning('保存成功!');
this.dialogVisible=false;
// saveMxList(this.mxList).then((res) => {
//
// })
},
//
handleClick(tab, event) {
@ -1131,28 +1002,17 @@ export default {
getCnsb().then(res=>{
this.sbxx = res.data
const tableRef = this.$refs.xGrid.getColumnByField('dcCh');
// this.sbmx1(tableRef)
// this.sbmx("jzsb",this.sbxx.jp,tableRef)
})
},
sbmx(sbmc,list,tableRef){
var arr = [];
const sb = tableRef.getColumnByField(sbmc);
for (let i = 0; i < list.length; i++) {
const temp = {
label: list[i].sbmc,
value: list[i].sbbh,
};
arr.push(temp);
}
sb.editRender.options = arr;
var date = new Date();
var Y = date.getFullYear() + "/";
var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1)+ "/";
var D = date.getDate()<10? "0" +date.getDate():date.getDate();
this.queryParam.yf = Y + M + D;
},
//1
initList() {
if (this.queryParam.beginTime === ''||this.queryParam.endTime === '') {
if (this.queryParam.yf === '') {
this.$message.warning('选择时间范围')
return
}
@ -1171,15 +1031,7 @@ export default {
getHeight() {
this.height = window.innerHeight - 230
},
//
tjydjh() {
tjydjh().then((res) => {
if (res){
this.list=res.data
}
})
this.activeName='first'
}
}
}
</script>

@ -12,7 +12,7 @@
<el-col :span="9">
<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="ydjhxf"></el-button>
</el-form-item>
</el-col>
</el-row>
@ -35,7 +35,6 @@
:height="height"
:auto-resize="true"
:columns="tableColumn"
highlight-current-row
:data="list"
:custom-config="{ storage: true }"
:edit-config="{
@ -45,6 +44,7 @@
}"
@checkbox-all="selectAllEvent"
@checkbox-change="selectChangeEvent"
highlight-current-row
highlight-hover-row
show-overflow
>
@ -63,16 +63,11 @@
:height="height"
:auto-resize="true"
:columns="tableColumn2"
highlight-current-row
:data="list2"
:custom-config="{ storage: true }"
:span-method="rowspanMethod"
:cell-style="cellStyle"
:scroll-y="{enabled: false}"
highlight-current-row
highlight-hover-row
show-overflow
show-header-overflow
@cell-click="cellClickEvent_xb"
>
</vxe-grid>
</div>
@ -93,10 +88,9 @@
:data="list3"
:custom-config="{ storage: true }"
:cell-style="cellStyle"
highlight-current-row
highlight-hover-row
show-overflow
show-header-overflow
@cell-click="cellClickEvent_xb"
>
</vxe-grid>
</div>
@ -121,12 +115,11 @@
highlight-hover-row
show-overflow
show-header-overflow
@cell-click="cellClickEvent_xb"
>
</vxe-grid>
</div>
</el-tab-pane>
<el-tab-pane label="切割信息" name="fifth">
<el-tab-pane label="抛丸信息" name="fifth">
<div class="mytable">
<vxe-grid
id="id5"
@ -145,7 +138,29 @@
highlight-hover-row
show-overflow
show-header-overflow
@cell-click="cellClickEvent_xb"
>
</vxe-grid>
</div>
</el-tab-pane>
<el-tab-pane label="切割信息" name="sixth">
<div class="mytable">
<vxe-grid
id="id6"
ref="xGrid6"
border
resizable
keep-source
:align="'center'"
:height="height"
:auto-resize="true"
:columns="tableColumn7"
highlight-current-row
:data="list6"
:custom-config="{ storage: true }"
:cell-style="cellStyle"
highlight-hover-row
show-overflow
show-header-overflow
>
</vxe-grid>
</div>
@ -153,54 +168,20 @@
</el-tabs>
</el-main>
</el-container>
<!-- 弹出层展示明细-->
<vxe-modal v-model="dialogVisible" width="80%" :title="title">
<template #default>
<el-row class="query_wrapper">
<el-row>
<span style="font-size: 13px;color: red; margin-left: 4px;"> * 表中红色数据取自其他船只</span>
<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 }"
@checkbox-all="selectAllEvent"
@checkbox-change="selectChangeEvent"
:cell-style="cellStyle1"
:header-cell-style="headerCellStyle"
highlight-hover-row
show-overflow
>
</vxe-grid>
</div>
</template>
</vxe-modal>
</el-container>
</template>
<script>
import router from "@/router";
import { getCzxx} from '@/api/jhzx/qfxq'
import {getList, sygdPC, saveByDcch, tqSygd, symxhz, getCnsb, saveMxList} from '@/api/jhzx/sygd'
import {getCzxx, qfxqTJ} from '@/api/jhzx/qfxq'
import {getYdjh, ydjhxf, getCnsb,hz} from '@/api/jhzx/sygd'
import { mapGetters } from 'vuex'
import XEUtils from 'xe-utils'
import { getToken } from '@/utils/auth'
import ScrollPane from "@/layout/components/TagsView/ScrollPane.vue";
import {emSbjbbZM} from "@/api/sjzx/sbcnWH";
export default {
name:'YdjhzxXF',
name:'YdjhzxGL',
components: {ScrollPane},
data() {
return {
@ -211,21 +192,24 @@ export default {
haveTltBoms:[],
activeName: 'first',
queryParam: {
yf:''
dcch:'',
yf:'',
zt:'1'
},
list: [],
list2: [],
list3: [],
list4: [],
list5: [],
list6: [],
checkedList: [],
heads: { token: getToken() },
dictData:[],
sbxx:{},
height: '500px',
tableColumn:[
{ type: 'seq', width: 60, title: '序号',fixed: "left"},
{ type: 'checkbox', width: 50 ,},
{ type: 'seq', width: 60, title: '序号'},
{ field: 'dcCh', title: '船号',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
@ -241,7 +225,7 @@ export default {
{ field: 'zl', title: '组立',width: 80,formatter: ['dictFormat','ZLLB'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'jssj', title: '组立结束时间',width: 110,
{ field: 'jssj', title: '前方需求时间',width: 110,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'lqlb', title: '领取类型',width: 90,formatter: ['dictFormat','CLlQ'],
@ -360,88 +344,323 @@ export default {
],
tableColumn2: [
{ type: 'seq', width: 60, title: '序号',fixed: "left"},
{ field: 'tzxqq', title: '图纸需求期',width: 180,
{ field: 'tzzt', title: '图纸状态', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'dcCh', title: '船号',width: 100,
filterRender: { name: 'FilterCombination', },
},
{ field: 'czbh', title: '船号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'dcPl', title: '批量',width: 100,
filterRender: { name: 'FilterCombination', },
},
{ field: 'pl', title: '批量', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'dcFd', title: '分段',width: 100,
filterRender: { name: 'FilterCombination', },
},
{ field: 'fd', title: '分段', width: 150,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'xfqLqb', title: '领取表下发 ',width: 180,
filterRender: { name: 'FilterCombination', },
},
{ field: 'lqbxfrq', title: '领取表下发日期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'jsqLqb', title: '领取表接收',width: 180,
filterRender: { name: 'FilterCombination', },
},
{ field: 'lqbjsrq', title: '领取表接收日期', width: 150,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'xfqTlt', title: '套料图下发 ',width: 180,
filterRender: { name: 'FilterCombination', },
},
{ field: 'tltxfrq', title: '套料图下发日期', width: 150,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'jsqTlt', title: '套料图接收',width: 180,
filterRender: { name: 'FilterCombination', },
},
{ field: 'tltjsrq', title: '套料图接收日期', width: 150,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
filterRender: { name: 'FilterCombination', },
},
{ field: 'qgxqrq', title: '切割需求日期', width: 150,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qfxqrqxz', title: '前方需求小组期', width: 150,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qfxqrqdz', title: '前方需求大组期', width: 150,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
tableColumn3:[
{ type: 'seq', width: 60, title: '序号',fixed: "left"},
{ field: 'dcCh', title: '船号',width: 100,
{ field: 'czbh', title: '船号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'dcPl', title: '批量',width: 100,
filterRender: { name: 'FilterCombination', },
},
{ field: 'dhqdh', title: '订货清单号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'dhqd', title: '订货清单号',width: 150,
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpcz', title: '物品材质', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'rkxh', title: '材质',width: 100,
filterRender: { name: 'FilterCombination', },
},
{ field: 'hd', title: '厚度', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'wphd', title: '厚度',width: 100,
filterRender: { name: 'FilterCombination', },
},
{ field: 'kd', title: '宽度', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'wpkd', title: '宽度',width: 100,
filterRender: { name: 'FilterCombination', },
},
{ field: 'cd', title: '长度', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'wpcd', title: '长度',width: 100,
filterRender: { name: 'FilterCombination', },
},
{ field: 'xqsl', title: '数量', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'hdsl', title: '到货数量',width: 120,
filterRender: { name: 'FilterCombination', },
},
{ field: 'slxqrq', title: '上料需求日期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: 'gcxqq', title: '钢材需求期',width: 120,
filterRender: { name: 'FilterCombination', },
},
{ field: 'qfxqrqxz', title: '前方需求小组期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
filterRender: { name: 'FilterCombination', },
},
{ field: 'qfxqrqdz', title: '前方需求大组期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'hth', title: '合同号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xhth', title: '小合同号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dhsl', title: '到货数量', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
tableColumn4:[
{ type: 'seq', width: 60, title: '序号',fixed: "left"},
{ field: '', title: '钢料需求期',width: 200,
{ field: 'czbh', title: '船号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: '', title: '上料位置',width: 200,
filterRender: { name: 'FilterCombination', },
},
{ field: 'pl', title: '批量', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: '', title: '上料张数',width: 200,
filterRender: { name: 'FilterCombination', },
},
{ field: 'fd', title: '分段', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
filterRender: { name: 'FilterCombination', },
},
{ field: 'zl', title: '组立', width: 100,formatter: ['dictFormat','ZLLB'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'lqlb', title: '领取类别', width: 100,formatter: ['dictFormat','CLlQ'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'kw', title: '跨位', width: 100,formatter: ['dictFormat','QGKW'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'tlth', title: '套料图号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpgg', title: '规格', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpcz', title: '材质', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpzl', title: '重量', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'hth', title: '合同号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xhth', title: '小合同号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'lph', title: '炉批号/物料号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'kwh', title: '库存垛位', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'cs', title: '层数', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'jpbs', title: '校平标识', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'slfzry', title: '上料负责人', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'slwz', title: '上料位置', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'sljhrq', title: '上料计划期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qfxqrqxz', title: '前方需求小组期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qfxqrqdz', title: '前方需求大组期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
tableColumn5:[
{ type: 'seq', width: 60, title: '序号',fixed: "left"},
{ field: '', title: '切割日期',width: 200,
{ field: 'czbh', title: '船号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: '', title: '跨位',width: 200,
filterRender: { name: 'FilterCombination', },
},
{ field: 'pl', title: '批量', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: '', title: '切割设备',width: 200,
filterRender: { name: 'FilterCombination', },
},
{ field: 'fd', title: '分段', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
{ field: '', title: '切割张数',width: 200,
filterRender: { name: 'FilterCombination', },
},
{ field: 'zl', title: '组立', width: 100,formatter: ['dictFormat','ZLLB'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
filterRender: { name: 'FilterCombination', },
},
{ field: 'lqlb', title: '领取类别', width: 100,formatter: ['dictFormat','CLlQ'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'kw', title: '跨位', width: 100,formatter: ['dictFormat','QGKW'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'tlth', title: '套料图号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpgg', title: '规格', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpcz', title: '材质', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpzl', title: '重量', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'pwwz', title: '抛丸位置', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'pwjhrq', title: '抛丸计划日期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qfxqrqxz', title: '前方需求小组期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qfxqrqdz', title: '前方需求大组期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'sljhwgrq', title: '上料计划完工期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'pwfzr', title: '抛丸负责人', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'jpbs', title: '校平标识', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
tableColumn6:[
{ type: 'seq', width: 60, title: '序号',fixed: "left"},
@ -580,6 +799,113 @@ export default {
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},
],
tableColumn7:[
{ type: 'seq', width: 60, title: '序号',fixed: "left"},
{ field: 'czbh', title: '船号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'pl', title: '批量', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'fd', title: '分段', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zl', title: '组立', width: 100,formatter: ['dictFormat','ZLLB'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'lqlb', title: '领取类别', width: 100,formatter: ['dictFormat','CLlQ'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'kw', title: '跨位', width: 100,formatter: ['dictFormat','QGKW'],
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'tlth', title: '套料图号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpgg', title: '规格', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpcz', title: '材质', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpzl', title: '重量', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qgjhrq', title: '切割计划期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qfxqrqxz', title: '前方需求小组期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qfxqrqdz', title: '前方需求大组期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'pwjhwgrq', title: '抛丸计划完工期', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qgfzry', title: '切割负责人', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'hxsbbh', title: '划线设备编号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'hxcd', title: '划线长度', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'hxkccd', title: '划线空程长度', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qgsbbh', title: '切割设备编号', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qgcd', title: '切割长度', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qgkccd', title: '切割空程长度', width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
}
},
computed: {
@ -591,104 +917,32 @@ export default {
this.initBase()
},
methods: {
//
symxhz(){
if (this.list.length<1){
this.$message.warning('请先查询需要汇总的信息!');
ydjhxf(){
let obj=this.$refs.xGrid.getCheckboxRecords()
if(obj.length<=0){
return
}
symxhz(this.list).then((res) => {
if (res.data) {
this.list2=res.data.plList
this.list3=res.data.tzList
this.list4=res.data.dhList
this.list5=res.data.kwList
ydjhxf(obj).then(res=> {
if (res.success) {
this.initList()
}
})
},
//
rowspanMethod({ row, _rowIndex, column, visibleData }){
//vxe-grid :scroll-y="{enabled: false}"
//
let fields = ['nf','yf','rq','tzxqq'];//
const cellValue = row[column.property];//
if (cellValue && fields.includes(column.property)) {
const prevRow = visibleData[_rowIndex - 1];
let nextRow = visibleData[_rowIndex + 1];
if (prevRow && prevRow[column.property] === cellValue) {
//
return { rowspan: 0, colspan: 0 };
} else {
//
let countRowspan = 1;
while (nextRow && nextRow[column.property] === cellValue) {
nextRow = visibleData[++countRowspan + _rowIndex];
}
if (countRowspan > 1) {
return { rowspan: countRowspan, colspan: 1 };
}
}
}
},
//
cellClickEvent_xb(row){
this.mxList=row.row.mxList
this.dialogVisible=true
// const tableRef = this.$refs.tableRef1;
// this.sbmx1(tableRef)
},
//
sbmx1(tableRef){
this.sbmx("jzsb",this.sbxx.jp,tableRef)
this.sbmx("pwsb",this.sbxx.pw,tableRef)
this.sbmx("hxsb",this.sbxx.hx,tableRef)
this.sbmx("qgsb",this.sbxx.qg,tableRef)
this.sbmx("pksb",this.sbxx.pk,tableRef)
this.sbmx("dmsb",this.sbxx.dm,tableRef)
this.sbmx("qjgsb",this.sbxx.qjg,tableRef)
},
//
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'
}
}
},
//
cellStyle1({ row }){
if (row.dcCh1) {
return {
color: 'red',
cursor:'pointer'
}
}
},
//
headerCellStyle({ column }){
let fields = ['jzsb','pwsb','hxsb','qgsb','pksb','dmsb','qjgsb'];
if (fields.includes(column.field)) {
return {
backgroundColor: 'lightblue',
cursor:'pointer'
}
//
symxhz(){
if (this.list.length<1){
this.$message.warning('请先查询需要汇总的信息!');
return
}
},
//
tqSygd(){
tqSygd().then((res) => {
hz(this.list).then((res) => {
if (res.data) {
router.push({
name: 'SygdWH',
params: {
list: res.data
}
})
}else {
this.$message.warning('请先将三月明细预排产!');
this.list2=res.data.tzjhList
this.list3=res.data.dhList
this.list4=res.data.slList
this.list5=res.data.pwList
this.list6=res.data.qgList
}
})
},
@ -702,24 +956,11 @@ export default {
const records = this.$refs.xGrid.getCheckboxRecords();
this.checkedList = records;
},
//
saveByDcch(){
saveByDcch(this.selectMbch).then((res) => {
this.list = res.data
if (this.$refs.xGrid) {
this.$refs.xGrid.loadData(this.list)
}
})
this.dialogVisible=false;
},
//
save(){
this.$message.warning('保存成功!');
this.dialogVisible=false;
// saveMxList(this.mxList).then((res) => {
//
// })
},
//
handleClick(tab, event) {
@ -763,32 +1004,21 @@ export default {
getCnsb().then(res=>{
this.sbxx = res.data
const tableRef = this.$refs.xGrid.getColumnByField('dcCh');
// this.sbmx1(tableRef)
// this.sbmx("jzsb",this.sbxx.jp,tableRef)
})
},
sbmx(sbmc,list,tableRef){
var arr = [];
const sb = tableRef.getColumnByField(sbmc);
for (let i = 0; i < list.length; i++) {
const temp = {
label: list[i].sbmc,
value: list[i].sbbh,
};
arr.push(temp);
}
sb.editRender.options = arr;
var date = new Date();
var Y = date.getFullYear() + "/";
var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1)+ "/";
var D = date.getDate()<10? "0" +date.getDate():date.getDate();
this.queryParam.yf = Y + M + D;
},
//1
initList() {
if (this.queryParam.beginTime === ''||this.queryParam.endTime === '') {
if (this.queryParam.yf === '') {
this.$message.warning('选择时间范围')
return
}
getList(this.queryParam).then((res) => {
getYdjh(this.queryParam).then((res) => {
this.list = res.data
if (this.$refs.xGrid) {
this.$refs.xGrid.loadData(this.list)
@ -801,25 +1031,9 @@ export default {
return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
},
getHeight() {
this.height = window.innerHeight - 200
this.height = window.innerHeight - 230
},
//
sygdPC() {
this.$store.dispatch('app/closeSideBar',true)
sygdPC().then((res) => {
if(res.data.no_tlt){
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'
}
}
}
</script>

@ -0,0 +1,139 @@
<template>
<div ref="_printRef" class="print" style="width:756px;">
<div v-for="(map,index) in data" :key="index" :style="{width:'100%',marginTop:(index+1)%2===0?'40px':'0px'}">
<div style="width: 100%;position: relative">
<div style="width: 100%;text-align: center;line-height: 40px;font-size: 20px;font-weight: bold">大连船舶重工集团钢加有限公司</div>
<div style="width: 100%;text-align: center;line-height: 30px;font-size: 16px;font-weight: bold">配送交接单</div>
<div style="line-height: 20px">编号: {{ map.bh }}</div>
<div class="table-head">
<span style="width:4%;">序号</span>
<span style="width:11%;">船号</span>
<span style="width:9%;">批号</span>
<span style="width:13%;">托盘表号</span>
<span style="width:16%;">附件名称</span>
<span style="width:23.5%;">图号/规格</span>
<span style="width:7%;">材质</span>
<span style="width:4%;">数量</span>
<span style="width:10.1%;">入库地点</span>
</div>
<div class="table-content" v-for="(item,index) in map.list">
<span style="width:4%;text-align: center;">{{ item.jhxh }}</span>
<span style="width:11%;text-align: center;">{{ item.czbh }}</span>
<span style="width:9%;text-align: center;">{{ item.ph }}</span>
<span style="width:13%;text-align: center;">{{ item.tpbh }}</span>
<span style="width:16%;text-align: center;">{{ item.wpmc }}</span>
<span style="width:23.5%;text-align: center;">{{ item.wpgg }}</span>
<span style="width:7%;text-align: center;">{{ item.wpxh }}</span>
<span style="width:4%;text-align: center;">{{ item.pssl }}</span>
<span style="width:10.1%;text-align: center;">{{ item.ckh }}</span>
</div>
<div class="table-foot" style="border:1px solid">
<span colspan="3" style="text-align: left;padding-left: 15px;border-right: 0">交货人: {{ map.psry }}</span>
<span colspan="3" style="text-align: right;margin-left: 100px">
<span style="margin-left: 25px"> </span>
</span>
<span style="text-align: center"> 合计: </span>
<span style="text-align: center"> {{ map.count }}</span>
</div>
<div style="font-size: 18px;margin-top: 2px">
<span style="margin-left: 5px">质检员:</span>
<span style="margin-left: 30%">收货单位:</span>
<span style="margin-left: 30%">收货人:</span>
</div>
</div>
<div v-if="index>0&&((index+1)%2===0)" class="pageEnd"></div>
</div>
</div>
</template>
<script>
export default {
name:'QfxqzxPrint',
data(){
return {
data:[],
}
},
methods:{
show(_data){
//
//
const pageSize=7;
const tmpData=[]
// for (const item of _data) {
// if (item.list.length>pageSize){
// const _arr=this.sliceToPage(item.list,pageSize);
// for (const _item of _arr) {
// const tmpItem=JSON.parse(JSON.stringify(item))
// tmpItem.list=_item
// const o=pageSize-_item.length
// for(let i=0;i<o;i++){
// _item.push({})
// }
// tmpData.push(tmpItem)
// }
// }else{
// const o=pageSize-item.list.length
// for(let i=0;i<o;i++){
// item.list.push({})
// }
// tmpData.push(item)
// }
// }
tmpData.push({})
this.data=tmpData
this.$emit('showPrintComp')
},
sliceToPage(data,len){
let index=0,_newArr=[]
while (index<data.length){
let size=len;
if ((index+len)>=data.length){
size=data.length-index;
}
_newArr.push(data.slice(index, index += size));
}
return _newArr;
}
}
}
</script>
<style>
.table-head span{
font-size: 14px;
text-align: center;
display: inline-block;
border: 1px solid;
}
.table-content span{
display: inline-block;
font-size: 14px;
text-align: center;
border: 1px solid;
height: 40px;
vertical-align:middle;
word-break: normal;
white-space: pre-wrap;
word-wrap: break-word;
overflow-y: hidden;
}
.QRCode{
width:110px;
position: absolute;
left:610px;
/*top:10px;*/
}
@media print {
.noPrint {
display: none;
}
.pageEnd {
page-break-after: always;
}
}
</style>

@ -0,0 +1,475 @@
<template>
<vxe-modal v-model="dialogVisible" title="前方需求计划" width="1450" height="auto" remember>
<el-container>
<el-header style="width: 100%; height: 35px;font-size: 12px">
<el-form :inline="true" label-width="45px" label-position="left">
<el-row >
<el-col :span="15" >
<el-form-item label="船号:">
<vxe-pulldown ref="xDown4" transfer >
<template #default>
<vxe-input
v-model="queryParam.dcCh"
placeholder="船号"
style="height: 28px;
line-height: 28px; width: 150px;"
suffix-icon="vxe-icon--search"
@keyup="keyupEvent4"
@focus="focusEvent4"
/>
</template>
<template #dropdown>
<div class="my-dropdown mytable " style="width: 250px">
<vxe-grid
highlight-hover-row
height="auto"
:data="projectData"
:columns="projectColumns"
@cell-click="cellClickEvent"
show-overflow
>
<template #wgbsEdit="{ row}">
<vxe-checkbox v-model="row.wgbs" checked-value="Y" unchecked-value="N" disabled ></vxe-checkbox>
</template>
</vxe-grid>
</div>
</template>
</vxe-pulldown>
</el-form-item>
<el-form-item label="批量:">
<el-input v-model="queryParam.dcPl" type="search" placeholder="批量" ></el-input>
</el-form-item>
<el-form-item label="分段:">
<el-input v-model="queryParam.dcFd" type="search" placeholder="分段" ></el-input>
</el-form-item>
</el-col>
<el-col :span="9" >
<el-form-item style="float: right" >
<el-button type="success" @click="initList"></el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-header>
<el-container style="padding-top: 0px">
<el-main>
<div class="mytable">
<vxe-grid
id="id"
ref="xGrid"
border
resizable
keep-source
:align="'center'"
:height="height"
:auto-resize="true"
:columns="tableColumn"
:data="list"
@cell-dblclick="dblclick"
:custom-config="{ storage: true }"
highlight-current-row
highlight-hover-row
show-overflow
>
</vxe-grid>
</div>
</el-main>
</el-container>
</el-container>
</vxe-modal>
</template>
<script>
import { mapGetters } from 'vuex'
import XEUtils from 'xe-utils'
import { getToken } from '@/utils/auth'
import ScrollPane from "@/layout/components/TagsView/ScrollPane.vue";
import {endLoading, startLoading} from "@/utils";
import {Message} from "element-ui";
import {getCzxx, getQfxq} from '@/api/jhzx/qfxq'
import {getCzplBase} from "@/api/sjzx/jcsj";
import {getLjxx} from "@/api/jhzxgl/ypp";
export default {
name:'YppTq',
components: {ScrollPane},
data() {
return {
dialogVisible:false,
queryParam: {
dcCh:'',
dcPl:'',
dcFd:'',
zt:'0'
},
projectData:[],
monthList:[],
list: [],
checkedList: [],
dictData:[],
height: '500px',
projectColumns: [
{field: 'cbbm', title: '船号',width: 110},
{ field: 'wgbs', title: '完工标识', width: 80,
slots:{
default: 'wgbsEdit'
},
},
],
tableColumn:[
{ 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: 'zdh', title: '总段号', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcFd', title: '分段号', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dzjz', title: '大组极重', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zxfdxq', 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: 'xdb', title: 'X大板', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xskj', title: 'X数控件', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xpt', title: 'X平铁', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xyw', title: 'X压弯', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xxc', title: 'X型材', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xtxc', title: 'X二次装T型材', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'ddb', title: 'D大板', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dqb', title: 'D曲板', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dxc', title: 'D型材T', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dsj', title: 'D散件', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xqzt', title: '需求状态', width: 120,formatter:this.formatterZt,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'drcs', title: '导入次数', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xzglxqOld', title: '原需求期', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
tableColumn2:[
{ field: 'dcCh', title: '船只', width: 200,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
}
],
isupload:'02',
uploadData:{},
heads: { token: getToken() },
uploadAction: process.env.VUE_APP_BASE_API + '/dmSygdxq/upload',
}
},
computed: {
...mapGetters(['name', 'bmbm'])
},
created() {
window.addEventListener('resize', this.getHeight)
this.getHeight()
this.initBase()
this.initProject()
},
methods: {
dblclick({row}){
getLjxx(row).then(res=>{
if (res.data.length>0){
this.$emit('add',res.data)
this.dialogVisible=false
return;
}
this.$message.warning('暂无零件数据')
})
},
show(){
this.dialogVisible=true
},
initProject(){
getCzplBase({}).then(res=>{
this.projectData=res.data.cbbm
})
},
cellClickEvent({row}){
this.queryParam.dcCh = row.cbbm
this.$refs.xDown4.hidePanel()
},
focusEvent4(){
this.$refs.xDown4.showPanel()
},
keyupEvent4(){
if (this.queryParam.dcCh) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.queryParam.dcCh.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}
},
//
formatterZt({cellValue}){
if(cellValue==='0'){
return '正常'
}
if(cellValue==='1'){
return '提前'
}
if (cellValue==='2'){
return '拖期'
}
return cellValue
},
footerMethod({ columns, data }){
return [
columns.map((column, columnIndex) => {
if (columnIndex === 0) {
return '合计'
}
return this.sumNum(data, column.property)
})
]
},
sumNum(list, field) {
let count = 0
list.forEach(item => {
let num = Number(item[field])
if (!XEUtils.isNumber(num) || isNaN(num)) {
num = 0
}
count = this.cal.accAdd(count, num)
})
return count
},
uploadExcel() {
this.uploadData.isupload = this.isupload
},
beforeAvatarUpload(file) {
//
const isType = file.type === 'application/vnd.ms-excel'
const isTypeComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
const fileType = isType || isTypeComputer
if (!fileType) {
this.$message.error('上传文件只能是xls/xlsx格式')
return
}
startLoading()
return fileType
},
handleAvatarSuccess(res, file) {
endLoading()
if (res.success) {
this.$message({ message: '导入成功', type: 'success' })
this.initList();
} else {
Message({
message: res.message || 'Error',
type: 'error',
duration: 5 * 1000
})
}
},
//
rowspanMethod({ row, _rowIndex, column, visibleData }){
//vxe-grid :scroll-y="{enabled: false}"
//
let fields = ['nf','yf','rq','tzxqq'];//
const cellValue = row[column.property];//
if (cellValue && fields.includes(column.property)) {
const prevRow = visibleData[_rowIndex - 1];
let nextRow = visibleData[_rowIndex + 1];
if (prevRow && prevRow[column.property] === cellValue) {
//
return { rowspan: 0, colspan: 0 };
} else {
//
let countRowspan = 1;
while (nextRow && nextRow[column.property] === cellValue) {
nextRow = visibleData[++countRowspan + _rowIndex];
}
if (countRowspan > 1) {
return { rowspan: countRowspan, colspan: 1 };
}
}
}
},
//
initBase(){
getCzxx({}).then(res=>{
this.dictData = res.data
})
},
initList0() {
if (this.queryParam.dcCh) {
getQfxq(this.queryParam).then((res) => {
if (res.data){
this.list = res.data
}
})
}
},
//1
initList() {
if (this.queryParam.dcCh === '') {
this.$message.warning('选择船号')
return
}
getQfxq(this.queryParam).then((res) => {
if (res.data){
this.list = res.data
}
})
},
formatDate ({ cellValue }) {
return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
},
getHeight() {
this.height = window.innerHeight - 200
},
format (val) {
this.monthList= [] ;
var date = new Date(val); //10*1000131000
var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1);
// this.queryParam.beginTime=Y+M;
this.monthList.push(M);
date.setMonth(date.getMonth()+1);
M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) ;
this.monthList.push(M)
date.setMonth(date.getMonth()+1);
M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) ;
this.monthList.push(M)
date.setMonth(date.getMonth()+1);
var Y = date.getFullYear() + "/";
M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1)+ "/";
var D = date.getDate()<10? "0" +date.getDate():date.getDate();
// var h = date.getHours() + ":";
// var m = date.getMinutes() + ":";
// var s = (date.getSeconds() < 10 ? "0" + (date.getSeconds()) : date.getSeconds());
// return Y + M + D + h + m + s;
this.queryParam.endTime=Y + M + D;
// return Y + M ;
}
}
}
</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>

@ -0,0 +1,385 @@
<template>
<el-container style="padding-top: 0px">
<el-main>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="前方需求计划" name="first">
<div class="mytable">
<vxe-grid
id="id"
border
ref="xqjhTableRef"
resizable
keep-source
:height="height"
:auto-resize="true"
:columns="xqjhColumn"
:data="xqjhList"
:scroll-y="{ enabled: true }"
@cell-dblclick="getPpxx"
highlight-hover-row
>
</vxe-grid>
</div>
</el-tab-pane>
<el-tab-pane label="零件明细" name="second">
<div class="mytable">
<vxe-grid
id="id"
border
ref="ljTableRef"
resizable
keep-source
:height="height"
:auto-resize="true"
:columns="ljColumn"
:data="ljList"
:scroll-y="{ enabled: true }"
highlight-hover-row
>
</vxe-grid>
</div>
</el-tab-pane>
</el-tabs>
</el-main>
</el-container>
</template>
<script>
import {getQfxq} from "@/api/jhzx/qfxq";
import {getBfwz, getList, getPpxx} from "@/api/jhzxgl/ypp";
export default {
name: "Yppfk0",
data() {
return {
height:'500px',
activeName:'first',
xqjhColumn:[
{ type: 'checkbox', width: 50 },
{ type: 'seq', width: 60, title: '序号' },
{ field: 'dcCh', title: '船只', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcPl', title: '批量号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdh', title: '总段号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcFd', title: '分段号', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dzjz', title: '大组极重', minWidth: "70",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zxfdxq', title: '总装部最新分段需求期', minWidth: "90",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xzglxq', title: '钢料需求(小组)', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dzglxq', title: '钢料需求(大组)', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xdb', title: 'X大板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xskj', title: 'X数控件', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xpt', title: 'X平铁', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xyw', title: 'X压弯', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xxc', title: 'X型材', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xtxc', title: 'X二次装T型材', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'ddb', title: 'D大板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dqb', title: 'D曲板', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dxc', title: 'D型材T', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dsj', title: 'D散件', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xqzt', title: '需求状态', minWidth: "100",formatter:this.formatterZt,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'drcs', title: '导入次数', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'xzglxqOld', title: '原需求期', minWidth: "100",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zt', title: '状态', width: 100,formatter: ['dictFormat','ZTLX']
},
{ field: 'shry', title: '审核人员', width: 110, editRender: { name: 'input' },
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'shrq', title: '审核日期', width: 110, editRender: { name: 'input' },
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
}
],
ljColumn:[
{type: "seq", width: "50", title: "序号", align: "center", fixed: "left",},
{ field: 'dcCh', title: '船只', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcPl', title: '批量', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcFd', title: '分段号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcTh', title: '图号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcZl', title: '组立', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcTz', title: '特征', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcYj', title: '依据', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcYs', title: '页数', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcPb', title: '拼板', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcLph', title: '炉批号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcTpbh', title: '托盘编号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcTpmc', title: '托盘名称', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'jldw1', title: '单价重量计量单位', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpmc', title: '物品名称', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpgg', title: '规格', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpxh', title: '材质', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qy', title: '区域', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
editRender:{type:'$select',options:[],props:{clearable:true}}
},
{ field: 'dwh', title: '垛位号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
editRender:{type:'$select',options:[],props:{clearable:true}}
},
{ field: 'wpjb', title: '物品级别', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpflm', title: '物品分类', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'abclx', title: 'ABC分类', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'gzlx', title: '加工进度', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'ylzd1', title: '配套表类型', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'lcm1', title: '流程码', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zt', title: '状态', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'tpxx', title: '托盘信息', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
xqjhList:[],
ljList:[],
}
},
created() {
window.addEventListener("resize", this.getHeight);
this.getHeight();
},
methods: {
qtjc(){
const data=this.$refs.xqjhTableRef.getCheckboxRecords();
if (data.length<=0){
this.$message.warning("请先选择需要检查的数据")
return;
}
},
getSelectQfxq(){
return this.$refs.xqjhTableRef.getCheckboxRecords();
},
initXqjh(req){
getQfxq(req).then(res=>{
this.xqjhList=res.data
})
},
getPpxx({row}){
this.activeName='second'
getList(row).then(res=>{
this.ljList=res.data
})
},
initBfwz(){
getBfwz().then(res=>{
this.bfwzList=res.data
const _qyList=[]
const _dwhList=[]
const table=this.$refs.tableRef
const qyColumn=table.getColumnByField('qy')
const dwColumn=table.getColumnByField('dwh')
this.bfwzList.forEach(item=>{
_qyList.push({label:item.qy,value:item.qy})
_dwhList.push({label:item.dwh,value:item.dwh,_parent:item.qy})
})
qyColumn.editRender.options=_qyList
dwColumn.editRender.options=_dwhList
this.qyList=_qyList;
this.dwList=_dwhList
})
},
formatterZt({cellValue}){
if(cellValue==='0'){
return '正常'
}
if(cellValue==='1'){
return '提前'
}
if (cellValue==='2'){
return '拖期'
}
return cellValue
},
handleClick(){
},
getHeight() {
this.height = window.innerHeight - 180;
},
}
}
</script>
<style lang="scss" scoped >
.el-header {
margin: 0;
padding: 5px 0;
height: auto;
}
.el-container {
padding: 0;
margin: 0;
}
.el-main {
padding: 0;
}
.el-col {
padding: 0;
}
.el-aside {
background: #fff;
padding: 0;
}
.el-container {
padding: 0;
}
.el-row {
margin-bottom: 5px;
}
.el-row:last-child {
margin-bottom: 0;
}
.tableStyles {
background: #0a76a4;
}
.my-dropdown {
width: 450px;
height: 250px;
background-color: #fff;
border: 1px solid #dcdfe6;
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
}
::v-deep .mytable .vxe-input {
display: flex !important;
}
::v-deep .el-form-item {
margin-bottom: 0px !important;
}
::v-deep .el-input{
width: auto !important;
}
</style>

@ -0,0 +1,209 @@
<template>
<el-container>
<el-header style="width: 100%">
<el-form ref="requestForm" :model="request" label-width="60px">
<el-row>
<el-col :span="4">
<el-form-item label="区域:">
<el-select v-model="request.qy" placeholder="垛位" clearable>
<el-option
v-for="item in qyList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="垛位号:">
<el-select v-model="request.dwh" placeholder="垛位号" clearable>
<el-option
v-for="item in dwList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16" style="text-align: right">
<el-button type="primary" @click="initList()"></el-button>
<el-button type="success" @click="add"></el-button>
<el-button type="success" @click="save"></el-button>
<el-button type="success" @click="remove"></el-button>
</el-col>
</el-row>
</el-form>
</el-header>
<el-container style="padding-top: 10px">
<el-container>
<el-main>
<div class="mytable">
<vxe-grid
id="id"
ref="tableRef"
border
resizable
keep-source
:height="height"
:auto-resize="true"
:columns="tableColumn"
:data="list"
:edit-config="{trigger: 'click', mode: 'row', showStatus: true,}"
:custom-config="{ storage: true }"
:scroll-y="{ enabled: true }"
highlight-hover-row
>
</vxe-grid>
</div>
</el-main>
</el-container>
</el-container>
<YppTq ref="yppTqRef" />
</el-container>
</template>
<script>
import {getGhs} from "@/api/sjzx/sbxxWH";
import {getCzplBase} from "@/api/sjzx/jcsj";
import {cgjhdhqk} from "@/api/jhzx/sygd";
import YppTq from "@/views/jhzxgl/components/YppTq.vue";
import {getBfwz, saveBfwz} from "@/api/jhzxgl/ypp";
export default {
name: "Cgjhdh",
components: {YppTq},
data() {
return {
height: "500px",
list:[],
qyList:[],
dwList:[],
projectData:[],
request:{
qy:'',
dwh:''
},
tableColumn: [
{ type: 'checkbox', width: 40 },
{type: "seq", width: "50", title: "序号", align: "center", fixed: "left",},
{ field: 'qy', title: '区域', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
editRender:{ name: '$input', props: { placeholder: '请输入所在区域' }}
},
{ field: 'dwh', title: '垛位号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
editRender:{ name: '$input', props: { placeholder: '请输入垛位号' }}
},
],
}
},
created() {
window.addEventListener("resize", this.getHeight);
this.getHeight();
this.initList()
},
methods: {
save(){
const {insertRecords:add, removeRecords:remove, updateRecords:edit}=this.$refs.tableRef.getRecordset()
const requestContext={add,remove,edit}
saveBfwz(requestContext).then(res=>{
this.$message.success('保存成功')
this.initList()
})
},
add(){
this.$refs.tableRef.insertAt({},0)
},
remove(){
this.$refs.tableRef.removeCheckboxRow();
},
initList(){
getBfwz(this.request).then(res=>{
this.list=res.data
const _qyList=[]
const _dwhList=[]
this.list.forEach(item=>{
_qyList.push({label:item.qy,value:item.qy})
_dwhList.push({label:item.dwh,value:item.dwh})
})
this.qyList=_qyList;
this.dwList=_dwhList
})
},
cellClickEvent({row}){
this.request.wjwz = row.cbbm
this.$refs.xDown4.hidePanel()
},
focusEvent4(){
this.$refs.xDown4.showPanel()
},
keyupEvent4(){
if (this.request.wjwz) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.wjwz.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}
},
getHeight() {
this.height = window.innerHeight - 160;
},
}
};
</script>
<style lang="scss" scoped >
.el-header {
margin: 0;
padding: 5px 0;
height: auto;
}
.el-container {
padding: 0;
margin: 0;
}
.el-main {
padding: 0;
}
.el-col {
padding: 0;
}
.el-aside {
background: #fff;
padding: 0;
}
.el-container {
padding: 0;
}
.el-row {
margin-bottom: 5px;
}
.el-row:last-child {
margin-bottom: 0;
}
.tableStyles {
background: #0a76a4;
}
.my-dropdown {
width: 450px;
height: 250px;
background-color: #fff;
border: 1px solid #dcdfe6;
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
}
::v-deep .mytable .vxe-input {
display: flex !important;
}
::v-deep .el-form-item {
margin-bottom: 0px !important;
}
::v-deep .el-input{
width: auto !important;
}
</style>

@ -1,22 +1,204 @@
<template>
<el-container>
<span style="margin-top: 20px;margin-left: 20px">待开发...</span>
<el-header style="width: 100%;height: 35px">
<el-form ref="requestForm" :model="request" label-width="65px">
<el-row>
<el-col :span="3">
<el-form-item label="船号:">
<vxe-pulldown ref="xDown4" transfer >
<template #default>
<vxe-input
v-model="request.dcCh"
placeholder="船号"
style="height: 28px;
line-height: 28px; width: 150px;"
suffix-icon="vxe-icon--search"
@keyup="keyupEvent4"
@focus="focusEvent4"
/>
</template>
<template #dropdown>
<div class="my-dropdown mytable " style="width: 250px">
<vxe-grid
highlight-hover-row
height="auto"
:data="projectData"
:columns="projectColumns"
@cell-click="cellClickEvent"
show-overflow
>
<template #wgbsEdit="{ row}">
<vxe-checkbox v-model="row.wgbs" checked-value="Y" unchecked-value="N" disabled ></vxe-checkbox>
</template>
</vxe-grid>
</div>
</template>
</vxe-pulldown>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="批量:">
<el-input v-model="request.dcPl" type="search" placeholder="批量" ></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="分段:">
<el-input v-model="request.dcFd" type="search" placeholder="分段" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="在建船只:" label-width="105px">
<el-checkbox v-model="request.zjcz" type="search" placeholder="合同号" ></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="11" style="text-align: right">
<el-button type="primary" @click="initList"></el-button>
</el-col>
</el-row>
</el-form>
</el-header>
<Yppfk0 ref="yppfk0" />
</el-container>
</template>
<script>
import {getCzplBase} from "@/api/sjzx/jcsj";
import YppTq from "@/views/jhzxgl/components/YppTq.vue";
import {getBfwz} from "@/api/jhzxgl/ypp";
import Yppfk0 from "@/views/jhzxgl/components/Yppfk0.vue";
export default {
name: "YppCX",
name: "Cgjhdh",
components: {Yppfk0, YppTq},
data() {
return {
yppTqShow:false,
height: "500px",
list:[],
projectColumns: [
{field: 'cbbm', title: '船号',width: 110},
{ field: 'wgbs', title: '完工标识', width: 80,
slots:{
default: 'wgbsEdit'
},
},
],
qyList:[],
dwList:[],
bfwzList:[],
projectData:[],
request:{
dcCh:'',
dcPl:'',
dcFd:'',
zjcz:true
},
}
},
created() {
window.addEventListener("resize", this.getHeight);
this.getHeight();
this.initProject()
this.initBfwz()
},
methods: {
qtjc(){
this.$refs.yppfk0.qtjc()
},
initList(){
this.$refs.yppfk0.initXqjh(this.request)
},
initBfwz(){
getBfwz().then(res=>{
this.bfwzList=res.data
const _qyList=[]
const _dwhList=[]
const table=this.$refs.tableRef
const qyColumn=table.getColumnByField('qy')
const dwColumn=table.getColumnByField('dwh')
this.bfwzList.forEach(item=>{
_qyList.push({label:item.qy,value:item.qy})
_dwhList.push({label:item.dwh,value:item.dwh,_parent:item.qy})
})
qyColumn.editRender.options=_qyList
dwColumn.editRender.options=_dwhList
this.qyList=_qyList;
this.dwList=_dwhList
})
},
initProject(){
getCzplBase({}).then(res=>{
this.projectData=res.data.cbbm
})
},
cellClickEvent({row}){
this.request.dcCh = row.cbbm
this.$refs.xDown4.hidePanel()
},
focusEvent4(){
this.$refs.xDown4.showPanel()
},
keyupEvent4(){
if (this.request.dcCh) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.dcCh.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}
},
getHeight() {
this.height = window.innerHeight - 160;
},
}
};
</script>
<style lang="scss" scoped >
.el-header {
margin: 0;
padding: 5px 0;
height: auto;
}
.el-container {
padding: 0;
margin: 0;
}
.el-main {
padding: 0;
}
.el-col {
padding: 0;
}
.el-aside {
background: #fff;
padding: 0;
}
.el-container {
padding: 0;
}
.el-row {
margin-bottom: 5px;
}
.el-row:last-child {
margin-bottom: 0;
}
.tableStyles {
background: #0a76a4;
}
.my-dropdown {
width: 450px;
height: 250px;
background-color: #fff;
border: 1px solid #dcdfe6;
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
}
::v-deep .mytable .vxe-input {
display: flex !important;
}
::v-deep .el-form-item {
margin-bottom: 0px !important;
}
::v-deep .el-input{
width: auto !important;
}
</style>

@ -1,22 +1,205 @@
<template>
<el-container>
<span style="margin-top: 20px;margin-left: 20px">待开发...</span>
<el-header style="width: 100%;height: 35px">
<el-form ref="requestForm" :model="request" label-width="65px">
<el-row>
<el-col :span="3">
<el-form-item label="船号:">
<vxe-pulldown ref="xDown4" transfer >
<template #default>
<vxe-input
v-model="request.dcCh"
placeholder="船号"
style="height: 28px;
line-height: 28px; width: 150px;"
suffix-icon="vxe-icon--search"
@keyup="keyupEvent4"
@focus="focusEvent4"
/>
</template>
<template #dropdown>
<div class="my-dropdown mytable " style="width: 250px">
<vxe-grid
highlight-hover-row
height="auto"
:data="projectData"
:columns="projectColumns"
@cell-click="cellClickEvent"
show-overflow
>
<template #wgbsEdit="{ row}">
<vxe-checkbox v-model="row.wgbs" checked-value="Y" unchecked-value="N" disabled ></vxe-checkbox>
</template>
</vxe-grid>
</div>
</template>
</vxe-pulldown>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="批量:">
<el-input v-model="request.dcPl" type="search" placeholder="批量" ></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="分段:">
<el-input v-model="request.dcFd" type="search" placeholder="分段" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="在建船只:" label-width="105px">
<el-checkbox v-model="request.zjcz" type="search" placeholder="合同号" ></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="11" style="text-align: right">
<el-button type="primary" @click="initList()"></el-button>
<el-button type="success" @click="qtjc"></el-button>
</el-col>
</el-row>
</el-form>
</el-header>
<Yppfk0 ref="yppfk0" />
</el-container>
</template>
<script>
import {getCzplBase} from "@/api/sjzx/jcsj";
import YppTq from "@/views/jhzxgl/components/YppTq.vue";
import {getBfwz} from "@/api/jhzxgl/ypp";
import Yppfk0 from "@/views/jhzxgl/components/Yppfk0.vue";
export default {
name: "YppFK",
name: "Cgjhdh",
components: {Yppfk0, YppTq},
data() {
return {
yppTqShow:false,
height: "500px",
list:[],
projectColumns: [
{field: 'cbbm', title: '船号',width: 110},
{ field: 'wgbs', title: '完工标识', width: 80,
slots:{
default: 'wgbsEdit'
},
},
],
qyList:[],
dwList:[],
bfwzList:[],
projectData:[],
request:{
dcCh:'',
dcPl:'',
dcFd:'',
zjcz:true
},
}
},
created() {
window.addEventListener("resize", this.getHeight);
this.getHeight();
this.initProject()
this.initBfwz()
},
methods: {
qtjc(){
this.$refs.yppfk0.qtjc()
},
initList(){
this.$refs.yppfk0.initXqjh(this.request)
},
initBfwz(){
getBfwz().then(res=>{
this.bfwzList=res.data
const _qyList=[]
const _dwhList=[]
const table=this.$refs.tableRef
const qyColumn=table.getColumnByField('qy')
const dwColumn=table.getColumnByField('dwh')
this.bfwzList.forEach(item=>{
_qyList.push({label:item.qy,value:item.qy})
_dwhList.push({label:item.dwh,value:item.dwh,_parent:item.qy})
})
qyColumn.editRender.options=_qyList
dwColumn.editRender.options=_dwhList
this.qyList=_qyList;
this.dwList=_dwhList
})
},
initProject(){
getCzplBase({}).then(res=>{
this.projectData=res.data.cbbm
})
},
cellClickEvent({row}){
this.request.dcCh = row.cbbm
this.$refs.xDown4.hidePanel()
},
focusEvent4(){
this.$refs.xDown4.showPanel()
},
keyupEvent4(){
if (this.request.dcCh) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.dcCh.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}
},
getHeight() {
this.height = window.innerHeight - 160;
},
}
};
</script>
<style lang="scss" scoped >
.el-header {
margin: 0;
padding: 5px 0;
height: auto;
}
.el-container {
padding: 0;
margin: 0;
}
.el-main {
padding: 0;
}
.el-col {
padding: 0;
}
.el-aside {
background: #fff;
padding: 0;
}
.el-container {
padding: 0;
}
.el-row {
margin-bottom: 5px;
}
.el-row:last-child {
margin-bottom: 0;
}
.tableStyles {
background: #0a76a4;
}
.my-dropdown {
width: 450px;
height: 250px;
background-color: #fff;
border: 1px solid #dcdfe6;
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
}
::v-deep .mytable .vxe-input {
display: flex !important;
}
::v-deep .el-form-item {
margin-bottom: 0px !important;
}
::v-deep .el-input{
width: auto !important;
}
</style>

@ -1,22 +1,403 @@
<template>
<el-container>
<span style="margin-top: 20px;margin-left: 20px">待开发...</span>
<el-header style="width: 100%">
<el-form ref="requestForm" :model="request" label-width="65px">
<el-row>
<el-col :span="3">
<el-form-item label="船号:">
<vxe-pulldown ref="xDown4" transfer >
<template #default>
<vxe-input
v-model="request.dcCh"
placeholder="船号"
style="height: 28px;
line-height: 28px; width: 150px;"
suffix-icon="vxe-icon--search"
@keyup="keyupEvent4"
@focus="focusEvent4"
/>
</template>
<template #dropdown>
<div class="my-dropdown mytable " style="width: 250px">
<vxe-grid
highlight-hover-row
height="auto"
:data="projectData"
:columns="projectColumns"
@cell-click="cellClickEvent"
show-overflow
>
<template #wgbsEdit="{ row}">
<vxe-checkbox v-model="row.wgbs" checked-value="Y" unchecked-value="N" disabled ></vxe-checkbox>
</template>
</vxe-grid>
</div>
</template>
</vxe-pulldown>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="区域:">
<el-select v-model="request.qy" placeholder="区域" clearable>
<el-option
v-for="item in qyList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="垛位:">
<el-select v-model="request.dwh" placeholder="垛位" clearable>
<el-option
v-for="item in dwList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="在建船只:" label-width="105px">
<el-checkbox v-model="request.zjcz" type="search" placeholder="合同号" ></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="11" style="text-align: right">
<el-button type="primary" @click="initList()"></el-button>
<el-button type="primary" @click="tq"></el-button>
<el-button type="success" @click="save"></el-button>
</el-col>
</el-row>
</el-form>
</el-header>
<el-container style="padding-top: 10px">
<el-container>
<el-main>
<div class="mytable">
<vxe-grid
id="id"
border
ref="tableRef"
resizable
keep-source
:height="height"
:auto-resize="true"
:columns="tableColumn"
:data="list"
:edit-config="{ trigger: 'click', mode: 'row', showStatus: true }"
:custom-config="{ storage: true }"
:scroll-y="{ enabled: true }"
highlight-hover-row
>
</vxe-grid>
</div>
</el-main>
</el-container>
</el-container>
<YppTq ref="yppTqRef" @add="add" />
</el-container>
</template>
<script>
import {getCzplBase} from "@/api/sjzx/jcsj";
import YppTq from "@/views/jhzxgl/components/YppTq.vue";
import {checkBfwz, getBfwz, getDmppxxbList, saveDmppxxb} from "@/api/jhzxgl/ypp";
export default {
name: "YppGL",
name: "Cgjhdh",
components: {YppTq},
data() {
return {
yppTqShow:false,
height: "500px",
list:[],
projectColumns: [
{field: 'cbbm', title: '船号',width: 110},
{ field: 'wgbs', title: '完工标识', width: 80,
slots:{
default: 'wgbsEdit'
},
},
],
qyList:[],
dwList:[],
bfwzList:[],
projectData:[],
request:{
dcCh:'',
dwh:'',
qy:'',
zjcz:true
},
tableColumn: [
{type: "seq", width: "50", title: "序号", align: "center", fixed: "left",},
{ field: 'dcCh', title: '船只', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcPl', title: '批量', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcFd', title: '分段号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcTh', title: '图号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcZl', title: '组立', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcTz', title: '特征', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcYj', title: '依据', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcYs', title: '页数', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcPb', title: '拼板', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcLph', title: '炉批号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcTpbh', title: '托盘编号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'dcTpmc', title: '托盘名称', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'jldw1', title: '单价重量计量单位', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpmc', title: '物品名称', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpgg', title: '规格', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpxh', title: '材质', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'qy', title: '区域', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
editRender:{name:'$select',options:[],props:{clearable:true},events:{change:this.bfwzChanged}}
},
{ field: 'dwh', title: '垛位号', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
editRender:{name:'$select',options:[],props:{clearable:true},events:{change:this.bfwzChanged}}
},
{ field: 'wpjb', title: '物品级别', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'wpflm', title: '物品分类', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'abclx', title: 'ABC分类', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'gzlx', title: '加工进度', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'ylzd1', title: '配套表类型', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'lcm1', title: '流程码', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zt', title: '状态', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'tpxx', title: '托盘信息', width: 120,align: "center",
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
}
},
created() {
window.addEventListener("resize", this.getHeight);
this.getHeight();
this.initProject()
this.initBfwz()
},
methods: {
save(){
const {insertRecords,updateRecords}=this.$refs.tableRef.getRecordset()
const list=[...insertRecords,...updateRecords]
if (list.length>0){
for (const item of list) {
if (!item.dwh){
this.$message.error('请选择摆放位置');
return;
}
}
saveDmppxxb(list).then(res=>{
this.$message.success('保存成功')
this.$refs.tableRef.reloadData(list)
})
}
},
bfwzChanged({row}){
checkBfwz([row]).then(res=>{
if (!res.data.success){
this.$message.warning(res.message)
}
})
},
add(list){
this.$refs.tableRef.insertAt(list)
},
initList(){
if (this.request.dcCh === '') {
this.$message.warning('选择船号')
return
}
getDmppxxbList(this.request).then(res=>{
this.list=res.data
})
},
tq(){
this.$refs.yppTqRef.show()
},
initBfwz(){
getBfwz().then(res=>{
this.bfwzList=this.groupBy(res.data,(item)=>{
return item.qy
})
console.log(this.bfwzList)
const _qyList=[]
const _dwhList=[]
const table=this.$refs.tableRef
const qyColumn=table.getColumnByField('qy')
const dwColumn=table.getColumnByField('dwh')
Object.keys(this.bfwzList).forEach(key=>{
const list=this.bfwzList[key];
const _key=key.replaceAll('"','');
_qyList.push({label:_key,value:_key})
list.forEach(item=>{
_dwhList.push({label:item.dwh,value:item.dwh,_parent:item.qy})
})
})
qyColumn.editRender.options=_qyList
dwColumn.editRender.options=_dwhList
this.qyList=_qyList;
this.dwList=_dwhList
})
},
groupBy(obj,fn){
const groups={};
obj.forEach(o=>{
const group = JSON.stringify(fn(o));
groups[group] = groups[group] || [];
groups[group].push(o);
})
return groups;
},
initProject(){
getCzplBase({}).then(res=>{
this.projectData=res.data.cbbm
})
},
cellClickEvent({row}){
this.request.dcCh = row.cbbm
this.$refs.xDown4.hidePanel()
},
focusEvent4(){
this.$refs.xDown4.showPanel()
},
keyupEvent4(){
if (this.request.dcCh) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.dcCh.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}
},
getHeight() {
this.height = window.innerHeight - 160;
},
}
};
</script>
<style lang="scss" scoped >
.el-header {
margin: 0;
padding: 5px 0;
height: auto;
}
.el-container {
padding: 0;
margin: 0;
}
.el-main {
padding: 0;
}
.el-col {
padding: 0;
}
.el-aside {
background: #fff;
padding: 0;
}
.el-container {
padding: 0;
}
.el-row {
margin-bottom: 5px;
}
.el-row:last-child {
margin-bottom: 0;
}
.tableStyles {
background: #0a76a4;
}
.my-dropdown {
width: 450px;
height: 250px;
background-color: #fff;
border: 1px solid #dcdfe6;
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
}
::v-deep .mytable .vxe-input {
display: flex !important;
}
::v-deep .el-form-item {
margin-bottom: 0px !important;
}
::v-deep .el-input{
width: auto !important;
}
</style>

@ -56,6 +56,7 @@
keep-source
:height="height"
:auto-resize="true"
:align="'center'"
:columns="tableColumn"
:data="list"
:custom-config="{ storage: true }"
@ -69,24 +70,6 @@
@checkbox-all="selectAllEvent"
@checkbox-change="selectChangeEvent"
>
<template #sbbh_edit="{ row }">
<vxe-input
v-model="row.sbbh"
placeholder=""
disabled
></vxe-input>
</template>
<template #sbmc_edit="{ row }">
<vxe-select
v-model="row.sbmc"
:options="sbmcOptions"
:disabled="row.sbmcDisabled"
@change="changeSbmc($event, row)"
placeholder=""
clearable
transfer
></vxe-select>
</template>
</vxe-grid>
</div>
</el-main>
@ -117,29 +100,6 @@ export default {
tableColumn: [
{ type: "checkbox", width: "50", align: "center" },
{ type: "seq", width: "50", title: "序号", align: "center" },
// {
// field: "sbbh",
// title: "",
// align: "center",
// minWidth: "90",
// slots: { edit: "sbbh_edit" },
// filters: [
// {
// data: {
// checks: [],
// sVal: "",
// sMenu: "",
// fType1: "",
// fVal1: "",
// fMode: "and",
// fType2: "",
// fVal2: "",
// },
// },
// ],
// filterRender: { name: "FilterCombination" },
// },
{
field: "gx",
title: "工序",
@ -166,163 +126,194 @@ export default {
],
filterRender: { name: "FilterCombination" },
},
{
field: "kw",
title: "跨位",
align: "center",
minWidth: "70",
{ field: 'kw', title: '跨位', width: 120,
editRender: {
name: "$select",
options: [],
props: { clearable: true },
},
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', },
},
{ field: '', title: '白班',
children:[
{ field: 'zxcnBb', title: '最小产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdcnBb', title: '最大产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "szcs",
title: "设备所属部门",
align: "center",
minWidth: "90",
{ field: '', title: '夜班',
children:[
{ field: 'zxcnYb', title: '最小产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdcnYb', title: '最大产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
},
{ field: 'cndw', title: '产能单位', width: 120,
editRender: {
name: "$select",
options: [],
props: { clearable: true },
events: {
change: this.changeSzcs,
},
},
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', },
},
{ field: 'cnhj', title: '合计', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: '', title: '划线白班',
children:[
{ field: 'zxcnBb1', title: '最小产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdcnBb1', title: '最大产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "sbmc",
title: "设备名称",
align: "center",
minWidth: "90",
{ field: '', title: '划线夜班',
children:[
{ field: 'zxcnYb1', title: '最小产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdcnYb1', title: '最大产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
},
{ field: 'cnhj1', title: '合计', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: '', title: '坡口白班',
children:[
{ field: 'zxcnBb2', title: '最小产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdcnBb2', title: '最大产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
},
{ field: '', title: '坡口夜班',
children:[
{ field: 'zxcnYb2', title: '最小产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdcnYb2', title: '最大产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
},
{ field: 'cndw2', title: '产能单位', width: 120,
editRender: {
name: "$select",
options: [],
props: {
clearable: true,
},
props: { clearable: true },
},
slots: { edit: "sbmc_edit" },
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', },
},
{ field: 'cnhj2', title: '合计', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: '', title: '打磨白班',
children:[
{ field: 'zxcnBb3', title: '最小产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdcnBb3', title: '最大产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "sbcn",
title: "产能(每小时)",
align: "center",
minWidth: "110",
editRender: { name: "input" },
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
{ field: '', title: '打磨夜班',
children:[
{ field: 'zxcnYb3', title: '最小产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdcnYb3', title: '最大产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "dw",
title: "产能单位",
align: "center",
minWidth: "90",
{ field: 'cndw3', title: '产能单位', width: 120,
editRender: {
name: "$select",
options: [],
props: { clearable: true },
},
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', },
},
{ field: 'cnhj3', title: '合计', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: '', title: '曲加工白班',
children:[
{ field: 'zxcnBb4', title: '最小产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdcnBb4', title: '最大产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "",
title: "设备默认排产顺序",
align: "center",
minWidth: "90",
editRender: { name: "input" },
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
{ field: '', title: '曲加工夜班',
children:[
{ field: 'zxcnYb4', title: '最小产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'zdcnYb4', title: '最大产能', width: 120,editRender: { name: "$input"},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
filterRender: { name: "FilterCombination" },
},
{ field: 'cndw4', title: '产能单位', width: 120,
editRender: {
name: "$select",
options: [],
props: { clearable: true },
},
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
{ field: 'cnhj4', title: '合计', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', },
},
],
validRules: {
sbbh: [{ required: true, message: "设备编号不可为空" }],
// sbbh: [{ required: true, message: "" }],
},
kwOptions: [],
departmentOptions: [],
@ -366,7 +357,11 @@ export default {
const dwList =JSON.parse(dict)
this.$nextTick(() => {
const tableRef = this.$refs.tableRef;
const dw = tableRef.getColumnByField("dw");
const cndw = tableRef.getColumnByField("cndw");
// const cndw1 = tableRef.getColumnByField("cndw1");
const cndw2 = tableRef.getColumnByField("cndw2");
const cndw3 = tableRef.getColumnByField("cndw3");
const cndw4 = tableRef.getColumnByField("cndw4");
const testList = [];
for (let i = 0; i < dwList.length; i++) {
const temp = {
@ -375,7 +370,11 @@ export default {
};
testList.push(temp);
}
dw.editRender.options = testList;
cndw.editRender.options = testList;
// cndw1.editRender.options = testList;
cndw2.editRender.options = testList;
cndw3.editRender.options = testList;
cndw4.editRender.options = testList;
});
},

@ -1,22 +1,731 @@
<template>
<el-container>
<span style="margin-top: 20px;margin-left: 20px">待开发...</span>
<el-header style="width: 100%">
<el-form ref="requestForm" :model="request" label-width="65px">
<el-row>
<el-col :span="3">
<el-form-item label="供货商:">
<el-select v-model="request.ghsbm" placeholder="供货商" clearable>
<el-option
v-for="item in ghsList"
:key="item.ghsbm"
:label="item.ghsqc"
:value="item.ghsbm"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="合同号:" label-width="85px">
<el-input v-model="request.ddmc" type="search" placeholder="合同号" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="在建船只:" label-width="105px">
<el-checkbox v-model="request.zjcz" type="search" placeholder="合同号" ></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="14" style="text-align: right">
<el-button type="primary" @click="initList()"></el-button>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<el-form-item label="船号:">
<vxe-pulldown ref="xDown4" transfer >
<template #default>
<vxe-input
v-model="request.wjwz"
placeholder="船号"
style="height: 28px;
line-height: 28px; width: 150px;"
suffix-icon="vxe-icon--search"
@keyup="keyupEvent4"
@focus="focusEvent4"
/>
</template>
<template #dropdown>
<div class="my-dropdown mytable " style="width: 250px">
<vxe-grid
highlight-hover-row
height="auto"
:data="projectData"
:columns="projectColumns"
@cell-click="cellClickEvent"
show-overflow
>
<template #wgbsEdit="{ row}">
<vxe-checkbox v-model="row.wgbs" checked-value="Y" unchecked-value="N" disabled ></vxe-checkbox>
</template>
</vxe-grid>
</div>
</template>
</vxe-pulldown>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="小合同号:" label-width="85px">
<el-input v-model="request.xhth" type="search" placeholder="小合同号" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="订单生效日期:" label-width="105px">
<el-col :span="11">
<el-date-picker v-model="request.ksrq" type="date" format="yyyy/MM/dd" value-format="yyyy/MM/dd" placeholder="开始日期" ></el-date-picker>
</el-col>
<el-col style="text-align: center" :span="2"></el-col>
<el-col :span="11">
<el-date-picker v-model="request.jsrq" type="date" format="yyyy/MM/dd" value-format="yyyy/MM/dd" placeholder="结束日期" ></el-date-picker>
</el-col>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-header>
<el-container style="padding-top: 10px">
<el-container>
<el-main>
<div class="mytable">
<vxe-grid
id="id"
ref="tableRef"
border
resizable
keep-source
:height="height"
:auto-resize="true"
:columns="tableColumn"
:data="list"
:custom-config="{ storage: true }"
:scroll-y="{ enabled: true }"
highlight-hover-row
>
</vxe-grid>
</div>
</el-main>
</el-container>
</el-container>
</el-container>
</template>
<script>
import {getGhs} from "@/api/sjzx/sbxxWH";
import {getCzplBase} from "@/api/sjzx/jcsj";
import {cgjhdhqk} from "@/api/jhzx/sygd";
export default {
name: "Cgjhdh",
data() {
return {
height: "500px",
list:[],
projectColumns: [
{field: 'cbbm', title: '船号',width: 110},
{ field: 'wgbs', title: '完工标识', width: 80,
slots:{
default: 'wgbsEdit'
},
},
],
projectData:[],
ShipNoList:[],
ghsList:[],
request:{
ghsbm:'',
wjwz:'',
ddmc:'',
zjcz:true,
xhth:'',
ksrq:'',
jsrq:'',
},
tableColumn: [
{
type: "seq",
width: "50",
title: "序号",
align: "center",
fixed: "left",
},
{
field: "ghsbm",
title: "供应商",
align: "center",
minWidth: "140",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "wjwz",
title: "船号",
align: "center",
minWidth: "100",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "dzwz",
title: "期量",
align: "center",
minWidth: "70",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "sxrq",
title: "生效日期",
align: "center",
minWidth: "100",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "ddmc",
title: " 合同号",
align: "center",
minWidth: "100",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "dc_ch",
title: "小合同号",
align: "center",
minWidth: "90",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "ddxh",
title: "项号",
align: "center",
minWidth: "90",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "wpmc",
title: "物品名称",
align: "center",
minWidth: "90",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "rkxh",
title: "材质",
align: "center",
minWidth: "100",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
formatter:['dictFormat','GCXH'],
filterRender: { name: "FilterCombination" },
},
{
field: "rkgg",
title: "规格",
align: "center",
minWidth: "90",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "_zl",
title: "单张重量",
align: "center",
minWidth: "100",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "dhsl",
title: "订货张数(A)",
align: "center",
minWidth: "80",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "dhsl1",
title: "订货重量(B)",
align: "center",
minWidth: "80",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "lszrk",
title: "入库张数(E)",
align: "center",
minWidth: "80",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "_rk",
title: "入库张数差值A-E",
align: "center",
minWidth: "100",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "lszrkzl",
title: "入库重量(F)",
align: "center",
minWidth: "80",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "_lszrkzl",
title: "入库重量差值B-F",
align: "center",
minWidth: "95",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "lszck",
title: "出库张数(G)",
align: "center",
minWidth: "70",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "_lszck",
title: "出库张数差值A-G",
align: "center",
minWidth: "95",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "lszckzl",
title: "出库重量(H)",
align: "center",
minWidth: "70",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "_lszckzl",
title: "出库重量差值B-H",
align: "center",
minWidth: "95",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "kcsl",
title: "库存张数(I)",
align: "center",
minWidth: "70",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{
field: "cgy",
title: "采购员",
align: "center",
minWidth: "80",
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
],
}
},
created() {
window.addEventListener("resize", this.getHeight);
this.getHeight();
this.initGhs();
this.initProject()
},
methods: {
initList(){
cgjhdhqk(this.request).then(res=>{
this.list=res.data
})
},
initProject(){
getCzplBase({}).then(res=>{
console.log(res)
this.projectData=res.data.cbbm
})
},
initGhs(){
getGhs().then(res=>{
this.ghsList=res.data
})
},
cellClickEvent({row}){
this.request.wjwz = row.cbbm
this.$refs.xDown4.hidePanel()
},
focusEvent4(){
this.$refs.xDown4.showPanel()
},
keyupEvent4(){
if (this.request.wjwz) {
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.wjwz.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}
},
getHeight() {
this.height = window.innerHeight - 160;
},
}
};
</script>
<style lang="scss" scoped >
.el-header {
margin: 0;
padding: 5px 0;
height: auto;
}
.el-container {
padding: 0;
margin: 0;
}
.el-main {
padding: 0;
}
.el-col {
padding: 0;
}
.el-aside {
background: #fff;
padding: 0;
}
.el-container {
padding: 0;
}
.el-row {
margin-bottom: 5px;
}
.el-row:last-child {
margin-bottom: 0;
}
.tableStyles {
background: #0a76a4;
}
.my-dropdown {
width: 450px;
height: 250px;
background-color: #fff;
border: 1px solid #dcdfe6;
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
}
::v-deep .mytable .vxe-input {
display: flex !important;
}
::v-deep .el-form-item {
margin-bottom: 0px !important;
}
::v-deep .el-input{
width: auto !important;
}
</style>

Loading…
Cancel
Save