|
|
|
@ -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 {
|
|
|
|
|