|
|
@ -145,6 +145,9 @@ export default {
|
|
|
|
name: "zrcWH",
|
|
|
|
name: "zrcWH",
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
uploadData:{
|
|
|
|
|
|
|
|
isupload:null,
|
|
|
|
|
|
|
|
},
|
|
|
|
request: {
|
|
|
|
request: {
|
|
|
|
date: "",
|
|
|
|
date: "",
|
|
|
|
Zt: "0",
|
|
|
|
Zt: "0",
|
|
|
@ -153,6 +156,7 @@ export default {
|
|
|
|
isupload:'02',
|
|
|
|
isupload:'02',
|
|
|
|
heads: { token: getToken() },
|
|
|
|
heads: { token: getToken() },
|
|
|
|
uploadAction: process.env.VUE_APP_BASE_API + '/zrcAndPlb/upload',
|
|
|
|
uploadAction: process.env.VUE_APP_BASE_API + '/zrcAndPlb/upload',
|
|
|
|
|
|
|
|
tmpUploadAction:null,
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
|
height: "500px",
|
|
|
|
height: "500px",
|
|
|
|
tableColumn: [
|
|
|
|
tableColumn: [
|
|
|
@ -168,7 +172,7 @@ export default {
|
|
|
|
field: "dcCh",
|
|
|
|
field: "dcCh",
|
|
|
|
title: "船号",
|
|
|
|
title: "船号",
|
|
|
|
align: "center",
|
|
|
|
align: "center",
|
|
|
|
minWidth: "70",
|
|
|
|
width: "90",
|
|
|
|
filters: [
|
|
|
|
filters: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
@ -852,7 +856,7 @@ export default {
|
|
|
|
label: "审核",
|
|
|
|
label: "审核",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
fileList: [],
|
|
|
|
fileList: {},
|
|
|
|
checkedList: [],
|
|
|
|
checkedList: [],
|
|
|
|
ShipNoList: [], //船号
|
|
|
|
ShipNoList: [], //船号
|
|
|
|
projectData:[],
|
|
|
|
projectData:[],
|
|
|
@ -868,6 +872,7 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.tmpUploadAction=this.uploadAction
|
|
|
|
window.addEventListener("resize", this.getHeight);
|
|
|
|
window.addEventListener("resize", this.getHeight);
|
|
|
|
this.getHeight();
|
|
|
|
this.getHeight();
|
|
|
|
// this.initList();
|
|
|
|
// this.initList();
|
|
|
@ -917,7 +922,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
keyupEvent4() {
|
|
|
|
keyupEvent4() {
|
|
|
|
if (this.request.dcCh) {
|
|
|
|
if (this.request.dcCh) {
|
|
|
|
this.projectData = this.projectData1.filter(row => row.project.indexOf(this.request.dcCh.toUpperCase()) > -1)
|
|
|
|
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.dcCh.toUpperCase()) > -1)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.projectData = this.projectData1.slice(0)
|
|
|
|
this.projectData = this.projectData1.slice(0)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -925,13 +930,11 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 上传excel
|
|
|
|
// 上传excel
|
|
|
|
beforeAvatarUpload(file) {
|
|
|
|
beforeAvatarUpload(file) {
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.request.dcCh){
|
|
|
|
if (!this.request.dcCh){
|
|
|
|
this.$message.error('请选择船号')
|
|
|
|
this.$message.error('请选择船号')
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.uploadAction+= `?dcCh=${this.request.dcCh}`
|
|
|
|
|
|
|
|
// 文件类型
|
|
|
|
// 文件类型
|
|
|
|
const isType = file.type === 'application/vnd.ms-excel'
|
|
|
|
const isType = file.type === 'application/vnd.ms-excel'
|
|
|
|
const isTypeComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
|
|
const isTypeComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
|
@ -945,6 +948,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleAvatarSuccess(res, file) {
|
|
|
|
handleAvatarSuccess(res, file) {
|
|
|
|
endLoading()
|
|
|
|
endLoading()
|
|
|
|
|
|
|
|
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message({ message: '导入成功', type: 'success' })
|
|
|
|
this.$message({ message: '导入成功', type: 'success' })
|
|
|
|
this.list = res.data;
|
|
|
|
this.list = res.data;
|
|
|
@ -960,6 +964,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
uploadExcel() {
|
|
|
|
uploadExcel() {
|
|
|
|
this.uploadData.isupload = this.isupload
|
|
|
|
this.uploadData.isupload = this.isupload
|
|
|
|
|
|
|
|
this.uploadAction=`${this.tmpUploadAction}?dcCh=${this.request.dcCh}`
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 全选
|
|
|
|
// 全选
|
|
|
|
selectAllEvent() {
|
|
|
|
selectAllEvent() {
|
|
|
|