|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<el-container>
|
|
|
|
|
<el-header style="width: 100%; height: 80px;font-size: 12px">
|
|
|
|
|
|
|
|
|
|
<el-form :inline="true" label-width="65px" label-position="left">
|
|
|
|
|
<el-form :inline="true" label-width="80px" label-position="left">
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
<el-col :span="22">
|
|
|
|
@ -18,6 +18,16 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="目标船号:">
|
|
|
|
|
<el-select v-model="queryParam.mbch" filterable placeholder="目标船号" @change="czbhChange" >
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in dictData.cbbm"
|
|
|
|
|
:key="item.cbbm"
|
|
|
|
|
:label="item.cbbm"
|
|
|
|
|
:value="item.cbbm">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="批量:">
|
|
|
|
|
<el-input v-model="queryParam.dcpl" type="search" placeholder="批量" ></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -39,6 +49,26 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-form :inline="true" label-width="65px" label-position="left">
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
<el-col :span="22">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
<el-form-item style="float: right" >
|
|
|
|
|
|
|
|
|
|
<el-button type="success" @click="copy">取自</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
@ -193,7 +223,7 @@ import {
|
|
|
|
|
getCzplBase,
|
|
|
|
|
getListBomRealy,
|
|
|
|
|
saveListBom,
|
|
|
|
|
addListBom, uploadBom,
|
|
|
|
|
addListBom, uploadBom,copyListBom
|
|
|
|
|
} from '@/api/sjzx/jcsj'
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
import XEUtils from 'xe-utils'
|
|
|
|
@ -220,6 +250,7 @@ export default {
|
|
|
|
|
dcch:'',
|
|
|
|
|
dcpl:'',
|
|
|
|
|
zt:'',
|
|
|
|
|
mbch:'',
|
|
|
|
|
},
|
|
|
|
|
tableData: [],
|
|
|
|
|
isupload:'02',
|
|
|
|
@ -374,12 +405,12 @@ export default {
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'pkbs', title: '坡口長度', width: 120,
|
|
|
|
|
{ field: 'pkbs', title: '坡口标识', width: 120,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{ field: 'pkcd', title: '坡口标识', width: 120,
|
|
|
|
|
{ field: 'pkcd', title: '坡口长度', width: 120,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', },
|
|
|
|
|
},
|
|
|
|
@ -739,7 +770,7 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
initList() {
|
|
|
|
|
if (this.queryParam.cbbm === '') {
|
|
|
|
|
if (this.queryParam.dcch === '') {
|
|
|
|
|
this.$message.warning('选择船只编号')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -764,13 +795,34 @@ export default {
|
|
|
|
|
|
|
|
|
|
selectChange(row) {
|
|
|
|
|
// this.$refs.xGrid.clearActived() // 清除单元格激活状态
|
|
|
|
|
this.$refs.xGrid.clearEdit() // 清除单元格激活状态
|
|
|
|
|
this.$refs.xGrid.clearEdit() // 清除单元格激活状态d
|
|
|
|
|
// this.$refs.xGrid.setEditCell(row.row, row.column.property) // 设置单元格为激活状态
|
|
|
|
|
null2str(row.row)
|
|
|
|
|
},
|
|
|
|
|
getHeight() {
|
|
|
|
|
this.height = window.innerHeight - 190
|
|
|
|
|
},
|
|
|
|
|
copy(){
|
|
|
|
|
if(this.queryParam.dcch===this.queryParam.mbch){
|
|
|
|
|
this.$message.warning('船号和目标船号不能一致')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(this.queryParam.dcch==='' || this.queryParam.dcch===null ){
|
|
|
|
|
this.$message.warning('船号不能为空')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(this.queryParam.mbch==='' || this.queryParam.mbch===null ){
|
|
|
|
|
this.$message.warning('目标船号不能为空')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
copyListBom(this.queryParam).then(res=>{
|
|
|
|
|
if(res.success){
|
|
|
|
|
this.queryParam.dcch=this.queryParam.mbch;
|
|
|
|
|
this.queryParam.mbch=''
|
|
|
|
|
this.initList();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
tjClick(){
|
|
|
|
|
let selectRecords = this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
|
|
|
|
|