1.增加炉批号确认记录

2.修正看板月度计划情况数据显示问题
master
董哲奇 6 months ago
parent 66b26494b8
commit 2542852357

@ -1,5 +1,6 @@
import request from "@/utils/request";
//小池同步
export function syncXiaochi(data) {return request({url: '/xiaochi/syncXiaochi', method: 'get'})}
@ -63,7 +64,8 @@ export function saveQgdFk(data) {return request({url: '/pgdQgjh/saveQgdFk', meth
export function saveQgjhPg(data) {return request({url: '/pgdQgjh/saveQgjhPg', method: 'post', data})}
export function saveQgjhPgBack(data) {return request({url: '/pgdQgjh/saveQgjhPgBack', method: 'post', data})}
//炉批号确认
export function qrlph(data) {return request({url: '/pgdQgjh/comLph', method: 'post', data})}
export function saveQmPgdJs(data) {return request({url: '/pgdQmjh/saveQmPgdJs', method: 'post', data})}
export function getQmPgd(data) {return request({url: '/pgdQmjh/getQmPgd', method: 'post', data})}

@ -124,6 +124,7 @@
</el-col>
<el-col :span="4" >
<el-form-item style="float: right" >
<el-button type="success" @click="comLph"></el-button>
<el-button type="success" @click="slpgclick"></el-button>
<el-button type="success" @click="saveclick"></el-button>
@ -154,6 +155,7 @@
show-overflow
show-header-overflow
:header-cell-style="headerCellStyle"
:row-style="tableRowClassName"
>
@ -175,7 +177,7 @@ import {
savePwPgdXd,
savePwPgdXdBack,
savePwjhPg,
savePwjhPgBack
savePwjhPgBack, qrlph
} from '@/api/jhzxgl/pgd'
import { mapGetters } from 'vuex'
import XEUtils from 'xe-utils'
@ -346,7 +348,20 @@ export default {
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }
},
{
field: 'lphqrry',
title: '炉批号确认人',
width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }
},
{
field: 'lphqrrq',
title: '炉批号确认日期',
width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }
},
]
}
@ -364,6 +379,23 @@ export default {
},
methods: {
tableRowClassName({ row, rowIndex }){
if (row.lphqrrq){
return {backgroundColor:'rgb(236, 104, 104)'}
}
},
comLph(){
const data=this.$refs.xGrid.getCheckboxRecords()
if(data.length===0){
this.$message.warning('请选择已确认的数据')
return
}
qrlph(data.filter(item=>!item.lphqrrq)).then(()=>{
this.$message.success('成功')
this.initList();
})
},
headerCellStyle ({ column, columnIndex }) {
if (['qgry','qgpgrq','qgpgry','qgfkry','qgfkrq'].includes(column.property)) {
return {

Loading…
Cancel
Save