diff --git a/src/main.js b/src/main.js index 116d42c..d4f7e7f 100644 --- a/src/main.js +++ b/src/main.js @@ -25,8 +25,8 @@ import 'xe-utils' import VXETable from 'vxe-table' import 'vxe-table/lib/style.css' import cal from './utils/calculation' -// import VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx' -// VXETable.use(VXETablePluginExportXLSX) +import VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx' +VXETable.use(VXETablePluginExportXLSX) Vue.prototype.cal = cal Vue.use(VXETable) import print from './utils/print' //能不能单独引用 diff --git a/src/views/jhzx/dhqdWH.vue b/src/views/jhzx/dhqdWH.vue index 75b1289..f776e81 100644 --- a/src/views/jhzx/dhqdWH.vue +++ b/src/views/jhzx/dhqdWH.vue @@ -45,20 +45,19 @@ -
- - 导入 - -
- 保存 + + 导入 + + + +
@@ -99,6 +98,9 @@ + diff --git a/src/views/jhzx/qfxqSH.vue b/src/views/jhzx/qfxqSH.vue index 81c4cd1..d895167 100644 --- a/src/views/jhzx/qfxqSH.vue +++ b/src/views/jhzx/qfxqSH.vue @@ -5,14 +5,36 @@ - - - - + + + + @@ -83,6 +105,7 @@ import {null2str} from "@/utils/rpkj"; import { getToken } from '@/utils/auth' import { startLoading, endLoading } from '@/utils' import { Message } from 'element-ui' +import {getCzplBase} from "@/api/sjzx/jcsj"; export default { name:'QfxqSH', data() { @@ -93,6 +116,16 @@ export default { zt:'1' }, list: [], + projectData:[], + projectData1:[], + projectColumns: [ + {field: 'cbbm', title: '船号',width: 110}, + { field: 'wgbs', title: '完工标识', width: 80, + slots:{ + default: 'wgbsEdit' + }, + }, + ], isupload:'02', filedis:true, uploadData:{ @@ -173,6 +206,23 @@ export default { this.initList() }, 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) + } + + }, czbhChange(){ if (this.queryParam.dcCh === '') {s this.filedis=true @@ -184,6 +234,10 @@ export default { getCzxx({}).then(res=>{ this.dictData = res.data }) + getCzplBase({}).then(res=>{ + this.projectData=res.data.cbbm + this.projectData1=res.data.cbbm + }) }, initList() { // if (this.queryParam.dcCh === '') { diff --git a/src/views/jhzx/qfxqwh.vue b/src/views/jhzx/qfxqwh.vue index 3538718..f316e46 100644 --- a/src/views/jhzx/qfxqwh.vue +++ b/src/views/jhzx/qfxqwh.vue @@ -4,6 +4,38 @@ + + + + + + @@ -28,7 +60,7 @@ :disabled="filedis" :headers="heads" > - Excel导入 + 导入 @@ -83,6 +115,7 @@ import XEUtils from 'xe-utils' import { getToken } from '@/utils/auth' import { startLoading, endLoading } from '@/utils' import { Message } from 'element-ui' +import {getCzplBase} from "@/api/sjzx/jcsj"; export default { name:'Qfxqwh', data() { @@ -92,10 +125,21 @@ export default { zt:'0' }, list: [], - isupload:'02', + projectData:[], + projectData1:[], + projectColumns: [ + {field: 'cbbm', title: '船号',width: 110}, + { field: 'wgbs', title: '完工标识', width: 80, + slots:{ + default: 'wgbsEdit' + }, + }, + ], + filedis:false, uploadData:{ }, + isupload:'02', heads: { token: getToken() }, uploadAction: process.env.VUE_APP_BASE_API + '/dmQfxq/upload', dictData:[], @@ -171,6 +215,23 @@ export default { this.initBase() }, 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) + } + + }, uploadExcel() { this.uploadData.isupload = this.isupload }, @@ -205,6 +266,10 @@ export default { getCzxx({}).then(res=>{ this.dictData = res.data }) + getCzplBase({}).then(res=>{ + this.projectData=res.data.cbbm + this.projectData1=res.data.cbbm + }) }, initList() { diff --git a/src/views/jhzx/qfzxGL.vue b/src/views/jhzx/qfzxGL.vue new file mode 100644 index 0000000..e7f0543 --- /dev/null +++ b/src/views/jhzx/qfzxGL.vue @@ -0,0 +1,22 @@ + + + + diff --git a/src/views/jhzx/sygdCX.vue b/src/views/jhzx/sygdCX.vue index 11f143b..0ba58e5 100644 --- a/src/views/jhzx/sygdCX.vue +++ b/src/views/jhzx/sygdCX.vue @@ -102,7 +102,6 @@ export default { list: [], filedis:false, uploadData:{}, - heads: { token: getToken() }, dictData:[], height: '500px', tableColumn:[ diff --git a/src/views/jhzx/sygdWH.vue b/src/views/jhzx/sygdWH.vue index 31d60a5..936220c 100644 --- a/src/views/jhzx/sygdWH.vue +++ b/src/views/jhzx/sygdWH.vue @@ -83,7 +83,6 @@ @checkbox-all="selectAllEvent" @checkbox-change="selectChangeEvent" > - @@ -340,19 +339,10 @@ export default { { field: 's3xxSj', 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: 'jhwgDz', title: '计划大组完成时间',width: 100, - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination', }}, - { field: 'jhwgXz', title: '计划小组完成时间',width: 100, - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination', }}, { field: 'sjlyCh', title: '数据来源船',width: 100, filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination', }}, - { field: 'gxsj', title: '数据更新时间',width: 100, + { field: 'id', title: '流水号(禁止修改)',width: 100, filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination', }}, @@ -392,10 +382,10 @@ export default { type: 'xlsx',//导出文件类型 xlsx 和 csv data: this.data, // 数据源 // 过滤那个字段导出 - // columnFilterMethod: function(column, $columnIndex) { - // return !(column.$columnIndex === 0 ) - // // 0是复选框 不导出 - // } + columnFilterMethod: function(column, $columnIndex) { + return !(column.$columnIndex === 0 ) + // 0是复选框 不导出 + } }) }, uploadExcel() { @@ -460,7 +450,7 @@ export default { return XEUtils.toDateString(cellValue, 'yyyy/MM/dd') }, getHeight() { - this.height = window.innerHeight - 190 + this.height = window.innerHeight - 150 }, // 全选 selectAllEvent() { diff --git a/src/views/jhzx/symxCX.vue b/src/views/jhzx/symxCX.vue index c2faf32..3878e74 100644 --- a/src/views/jhzx/symxCX.vue +++ b/src/views/jhzx/symxCX.vue @@ -13,7 +13,7 @@ - 查询 + 查询 保存 提交三月滚动 @@ -107,6 +107,29 @@ + +
+ + + +
+
- - 保存 - - - -
- * 表中红色数据取自其他船只--> + 保存 + + + +
+ - -
- - - - - - + diff --git a/src/views/jhzx/tzxq.vue b/src/views/jhzx/tzxq.vue new file mode 100644 index 0000000..edbaed7 --- /dev/null +++ b/src/views/jhzx/tzxq.vue @@ -0,0 +1,22 @@ + + + + diff --git a/src/views/jhzx/wzxq.vue b/src/views/jhzx/wzxq.vue new file mode 100644 index 0000000..c671e2d --- /dev/null +++ b/src/views/jhzx/wzxq.vue @@ -0,0 +1,22 @@ + + + + diff --git a/src/views/jhzx/xbjhCX.vue b/src/views/jhzx/xbjhCX.vue index 22d2d64..eca63ef 100644 --- a/src/views/jhzx/xbjhCX.vue +++ b/src/views/jhzx/xbjhCX.vue @@ -6,28 +6,36 @@ - - - - - - - - - - - - + + + + @@ -51,7 +59,7 @@
- + 查询 @@ -107,6 +115,7 @@ import { getList, tj, save, upload } from "@/api/jhzx/xbjhWH"; import { getCzxx } from "@/api/jhzx/qfxq"; import XEUtils from "xe-utils"; +import {getCzplBase} from "@/api/sjzx/jcsj"; export default { name: "xbjhCX", data() { @@ -116,6 +125,16 @@ export default { Zt: "", nf: "", }, + projectData:[], + projectData1:[], + projectColumns: [ + {field: 'cbbm', title: '船号',width: 110}, + { field: 'wgbs', title: '完工标识', width: 80, + slots:{ + default: 'wgbsEdit' + }, + }, + ], nrStart: "", nrEnd: "", height: "500px", @@ -150,6 +169,23 @@ export default { this.getHeight(); }, methods: { + 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.project.indexOf(this.request.dcCh.toUpperCase()) > -1) + } else { + this.projectData = this.projectData1.slice(0) + } + + }, // 排序 compare(property) { return function (object1, object2) { @@ -294,6 +330,10 @@ export default { this.ShipNoList = res.data; } }); + getCzplBase({}).then(res=>{ + this.projectData=res.data.cbbm + this.projectData1=res.data.cbbm + }) }, // 获取列表接口 initList() { diff --git a/src/views/jhzx/xbjhWH.vue b/src/views/jhzx/xbjhWH.vue index 96e1fec..b7fbc7c 100644 --- a/src/views/jhzx/xbjhWH.vue +++ b/src/views/jhzx/xbjhWH.vue @@ -6,28 +6,36 @@ - - - - - - - - - - - - + + + + @@ -51,16 +59,13 @@
- - 审核 + 查询
-
+ 导入 -
- 保存 + +
@@ -95,7 +98,7 @@ @checkbox-all="selectAllEvent" @checkbox-change="selectChangeEvent" > - +