From 4d320617aa999e91f0546c7f6c15b682dd13b77e Mon Sep 17 00:00:00 2001 From: xhj Date: Tue, 5 Nov 2024 11:49:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jhzxgl/pgd.js | 1 + src/views/jhzxgl/sljhD.vue | 132 ++++++++++++++++++++++--------------- 2 files changed, 80 insertions(+), 53 deletions(-) diff --git a/src/api/jhzxgl/pgd.js b/src/api/jhzxgl/pgd.js index eba2e0e..c617358 100644 --- a/src/api/jhzxgl/pgd.js +++ b/src/api/jhzxgl/pgd.js @@ -32,6 +32,7 @@ export function getKcAndSljh1(data) {return request({url: '/pgdSljh/getKcAndSljh export function kcAdnSlBd(data) {return request({url: '/pgdSljh/kcAdnSlBd', method: 'post', data})} export function kcAdnSlBd1(data) {return request({url: '/pgdSljh/kcAdnSlBd1', method: 'post', data})} export function kcAdnSlBd2(data) {return request({url: '/pgdSljh/kcAdnSlBd2', method: 'post', data})} +export function kcAdnSlBdQX(data) {return request({url: '/pgdSljh/kcAdnSlBdQX', method: 'post', data})} export function kcAdnSlZx(data) {return request({url: '/pgdSljh/kcAdnSlZx', method: 'post', data})} export function saveSljhPgdXd(data) {return request({url: '/pgdSljh/saveSljhPgdXd', method: 'post', data})} export function saveSljhPgdXdBack(data) {return request({url: '/pgdSljh/saveSljhPgdXdBack', method: 'post', data})} diff --git a/src/views/jhzxgl/sljhD.vue b/src/views/jhzxgl/sljhD.vue index ac57733..fb60d38 100644 --- a/src/views/jhzxgl/sljhD.vue +++ b/src/views/jhzxgl/sljhD.vue @@ -5,7 +5,7 @@ - + @@ -55,36 +55,43 @@ - - + + + + + + + + + + + + + + + + + + + - - - - + + - - - - - 启用跨位 - + + + - + 查询 核对 保存 打印 - + 导出 @@ -201,16 +208,16 @@ > - - - - - + + + + + + + + + + 0){ for(let i = 0; i < selectRecords.length; i++) { console.log(selectRecords[i].ydid) if(this.inParam.dcch !==''){ - if(selectRecords[i].ydid!==null){ - this.$message({ message: '改数据已经匹配生产计划', type: 'warning' }) - return - } + // if(selectRecords[i].ydid!==null || selectRecords[i].ydid!==''){ + // this.$message({ message: '改数据已经匹配生产计划', type: 'warning' }) + // return + // } selectRecords[i].zych = this.inParam.dcch } if(this.inParam.dcpl !==''){ - if(selectRecords[i].ydid!==null){ - this.$message({ message: '改数据已经匹配生产计划', type: 'warning' }) - return - } + // if(selectRecords[i].ydid!==null){ + // this.$message({ message: '改数据已经匹配生产计划', type: 'warning' }) + // return + // } selectRecords[i].zypl = this.inParam.dcpl } if(this.inParam.lx !==''){ - if(selectRecords[i].ydid!==null){ - this.$message({ message: '改数据已经匹配生产计划', type: 'warning' }) - return - } + // if(selectRecords[i].ydid!==null){ + // this.$message({ message: '改数据已经匹配生产计划', type: 'warning' }) + // return + // } selectRecords[i].zylx = this.inParam.lx } if(this.inParam.qgkw !==''){ - if(selectRecords[i].ydid!==null){ - this.$message({ message: '改数据已经匹配生产计划', type: 'warning' }) - return - } + // if(selectRecords[i].ydid!==null){ + // this.$message({ message: '改数据已经匹配生产计划', type: 'warning' }) + // return + // } selectRecords[i].sldw = this.inParam.qgkw } if(this.inParam.pwwz!==''){ @@ -1130,6 +1147,15 @@ export default { }, hdClick(){ + + if(this.queryParam.rqopt=='02'){ + kcAdnSlBdQX({ "data1":this.$refs.xGrid.getCheckboxRecords(),}).then(res=>{ + if(res.success){ + this.initList() + } + }) + } + if(this.queryParam.rqopt!=='01'){ return } @@ -1139,10 +1165,10 @@ export default { return } - // if(this.inParam.dcpl ===''){ - // this.$message({ message: '请输入需求批量', type: 'warning' }) - // return - // } + if(this.inParam.dcpl ===''){ + this.$message({ message: '请输入需求批量', type: 'warning' }) + return + } let obj =this.$refs.xGrid.getTableData().visibleData; if(obj.length<=0){ this.$message({ message: '页面无数据', type: 'warning' })