|
|
|
@ -6,7 +6,19 @@
|
|
|
|
|
<el-form :inline="true" label-width="60px" label-position="left">
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
<el-col :span="22">
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
|
|
|
|
|
<el-form-item label="状态:">
|
|
|
|
|
<el-select v-model="queryParam.zt" placeholder="状态" clearable @change="ztChange">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in statusOptions"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="船号:">
|
|
|
|
|
<vxe-pulldown ref="xDown4" transfer >
|
|
|
|
@ -53,7 +65,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item style="float: right" >
|
|
|
|
|
<el-button type="success" @click="initList">查询</el-button>
|
|
|
|
|
<el-button type="success" @click="syncXiaochi">同步小池</el-button>
|
|
|
|
@ -61,29 +73,49 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="14" >
|
|
|
|
|
<el-form-item label="状态:">
|
|
|
|
|
<el-select v-model="queryParam.zt" placeholder="状态" clearable>
|
|
|
|
|
|
|
|
|
|
<el-col :span="20" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span style="width:6%" >班组:</span>
|
|
|
|
|
<el-select v-model="inParam.scdw" placeholder="班组" clearable style="width: 15%" @change="bzClick">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in statusOptions"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
v-for="item in this.dictData.bmbm"
|
|
|
|
|
:key="item.bm"
|
|
|
|
|
:label="item.bmsm"
|
|
|
|
|
:value="item.bm"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6" style="text-align: right;">
|
|
|
|
|
<el-form-item >
|
|
|
|
|
<el-input v-model="queryParam.fkyy" placeholder="反馈原因" clearable />
|
|
|
|
|
<el-button type="info" @click="plClick">批量</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-select v-model="inParam.scry" placeholder="人员" clearable style="width: 15%" >
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in this.dictData.gxry"
|
|
|
|
|
:key="item.dlzh"
|
|
|
|
|
:label="item.dlzh"
|
|
|
|
|
:value="item.dlzh"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button type="info" @click="updates2()" style="width: 5%">批量</el-button>
|
|
|
|
|
<span style="width:6%" >反馈人员:</span>
|
|
|
|
|
<el-input v-model="inParam.slry" placeholder="反馈人员" clearable style="width:10%" />
|
|
|
|
|
<span style="width:6%" >反馈日期:</span>
|
|
|
|
|
<el-date-picker v-model="inParam.sljs" value-format="yyyy/MM/dd" format="yyyy/MM/dd" type="date" style="width: 15%" placeholder="反馈日期"/>
|
|
|
|
|
<el-button type="info" @click="updates('2')" style="width: 5%">批量</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4" >
|
|
|
|
|
<el-form-item style="float: right" >
|
|
|
|
|
<el-button type="success" @click="saveclick">反馈</el-button>
|
|
|
|
|
<el-button type="success" @click="slpgclick">派工</el-button>
|
|
|
|
|
<el-button type="success" @click="xdClick">接收</el-button>
|
|
|
|
|
<el-button type="success" @click="saveclick">反馈</el-button>
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -106,7 +138,7 @@
|
|
|
|
|
highlight-current-row
|
|
|
|
|
:data="list"
|
|
|
|
|
:scroll-y="{enabled: true}"
|
|
|
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true,activeMethod: activeRowMethod}"
|
|
|
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true}"
|
|
|
|
|
highlight-hover-row
|
|
|
|
|
show-overflow
|
|
|
|
|
show-header-overflow
|
|
|
|
@ -127,11 +159,13 @@
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
getQgPgd,
|
|
|
|
|
saveQgdFk,
|
|
|
|
|
saveQgPgdFk,
|
|
|
|
|
saveQgPgdXd,
|
|
|
|
|
saveQgPgdXdBack,
|
|
|
|
|
|
|
|
|
|
getPgdBase, syncXiaochi
|
|
|
|
|
saveQgjhPg,
|
|
|
|
|
saveQgjhPgBack,
|
|
|
|
|
getPgdBase, syncXiaochi, savePwjhPg
|
|
|
|
|
} from '@/api/jhzxgl/pgd'
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
import XEUtils from 'xe-utils'
|
|
|
|
@ -140,7 +174,7 @@ import { getToken } from '@/utils/auth'
|
|
|
|
|
import { startLoading, endLoading } from '@/utils'
|
|
|
|
|
import { Message } from 'element-ui'
|
|
|
|
|
export default {
|
|
|
|
|
name:'QgjhD',
|
|
|
|
|
name:'PwjhD',
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
queryParam: {
|
|
|
|
@ -157,13 +191,25 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "02",
|
|
|
|
|
label: "下达",
|
|
|
|
|
label: "派工",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "09",
|
|
|
|
|
value: "03",
|
|
|
|
|
label: "接收",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "04",
|
|
|
|
|
label: "反馈",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
inParam:{
|
|
|
|
|
slry:'',
|
|
|
|
|
slks:'',
|
|
|
|
|
sljs:'',
|
|
|
|
|
dw:'',
|
|
|
|
|
scry:'',
|
|
|
|
|
scdw:''
|
|
|
|
|
},
|
|
|
|
|
list: [],
|
|
|
|
|
heads: { token: getToken() },
|
|
|
|
|
uploadAction: process.env.VUE_APP_BASE_API + '/dmCzplpNew/uploadPl',
|
|
|
|
@ -179,6 +225,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
tableColumn: [
|
|
|
|
|
{ type: 'checkbox', width: 40 },
|
|
|
|
|
{ type: 'seq', width: 40, title: '序号' },
|
|
|
|
@ -319,24 +366,57 @@ export default {
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'zt', title: '状态', width: 100,
|
|
|
|
|
{ field: 'zt', title: '状态', width: 100,formatter: ['dictFormat','PGZT'],
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'fkry', title: '反馈人', width: 100,
|
|
|
|
|
{ field: 'scdw', title: '生产单位', width: 100,editRender: { name: 'input' },
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'fkrq', title: '反馈日期', width: 100,
|
|
|
|
|
{ field: 'scry', title: '生产人员', width: 100,editRender: { name: 'input' },
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
// { field: 'fkry', title: '派工人员', width: 100,
|
|
|
|
|
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
// filterRender: { name: 'FilterCombination', },
|
|
|
|
|
// },
|
|
|
|
|
// { field: 'fkrq', title: '派工日期', width: 100,
|
|
|
|
|
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
// filterRender: { name: 'FilterCombination', },
|
|
|
|
|
// },
|
|
|
|
|
{ field: 'jsry', title: '接收人员', width: 100,editRender: { name: 'input' },
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'jsrq', title: '接收日期', width: 100,editRender: { name: 'input' },
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
{ field: 'fkrq', title: '反馈日期', width: 100,editRender: { name: 'input' },
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'fkyy', title: '反馈原因', width: 100,editRender: { name: 'input' },
|
|
|
|
|
{ field: 'fkry', title: '反馈人员', width: 100, editRender: { name: 'input' },
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
// { field: 'fkry', title: '反馈人', width: 100,
|
|
|
|
|
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
// filterRender: { name: 'FilterCombination', },
|
|
|
|
|
// },
|
|
|
|
|
//
|
|
|
|
|
// { field: 'fkrq', title: '反馈日期', width: 100,
|
|
|
|
|
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
// filterRender: { name: 'FilterCombination', },
|
|
|
|
|
// },
|
|
|
|
|
//
|
|
|
|
|
// { field: 'fkyy', title: '反馈原因', width: 100,editRender: { name: 'input' },
|
|
|
|
|
// filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
// filterRender: { name: 'FilterCombination', },
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
{ field: 'bzry', title: '编制人', width: 100,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
@ -360,9 +440,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -401,20 +478,64 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
ztChange(){
|
|
|
|
|
this.list=[]
|
|
|
|
|
},
|
|
|
|
|
bzClick(){
|
|
|
|
|
console.log(this.dictData.gxry)
|
|
|
|
|
console.log(this.inParam.scdw)
|
|
|
|
|
this.dictData.gxry= this.dictData.gxry.filter(fst=>fst.szcs===this.inParam.scdw)
|
|
|
|
|
console.log(this.dictData.gxry)
|
|
|
|
|
},
|
|
|
|
|
updates2(){
|
|
|
|
|
let selectRecords = this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
|
|
|
|
|
if(selectRecords.length>0){
|
|
|
|
|
for(let i = 0; i < selectRecords.length; i++) {
|
|
|
|
|
|
|
|
|
|
selectRecords[i].dw = this.inParam.dw
|
|
|
|
|
selectRecords[i].scdw = this.inParam.scdw
|
|
|
|
|
selectRecords[i].scry = this.inParam.scry
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
this.$refs.xGrid.updateData(this.list)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
updates(type){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let selectRecords = this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
|
|
|
|
|
if(selectRecords.length>0){
|
|
|
|
|
for(let i = 0; i < selectRecords.length; i++) {
|
|
|
|
|
if(type==='1'){
|
|
|
|
|
|
|
|
|
|
selectRecords[i].slksrq = this.inParam.slks
|
|
|
|
|
}else if (type==='2'){
|
|
|
|
|
selectRecords[i].fkry = this.inParam.slry
|
|
|
|
|
selectRecords[i].fkrq = this.inParam.sljs
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
activeRowMethod({ row, rowIndex }){
|
|
|
|
|
if(row.zt==="01"){
|
|
|
|
|
return true
|
|
|
|
|
}else{
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
this.$refs.xGrid.updateData(this.list)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
activeRowMethod({ row, rowIndex }){
|
|
|
|
|
// if(row.zt==="01"){
|
|
|
|
|
// return true
|
|
|
|
|
// }else{
|
|
|
|
|
// return false
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
initBase(){
|
|
|
|
|
getPgdBase({}).then(res=>{
|
|
|
|
|
console.log(res.data)
|
|
|
|
|
this.dictData = res.data
|
|
|
|
|
this.projectData=res.data.cbbm
|
|
|
|
|
this.projectData1=res.data.cbbm
|
|
|
|
@ -431,24 +552,69 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
saveclick(){
|
|
|
|
|
let obj=this.$refs.xGrid.getUpdateRecords()
|
|
|
|
|
let obj=this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
// if(obj.length===0){
|
|
|
|
|
// this.$message({ message: '请填写反馈原因在进行反馈', type: 'warning' })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
saveQgdFk(obj).then(res=>{
|
|
|
|
|
if(res.success){
|
|
|
|
|
this.initList()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
slpgclick(){
|
|
|
|
|
if(this.queryParam.zt!=="01"){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let obj=this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
if(obj.length===0){
|
|
|
|
|
this.$message({ message: '请填写反馈原因在进行反馈', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
saveQgPgdFk(obj).then(res=>{
|
|
|
|
|
if(this.queryParam.zt==='02'){
|
|
|
|
|
this.$confirm('取消派工?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() =>{
|
|
|
|
|
saveQgjhPgBack(obj).then(res=>{
|
|
|
|
|
if(res.success){
|
|
|
|
|
this.$message({ message: '取消派工成功', type: 'success' })
|
|
|
|
|
this.initList()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}else {
|
|
|
|
|
this.$confirm('派工?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() =>{
|
|
|
|
|
saveQgjhPg(obj).then(res=>{
|
|
|
|
|
if(res.success){
|
|
|
|
|
this.initList()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
xdClick(){
|
|
|
|
|
|
|
|
|
|
if(this.queryParam.zt!=="02"){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let obj=this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
if(obj.length===0){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(this.queryParam.zt==='02'){
|
|
|
|
|
this.$confirm('取消下达?', '提示', {
|
|
|
|
|
if(this.queryParam.zt==='03'){
|
|
|
|
|
this.$confirm('取消接收?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
@ -462,14 +628,14 @@ export default {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}else {
|
|
|
|
|
this.$confirm('下达?', '提示', {
|
|
|
|
|
this.$confirm('接收?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() =>{
|
|
|
|
|
saveQgPgdXd(obj).then(res=>{
|
|
|
|
|
if(res.success){
|
|
|
|
|
this.$message({ message: '下达成功', type: 'success' })
|
|
|
|
|
this.$message({ message: '接收成功', type: 'success' })
|
|
|
|
|
this.initList()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|