xiaoning 2 years ago
parent 2d65162ecc
commit 7193ec2e17

@ -10,3 +10,5 @@ export function sygdPC() {return request({url: '/dmSygdMx/sygdPC', method: 'post
export function tqSygd() {return request({url: '/dmSygdMx/tqSygd', method: 'post'})} export function tqSygd() {return request({url: '/dmSygdMx/tqSygd', method: 'post'})}
export function getCnsb() {return request({url: '/dmSygdMx/getCnsb', method: 'post'})} export function getCnsb() {return request({url: '/dmSygdMx/getCnsb', method: 'post'})}
export function saveMxList() {return request({url: '/dmSygdMx/saveList', 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'})}

@ -120,6 +120,7 @@ export default {
dictData:[], dictData:[],
height: '500px', height: '500px',
tableColumn:[ tableColumn:[
{ field: 'dcCh', title: '船只', width: 120, { field: 'dcCh', title: '船只', width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }, filterRender: { name: 'FilterCombination', },
@ -262,19 +263,12 @@ export default {
return cellValue return cellValue
}, },
footerMethod({ columns, data }){ footerMethod({ columns, data }){
return [ return [
columns.map((column, columnIndex) => { columns.map((column, columnIndex) => {
if (columnIndex === 0) { if (columnIndex === 0) {
return '合计' return '合计'
} }
return this.sumNum(data, column.property) return this.sumNum(data, column.property)
// if (['yf08'].includes(column.property)) {
// console.log(123)
// return this.sumNum(data, column.property)
// }
//
// return null
}) })
] ]
}, },

@ -5,14 +5,36 @@
<el-row> <el-row>
<el-col :span="22"> <el-col :span="22">
<el-form-item label="船号:"> <el-form-item label="船号:">
<el-select v-model="queryParam.dcCh" filterable placeholder="工程编号" @change="czbhChange" > <vxe-pulldown ref="xDown4" transfer >
<el-option <template #default>
v-for="item in dictData.cbbm" <vxe-input
:key="item.cbbm" v-model="queryParam.dcch"
:label="item.cbbm" placeholder="船号"
:value="item.cbbm"> style="height: 28px;
</el-option> line-height: 28px; width: 150px;"
</el-select> 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>
<el-form-item label="批量:"> <el-form-item label="批量:">
<el-input v-model="queryParam.dcPl" type="search" placeholder="批量" ></el-input> <el-input v-model="queryParam.dcPl" type="search" placeholder="批量" ></el-input>
@ -25,7 +47,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="20"> <el-col :span="22">
<el-form-item label="状态:"> <el-form-item label="状态:">
<el-select v-model="queryParam.zt" filterable placeholder="状态" @change="czbhChange" > <el-select v-model="queryParam.zt" filterable placeholder="状态" @change="czbhChange" >
<el-option <el-option
@ -79,8 +101,7 @@ import { mapGetters } from 'vuex'
import XEUtils from 'xe-utils' import XEUtils from 'xe-utils'
import {null2str} from "@/utils/rpkj"; import {null2str} from "@/utils/rpkj";
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { startLoading, endLoading } from '@/utils' import {getCzplBase} from "@/api/sjzx/jcsj";
import { Message } from 'element-ui'
export default { export default {
name:'QfxqCX', name:'QfxqCX',
data() { data() {
@ -91,6 +112,16 @@ export default {
zt:'' zt:''
}, },
list: [], list: [],
projectData:[],
projectData1:[],
projectColumns: [
{field: 'cbbm', title: '船号',width: 110},
{ field: 'wgbs', title: '完工标识', width: 80,
slots:{
default: 'wgbsEdit'
},
},
],
filedis:true, filedis:true,
uploadData:{ uploadData:{
}, },
@ -170,11 +201,31 @@ export default {
this.initList() this.initList()
}, },
methods: { methods: {
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.project.indexOf(this.queryParam.dcch.toUpperCase()) > -1)
} else {
this.projectData = this.projectData1.slice(0)
}
},
initBase(){ initBase(){
getCzxx({}).then(res=>{ getCzxx({}).then(res=>{
this.dictData.cbbm = res.data this.dictData.cbbm = res.data
}) })
getCzplBase({}).then(res=>{
this.projectData=res.data.cbbm
this.projectData1=res.data.cbbm
})
const dict=window.localStorage.getItem('ZTLX'); const dict=window.localStorage.getItem('ZTLX');
this.zt=JSON.parse(dict) this.zt=JSON.parse(dict)
}, },

@ -13,7 +13,6 @@
<el-form-item label="状态:" > <el-form-item label="状态:" >
<el-select <el-select
v-model="queryParam.gdZt" v-model="queryParam.gdZt"
placeholder="状态"
clearable clearable
disabled disabled
> >
@ -109,7 +108,7 @@ export default {
queryParam: { queryParam: {
beginTime:'2023/08/01', beginTime:'2023/08/01',
endTime:'2023/10/01', endTime:'2023/10/01',
// gdZt:'0' gdZt:'0'
}, },
gdZtOptions:[ gdZtOptions:[
{ {

File diff suppressed because it is too large Load Diff

@ -71,8 +71,6 @@
:footer-method="footerMethod" :footer-method="footerMethod"
:footer-cell-class-name="footerCellClassName" :footer-cell-class-name="footerCellClassName"
:data="arrList" :data="arrList"
@checkbox-all="selectAllEvent"
@checkbox-change="selectChangeEvent"
> >
<vxe-column type="seq" width="80" :resizable="false" show-overflow> <vxe-column type="seq" width="80" :resizable="false" show-overflow>
<template #header> <template #header>
@ -108,6 +106,7 @@
<script> <script>
import { getList, tj, save, upload } from "@/api/jhzx/xbjhWH"; import { getList, tj, save, upload } from "@/api/jhzx/xbjhWH";
import { getCzxx } from "@/api/jhzx/qfxq"; import { getCzxx } from "@/api/jhzx/qfxq";
import XEUtils from "xe-utils";
export default { export default {
name: "xbjhCX", name: "xbjhCX",
data() { data() {
@ -169,6 +168,7 @@ export default {
em.zl = em.zl ? em.zl : null; em.zl = em.zl ? em.zl : null;
}); });
}); });
this.tableData = data; this.tableData = data;
this.leftColumn = []; // this.leftColumn = []; //
this.topColumn = []; // this.topColumn = []; //
@ -251,6 +251,7 @@ export default {
} }
} }
this.arrList = Object.values(objeckList); //data this.arrList = Object.values(objeckList); //data
}, },
// excel // excel
@ -312,13 +313,13 @@ export default {
} else { } else {
this.request.nf = ""; this.request.nf = "";
} }
// if()
getList(params).then((res) => { getList(params).then((res) => {
if (res.success) { if (res.success) {
this.checkedList = {}; this.checkedList = {};
this.getTableList(res.data); this.getTableList(res.data);
} }
}); });
}, },
// //
total(list, field) { total(list, field) {
@ -331,17 +332,26 @@ export default {
return count; return count;
}, },
footerMethod({ columns, data }) { footerMethod({ columns, data }) {
const totalList = []; // console.log( columns, data)
columns.forEach((column) => { return [
if (["checkbox"].includes(column.property)) { columns.map((column, columnIndex) => {
return "合并了"; 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
} }
var totalData = null; count = this.cal.accAdd(count, num)
totalData = this.total(data, column.property); })
totalList.push(totalData); return count==0?'-':count;
});
totalList[0] = "合计";
return [totalList];
}, },
// header css // header css
headerCellClassName({ column, $rowIndex }) { headerCellClassName({ column, $rowIndex }) {

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

@ -57,22 +57,6 @@
</span> </span>
</el-form-item> </el-form-item>
</el-tooltip> </el-tooltip>
<!--<el-form-item prop="username">-->
<!--<span class="svg-container">-->
<!--<svg-icon icon-class="user" />-->
<!--</span>-->
<!--<el-input-->
<!--ref="zxtbm"-->
<!--v-model="loginForm.zxtbm"-->
<!--placeholder="Username"-->
<!--name="zxtbm"-->
<!--type="text"-->
<!--tabindex="1"-->
<!--autocomplete="on"-->
<!--/>-->
<!--</el-form-item>-->
<template > <template >
<div align="center" > <div align="center" >
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">账号登陆</el-button> <el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">账号登陆</el-button>
@ -308,10 +292,11 @@
height: 47px; height: 47px;
caret-color: $cursor; caret-color: $cursor;
&:-webkit-autofill { //
box-shadow: 0 0 0px 1000px $bg inset !important; //&:-webkit-autofill {
-webkit-text-fill-color: $cursor !important; // box-shadow: 0 0 0px 1000px $bg inset !important;
} // -webkit-text-fill-color: $cursor !important;
//}
} }
} }

@ -87,11 +87,11 @@ export default {
title: "星期", title: "星期",
align: "center", align: "center",
}, },
{ // {
field: "yz", // field: "yz",
title: "月周", // title: "",
align: "center", // align: "center",
}, // },
{ {
field: "nz", field: "nz",
title: "年周", title: "年周",

@ -4,7 +4,7 @@
<el-header style="width: 100%"> <el-header style="width: 100%">
<el-form ref="requestForm" :model="request" label-width="80px"> <el-form ref="requestForm" :model="request" label-width="80px">
<el-row> <el-row>
<el-col :span="4"> <el-col :span="8">
<el-form-item label="跨位:"> <el-form-item label="跨位:">
<el-select v-model="request.kw" placeholder="跨位" clearable> <el-select v-model="request.kw" placeholder="跨位" clearable>
<el-option <el-option
@ -17,13 +17,13 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="设备名称:"> <!-- <el-form-item label="设备名称:">-->
<el-input <!-- <el-input-->
v-model="request.sbmc" <!-- v-model="request.sbmc"-->
placeholder="设备名称" <!-- placeholder="设备名称"-->
clearable <!-- clearable-->
/> <!-- />-->
</el-form-item> <!-- </el-form-item>-->
</el-col> </el-col>
<el-col :span="16" style="text-align: right"> <el-col :span="16" style="text-align: right">
<el-button type="success" @click="toolbarButtonClickEvent('insert')" <el-button type="success" @click="toolbarButtonClickEvent('insert')"
@ -117,6 +117,28 @@ export default {
tableColumn: [ tableColumn: [
{ type: "checkbox", width: "50", align: "center" }, { type: "checkbox", width: "50", align: "center" },
{ type: "seq", width: "50", title: "序号", 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: "kw", field: "kw",
title: "跨位", title: "跨位",
@ -148,7 +170,11 @@ export default {
title: "工序", title: "工序",
align: "center", align: "center",
minWidth: "70", minWidth: "70",
editRender: { name: "input" }, editRender: {
name: "$select",
options: [],
props: { clearable: true },
},
filters: [ filters: [
{ {
data: { data: {
@ -167,7 +193,7 @@ export default {
}, },
{ {
field: "szcs", field: "szcs",
title: "所属部门", title: "设备所属部门",
align: "center", align: "center",
minWidth: "90", minWidth: "90",
editRender: { editRender: {
@ -223,29 +249,6 @@ export default {
], ],
filterRender: { name: "FilterCombination" }, filterRender: { name: "FilterCombination" },
}, },
{
field: "sbbh",
title: "设备编号",
align: "center",
minWidth: "90",
editRender: { name: "input" },
slots: { edit: "sbbh_edit" },
filters: [
{
data: {
checks: [],
sVal: "",
sMenu: "",
fType1: "",
fVal1: "",
fMode: "and",
fType2: "",
fVal2: "",
},
},
],
filterRender: { name: "FilterCombination" },
},
{ {
field: "sbcn", field: "sbcn",
title: "产能(每小时)", title: "产能(每小时)",
@ -273,7 +276,11 @@ export default {
title: "产能单位", title: "产能单位",
align: "center", align: "center",
minWidth: "90", minWidth: "90",
editRender: { name: "input" }, editRender: {
name: "$select",
options: [],
props: { clearable: true },
},
filters: [ filters: [
{ {
data: { data: {
@ -291,8 +298,8 @@ export default {
filterRender: { name: "FilterCombination" }, filterRender: { name: "FilterCombination" },
}, },
{ {
field: "dwsj", field: "",
title: "产能系数", title: "设备默认排产顺序",
align: "center", align: "center",
minWidth: "90", minWidth: "90",
editRender: { name: "input" }, editRender: { name: "input" },
@ -330,8 +337,47 @@ export default {
this.emSbjbbZM("bmbm"); this.emSbjbbZM("bmbm");
this.getBMMCBM(); this.getBMMCBM();
this.initList(); this.initList();
this.initgxList();
this.initdwList();
}, },
methods: { methods: {
// xn20231110
initgxList(){
const dict=window.localStorage.getItem( 'PCGX');
const gxList =JSON.parse(dict)
this.$nextTick(() => {
const tableRef = this.$refs.tableRef;
const gx = tableRef.getColumnByField("gx");
const testList = [];
for (let i = 0; i < gxList.length; i++) {
const temp = {
label: gxList[i].bmsm,
value: gxList[i].bm,
};
testList.push(temp);
}
gx.editRender.options = testList;
});
},
initdwList(){
const dict=window.localStorage.getItem( 'JLDW');
const dwList =JSON.parse(dict)
this.$nextTick(() => {
const tableRef = this.$refs.tableRef;
const dw = tableRef.getColumnByField("dw");
const testList = [];
for (let i = 0; i < dwList.length; i++) {
const temp = {
label: dwList[i].bmsm,
value: dwList[i].bm,
};
testList.push(temp);
}
dw.editRender.options = testList;
});
},
// //
getBMMCBM() { getBMMCBM() {
getBMMCBM().then((res) => { getBMMCBM().then((res) => {

Loading…
Cancel
Save