diff --git a/src/api/jhzx/ylxx.js b/src/api/jhzx/ylxx.js index a3cd482..2bd9430 100644 --- a/src/api/jhzx/ylxx.js +++ b/src/api/jhzx/ylxx.js @@ -1,4 +1,5 @@ import request from '@/utils/request' export function getYlList(data) {return request({url: '/mpYlxxp/getYlList', method: 'post', data})} +export function czzjList(data) {return request({url: '/mpYlxxp/czzjList', method: 'post', data})} diff --git a/src/views/jhzxgl/sljhD.vue b/src/views/jhzxgl/sljhD.vue index 69c4def..af1ab3d 100644 --- a/src/views/jhzxgl/sljhD.vue +++ b/src/views/jhzxgl/sljhD.vue @@ -20,15 +20,37 @@ - - - - + + + + + @@ -115,19 +137,48 @@ - - - - - + + + + + + + + + + + + + @@ -328,6 +379,8 @@ export default { dictData:{}, height: '500px', projectData:[], + projectData5:[], + projectData6:[], projectData1:[], projectColumns: [ {field: 'cbbm', title: '船号',width: 110}, @@ -418,23 +471,36 @@ export default { filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination' } }, + // { + // field: 'slkcxx', + // title: '上料库存信息', + // width: 120, + // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + // filterRender: { name: 'FilterCombination' } + // }, { - field: 'slkcxx', - title: '上料库存信息', + field: 'slycldw', + title: '上料预处理垛位',editRender: { + name: '$select', options: [], + optionProps: {value: 'id', label: 'name'}, + props: {clearable: true} + , events: {change: this.selectChange} + }, width: 120, filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination' } }, { - field: 'slycldw', - title: '上料预处理垛位', + field: 'slyclcs', + title: '上料预处理层数',editRender: { name: 'input' }, width: 120, filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination' } }, + { field: 'slpgry', - title: '上料派工人', + title: '上料派工人',editRender: { name: 'input' }, width: 120, filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination' } @@ -720,6 +786,43 @@ export default { } }, + + cellClickEvent5({row}) { + this.inParam.dcch = row.cbbm + this.$refs.xDown5.hidePanel() + }, + focusEvent5() { + this.$refs.xDown5.showPanel() + }, + keyupEvent5() { + + + if (this.inParam.dcch) { + this.projectData5 = this.projectData1.filter(row => row.cbbm.indexOf(this.inParam.dcch.toUpperCase()) > -1) + } else { + this.projectData5 = this.projectData1.slice(0) + } + + }, + keyupEvent6() { + + + if (this.queryParam.dcch) { + console.log(111) + this.projectData6 = this.projectData1.filter(row => row.cbbm.indexOf(this.queryParam.dcch.toUpperCase()) > -1) + } else { + this.projectData6 = this.projectData1.slice(0) + } + + }, + cellClickEvent6({row}) { + this.queryParam.dcch = row.cbbm + this.$refs.xDown6.hidePanel() + }, + focusEvent6() { + this.$refs.xDown6.showPanel() + }, + ztChange(){ this.list=[] }, @@ -806,6 +909,8 @@ export default { getPgdBase({}).then(res=>{ this.dictData = res.data this.projectData=res.data.cbbm + this.projectData5=res.data.cbbm + this.projectData6=res.data.cbbm this.projectData1=res.data.cbbm @@ -825,7 +930,8 @@ export default { const pwwz = this.$refs.xGrid.getColumnByField('pwwz') pwwz.editRender.options = this.dictData.pwwz - + const slycldw = this.$refs.xGrid1.getColumnByField('slycldw') + slycldw.editRender.options = this.dictData.ycldws @@ -899,13 +1005,13 @@ export default { }) }, - initList() { - this.bdbs="" - // if (this.queryParam.dcch === '') { - // this.$message.warning('选择船只编号') - // return - // } - getKcAndSljh(this.queryParam).then((res) => { + async initList() { + this.bdbs="" + if (this.queryParam.dcch === '') { + // this.queryParam.dcch=aaa + + } + await getKcAndSljh(this.queryParam).then((res) => { this.tableOne = res.data.slkcs console.log(this.tableOne) @@ -937,6 +1043,7 @@ export default { if (this.$refs.xGrid1) { this.$refs.xGrid1.loadData(res.data) console.log(this.list) + this.initList() } }) @@ -946,26 +1053,31 @@ export default { if(this.queryParam.rqopt!=='01'){ return } - - - if(this.inParam.pl !=='') { - this.queryParam.xqdcch = this.inParam.dcch - } + // this.bdbs='01' 核对 标识 等于 01 不能继续核对 if(this.inParam.dcch !==''){ - this.queryParam.xqdcch=this.inParam.dcch - this.getlist1().then(res=>{ + this.queryParam.dcch=this.inParam.dcch + } + this.initList().then(res=>{ + if(this.inParam.pl !=='') { + this.queryParam.xqpl = this.inParam.pl + } + if(this.inParam.dcch !==''){ + this.queryParam.xqdcch=this.inParam.dcch + this.getlist1().then(res=>{ + this.hd() + }) + + }else{ this.hd() - }) + } - }else{ - this.hd() - } + // if(this.bdbs=='01'){ + // this.$message({ message: '核对结果未保存,重新查询后进行核对', type: 'warning' }) + // return + // } + console.log(this.$refs.xGrid.getTableData()) + }) - // if(this.bdbs=='01'){ - // this.$message({ message: '核对结果未保存,重新查询后进行核对', type: 'warning' }) - // return - // } - console.log(this.$refs.xGrid.getTableData()) }, @@ -978,13 +1090,15 @@ export default { "dw":this.inParam.dw }).then((res) => { if(res.success){ - + this.bdbs='01' // 与现有数据进行比对 let array1 = this.$refs.xGrid.getTableData().visibleData let array2=res.data.slkcs console.log(array1) console.log(array2) array1.forEach(item1 => { + this.$refs.xGrid.setCheckboxRow(item1,false) + array2.forEach(item2 => { if (item1.ckh === item2.ckh && item1.wph === item2.wph && item1.kwh === item2.kwh && item1.nbsbm === item2.nbsbm) { //console.log(`Match found: ${item1.name} and ${item2.name}`); @@ -1019,7 +1133,9 @@ export default { item1.slhth = item2.dcFd item1.slwlh = item2.wph item1.slkcdw = item2.kwh - item1.slycldw = item1.slycldw + console.log(item1.slycldw) + item1.slycldw = this.inParam.dw + item1.slyclcs = 1 this.$refs.xGrid1.setCheckboxRow(item1, true) return @@ -1032,6 +1148,8 @@ export default { }) + + }, saveOne(){ if(this.queryParam.rqopt!=='01'){ diff --git a/src/views/jhzxgl/ylxx.vue b/src/views/jhzxgl/ylxx.vue index 80c1c46..fd22c3b 100644 --- a/src/views/jhzxgl/ylxx.vue +++ b/src/views/jhzxgl/ylxx.vue @@ -133,7 +133,7 @@ import { getToken } from '@/utils/auth' import { startLoading, endLoading } from '@/utils' import { Message } from 'element-ui' export default { - name:'HxjhD', + name:'Ylxx', data() { return { queryParam: { @@ -205,13 +205,13 @@ export default { { field: 'dcZl', title: '组立', - width: 120, + width: 120,formatter: ['dictFormat','ZLLB'], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination' } }, { field: 'dcHx', - title: '划线', + title: '划线',formatter: ['dictFormat','HXLX'], width: 120, filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination' } diff --git a/src/views/kcwz/wzkctj.vue b/src/views/kcwz/wzkctj.vue index e0acfc6..56c6151 100644 --- a/src/views/kcwz/wzkctj.vue +++ b/src/views/kcwz/wzkctj.vue @@ -215,6 +215,7 @@ export default { // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],}, // { field: 'zt', title: '状态',width: 80, // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],}, + { field: 'dcCh', title: '船号',width: 100, filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination', }}, @@ -350,14 +351,29 @@ export default { { type: 'seq', width: 40, title: '序号' }, // 1 // { title: '操作', width: 50, slots: { default: 'operation' }, fixed: 'right' }, { - title: '小合同号', + title: '入库日期', width: "120px", - field: 'gcddh', + field: 'rkrq', filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination' }, }, + { + title: '车号', + width: "100px", + field: 'dcTpbh', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination' }, + }, + { + title: '合同号', + width: "120px", + field: 'dcFd', + + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination' }, + }, { title: '期量', width: "90px", @@ -366,6 +382,16 @@ export default { filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination' }, }, + { + title: '小合同号', + width: "120px", + field: 'gcddh', + + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination' }, + }, + + { title: '船号', @@ -528,30 +554,7 @@ export default { filterRender: { name: 'FilterCombination' }, }, - { - title: '入库日期', - width: "120px", - field: 'rkrq', - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { - title: '车号', - width: "100px", - field: 'dcTpbh', - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { - title: '合同号', - width: "120px", - field: 'dcFd', - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, { title: '生产id', width: "120px", diff --git a/src/views/zl/czzjgz.vue b/src/views/zl/czzjgz.vue index e69de29..a430c13 100644 --- a/src/views/zl/czzjgz.vue +++ b/src/views/zl/czzjgz.vue @@ -0,0 +1,619 @@ + + + +