|
|
@ -11,7 +11,7 @@
|
|
|
|
<vxe-pulldown ref="xDown4" transfer >
|
|
|
|
<vxe-pulldown ref="xDown4" transfer >
|
|
|
|
<template #default>
|
|
|
|
<template #default>
|
|
|
|
<vxe-input
|
|
|
|
<vxe-input
|
|
|
|
v-model="queryParam.dcch"
|
|
|
|
v-model="queryParam.dcCh"
|
|
|
|
placeholder="船号"
|
|
|
|
placeholder="船号"
|
|
|
|
style="height: 28px;
|
|
|
|
style="height: 28px;
|
|
|
|
line-height: 28px; width: 140px;"
|
|
|
|
line-height: 28px; width: 140px;"
|
|
|
@ -50,22 +50,9 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="14">
|
|
|
|
<el-col :span="14"></el-col>
|
|
|
|
<!-- <el-select v-model="inParam.zt" placeholder="状态" clearable >-->
|
|
|
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
|
|
|
<!-- v-for="item in this.dictData.kwxxs"-->
|
|
|
|
|
|
|
|
<!-- :key="item.bm"-->
|
|
|
|
|
|
|
|
<!-- :label="item.bmsm"-->
|
|
|
|
|
|
|
|
<!-- :value="item.bm"-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="inParam.rqfw" placeholder="日期范围" clearable style="width: 200px" />-->
|
|
|
|
|
|
|
|
<!-- <el-button type="info" @click="plClick">批量</el-button>-->
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="10" >
|
|
|
|
<el-col :span="10" >
|
|
|
|
<el-form-item style="float: right" >
|
|
|
|
<el-form-item style="float: right" >
|
|
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="success"
|
|
|
|
type="success"
|
|
|
|
@click="toolbarButtonClickEvent('save')"
|
|
|
|
@click="toolbarButtonClickEvent('save')"
|
|
|
@ -142,7 +129,7 @@ export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
queryParam: {
|
|
|
|
queryParam: {
|
|
|
|
dcch:'',
|
|
|
|
dcCh:'',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},inParam:{
|
|
|
|
},inParam:{
|
|
|
@ -170,7 +157,7 @@ export default {
|
|
|
|
{ type: 'seq', width: 40, title: '序号' },
|
|
|
|
{ type: 'seq', width: 40, title: '序号' },
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'dcCh',
|
|
|
|
field: 'dcCh',
|
|
|
|
title: '船号',editRender: { name: 'input' },
|
|
|
|
title: '船号',editRender: { name: '$select',options: [], },
|
|
|
|
width: 120,
|
|
|
|
width: 120,
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
filterRender: { name: 'FilterCombination' }
|
|
|
|
filterRender: { name: 'FilterCombination' }
|
|
|
@ -198,7 +185,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'zl',
|
|
|
|
field: 'zl',
|
|
|
|
title: '组立',editRender: { name: 'input' },
|
|
|
|
title: '组立',editRender: { name: '$select',options: [{label: '小组立',value:'X'},{label: '中大组立',value:'D'}], },
|
|
|
|
width: 120,
|
|
|
|
width: 120,
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
filterRender: { name: 'FilterCombination' }
|
|
|
|
filterRender: { name: 'FilterCombination' }
|
|
|
@ -249,7 +236,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
cellClickEvent({row}) {
|
|
|
|
cellClickEvent({row}) {
|
|
|
|
this.queryParam.dcch = row.cbbm
|
|
|
|
this.queryParam.dcCh = row.cbbm
|
|
|
|
this.$refs.xDown4.hidePanel()
|
|
|
|
this.$refs.xDown4.hidePanel()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
focusEvent4() {
|
|
|
|
focusEvent4() {
|
|
|
@ -274,6 +261,17 @@ export default {
|
|
|
|
this.dictData = res.data
|
|
|
|
this.dictData = res.data
|
|
|
|
this.projectData=res.data.cbbm
|
|
|
|
this.projectData=res.data.cbbm
|
|
|
|
this.projectData1=res.data.cbbm
|
|
|
|
this.projectData1=res.data.cbbm
|
|
|
|
|
|
|
|
const select=this.$refs.xGrid.getColumnByField('dcCh')
|
|
|
|
|
|
|
|
const chList=[]
|
|
|
|
|
|
|
|
console.log(this.projectData1)
|
|
|
|
|
|
|
|
res.data.cbbm.forEach(item=>{
|
|
|
|
|
|
|
|
const data={
|
|
|
|
|
|
|
|
label:item.cbbm,
|
|
|
|
|
|
|
|
value:item.cbbm
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
chList.push(data)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
select.editRender.options=chList
|
|
|
|
// console.log(this.dictData)
|
|
|
|
// console.log(this.dictData)
|
|
|
|
// const xGrid = this.$refs.xGrid
|
|
|
|
// const xGrid = this.$refs.xGrid
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -285,12 +283,11 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
initList() {
|
|
|
|
initList() {
|
|
|
|
yppyzcx(this.request).then((res) => {
|
|
|
|
yppyzcx(this.queryParam).then((res) => {
|
|
|
|
this.list = res.data
|
|
|
|
this.list = res.data
|
|
|
|
if (this.$refs.xGrid) {
|
|
|
|
if (this.$refs.xGrid) {
|
|
|
|
this.$refs.xGrid.loadData(this.list)
|
|
|
|
this.$refs.xGrid.loadData(this.list)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -331,10 +328,6 @@ export default {
|
|
|
|
} = this.$refs.xGrid.getRecordset()
|
|
|
|
} = this.$refs.xGrid.getRecordset()
|
|
|
|
switch (code) {
|
|
|
|
switch (code) {
|
|
|
|
case 'insert':
|
|
|
|
case 'insert':
|
|
|
|
if(this.request.dwbm==='' ||this.request.dwbm===null){
|
|
|
|
|
|
|
|
this.$message({ message: '请选择需求单位!', type: 'warning' })
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.$refs.xGrid.insertAt({
|
|
|
|
this.$refs.xGrid.insertAt({
|
|
|
|
|
|
|
|
|
|
|
|
}, -1).then(({ row }) => {
|
|
|
|
}, -1).then(({ row }) => {
|
|
|
|