|
|
|
@ -5,6 +5,39 @@
|
|
|
|
|
<el-form ref="requestForm" :model="request" label-width="75px">
|
|
|
|
|
<div class="flex-form" style="width: 100%">
|
|
|
|
|
<div class="flex-query">
|
|
|
|
|
<div>
|
|
|
|
|
<el-form-item label="船号:" style="width: 250px">
|
|
|
|
|
<vxe-pulldown ref="xDown4" transfer >
|
|
|
|
|
<template #default>
|
|
|
|
|
<vxe-input
|
|
|
|
|
v-model="request.dcCh"
|
|
|
|
|
placeholder="船号"
|
|
|
|
|
style="height: 28px;
|
|
|
|
|
line-height: 28px; width: 150px;"
|
|
|
|
|
suffix-icon="vxe-icon--search"
|
|
|
|
|
@keyup="keyupEvent4"
|
|
|
|
|
@focus="focusEvent4"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
<template #dropdown>
|
|
|
|
|
<div class="my-dropdown mytable " style="width: 250px">
|
|
|
|
|
<vxe-grid
|
|
|
|
|
highlight-hover-row
|
|
|
|
|
height="300px"
|
|
|
|
|
:data="projectData"
|
|
|
|
|
:columns="projectColumns"
|
|
|
|
|
@cell-click="cellClickEvent"
|
|
|
|
|
show-overflow
|
|
|
|
|
>
|
|
|
|
|
<template #wgbsEdit="{ row}">
|
|
|
|
|
<vxe-checkbox v-model="row.wgbs" checked-value="Y" unchecked-value="N" disabled ></vxe-checkbox>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-grid>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-pulldown>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-form-item label="钢加开始:" style="width: 300px">
|
|
|
|
|
<el-date-picker
|
|
|
|
@ -105,7 +138,9 @@
|
|
|
|
|
import { getList, tj, save, upload } from "@/api/jhzx/zrcWH";
|
|
|
|
|
import {getToken} from "@/utils/auth";
|
|
|
|
|
import {endLoading, startLoading} from "@/utils";
|
|
|
|
|
import { getCzxx } from "@/api/jhzx/qfxq";
|
|
|
|
|
import {Message} from "element-ui";
|
|
|
|
|
import {getCzplBase} from "@/api/sjzx/jcsj";
|
|
|
|
|
export default {
|
|
|
|
|
name: "zrcWH",
|
|
|
|
|
data() {
|
|
|
|
@ -113,6 +148,7 @@ export default {
|
|
|
|
|
request: {
|
|
|
|
|
date: "",
|
|
|
|
|
Zt: "0",
|
|
|
|
|
dcCh:''
|
|
|
|
|
},
|
|
|
|
|
isupload:'02',
|
|
|
|
|
heads: { token: getToken() },
|
|
|
|
@ -818,12 +854,24 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
fileList: [],
|
|
|
|
|
checkedList: [],
|
|
|
|
|
ShipNoList: [], //船号
|
|
|
|
|
projectData:[],
|
|
|
|
|
projectData1:[],
|
|
|
|
|
projectColumns: [
|
|
|
|
|
{field: 'cbbm', title: '船号',width: 110},
|
|
|
|
|
{ field: 'wgbs', title: '完工标识', width: 80,
|
|
|
|
|
slots:{
|
|
|
|
|
default: 'wgbsEdit'
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
window.addEventListener("resize", this.getHeight);
|
|
|
|
|
this.getHeight();
|
|
|
|
|
this.initList();
|
|
|
|
|
this.getCzxx();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 获取列表接口
|
|
|
|
@ -831,6 +879,7 @@ export default {
|
|
|
|
|
let params = {
|
|
|
|
|
Zt: this.request.Zt,
|
|
|
|
|
gjks: "",
|
|
|
|
|
dcCh: this.request.dcCh,
|
|
|
|
|
};
|
|
|
|
|
if (this.request.date && this.request.date.length > 0) {
|
|
|
|
|
params.gjks =
|
|
|
|
@ -847,6 +896,33 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 获取船号接口
|
|
|
|
|
getCzxx() {
|
|
|
|
|
getCzxx().then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.ShipNoList = res.data;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
getCzplBase({}).then(res=>{
|
|
|
|
|
this.projectData=res.data.cbbm
|
|
|
|
|
this.projectData1=res.data.cbbm
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
cellClickEvent({row}) {
|
|
|
|
|
this.request.dcCh = row.cbbm
|
|
|
|
|
this.$refs.xDown4.hidePanel()
|
|
|
|
|
},
|
|
|
|
|
focusEvent4() {
|
|
|
|
|
this.$refs.xDown4.showPanel()
|
|
|
|
|
},
|
|
|
|
|
keyupEvent4() {
|
|
|
|
|
if (this.request.dcCh) {
|
|
|
|
|
this.projectData = this.projectData1.filter(row => row.project.indexOf(this.request.dcCh.toUpperCase()) > -1)
|
|
|
|
|
} else {
|
|
|
|
|
this.projectData = this.projectData1.slice(0)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 上传excel
|
|
|
|
|
beforeAvatarUpload(file) {
|
|
|
|
|
|
|
|
|
@ -865,7 +941,8 @@ export default {
|
|
|
|
|
endLoading()
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message({ message: '导入成功', type: 'success' })
|
|
|
|
|
this.initList();
|
|
|
|
|
this.list = res.data;
|
|
|
|
|
this.checkedList = [];
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
Message({
|
|
|
|
|